/* === Bandeau actualités === */
.bandeau-actualites-split {
  font-family: 'Arial', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100px;
  background-color: #2C3E50;
  color: white;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.bandeau-actualites-titre {
  font-size: 1rem;
  font-weight: bold;
  padding: 0 1rem;
  width: 33%;
  display: flex;
}

.titre-actu {
    font-size: 3rem;
    text-align: center;
    color: white;
}

.bandeau-actualites-bouton {
  flex: 1;
  height: 100%;
  background-color: #fff;
  color: #2C3E50;
  padding-left: 20px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.bandeau-actualites-bouton:hover {
  background-color: #4DA68B;
  color: #fff;
}

/* === Cartes d'actualités === */
.actualites {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carte-actualite-grande,
.carte-actualite-petite {
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 1.5rem;
  margin-bottom: 2rem;
  width: 75%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  line-height: 1.8;
}

.grande-carte {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  width: 100%;
}

.petite-carte {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

/* Contenu des cartes */
.carte-actualite-grande__image,
.carte-actualite-petite__image {
  width: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.carte-actualite-grande__contenu,
.carte-actualite-petite__contenu {
  display: flex;
  flex-direction: column;
}

.carte-actualite-grande__titre,
.carte-actualite-petite__titre {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  line-height: normal;
}

.carte-actualite-grande__intro,
.carte-actualite-petite__intro {
  font-size: 1rem;
}

.carte-actualite-grande__lien,
.carte-actualite-petite__lien {
  align-self: flex-start;
  background-color: #2C3E50;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #2C3E50;
}

.carte-actualite-grande__lien:hover,
.carte-actualite-petite__lien:hover {
  background-color: #fff;
  color: #2C3E50;
}

/* === PARTENAIRES CAROUSEL === */
#partenaires-carousel {
  padding: 1rem;
  background-color: #fff;
  text-align: center;
}

#partenaires-carousel h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #333;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex: 0 0 140px;
  height: 200px;
  margin: 0 0.5rem;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-card:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

.carousel-card img {
  max-width: 90%;
  max-height: 100px;
  object-fit: contain;
}

.no-image {
  font-size: 0.8rem;
  color: #777;
}

/* Boutons masqués en mobile */
.carousel-btn {
  display: none;
}

.welcome-banner {
  display:none;
}

/* === DESKTOP STYLES === */
@media screen and (min-width: 1023px) {
  .main-accueil {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .actualites {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .grande-carte {
    width: 100%;
    display: flex;
    justify-content: center;
    max-width: 100%;
  }

  .petite-carte {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 75%;
  }

  .carte-actualite-petite {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 0 0 calc((100% - 4rem) / 3);
  }

  .carte-actualite-grande__titre {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .carte-actualite-grande__date {
    font-size: 1rem;
  }

  .carte-actualite-petite__date {
    font-size: 1rem;
  }

  /* ========= BANDEAU D'ACTUALITÉS =========*/
  .bandeau-actualites-titre {
    font-size: 1.5rem;
  }

  .bandeau-actualites-bouton {
    font-size: 1.5rem;
  }

  /* ========= CAROUSEL =========*/
  #partenaires-carousel {
    margin-top: 30px;
  }

  #partenaires-carousel h3 {
    font-size: 2rem;
  }

  .carousel-container {
    display: flex;
    justify-content: center;
    overflow: hidden;
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
  }

  .carousel-track {
    width: 75%;
    padding: 1rem 25px;
    gap: 1.5rem;
  }

  .carousel-card {
    flex: 0 0 calc(50% - 0.5rem);
    margin: 0;
    height: 150px;
  }

  .carousel-card img {
    max-width: 90%;
    max-height: 120px;
    object-fit: contain;
  }

  .carousel-btn {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #4DA68B;
    background: white;
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 2;
    opacity: 0.7;
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
  }

  .carousel-btn:hover {
    opacity: 1;
  }

  .carousel-btn.prev {
    left: 0.5rem;
  }

  .carousel-btn.next {
    right: 0.5rem;
  }

  /* === WELCOME BANNER GLOBAL === */
  .welcome-banner {
    position: relative;
    display: flex;
    min-height: 720px;
    overflow: hidden;
  }

  /* Bloc gauche (texte) */
  .welcome-content {
    flex: 1;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    border-radius: 0 0 50% 50% / 0 0 0 20%;
    background: #fff;
  }

  .welcome-banner h1 {
    font-size: 4rem;
    color: #2c3e50;
    margin-bottom: 1rem;
  }

  .welcome-banner p {
    font-size: 1.13rem;
    color: black;
    margin-bottom: 2rem;
  }

  .action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .action-btn {
    padding: 1rem 1.5rem;
    border: 2px solid #2c3e50;
    background: white;
    color: #2c3e50;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
  }

  .action-btn:hover {
    background: #2c3e50;
    color: #ffff;
  }

  /* Bloc droit (bulles + images) */
  .welcome-visual {
    flex: 1;
    position: relative;
    z-index: 1;
    border-radius: 0 0 50% 50% / 0 0 20% 0;
    background-color: #ecf0f1;
  }

  /* === BULLES === */
  .bubble {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
  }

  .bubble:hover {
    transform: scale(1.05);
  }

  .bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* === NOUVELLES POSITIONS DES BULLES IMAGES === */
  
  /* Bulle 1 : au milieu, en dessous du header */
  .bubble-img1 {
        width: 400px;
        height: 400px;
        top: -60px;
        left: -60px;
        z-index: 2;
  }

  /* Bulle 2 : en bas, en dessous du contenu */
  .bubble-img2 {
width: 200px;
        height: 200px;
        bottom: 20px;
        right: 230px;
        z-index: 2;
  }

  /* Bulle 3 : à droite, longue et fine */
  .bubble-img3 {
    width: 100px;
    height: 500px;
    top: 50px;
    right: 20px;
    border-radius: 50px;
    z-index: 2;
  }

  /* === BULLES COLORÉES FLOTTANTES === */
  .bubble-color {
    animation: floatUpDown 4s ease-in-out infinite;
  }

  /* Animation pour les bulles qui montent et descendent */
  @keyframes floatUpDown {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-30px);
    }
    100% {
      transform: translateY(0px);
    }
  }

  /* Animation alternative pour varier les mouvements */
  @keyframes floatDownUp {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(30px);
    }
    100% {
      transform: translateY(0px);
    }
  }

  /* Bulle colorée 1 - monte et descend */
  .bubble.color1 {
    width: 60px;
    height: 60px;
    top: 15%;
    right: 25%;
    background: rgba(44, 62, 80, 0.15);
    animation: floatUpDown 3s ease-in-out infinite;
    animation-delay: 0s;
  }

  /* Bulle colorée 2 - descend et monte */
  .bubble.color2 {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 10%;
    background: rgba(77, 166, 139, 0.2);
    animation: floatDownUp 4s ease-in-out infinite;
    animation-delay: 1s;
  }

  /* Bulle colorée 3 - monte et descend */
  .bubble.color3 {
    width: 50px;
    height: 50px;
    bottom: 20%;
    left: 25%;
    background: rgba(44, 62, 80, 0.1);
    animation: floatUpDown 3.5s ease-in-out infinite;
    animation-delay: 2s;
  }

  /* Bulle colorée 4 - descend et monte */
  .bubble.color4 {
    width: 70px;
    height: 70px;
    top: 25%;
    left: 50%;
    background: rgba(77, 166, 139, 0.15);
    animation: floatDownUp 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
  }
 
/* === STYLES MOBILES POUR LA BANNIÈRE === */
@media screen and (max-width: 1022px) {
  
  /* Bannière d'accueil mobile - layout simplifié */
  .welcome-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 2rem 1rem;
    background: #fff;
    overflow: visible;
  }

  /* Contenu principal mobile */
  .welcome-content {
    flex: none;
    padding: 1rem;
    border-radius: 0;
    background: #fff;
    text-align: center;
  }

  .welcome-banner h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .welcome-banner p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  /* Boutons d'action mobiles */
  .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
  }

  .action-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #2c3e50;
    background: white;
    color: #2c3e50;
    border-radius: 5px;
    text-decoration: none;
    display: block;
    width: 100%;
    max-width: 280px;
    text-align: center;
    transition: all 0.3s ease;
  }

  .action-btn:hover {
    background: #2c3e50;
    color: #fff;
  }

  /* Section visuelle mobile - simplifiée */
  .welcome-visual {
    flex: none;
    position: relative;
    height: 200px;
    margin-top: 2rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #ecf0f1 0%, #d5dbdb 100%);
    overflow: hidden;
  }

  /* Masquer toutes les bulles complexes sur mobile */
  .bubble-img1,
  .bubble-img2,
  .bubble-img3 {
    display: none;
  }

  /* Simplifier les bulles colorées pour mobile */
  .bubble.color1,
  .bubble.color2,
  .bubble.color3,
  .bubble.color4 {
    display: none;
  }

  /* Optionnel : ajouter quelques éléments décoratifs simples */
  .welcome-visual::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(77, 166, 139, 0.2);
    border-radius: 50%;
    top: 20px;
    right: 20px;
    animation: floatUpDown 3s ease-in-out infinite;
  }

  .welcome-visual::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(44, 62, 80, 0.15);
    border-radius: 50%;
    bottom: 30px;
    left: 30px;
    animation: floatDownUp 4s ease-in-out infinite;
  }
}
}