/* ========================================
   SECTION PRINCIPALE
   ======================================== */
   .section-home {
    width: 100%;
    margin: 20px auto;
    padding-left: 5%;
    padding-right: 5%;
  }
  
  .right-section {
    margin: 20px auto;
    padding-right: 2%;
  }
  
  /* ========================================
     BANNIÈRE
     ======================================== */
  .container-banner {
    display: flex;
  }
  
  .banner-img-container {
    position: relative;
    display: inline-block;
    width: calc(50% - 10px);
  }
  
  .banner-img {
    width: 100%;
    height: 80px;
    border-radius: 8px;
  }
  
  .centered-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
  }
  /* ========================================
     LAYOUT HOME - SECTIONS PRINCIPALES
     ======================================== */
  .home-section {
    display: flex;
    gap: 2%;
  }
  
  .home-section .sidebar-left {
    width: 20%;
  }
  
  .home-section .main-content {
    width: 55%;
  }
  
  .home-section .sidebar-right {
    width: 20%;
  }
  
  /* ========================================
     CARD PROFILE - SIDEBAR GAUCHE
     ======================================== */
  .card-profile {
    max-width: 350px;
    margin: 0 auto 1rem auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    padding: 1.5rem;
    position: relative;
  }
  
  .card-profile:hover {
    box-shadow: 0 4px 24px rgba(0, 148, 68, 0.1);
  }
  
  /* Bouton d'édition du profil */
  .card-profile .edit-profile-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    background: #fff;
    border-radius: 50%;
    padding: 0.3rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: background 0.15s;
    text-decoration: none;
  }
  
  .card-profile .edit-profile-btn:hover {
    background: #f2f2f2;
  }
  
  /* Contenu de la carte */
  .card-profile .card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    margin-top: 1.5rem;
  }
  
  /* Avatar et indicateur de statut */
  .card-profile .avatar-container {
    position: relative;
    display: inline-block;
  }
  
  .card-profile .avatar-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: center;
    border: 2px solid #39B54A;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
  }
  
  .card-profile .status-indicator {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #28a745;
    border-radius: 50%;
    bottom: 20px;
    right: 7px;
    border: 2px solid white;
  }
  
  /* Media query pour tablettes */
  @media (max-width: 768px) {
    .card-profile .status-indicator {
      width: 16px;
      height: 16px;
      bottom: 18px;
      right: 6px;
      border: 1.5px solid white;
    }
  }
  
  /* Media query pour petits écrans */
  @media (max-width: 430px) {
    .card-profile .status-indicator {
      width: 12px;
      height: 12px;
      bottom: 18px;
      right: 6px;
      border: 1px solid white;
    }
  }
  
  /* Textes du profil */
  .card-profile .profile-name {
    color: #009444 !important;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
  }
  
  .card-profile .profile-post {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0;
  }
  /* ========================================
     MAIN CONTENT - SECTION CENTRALE
     ======================================== */
  .main-content .carausel-sponsor .slick-list .slick-track {
    float: left;
  }
  
  /* ========================================
     MEDIA QUERIES - RESPONSIVE DESIGN
     ======================================== */
  
  /* Tablettes et écrans moyens */
  @media (max-width: 992px) {
    .card-profile {
      max-width: 100%;
      padding: 1.5rem 1rem;
    }
    
    .card-profile .avatar-img {
      width: 100px;
      height: 100px;
    }
  }
  
  /* Mobiles et petits écrans */
  @media (max-width: 576px) {
    .card-profile {
      max-width: 100%;
      border-radius: 10px;
    }
    
    .card-profile .avatar-img {
      height: 80px !important;
      width: 80px !important;
    }
    
    .card-profile .profile-name {
      font-size: 1.1rem;
    }
    
    .card-profile .profile-post {
      font-size: 0.95rem;
    }
    
    .card-profile .edit-profile-btn {
      top: 0.5rem;
      right: 0.5rem;
      padding: 0.15rem;
    }
    
    .card-profile .card-item {
      margin-top: 1rem;
    }
  }
  
  /* Très petits écrans */
  @media (max-width: 480px) {
    .home-section {
      display: block !important;
      gap: 0;
    }
    
    .home-section .sidebar-left,
    .home-section .main-content,
    .home-section .sidebar-right {
      width: 100% !important;
      float: none !important;
      margin-bottom: 1rem;
    }
    
    .home-section .sidebar-right {
      order: 3;
      margin-top: 1rem;
    }
  }
  
  /* Écrans très étroits */
  @media (max-width: 360px) {
    .home-section .sidebar-right {
      padding: 0.2rem 0;
      margin-bottom: 0.5rem;
    }
    
    .ads-img {
      min-height: 80px;
      max-height: 120px;
      border-radius: 12px;
    }
  }
  
  /* ========================================
     SECTION VIDÉO - RESPONSIVE ET FLEXIBLE
     ======================================== */
  .video-section {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .video-carousel {
    width: 100%;
    position: relative;
  }
  
  .video-carousel .carousel-inner {
    width: 100%;
    position: relative;
  }
  
  .video-carousel .carousel-item {
    width: 100%;
    position: relative;
  }
  
  .video-aspect {
    position: relative;
    width: 100%;
    padding-top: 56.25%; 
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    min-height: 180px;
    max-height: 480px;
  }
  
  .video-aspect iframe {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
    display: block;
    border-radius: 12px;
  }
  
  .video-fixed {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    margin: 0 auto;
  }
  
  .video-fixed iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-height: 220px;
    transform: translate(-50%, -50%);
    border: none;
    background: #000;
    border-radius: 12px;
    object-fit: cover;
  }
  
  /* Media Queries pour le responsive */
  @media (max-width: 768px) {
    .video-fixed {
      height: 200px;
    }
    
    .video-fixed iframe {
      min-height: 200px;
    }
  }
  
  @media (max-width: 576px) {
    .video-fixed {
      height: 180px;
    }
    
    .video-fixed iframe {
      min-height: 180px;
    }
  }
  
  @media (max-width: 480px) {
    .video-fixed {
      height: 160px;
      border-radius: 8px;
    }
    
    .video-fixed iframe {
      min-height: 160px;
      border-radius: 8px;
    }
  }
  
  @media (max-width: 360px) {
    .video-fixed {
      height: 140px;
    }
    
    .video-fixed iframe {
      min-height: 140px;
    }
  }
  
  .sidebar-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 200px !important;
    padding: 0.5rem !important;
  }
  
  .ads-img {
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
    max-height: 600px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 12px !important;
    display: block !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  }
  
  .ads-img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }
  
  /* Media queries pour la responsivité de l'image ads */
  @media (max-width: 1200px) {
    .ads-img {
      max-height: 500px !important;
    }
  }
  
  @media (max-width: 992px) {
    .sidebar-right {
      padding: 0.3rem !important;
    }
    
    .ads-img {
      min-height: 180px !important;
      max-height: 400px !important;
      border-radius: 10px !important;
    }
  }
  
  @media (max-width: 768px) {
    .sidebar-right {
      padding: 0.2rem !important;
      margin-bottom: 1rem !important;
      height: 300px !important;
      min-height: 300px !important;
    }
    
    .ads-img {
      min-height: 280px !important;
      max-height: 280px !important;
      height: 280px !important;
      border-radius: 8px !important;
      object-fit: fill !important;
      object-position: center !important;
    }
  }
  
  @media (max-width: 576px) {
    .sidebar-right {
      padding: 0.5rem 0 !important;
      height: 250px !important;
      min-height: 250px !important;
    }
    
    .ads-img {
      min-height: 230px !important;
      max-height: 230px !important;
      height: 230px !important;
      border-radius: 6px !important;
      object-fit: cover !important;
      object-position: center !important;
    }
  }
  
  @media (max-width: 480px) {
    .sidebar-right {
      height: 720px !important;
      min-height: 720px !important;
      padding: 0.3rem 0 !important;
    }
    
    .ads-img {
      min-height: 710px !important;
      max-height: 710px !important;
      height: 710px !important;
      width: 90% !important;
      border-radius: 5px !important;
      object-fit: fill !important;
      object-position: center !important;
    }
  }
  
  @media (max-width: 360px) {
    .sidebar-right {
      height: 650px !important;
      min-height: 650px !important;
      padding: 0.2rem 0 !important;
    }
    
    .ads-img {
      min-height: 640px !important;
      max-height: 640px !important;
      height: 640px !important;
      width: 90% !important;
      border-radius: 4px !important;
      object-fit: fill !important;
      object-position: center !important;
    }
  }
  
  .sponsor-img {
    width: 100%;
    height: auto;
    min-height: 80px;
    object-fit: fill;
    object-position: center;
    border-radius: 10px;
    display: block;
  }
  
  @media (max-width: 992px) {
    .sponsor-img {
      min-height: 70px;
      max-height: 150px;
      border-radius: 8px;
    }
  }
  
  @media (max-width: 768px) {
    .sponsor-img {
      min-height: 60px;
      max-height: 120px;
      border-radius: 6px;
    }
  }
  
  @media (max-width: 576px) {
    .sponsor-img {
      min-height: 50px;
      max-height: 100px;
      border-radius: 6px;
    }
  }
  
  @media (max-width: 480px) {
    .sponsor-img {
      min-height: 40px;
      max-height: 80px;
      border-radius: 4px;
    }
  }