/*
 * Site public.
 *
 * Aucune couleur n'est ecrite ici : tout vient de /theme.css, genere depuis
 * les parametres de marque. Changer la couleur principale du centre change
 * cette page, sans redeploiement.
 *
 * Le langage visuel tient en trois choix, et tout le reste en decoule :
 *
 *   - L'ENCRE PORTE LE SPECTACLE. Le heros, les bandes fortes et le pied de
 *     page sont sombres ; le contenu se lit sur clair. L'alternance donne le
 *     rythme qu'une page uniforme n'aura jamais.
 *   - LE TRAIT REMPLACE LA PHOTO. Chaque activite recoit le trace de son
 *     terrain (server/site/motifs.js) : exact, elegant, et blanc-label —
 *     aucune photo d'emprunt qui sonnerait faux.
 *   - UN SEUL GESTE PAR ECRAN. Le bouton plein est rare ; tout le secondaire
 *     est en verre ou en trait. Quand tout crie, rien ne porte.
 *
 * Mobile d'abord : la moitie des reservations se prennent sur un telephone,
 * souvent debout, dehors, a une main.
 */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --rayon: 20px;
  --rayon-petit: 12px;
  --largeur-page: 72rem;
  --ombre-douce: 0 1px 2px rgba(var(--encre-rgb), 0.05), 0 8px 24px -12px rgba(var(--encre-rgb), 0.12);
  --ombre-forte: 0 2px 6px rgba(var(--encre-rgb), 0.08), 0 24px 48px -16px rgba(var(--encre-rgb), 0.25);
  --transition-carte: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.25s ease, border-color 0.2s ease;
}

/* L attribut hidden gagne contre toute regle d affichage. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--police-texte, system-ui, sans-serif);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--sur-fond);
  background: var(--fond);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  font-family: var(--police-titres, system-ui, sans-serif);
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 7.5vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

/* Le sur-titre : la petite ligne qui annonce, en lettres espacees. */
.sur-titre {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--marque-texte);
  margin: 0 0 0.9rem;
}

a { color: var(--marque-texte); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; }

.fleche { display: inline-block; margin-left: 0.4rem; transition: transform 0.2s ease; }
a:hover .fleche, .carte-activite:hover .fleche { transform: translateX(4px); }
.lien-appuye { font-weight: 700; text-decoration: none; }
.lien-appuye:hover { text-decoration: underline; }

/* Le lien d'evitement n'apparait qu'au clavier, mais il apparait vraiment. */
.saut {
  position: absolute; left: -9999px; top: 0; z-index: 30;
  padding: 0.75rem 1rem; background: var(--encre); color: var(--fond); border-radius: 0 0 8px 0;
}
.saut:focus { left: 0; }

:focus-visible { outline: 3px solid var(--marque); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------------ */
/*  Boutons : cible tactile de 44 px partout                           */
/* ------------------------------------------------------------------ */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.65rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
}
.bouton:active { transform: translateY(1px); }
.bouton-principal {
  background: var(--marque);
  color: var(--sur-marque);
  box-shadow: 0 10px 24px -10px rgba(var(--marque-rgb), 0.55);
}
.bouton-principal:hover { filter: brightness(1.07); box-shadow: 0 14px 30px -10px rgba(var(--marque-rgb), 0.6); }
.bouton-discret { background: transparent; color: inherit; border-color: currentColor; }
.bouton-discret:hover { filter: brightness(1.08); }
/* Sur l'encre : un bouton de verre, present sans crier. */
.bouton-verre {
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bouton-verre:hover { background: rgba(255, 255, 255, 0.14); }
.bouton-grand { min-height: 54px; padding: 0.85rem 2rem; font-size: 1.05rem; }

/* ------------------------------------------------------------------ */
/*  En-tete                                                            */
/* ------------------------------------------------------------------ */

.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  background: var(--encre);
  color: var(--blanc);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.entete a { color: inherit; text-decoration: none; }

/*
 * Sur les pages a heros, l'en-tete se pose SUR l'image : fixe, habille d'un
 * simple voile degrade pour rester lisible. Des qu'on defile (site.js), il
 * devient une barre pleine et floutee. Sans JavaScript, le voile suffit.
 */
.avec-heros .entete {
  position: fixed;
  inset-inline: 0;
  background: linear-gradient(to bottom, rgba(var(--encre-rgb), 0.75), rgba(var(--encre-rgb), 0));
}
.avec-heros .entete.entete-solide,
.entete.entete-solide {
  background: rgba(var(--encre-rgb), 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.marque { display: flex; align-items: center; min-height: 44px; }
.marque-nom {
  font-family: var(--police-titres, system-ui, sans-serif);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.4rem;
  font-size: 0.95rem;
  margin-left: auto;
}
.navigation a { padding: 0.5rem 0; opacity: 0.82; font-weight: 600; position: relative; }
.navigation a:hover { opacity: 1; }
.navigation a[aria-current='page'] { opacity: 1; }
.navigation a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--marque);
}
.navigation-tel { display: none; }
.entete-action { flex: none; }

/* Le bouton du menu n'existe qu'avec JavaScript (site.js le devoile). */
.entete-burger {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  margin-left: auto;
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.burger-trait {
  width: 1.1rem; height: 2px; background: currentColor; border-radius: 2px;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

@media (max-width: 52rem) {
  .entete-burger:not([hidden]) { display: inline-flex; }
  .entete-burger:not([hidden]) ~ .navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1.25rem;
    background: rgba(var(--encre-rgb), 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 40px -20px rgba(var(--encre-rgb), 0.7);
  }
  .entete-burger:not([hidden]) ~ .navigation.navigation-ouverte { display: flex; }
  .entete-burger:not([hidden]) ~ .navigation a { padding: 0.9rem 0.25rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .entete-burger:not([hidden]) ~ .navigation a[aria-current='page']::after { display: none; }
  .navigation-tel { display: block; opacity: 1; }
  .entete-action { display: none; }
}

/* ------------------------------------------------------------------ */
/*  Heros                                                              */
/* ------------------------------------------------------------------ */

.heros {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(94svh, 62rem);
  padding: clamp(6rem, 14vh, 9rem) clamp(1rem, 5vw, 3.5rem) clamp(1.5rem, 4vh, 3rem);
  background:
    radial-gradient(52rem 30rem at 88% -12%, rgba(var(--marque-rgb), 0.5), transparent 62%),
    radial-gradient(40rem 26rem at -12% 108%, rgba(var(--marque-2-rgb), 0.35), transparent 60%),
    linear-gradient(155deg, var(--encre) 0%, var(--encre-2) 60%, var(--encre) 100%);
  color: var(--blanc);
  overflow: hidden;
}
.heros-fond { position: absolute; inset: 0; pointer-events: none; }

/* La photo d'arriere-plan choisie par le centre. Le voile sombre au-dessus
   garantit la lisibilite du titre, quelle que soit la photo. */
.heros-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heros-avec-photo .heros-fond::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 12, 0.35) 0%, rgba(10, 14, 12, 0.2) 40%, rgba(10, 14, 12, 0.78) 100%),
    radial-gradient(52rem 30rem at 88% -12%, rgba(var(--marque-rgb), 0.28), transparent 62%);
}

.heros-trame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--blanc);
  opacity: 0.07;
}
.heros-interieur {
  position: relative;
  width: 100%;
  max-width: var(--largeur-page);
  margin: 0 auto;
}
.heros .sur-titre { color: var(--marque-sur-encre); }
.heros h1 { max-width: 15ch; margin-bottom: 0.35em; }
.heros-sous-titre {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  opacity: 0.88;
  max-width: 42ch;
  margin-bottom: 1.8rem;
}
.heros-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }

.heros-preuves {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin: 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.heros-preuves dt {
  font-family: var(--police-titres, system-ui, sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.heros-preuves dd { margin: 0; font-size: 0.85rem; opacity: 0.7; }

/* ------------------------------------------------------------------ */
/*  Bandeau « en direct » : dans le heros, en verre                     */
/* ------------------------------------------------------------------ */

.live {
  position: relative;
  width: 100%;
  max-width: var(--largeur-page);
  margin: 2.2rem auto 0;
  padding: 1.2rem 1.3rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--rayon);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.live-entete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.live-titre {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.live-pastille {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--marque);
  box-shadow: 0 0 0 0 rgba(var(--marque-rgb), 0.6);
  animation: live-battement 2s infinite;
}
@keyframes live-battement {
  0% { box-shadow: 0 0 0 0 rgba(var(--marque-rgb), 0.55); }
  70% { box-shadow: 0 0 0 0.6rem rgba(var(--marque-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--marque-rgb), 0); }
}
.live-etat { margin: 0; opacity: 0.75; font-size: 0.9rem; }

/* Une piste qui defile : au telephone on fait glisser, au clavier on tabule. */
.live-piste {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.live-carte {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 9.5rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-carte);
}
.live-carte:hover, .live-carte:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(var(--marque-rgb), 0.8);
}
.live-activite { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; }
.live-heure {
  font-family: var(--police-titres, system-ui, sans-serif);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.05;
}
.live-prix { font-weight: 700; color: var(--marque-sur-encre); }
.live-terrains { font-size: 0.78rem; opacity: 0.65; }

/* ------------------------------------------------------------------ */
/*  Sections                                                           */
/* ------------------------------------------------------------------ */

.section {
  max-width: var(--largeur-page);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1rem, 4vw, 2rem);
}
.section-entete { max-width: 40rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section > h2 { margin-bottom: 1.2em; }
.section-entete > h2 { margin-bottom: 0; }
.section-texte { max-width: 46rem; }
.section-texte p { font-size: 1.05rem; }
.section-vide { text-align: center; }
.section-note { color: var(--brume); font-size: 0.95rem; margin: 1.6rem 0 0; }

/* Les bandes sombres reprennent l'encre du heros : le rythme de la page. */
.section-sombre {
  max-width: none;
  background:
    radial-gradient(40rem 24rem at 110% 0%, rgba(var(--marque-rgb), 0.25), transparent 60%),
    var(--encre);
  color: var(--blanc);
}
.section-sombre .sur-titre { color: var(--marque-sur-encre); }
.section-sombre > * { max-width: var(--largeur-page); margin-left: auto; margin-right: auto; }
.section-sombre .section-entete { margin-bottom: clamp(1.8rem, 4vw, 3rem); }

/* ------------------------------------------------------------------ */
/*  Cartes d'activite                                                  */
/* ------------------------------------------------------------------ */

.grille-activites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.5rem;
}

.carte-activite {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--ombre-douce);
  transition: var(--transition-carte);
}
a.carte-activite:hover, a.carte-activite:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--ombre-forte);
  border-color: rgba(var(--marque-rgb), 0.5);
}

/* Le trace du terrain, sur un lavis de la marque. La photo, si le centre en
 * a une, prend exactement la meme place. */
.carte-activite-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 130% at 85% -20%, rgba(var(--marque-rgb), 0.3), transparent 55%),
    linear-gradient(150deg, var(--encre) 0%, var(--encre-2) 100%);
  color: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}
.carte-activite-media .motif {
  position: absolute;
  inset: -8% -4%;
  width: 108%;
  height: 116%;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
a.carte-activite:hover .motif { transform: scale(1.045) rotate(-0.5deg); }
.carte-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
a.carte-activite:hover .carte-photo { transform: scale(1.04); }

.carte-activite-corps {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.3rem;
  padding: 1.3rem 1.4rem 1.35rem;
}
.carte-activite h3 { margin: 0; font-size: 1.35rem; }
.carte-details {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brume);
  margin: 0 0 0.3em;
}
.carte-texte { color: var(--texte); margin-bottom: 0.6em; }
.carte-pied {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: auto 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--trait-leger, var(--trait));
}
.carte-prix { color: var(--brume); font-size: 0.95rem; }
.carte-prix strong {
  font-family: var(--police-titres, system-ui, sans-serif);
  font-size: 1.5rem;
  color: var(--sur-fond);
  letter-spacing: -0.02em;
}
.carte-appel { font-weight: 700; color: var(--marque-texte); white-space: nowrap; }
.carte-note { font-size: 0.9rem; color: var(--brume); }

/* ------------------------------------------------------------------ */
/*  Les trois pas                                                      */
/* ------------------------------------------------------------------ */

.les-pas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.5rem;
  counter-reset: pas;
}
.pas {
  position: relative;
  padding: 1.6rem 1.5rem 1.4rem;
  background: var(--fond-2);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
}
.pas-numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  background: var(--marque);
  color: var(--sur-marque);
  border-radius: 50%;
  font-family: var(--police-titres, system-ui, sans-serif);
  font-weight: 800;
  font-size: 1.05rem;
}
.pas h3 { margin-bottom: 0.35em; }
.pas p { margin: 0; color: var(--texte); }

/* ------------------------------------------------------------------ */
/*  Formules d'abonnement                                              */
/* ------------------------------------------------------------------ */

.grille-formules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
}
.carte-formule {
  padding: 1.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--rayon);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.carte-formule h3 { margin-bottom: 0.2em; }
.formule-prix {
  font-family: var(--police-titres, system-ui, sans-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--marque-sur-encre);
  margin-bottom: 0.6em;
}
.formule-texte { opacity: 0.82; margin-bottom: 0.7em; }
.formule-plus {
  margin: 0 0 0.3em;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.93rem;
  opacity: 0.9;
}
.formule-plus::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--marque-sur-encre);
  font-weight: 700;
}
.section-sombre .section-note { color: inherit; opacity: 0.7; }
.section-sombre .section-note a { color: var(--marque-sur-encre); }

/* ------------------------------------------------------------------ */
/*  Galerie : le centre en images                                      */
/* ------------------------------------------------------------------ */

.galerie-mosaique {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  grid-auto-rows: 12rem;
  gap: 0.9rem;
  margin-top: 1.5rem;
}
.galerie-item {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--rayon-petit); box-shadow: var(--ombre-douce);
}
/* La premiere photo donne le ton : elle prend deux rangees. */
.galerie-item:first-child { grid-row: span 2; }
.galerie-item img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.galerie-item:hover img { transform: scale(1.04); }
.galerie-item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.6rem 0.9rem 0.7rem;
  color: #fff; font-size: 0.85rem; font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(10, 14, 12, 0.72));
}
@media (prefers-reduced-motion: reduce) {
  .galerie-item img { transition: none; }
  .galerie-item:hover img { transform: none; }
}

/* ------------------------------------------------------------------ */
/*  A propos, academie                                                 */
/* ------------------------------------------------------------------ */

.section-apropos {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 52rem) {
  .section-apropos { grid-template-columns: 1.1fr 0.9fr; }
}
.apropos-texte p { font-size: 1.05rem; }
.apropos-motif {
  aspect-ratio: 4 / 3;
  border-radius: var(--rayon);
  background:
    radial-gradient(110% 120% at 15% -10%, rgba(var(--marque-rgb), 0.35), transparent 55%),
    linear-gradient(150deg, var(--encre) 0%, var(--encre-2) 100%);
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  position: relative;
  box-shadow: var(--ombre-forte);
}
.apropos-motif .motif { position: absolute; inset: -6%; width: 112%; height: 112%; }

.bande-academie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background:
    radial-gradient(36rem 20rem at 0% 120%, rgba(var(--marque-2-rgb), 0.3), transparent 60%),
    var(--encre);
  color: var(--blanc);
  border-radius: var(--rayon);
  padding: clamp(2rem, 5vw, 3.2rem);
  margin-top: 0;
  margin-bottom: 0;
}
.bande-academie .sur-titre { color: var(--marque-sur-encre); }
.bande-academie h2 { margin-bottom: 0.25em; }
.bande-academie-texte { max-width: 38rem; }
.bande-academie-texte p:last-child { margin-bottom: 0; opacity: 0.85; }

/* ------------------------------------------------------------------ */
/*  Avis                                                               */
/* ------------------------------------------------------------------ */

.grille-avis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
}
.carte-avis {
  margin: 0;
  padding: 1.6rem 1.5rem;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-douce);
}
.carte-avis blockquote { margin: 0.6rem 0 1rem; font-size: 1.02rem; }
.carte-avis figcaption { font-weight: 700; font-size: 0.95rem; }
.avis-reponse {
  margin: 0.8rem 0 0;
  padding: 0.7rem 0.9rem;
  background: var(--fond-2);
  border-radius: var(--rayon-petit);
  font-size: 0.9rem;
  color: var(--texte);
}
.etoiles { color: var(--attention); letter-spacing: 2px; }
.etoiles-vides { opacity: 0.25; }

/* ------------------------------------------------------------------ */
/*  Bande finale                                                       */
/* ------------------------------------------------------------------ */

.bande-finale {
  max-width: var(--largeur-page);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--rayon);
  text-align: center;
  background:
    radial-gradient(50rem 26rem at 50% -40%, rgba(var(--marque-rgb), 0.55), transparent 70%),
    var(--encre);
  color: var(--blanc);
}
.bande-finale h2 { max-width: 20ch; margin: 0 auto 1.2em; }

/* ------------------------------------------------------------------ */
/*  Infos pratiques                                                    */
/* ------------------------------------------------------------------ */

.section-infos { max-width: none; background: var(--fond-2); margin-top: clamp(3.5rem, 9vw, 6.5rem); }
.section-infos > h2, .liste-infos { max-width: var(--largeur-page); margin-left: auto; margin-right: auto; }
.liste-infos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.5rem;
}
.liste-infos dt { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brume); }
.liste-infos dd { margin: 0.3rem 0 0; }

/* ------------------------------------------------------------------ */
/*  Pied de page                                                       */
/* ------------------------------------------------------------------ */

.pied {
  background: var(--encre);
  color: var(--blanc);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem) 1.5rem;
  margin-top: clamp(3rem, 8vw, 5rem);
}
.section-infos + .pied, .pied:first-child { margin-top: 0; }
.pied a { color: inherit; }
.pied-haut {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 2.5rem;
  max-width: var(--largeur-page);
  margin: 0 auto;
  padding-bottom: 2rem;
}
.pied-nom { font-family: var(--police-titres, system-ui, sans-serif); font-weight: 800; font-size: 1.35rem; margin-bottom: 0.3rem; }
.pied-slogan { opacity: 0.75; }
.pied-titre { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.6; margin-bottom: 0.9rem; }
.pied-liens { list-style: none; margin: 0; padding: 0; }
.pied-liens li { margin-bottom: 0.55rem; }
.pied-liens a { text-decoration: none; opacity: 0.85; }
.pied-liens a:hover { opacity: 1; text-decoration: underline; }
.pied-adresse { opacity: 0.85; }
.pied-reseaux { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.pied-reseau {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.pied-reseau:hover { border-color: var(--marque); background: rgba(var(--marque-rgb), 0.15); }
.pied-reseau svg { width: 1.15rem; height: 1.15rem; }
.pied-reseau span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pied-bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: var(--largeur-page);
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  opacity: 0.65;
}
.pied-bas p { margin: 0; }

/* ------------------------------------------------------------------ */
/*  Apparitions au defilement (site.js)                                */
/* ------------------------------------------------------------------ */

.reveler-attente { opacity: 0; transform: translateY(18px); }
.revele { opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1); }

/* ------------------------------------------------------------------ */
/*  Bannieres interieures (activites, tarifs, infos, academie...)      */
/* ------------------------------------------------------------------ */

.banniere {
  position: relative;
  background:
    radial-gradient(42rem 22rem at 85% -30%, rgba(var(--marque-rgb), 0.4), transparent 62%),
    linear-gradient(155deg, var(--encre) 0%, var(--encre-2) 100%);
  color: var(--blanc);
  padding: clamp(6.5rem, 16vh, 9rem) clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
}
.banniere-texte { max-width: var(--largeur-page); margin: 0 auto; }
.banniere h1 { margin-bottom: 0.3em; max-width: 18ch; }
.banniere-sous-titre { font-size: clamp(1.02rem, 2.2vw, 1.2rem); opacity: 0.85; margin-bottom: 1.6rem; max-width: 46ch; }
.banniere-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.banniere-courte { padding-bottom: clamp(2rem, 5vh, 3rem); }
.banniere-sur-titre {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--marque-sur-encre); font-weight: 700; margin-bottom: 0.8rem;
}
.banniere-note { opacity: 0.85; }

/* ------------------------------------------------------------------ */
/*  Academie (page)                                                    */
/* ------------------------------------------------------------------ */

.filtre-age {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
  max-width: 44rem; margin: 0 auto 2rem; padding: 1rem 1.25rem;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon-petit);
  box-shadow: var(--ombre-douce);
}
.filtre-age label { font-weight: 700; }
.filtre-age input {
  font: inherit; min-height: 44px; width: 7rem; padding: 0.4rem 0.7rem;
  border: 1px solid var(--trait); border-radius: 10px; background: var(--fond); color: inherit;
}
.filtre-etat { flex-basis: 100%; margin: 0; color: var(--brume); font-size: 0.92rem; }
.filtre-etat:empty { display: none; }

.grille-groupes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.5rem;
}
.carte-groupe {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.7rem 1.6rem; background: var(--blanc);
  border: 1px solid var(--trait); border-radius: var(--rayon);
  box-shadow: var(--ombre-douce);
  transition: var(--transition-carte);
}
.carte-groupe:hover { box-shadow: var(--ombre-forte); transform: translateY(-3px); }
.groupe-entete h3 { margin-bottom: 0.15em; font-size: 1.3rem; }
.groupe-ages {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--marque-texte);
  margin: 0 0 0.6em;
}
.groupe-texte { margin-bottom: 0.5em; color: var(--texte); }
.groupe-sous-titre {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brume); margin: 0.6em 0 0.3em; font-weight: 700;
}
.groupe-seances, .groupe-inclus { margin: 0; padding-left: 1.1rem; }
.groupe-seances li, .groupe-inclus li { margin-bottom: 0.15rem; }
.groupe-note { color: var(--brume); font-style: italic; margin: 0; }
.groupe-tarifs { list-style: none; margin: 0 0 0.75rem; padding: 0; }
.groupe-tarifs li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.4rem 0; border-bottom: 1px dashed var(--trait);
}
.groupe-tarifs li:last-child { border-bottom: none; }
.tarif-libelle { color: var(--brume); }
.tarif-prix { font-family: var(--police-titres, system-ui, sans-serif); font-weight: 800; font-size: 1.15rem; }
.groupe-complet { color: var(--alerte-texte); font-weight: 700; margin: 0 0 0.5rem; }
.groupe-presque { color: var(--attention-texte); font-weight: 700; margin: 0 0 0.5rem; }
.carte-groupe .bouton { margin-top: auto; }

/* ------------------------------------------------------------------ */
/*  Formulaire public                                                  */
/* ------------------------------------------------------------------ */

.formulaire-public { max-width: 34rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.inscription-conditions { max-width: 34rem; margin: 0 auto 1.5rem; color: var(--brume); }
.champ-public { display: flex; flex-direction: column; gap: 0.35rem; }
.champ-public label { font-weight: 700; font-size: 0.92rem; }
.champ-public input, .champ-public select, .champ-public textarea {
  font: inherit; min-height: 48px; padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--trait); border-radius: var(--rayon-petit);
  background: var(--blanc); color: inherit; width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.champ-public input:focus, .champ-public select:focus, .champ-public textarea:focus {
  outline: none;
  border-color: var(--marque);
  box-shadow: 0 0 0 3px rgba(var(--marque-rgb), 0.18);
}
.champ-public textarea { min-height: 5rem; resize: vertical; }
.bloc-public {
  border: 1px solid var(--trait); border-radius: var(--rayon-petit); padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.85rem; margin: 0;
}
.bloc-public legend { font-weight: 700; padding: 0 0.4rem; }
.message-public { color: var(--alerte-texte); font-weight: 600; margin: 0; }
.message-public:empty { display: none; }

.inscription-reussie {
  max-width: 34rem; margin: 0 auto; padding: 2rem 1.75rem;
  background: var(--blanc); border: 2px solid var(--marque); border-radius: var(--rayon);
  text-align: center; box-shadow: var(--ombre-forte);
}
.inscription-reussie h3 { margin-bottom: 0.3em; }
.inscription-numero {
  font-family: var(--police-titres, system-ui, sans-serif);
  font-size: 1.6rem; font-weight: 800; letter-spacing: 0.04em; margin: 0 0 0.5rem;
}

/* ------------------------------------------------------------------ */
/*  Parcours de reservation                                            */
/* ------------------------------------------------------------------ */

.parcours { max-width: 46rem; margin: 0 auto; padding: 0 1rem 3.5rem; }

.etape {
  margin: 1.1rem 0;
  padding: 1.5rem clamp(1.1rem, 3vw, 1.7rem);
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-douce);
}
.etape-titre { display: flex; align-items: center; gap: 0.8rem; font-size: 1.25rem; margin-bottom: 1.1rem; }
.etape-numero {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; flex: none;
  background: var(--marque); color: var(--sur-marque);
  border-radius: 50%; font-size: 0.95rem;
  font-family: var(--police-titres, system-ui, sans-serif); font-weight: 800;
}
.etape-aide { color: var(--brume); margin: 0 0 0.5rem; flex-basis: 100%; }

.choix-activites, .choix-categories, .choix-durees {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: stretch;
}
.choix-categories:empty, .choix-durees:empty { display: none; }
.choix-carte {
  display: flex; flex-direction: column; gap: 0.15rem; align-items: flex-start;
  min-height: 52px; padding: 0.7rem 1.2rem;
  background: var(--fond); color: inherit;
  border: 2px solid var(--trait); border-radius: 14px;
  font: inherit; cursor: pointer; text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.choix-carte:hover { border-color: var(--marque); transform: translateY(-1px); }
.choix-actif { border-color: var(--marque); background: var(--marque-clair); }
.choix-nom { font-weight: 700; }
.choix-detail { font-size: 0.82rem; color: var(--brume); }

.bande-jours { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.6rem; margin-bottom: 0.6rem; scrollbar-width: thin; }
.bande-jours:empty { display: none; }
.jour-pastille {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.05rem;
  min-width: 4.1rem; min-height: 60px; padding: 0.5rem 0.7rem;
  background: var(--fond); color: inherit;
  border: 2px solid var(--trait); border-radius: 14px;
  font: inherit; cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.jour-pastille:hover { border-color: var(--marque); transform: translateY(-1px); }
.jour-pastille.choix-actif { border-color: var(--marque); background: var(--marque-clair); }
.jour-pastille-nom { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brume); }
.jour-pastille.choix-actif .jour-pastille-nom { color: var(--marque-texte); }
.jour-pastille-numero { font-family: var(--police-titres, system-ui, sans-serif); font-weight: 800; font-size: 1.25rem; }
.actions-centrees { justify-content: center; margin-top: 1rem; }

.choix-jour { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.choix-jour input[type='date'] {
  font: inherit; min-height: 48px; padding: 0.5rem 0.8rem;
  border: 1.5px solid var(--trait); border-radius: var(--rayon-petit); background: var(--fond); color: inherit;
}

.creneaux-etat { color: var(--brume); margin: 0 0 0.75rem; }
.grille-creneaux {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 0.6rem;
}
.creneau-libre {
  display: flex; flex-direction: column; gap: 0.1rem; align-items: center;
  min-height: 72px; padding: 0.6rem 0.4rem;
  background: var(--fond); color: inherit;
  border: 2px solid var(--trait); border-radius: 14px;
  font: inherit; cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.creneau-libre:hover:not(:disabled) { border-color: var(--marque); transform: translateY(-1px); }
.creneau-libre:disabled { opacity: 0.45; cursor: not-allowed; }
.creneau-libre.choix-actif { border-color: var(--marque); background: var(--marque-clair); }
.creneau-libre-heure { font-family: var(--police-titres, system-ui, sans-serif); font-size: 1.3rem; font-weight: 800; }
.creneau-libre-fin { font-size: 0.72rem; color: var(--brume); }
.creneau-libre-prix { font-weight: 700; color: var(--marque-texte); font-size: 0.92rem; }

.prochaines { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

.recapitulatif { margin-bottom: 1.25rem; }
.recap-liste {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 0.9rem; margin: 0; padding: 1.1rem 1.25rem;
  background: var(--marque-clair); border: 1px solid rgba(var(--marque-rgb), 0.35); border-radius: var(--rayon-petit);
}
.recap-liste dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brume); }
.recap-liste dd { margin: 0.15rem 0 0; font-weight: 700; }

/* Le materiel a louer : une liste de lignes cochables, la quantite
   n'apparait que lorsqu'un article est choisi. */
.choix-materiel { margin-bottom: 1.25rem; }
#choix-materiel-liste { display: grid; gap: 0.5rem; }
.materiel-ligne {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 1rem; min-height: 44px; cursor: pointer;
  background: var(--fond-2); border: 1px solid var(--trait); border-radius: var(--rayon-petit);
  transition: border-color 0.15s ease;
}
.materiel-ligne:hover { border-color: var(--marque); }
.materiel-ligne:has(input:checked) { border-color: var(--marque); background: var(--marque-clair); }
.materiel-ligne > input[type="checkbox"] { width: 1.3rem; height: 1.3rem; flex: none; accent-color: var(--marque); }
.materiel-texte { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.materiel-nom { font-weight: 700; }
.materiel-detail { font-size: 0.82rem; color: var(--brume); }
.materiel-quantite {
  width: 4.2rem; flex: none; padding: 0.35rem 0.5rem; font: inherit;
  border: 1px solid var(--trait); border-radius: 8px; background: var(--fond); color: inherit;
}
.materiel-prix { flex: none; font-weight: 700; color: var(--marque-texte); font-size: 0.92rem; }

.conditions {
  padding: 1rem 1.25rem; background: var(--fond-2);
  border: 1px solid var(--trait); border-radius: var(--rayon-petit); font-size: 0.92rem;
}
.conditions p:last-child { margin-bottom: 0; }
.case-conditions { display: flex; align-items: flex-start; gap: 0.7rem; cursor: pointer; min-height: 44px; }
.case-conditions input { width: 1.4rem; height: 1.4rem; flex: none; margin-top: 0.15rem; accent-color: var(--marque); }

#reservation-faite { max-width: 40rem; text-align: center; }
.reservation-numero {
  font-family: var(--police-titres, system-ui, sans-serif);
  font-size: 2rem; font-weight: 800; letter-spacing: 0.04em; margin: 0.5rem 0;
  color: var(--marque-texte);
}
.reservation-quand { font-size: 1.05rem; font-weight: 700; }
.reservation-materiel { color: var(--marque-texte); font-weight: 600; margin-top: -0.4rem; }
.reservation-conseil { color: var(--brume); font-size: 0.92rem; margin-top: 1rem; }

/* ------------------------------------------------------------------ */
/*  Suivi d'une reservation                                            */
/* ------------------------------------------------------------------ */

#suivi { max-width: 40rem; }
.suivi-etat:empty { display: none; }
.suivi-entete { margin-bottom: 1.5rem; }
.suivi-numero {
  font-family: var(--police-titres, system-ui, sans-serif);
  letter-spacing: 0.06em; color: var(--brume); margin-bottom: 0.2rem;
}
.suivi-statut {
  display: inline-block; padding: 0.25rem 0.9rem; border-radius: 999px;
  font-weight: 700; font-size: 0.88rem;
  background: var(--fond-3); color: var(--sur-fond);
}
.suivi-confirme { background: var(--marque); color: var(--sur-marque); }
.suivi-attente { background: var(--attention); color: var(--encre); }
.suivi-annule { background: var(--alerte); color: var(--blanc); }
.suivi-passe { background: var(--fond-3); color: var(--brume); }
.suivi-note { color: var(--brume); }
.suivi-conditions { font-size: 0.92rem; color: var(--brume); }
.suivi-annulation { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--trait); }
.suivi-annulation textarea {
  font: inherit; width: 100%; min-height: 4rem; padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--trait); border-radius: var(--rayon-petit); background: var(--blanc); color: inherit;
}
.ligne-actions-public { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ------------------------------------------------------------------ */
/*  Activites, tarifs, infos                                           */
/* ------------------------------------------------------------------ */

.section-activite { border-bottom: 1px solid var(--trait); }
.section-activite:last-of-type { border-bottom: none; }

/* Le diptyque : texte d'un cote, trace du terrain de l'autre, en alternance. */
.diptyque { display: grid; gap: 2rem; align-items: center; }
.diptyque-motif {
  order: -1;
  aspect-ratio: 16 / 10;
  border-radius: var(--rayon);
  background:
    radial-gradient(110% 120% at 85% -10%, rgba(var(--marque-rgb), 0.3), transparent 55%),
    linear-gradient(150deg, var(--encre) 0%, var(--encre-2) 100%);
  color: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  position: relative;
  box-shadow: var(--ombre-forte);
}
.diptyque-motif .motif, .diptyque-motif .carte-photo {
  position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover;
}
@media (min-width: 52rem) {
  .diptyque { grid-template-columns: 1.05fr 0.95fr; }
  .diptyque-motif { order: 0; }
  .diptyque-inverse .diptyque-motif { order: -1; }
}
.diptyque-action { margin-top: 1.4rem; }

/* Les terrains en pastilles : une page de vente n'est pas une notice. */
.pastilles-terrains { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pastille-terrain {
  display: inline-flex; flex-direction: column; gap: 0.05rem;
  padding: 0.55rem 0.9rem;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: 12px;
  font-size: 0.9rem;
}
.pastille-terrain span { font-size: 0.78rem; color: var(--brume); }
.section-texte-large { max-width: 46rem; }
.liste-simple, .liste-terrains { max-width: 46rem; padding-left: 1.2rem; }
.liste-terrains li { margin-bottom: 0.4rem; }
.terrain-traits { display: block; font-size: 0.88rem; color: var(--brume); }

.tableau-tarifs {
  overflow-x: auto; border: 1px solid var(--trait); border-radius: var(--rayon-petit);
  background: var(--blanc); box-shadow: var(--ombre-douce);
}
.tableau-tarifs table { width: 100%; border-collapse: collapse; min-width: 30rem; }
.tableau-tarifs th, .tableau-tarifs td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--trait); }
.tableau-tarifs th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brume); }
.tableau-tarifs tr:last-child td { border-bottom: none; }
.tableau-tarifs tbody tr:hover { background: var(--fond-2); }
.tarif-nom { display: block; font-size: 0.85rem; color: var(--brume); }
.tarif-montant {
  font-family: var(--police-titres, system-ui, sans-serif);
  font-size: 1.15rem; font-weight: 800; white-space: nowrap;
}
.tarif-unite { font-family: var(--police-texte, system-ui, sans-serif); font-size: 0.78rem; font-weight: 400; color: var(--brume); }
.tarifs-note { max-width: 46rem; color: var(--brume); }
.liste-horaires dd { font-variant-numeric: tabular-nums; }

/*
 * « Vous etes abonne ? » a l'etape du jour. Discret : il ne doit pas donner
 * l'impression qu'un abonnement est necessaire pour reserver.
 */
.champ-abonne { margin-top: 1rem; border-top: 1px solid var(--trait); padding-top: 0.8rem; }
.champ-abonne label { font-weight: 400; font-size: 0.95rem; opacity: 0.85; }
.champ-abonne input { max-width: 16rem; }


/* ------------------------------------------------------------------ */
/*  Contact et avis                                                    */
/* ------------------------------------------------------------------ */

/* Le piege a robots : hors de vue ET hors du parcours clavier, mais bien
 * present dans le document — c est tout l interet. */
.champ-invisible {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.lecteur-seul {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%);
}

.section-contact .formulaire-public { margin: 0; }

.suivi-avis { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--trait); }
.suivi-avis h2 { margin-bottom: 0.2em; }
.suivi-avis .formulaire-public { margin: 1.25rem 0 0; max-width: none; }

/* Cinq etoiles = cinq boutons radio. La coche est l etoile elle-meme. */
.choix-note { display: flex; gap: 0.25rem; border: none; margin: 0; padding: 0; }
.choix-note legend { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.4rem; }
.note-etoile { position: relative; cursor: pointer; }
.note-etoile input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.note-etoile span[aria-hidden], .note-etoile > span:not(.lecteur-seul) {
  font-size: 2rem; line-height: 1; color: var(--trait);
  transition: color 0.12s ease, transform 0.12s ease;
  display: inline-block; padding: 0.2rem;
}
.note-etoile:hover > span:not(.lecteur-seul) { transform: scale(1.15); }
/* Toutes les etoiles jusqu a la cochee s allument : l ordre du DOM et
 * has() suffisent, aucun script. */
.choix-note:has(input[value="1"]:checked) .note-etoile:nth-of-type(-n+1) > span:not(.lecteur-seul),
.choix-note:has(input[value="2"]:checked) .note-etoile:nth-of-type(-n+2) > span:not(.lecteur-seul),
.choix-note:has(input[value="3"]:checked) .note-etoile:nth-of-type(-n+3) > span:not(.lecteur-seul),
.choix-note:has(input[value="4"]:checked) .note-etoile:nth-of-type(-n+4) > span:not(.lecteur-seul),
.choix-note:has(input[value="5"]:checked) .note-etoile:nth-of-type(-n+5) > span:not(.lecteur-seul) {
  color: var(--attention);
}
.note-etoile input:focus-visible ~ span:not(.lecteur-seul) { outline: 3px solid var(--marque); border-radius: 6px; }

/* ------------------------------------------------------------------ */
/*  Moins de mouvement : tout reste, rien ne bouge                     */
/* ------------------------------------------------------------------ */

/* A l'impression, tout est la : une page qu'on imprime n'attend personne. */
@media print {
  .reveler-attente { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveler-attente { opacity: 1; transform: none; }
}
