/* Accessibilité — texte pour lecteurs d'écran */
.seo-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-h1 {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  color: #111;
  background: #fffdf8;
}

img {
  max-width: 100%;
}

/* RÉSEAUX SOCIAUX — top-bar desktop */
.top-bar-social {
  position: absolute;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}

.top-bar-social-link {
  color: #2e7d32;
  font-size: 18px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.top-bar-social-link:hover {
  opacity: 0.7;
}

/* RÉSEAUX SOCIAUX — mobile header */
.mobile-header-social {
  position: absolute;
  right: 16px;
  top: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-header-social a {
  color: #111;
  font-size: 20px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.mobile-header-social a:hover {
  opacity: 0.7;
}

/* RÉSEAUX SOCIAUX — menu mobile */
.mobile-menu-social {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 24px 0 8px;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 8px;
}

.mobile-menu-social a {
  color: white;
  font-size: 26px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.mobile-menu-social a:hover {
  opacity: 0.7;
}

/* RÉSEAUX SOCIAUX — footer */
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.footer-social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(44,36,24,0.12);
  color: #2c2418;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social-link:hover {
  background: #eba946;
  color: white;
}

/* TOP BAR FIXE */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #eee;
  color: #2e7d32;
  font-family: 'Luckiest Guy', cursive;
  font-size: 14px;
  z-index: 9999;
  border-bottom: 2px solid rgba(0,0,0,0.08);
}

.top-bar-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2e7d32, #8ab844);
  background-position: left center;
  z-index: 1;
  transition: width 0.08s linear;
}

.top-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.35);
  z-index: 2;
  pointer-events: none;
}

.top-bar span {
  position: relative;
  z-index: 3;
  padding: 0 14px;
  text-align: center;
}

/* HERO PAGES INTÉRIEURES — logo gauche + titre droite */
.page-hero-logo {
  flex-shrink: 0;
}

.page-hero-logo img {
  height: 260px;
  width: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
}

.infos-hero-content,
.jeux-hero-content,
.ap-hero-content,
.noc-hero-content,
.res-hero-content,
.grp-hero-content,
.ct-hero-content {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 50px !important;
  text-align: left !important;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 40px 40px !important;
}

.page-hero-text {
  flex: 1;
}

@media (max-width: 900px) {
  .page-hero-logo {
    display: none;
  }

  #minuscules,
  #familles,
  #grandjeu {
    scroll-margin-top: 120px;
  }

  .infos-hero-content,
  .jeux-hero-content,
  .ap-hero-content,
  .noc-hero-content,
  .res-hero-content,
  .grp-hero-content,
  .ct-hero-content {
    flex-direction: column !important;
    text-align: center !important;
    gap: 20px !important;
    padding: 200px 20px 30px !important;
  }
}


/* MENU */
.menu {
  display: flex;
  margin-top: 48px;
  position: relative;
  z-index: 2;
}

.menu a {
  flex: 1;
  padding: 18px;
  text-align: center;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: opacity 0.2s ease;
}

.menu a:hover {
  opacity: 0.9;
}

.menu a:nth-child(1) { background: #eba946; }
.menu a:nth-child(2) { background: #8ab844; }
.menu a:nth-child(3) { background: #7ac3e1; }
.menu a:nth-child(4) { background: #d43977; }
.menu a:nth-child(5) { background: #705399; }
.menu a:nth-child(6) { background: #8ab844; }
.menu a:nth-child(7) { background: #705399; }
.menu a:nth-child(8) { background: #eba946; }

/* LOGO DESKTOP */
.desktop-logo {
  display: block;
  width: 100%;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.desktop-logo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.desktop-logo a {
  display: block;
  line-height: 0;
}

@media (max-width: 900px) {
  .desktop-logo { display: none; }
}

@media (min-width: 901px) {
  .desktop-logo {
    position: relative;
    z-index: 1;
  }
}

/* HERO */
.hero {
  position: relative;
  height: calc(100vh - 158px);
  min-height: 620px;
  display: flex;
}

.hero-half {
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-left {
  background-image: url('../images/hero-1.jpg');
}

.hero-right {
  background-image: url('../images/hero-2.jpg');
}

.hero-half {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease;
}

.hero-bg.top {
  z-index: 2;
  opacity: 1;
}

.hero-bg.bottom {
  z-index: 1;
  opacity: 1;
}

.hero-content {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  width: 380px;
  margin-bottom: 25px;
}

.desktop-hero-logo {
  width: 380px;
  margin-bottom: 10px;
}

.title-img {
  width: 450px;
  max-width: 90vw;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
}

/* SECTIONS AVEC FOND LABYRINTHE */
.intro-section,
.story-section,
.night-section {
  position: relative;
  padding: 100px 40px;
}

.intro-section::before,
.story-section::before,
.night-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/labyrinthe-fond.png');
  background-repeat: repeat;
  background-size: 900px;
  z-index: 0;
}

/* CARTES */
.intro-card,
.story-card,
.night-card {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px;
}

.intro-card {
  background: #eba946;
  color: white;
}

.story-card {
  background: #eba946;
  color: #111;
}

/* TITRES */
.intro-card h2,
.story-text h2,
.section-5050-text h2,
.night-text h2,
.footer-title,
.picnic-text h2,
.footer-col-title,
.footer-promo-title {
  font-family: 'Luckiest Guy', cursive;
  text-transform: uppercase;
}

.intro-card h2,
.story-text h2,
.night-text h2 {
  font-size: clamp(48px, 6vw, 90px);
  line-height: 1;
  margin-bottom: 30px;
}

.intro-card p {
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 12px;
}

/* TITRE JEUX */
.jeux-titre-section {
  background: #1a3c1a;
  text-align: center;
  padding: 60px 20px 40px;
}

.jeux-titre {
  font-family: 'Luckiest Guy', cursive;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.jeux-titre span:first-child {
  font-size: clamp(36px, 5vw, 72px);
  color: #fff;
  text-transform: uppercase;
}

.jeux-titre-annee {
  font-size: clamp(52px, 8vw, 110px);
  color: #eba946;
  letter-spacing: 6px;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.08);
}

/* BLOCS 50/50 */
.section-5050 {
  display: flex;
  min-height: 520px;
}

.section-5050.reverse {
  flex-direction: row-reverse;
}

.section-5050-image,
.section-5050-text {
  width: 50%;
}

.section-5050-image {
  position: relative;
  overflow: hidden;
}

.section-5050-text {
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 55px;
}

.section-5050-text h2 {
  font-size: clamp(34px, 4vw, 62px);
  margin-bottom: 25px;
}

.section-5050-text p {
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.5;
  margin-bottom: 15px;
}

.btn {
  margin-top: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
  color: white;
  text-decoration: none;
  font-weight: bold;
  width: fit-content;
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.bg-green { background: #8ab844; }
.bg-yellow { background: #7ac3e1; }
.bg-pink { background: #d43977; }

/* SECTION HISTOIRE */
.story-container {
  display: flex;
  align-items: center;
  gap: 80px;
}

.story-image {
  width: 45%;
}

.story-image img {
  width: 100%;
  display: block;
}

.story-text {
  width: 55%;
}

.story-text p {
  font-size: clamp(20px, 1.5vw, 28px);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* SECTION PIQUE-NIQUE */
.picnic-section {
  width: 100%;
  background: #f5efe0;
}

.picnic-container {
  display: flex;
  align-items: center;
  min-height: 520px;
}

.picnic-text,
.picnic-image {
  width: 50%;
}

.picnic-text {
  padding: 80px 60px;
}

.picnic-text h2 {
  font-size: clamp(40px, 5vw, 70px);
  margin-bottom: 25px;
}

.picnic-text p {
  font-size: clamp(18px, 1.4vw, 24px);
  line-height: 1.6;
  margin-bottom: 15px;
}

.picnic-image {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 520px;
}

.picnic-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SECTION NOCTURNES */
.night-container {
  display: flex;
  align-items: center;
  gap: 80px;
}

.night-image {
  width: 45%;
}

.night-image img {
  width: 100%;
  display: block;
}

.night-text {
  width: 55%;
}

.night-text p {
  font-size: clamp(20px, 1.5vw, 28px);
  line-height: 1.5;
  margin-bottom: 20px;
}

.night-highlight {
  margin-bottom: 18px;
}

.night-highlight strong {
  display: block;
  font-size: clamp(22px, 1.8vw, 30px);
  margin-bottom: 6px;
}

/* FOOTER */
.footer {
  position: relative;
  background: #efe4cf;
  color: #2c2418;
  overflow: hidden;
}

.footer::before {
  display: none;
}

.footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0px;
  height: 274px;
  background-image: url('../images/barriere.png');
  background-repeat: repeat-x;
  background-position: top left;
  background-size: auto 274px;
  z-index: 1;
  pointer-events: none;
}

.footer-top {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 418px 40px 44px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 46px;
  align-items: start;
}

.footer-title {
  font-size: clamp(30px, 4vw, 54px);
  margin-bottom: 20px;
  color: #2e7d32;
}

.footer-info p {
  font-size: clamp(18px, 1.35vw, 23px);
  line-height: 1.65;
  margin-bottom: 10px;
}

.footer-address {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(44,36,24,0.15);
}

.footer-col-title,
.footer-promo-title {
  font-size: clamp(22px, 2vw, 30px);
  margin-bottom: 18px;
  color: #2c2418;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #2c2418;
  text-decoration: none;
  font-size: clamp(17px, 1.2vw, 21px);
  line-height: 1.4;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.75;
  transform: translateX(4px);
}

.footer-promo {
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(44,36,24,0.08);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.footer-promo p {
  font-size: clamp(17px, 1.2vw, 21px);
  line-height: 1.65;
  margin-bottom: 14px;
}

.footer-promo .btn {
  background: #2e7d32;
  color: white;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(44,36,24,0.12);
  padding: 22px 40px 28px;
}

.footer-bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 15px;
  color: rgba(44,36,24,0.78);
  line-height: 1.5;
}

/* ===== SECTION NOCTURNES CLEAN ===== */

.night-section {
  position: relative;
  padding: 120px 40px;
  min-height: 600px;
  background-image: url('../images/fond-nuit.png');
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: auto 100%;
}

/* IMPORTANT : on supprime définitivement l'ancien fond */
.night-section::before {
  display: none;
}

/* Card centrée et lisible */
.night-card {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  padding: 60px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* Layout interne */
.night-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 80px;
}

.section-5050-image {
  position: relative;
  overflow: hidden;
}

.section-5050-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-section {
  padding: 60px 20px;
  background: #fffdf8;
  text-align: center;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-item {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.intro-item:hover {
  transform: translateY(-5px);
}

.icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.intro-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #2e7d32;
}

.intro-item p {
  font-size: 15px;
  line-height: 1.5;
  color: #444;
}

.intro-bottom {
  margin-top: 30px;
  font-size: 14px;
  color: #666;
}

/* MOBILE HEADER (caché sur desktop) */
.mobile-header {
  display: none;
}

/* BURGER BUTTON */
.burger {
  display: none;
  position: fixed;
  top: 60px;
  right: 20px;
  z-index: 10001;
  width: 30px;
  height: 28px;
  cursor: pointer;
  overflow: hidden;
}

.burger span {
  display: block;
  height: 3px;
  background: #111;
  margin: 5px 0;
  transition: 0.3s;
}

/* ANIMATION BURGER → CROIX */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* MENU MOBILE */
.mobile-menu {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  transform: translateY(-100%);
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  background: #1a3c1a;
  overflow-y: auto;
  padding: 20px 0;
}

.mobile-menu a {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(22px, 6vw, 30px);
  text-decoration: none;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 5px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mobile-menu a:hover {
  background: rgba(255,255,255,0.08);
}

/* Couleurs par lien — identiques au menu desktop */
.mobile-menu a[href="/"]                { border-left-color: #eba946; color: #eba946; }
.mobile-menu a[href="jeux.php"]         { border-left-color: #8ab844; color: #8ab844; }
.mobile-menu a[href="a-propos.php"]     { border-left-color: #7ac3e1; color: #7ac3e1; }
.mobile-menu a[href="nocturnes.php"]    { border-left-color: #d43977; color: #d43977; }
.mobile-menu a[href="groupes.php"]      { border-left-color: #705399; color: #705399; }
.mobile-menu a[href="reserver.php"]     { border-left-color: #8ab844; color: #8ab844; }
.mobile-menu a[href="infos.php"]        { border-left-color: #705399; color: #705399; }

.mobile-menu.active {
  transform: translateY(0);
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {

  .menu {
    display: none;
  }

  /* MOBILE HEADER — 2 lignes */
  .mobile-header {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 10002;
    box-shadow: none;
    pointer-events: none;
  }

  .mobile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: calc(36px + 23.6vw);
    background: white;
    z-index: 0;
    transition: height 0.4s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  }

  .mobile-header.scrolled::before {
    height: calc(36px + 10.5vw);
  }

  /* Réactiver les clics uniquement sur les éléments interactifs */
  .mobile-header-top .burger,
  .mobile-header-social,
  .mobile-header-social a,
  .mobile-header-announce {
    pointer-events: auto;
  }

  /* Ligne 1 : burger + logo pleine largeur + réseaux */
  .mobile-header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    height: auto;
  }

  .mobile-header-top .burger {
    position: absolute;
    left: 16px;
    top: 12px;
    z-index: 2;
  }

  .mobile-header-logo {
    text-decoration: none;
    display: block;
    width: 100%;
    overflow: visible;
    pointer-events: none;
  }

  .mobile-logo-link {
    display: block;
    pointer-events: auto;
    clip-path: circle(20% at 50% 22%);
  }

  .mobile-header-logo img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    transform: scale(0.45);
    transform-origin: top center;
    transition: transform 0.4s ease;
  }

  /* Logo taille normale au scroll */
  .mobile-header.scrolled .mobile-header-logo img {
    transform: scale(0.20);
  }

  /* Ligne 2 : annonce */
  .mobile-header-announce {
    background: #eee;
    color: #2e7d32;
    font-family: 'Luckiest Guy', cursive;
    font-size: 12px;
    text-align: center;
    padding: 8px 12px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
  }

  /* BURGER dans le header — position statique */
  .burger {
    display: block;
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
  }

  .burger span {
    background: #111;
  }

  /* TOP-BAR cachée sur mobile (annonce intégrée dans le header) */
  .top-bar {
    display: none;
  }


  /* MENU MOBILE part de sous le header complet */
  .mobile-menu {
    top: 0;
    padding-top: 250px;
  }

  /* HERO = une seule colonne */
  .hero {
    display: block;
    height: 90vh;
    position: relative;
  }

  /* ON CACHE LA PARTIE DROITE */
  #heroRight {
    display: none;
  }

  /* LA PARTIE GAUCHE PREND TOUT */
  #heroLeft {
    width: 100%;
    height: 100%;
  }

  /* IMAGE = COVER PROPRE */
  .hero-bg {
    background-size: cover;
    background-position: center;
  }

  /* OVERLAY léger pour lisibilité */
  #heroLeft::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
    z-index: 1;
  }

  /* CONTENU CENTRÉ — FIX PRINCIPAL */
  .hero-content {
    position: absolute;
    z-index: 2;
    width: 100%;
    left: 0;
    top: 63%;
    transform: translateY(-50%);
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .logo {
    max-width: 230px;
    margin-bottom: 20px;
  }

  .desktop-hero-logo {
    display: none;
  }

  .title-img {
    max-width: 88%;
    display: block;
    margin: 0 auto;
  }

  .intro-section,
  .story-section,
  .night-section {
    padding: 40px 16px;
  }

  .intro-card,
  .story-card,
  .night-card {
    padding: 30px 20px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .intro-card h2,
  .story-text h2,
  .night-text h2,
  .picnic-text h2,
  .footer-title {
    font-size: 38px;
    margin-bottom: 18px;
  }

  .intro-card p,
  .story-text p,
  .night-text p,
  .footer-info p,
  .picnic-text p,
  .footer-promo p,
  .footer-links a {
    font-size: 18px;
  }

  .section-5050,
  .section-5050.reverse,
  .story-container,
  .night-container,
  .picnic-container {
    flex-direction: column;
  }

  .section-5050-image,
  .section-5050-text,
  .story-image,
  .story-text,
  .night-image,
  .night-text,
  .picnic-text,
  .picnic-image {
    width: 100%;
  }

  .section-5050-image,
  .picnic-image {
    height: 250px;
    min-height: auto;
  }

  .section-5050-text,
  .picnic-text {
    padding: 30px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    padding: 290px 16px 28px;
    gap: 28px;
  }

  .footer-bottom {
    padding: 18px 16px 22px;
  }

  .footer-bottom-inner {
    flex-direction: column;
  }
}