html, body {
    height: 100%;
    margin: 0;
  }
  
  body {
    display: flex;
    flex-direction: column;
    margin: 0;
    background-image: url("images/FOND1920.jpg");
    background-size: cover;        /* prend tout l’écran */
    background-position: center;   /* centrée */
    background-repeat: no-repeat;
    background-attachment: scroll;  /* reste en place au scroll */
  }
  
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("images/FOND1920.jpg");
    background-size: cover;
    background-position: center;
    z-index: -1;
  }
  
  
  /* HEADER */
  .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    background-color: #0918b0;
    z-index: 1000;
    display: flex;
    align-items: center;
  }


  
  
  .site-header .container-fluid {
    width: 100%;
  }
  
  .burger {
    display: none;
    background: none;
    border: none;
    color: #f2eddf;
    font-size: 28px;
    cursor: pointer;
  }
  
  
  
  .main-nav {
    display: flex;
    gap: 48px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* BLACK */
    text-transform: none;
  }

  .main-nav :hover{
    font-weight: 900; /* BLACK */
    
  }
  
  .main-nav a {
    color: #f2eddf;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 0.5px;
  }
  
  .logo {
    width: 100%;
    max-width: 180px; /* ajuste si besoin */
    height: auto;
  }

  main.layout {
    flex: 1;
  }
  
  
  
  
  /* LAYOUT */
  .layout {
    padding-top: 90px;
  }

  
  
  .contenu {
    margin-left: 33.333%;
    padding: 40px 80px;  /* réduire le top padding */
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box; /* pour inclure le padding dans la hauteur */
  }

  
  
  
  /* IMAGE GAUCHE */
  .visuel-fixe {
    position: fixed;
    top: 90px;
    left: 0;
    height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33.333%;
  }
  
  
  .visuel-fixe img {
    max-height: 100%;
  }
  
 
  
  /* PRÉSENTATION */
  .presentation h1,
  .agenda h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 72px;
    margin-bottom: 40px;
    color: #f2eddf;
  }
 

  .presentation p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
    max-width: 750px;
    margin-bottom: 100px;
    color: #f2eddf;
  }
  
  /* Variante avec moins de marge */
  .presentation p.p--compact {
    margin-bottom: 30px;
  }
    
  
  /* AGENDA */
  .agenda-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 30px;
  }
  
  .agenda-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.6);
    font-family: 'Poppins', sans-serif;
  }


  /* AGENDA */
h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 30px;
    color: #f2eddf;
  }
  
  .agenda-col {
    padding-right: 40px;
  }
  
  .agenda-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    border-top: 1px solid rgba(255,255,255,0.6);
    padding: 20px 0;
  }
  
  .agenda-row:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.6);
  }
  
  .agenda-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #f2eddf;
  }
  
  .agenda-text {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #f2eddf;
  }
  
  
  .agenda-row .date {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f2eddf;
  }
  
  .agenda-row p {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #f2eddf;
  }
  
  .image-scroll, .actualites-scroll {
    display: flex;
    overflow-x: auto;
    gap: 24px;
  }


  
  
  .image-scroll img {
    height: 300px;
    flex-shrink: 0;
    border-radius: 2px;
    object-fit: cover;
  }
  
  .card {
    flex: 0 0 auto;
    width: 200px;
    background-color: transparent; 
    border: none;
    box-shadow: none;
    border-radius: 10px;
    scroll-snap-align: start;
}

.year {
    margin-top: 0.5rem; 
    text-align: center; 
    color: #f2eddf;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
}  


.image-scroll::-webkit-scrollbar {
  height: 8px;
}

.image-scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
}

.image-scroll::-webkit-scrollbar-thumb {
  background-color: #f2eddf;
  border-radius: 10px;
}

.image-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #f2eddf;
}


.image-scroll {
  width: 100%;
  max-width: 100%;
  overscroll-behavior-x: contain;
}


/* ACTUALITÉS */
.actualites-item {
  margin-top: 40px;
  gap: 32px; /* petit espace entre image et texte */
}

/* Image à gauche */
.actualites-img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  margin-bottom: 20px;
}

/* Texte à droite */
.actualites-text h3 {
  margin-bottom: 16px;
}

/* texte complet caché au départ */
.actu-complet {
  display: none;
  margin-top: 10px;
}

/* bouton afficher plus */
.btn-afficher-plus {
  display: block;
  margin-left: auto;
  margin-top: 8px;

  background: none;
  border: none;
  color: #f2eddf;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 10pt;
  cursor: pointer;
  padding: 0;

  transition: font-weight 0.2s ease;
}

.btn-afficher-plus:hover {
  font-weight: 900;
}



.actu-extrait,
.actu-complet {
  margin-bottom: 12px;
}

.actualites-text p {
  margin-bottom: 16px;
}


.actualites-img {
  width: 100%;
}



.actualites-scroll {
  display: flex;
  gap: 40px; /* espace entre les fiches */
  overflow-x: auto;
  overflow-y: hidden;  /* vertical masqué dans la ligne, mais scroll global page reste possible */
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;

  /* STYLE DU SCROLL COMME ARCHIVES */
  -webkit-overflow-scrolling: touch;
}

.actualites-scroll::-webkit-scrollbar {
  height: 8px;
}

.actualites-scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
}

.actualites-scroll::-webkit-scrollbar-thumb {
  background-color: #f2eddf;
  border-radius: 10px;
}

.actualites-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #f2eddf;
}

.fiche {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column; /* image au-dessus, texte en dessous */
  gap: 12px;
  width: 300px; /* ajustable selon ton design */
  min-height: 100%; /* garantit que le texte reste visible sous l’image */
}




.actualites-img img {
  width: 100%;
  height: auto;
  object-fit: cover;  /* remplissage proportionnel */
  border-radius: 4px;
}

.actualites-text {
  text-align: left;
  overflow: hidden;
}


.btn-afficher-plus {
  margin-top: 8px;
}

.btn-participer {
  display: inline-block;
  background-color: #f2eddf; /* beige */
  color: #0918b0;                /* texte sombre pour contraste */
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-decoration: none;
  font-size: 22px;
  padding: 12px 24px;
  border-radius: 50px;        /* pastille arrondie */
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 10px;
}

.btn-participer:hover {
  background-color: #0918b0;
  color: #f2eddf;
  border: solid 1px ;
  border-color: #f2eddf; 
}

.prix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    max-width: 750px;
  }

  .prix-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  
  .prix-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  

  .prix-pastille {
    display: inline-block;
    background-color: #f2eddf;   /* crème */
    color: #0918b0;              /* bleu */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
    transition: 
      background-color 0.25s ease,
      color 0.25s ease,
      border-color 0.25s ease,
      opacity 0.25s ease;
  }

  .prix-pastille:hover {
    background-color: #0918b0; /* bleu */
    color: #f2eddf;            /* texte crème */
    border-color: #f2eddf;     /* contour crème */
  }



  /* Par défaut : rien ne change */
.prix-pastille {
    opacity: 1;
  }
  
  /* Si UNE pastille est hover… */
  .prix-grid:has(.prix-pastille:hover) .prix-pastille {
    opacity: 0.35;
  }
  
  /* … sauf celle qui est hover */
  .prix-grid:has(.prix-pastille:hover) .prix-pastille:hover {
    opacity: 1;
  }
  


  
  

  .prix-pastille::before {
    content: attr(data-tooltip);
    position: absolute;
    top: -12px;
    left: -12px;
    background-color: #f2eddf;
    color: #0918b0;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
  }
  
  .prix-pastille:hover::before {
    opacity: 1;
    transform: scale(1);
  }

  .reglement {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #f2eddf;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease, font-weight 0.2s ease;
  }
  
  .reglement:hover {
    opacity: 1;
    font-weight: 700;
  }
  
  .reglement .icon {
    font-size: 14px;
  }

  .site-footer {
    position: relative;
    z-index: 50;
    background: #f2eddf;
    margin-top: auto;
  }
  
  

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  max-width: 1400px;
  margin: 20px ;
  padding: 20px;
}

/* Colonnes */
.footer-col {
  flex-direction: column;
  gap: 10px;
}

/* Titres */
.footer-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #0918b0;
  margin-bottom: 4px;
}

/* Liens */
.site-footer a {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #0918b0;
  text-decoration: none;
  margin-bottom: 20px;
}

.site-footer a:hover {
  text-decoration: none;
  font-weight: 700;
}

/* Partenaires */
.footer-partners .partners-logos {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 10px;
}

.footer-partners img {
  max-height: 50px;
  width: auto;
}

/* Réseaux */
.footer-social {
  align-items: flex-end;
}

.social-icon img {
  width: 48px;
  height: auto;
}

.layout {
  flex: 1;
  padding-top: 90px;
}

  

  @media screen and (max-width: 768px) {

  /* Layout : image et contenu empilés */
  .layout {
    flex-direction: column;
    padding-top: 90px;
  }

  .visuel-fixe {
    position: relative;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .visuel-fixe img {
    width: 100%;
    height: auto;
  }


  .header-logo {
    flex: 0 0 auto;
    width: auto;
  }

  /* Présentation plein écran verticale */
  .presentation {
    min-height: auto;
    justify-content: flex-start;
  }

  /* Grid prix → une colonne */
  .prix-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Agenda : colonnes empilées */
  .agenda .row {
    grid-template-columns: 1fr;
  }

  /* Scroll horizontal archives / actualités : garder scroll */
  .image-scroll, .actualites-scroll {
    gap: 16px;
  }

  .agenda-row {
    display: grid;
    grid-template-columns: 1fr; /* chaque colonne prend toute la largeur */
    gap: 16px; /* espacement entre les blocs */
  }

  /* HEADER mobile */
  .site-header {
    height: 70px;
    padding: 0 20px;
    display: flex;
    align-items: center;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    background-color: #0918b0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;

    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .main-nav a {
    font-size: 22px;
  }

  /* Menu ouvert */
  .main-nav.is-open {
    transform: translateY(0);
  }


  .contenu {
    margin-left: 0;
    width: 100%;
    padding: 20px 30px;
    height: auto;
  }



  .prix-col {
    align-items: center;
  }

  .prix-item {
    align-items: center;
  }

  .presentation {
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-top: 50px; /* <-- ajoute de l'espace après la section présentation */
    margin-bottom: 20px;
  }

  .col-6 {
    width: 100%;
    margin-bottom: 50px;
  }

  .presentation h1 {
font-size: 40px;
  }

  .site-footer {
    padding: 40px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr; /* une colonne */
    gap: 48px;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .site-footer a {
    font-size: 15px;
    margin-bottom: 12px;
  }

  /* Partenaires */
  .footer-partners .partners-logos {
    justify-content: center;
    gap: 24px;
  }

  .logo {
    max-width: 170px;
    
  }


  .burger {
    display: contents;
    margin-left: auto;
    font-size: 30px;
  }


  .footer-partners img {
    max-height: 42px;
  }

  /* Réseaux sociaux */
  .footer-social {
    align-items: center;
  }

  .social-icon img {
    width: 40px;
  }
}


