/* TAWLÒ : feuille de style unique. Identité : docs/tawlo/politiques.md § 1.
   Conçue d'abord pour un téléphone de 360 px, puis élargie. */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-grotesque-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-700-sous-ensemble.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  /* Couleurs héritées du Tawlo d'origine */
  --vert: #005b43;
  --vert-fonce: #004735;
  --vert-nuit: #00342a;
  --orange: #d96a00;        /* orange vif d'origine : texte blanc en 19 px gras au moins (grand texte, AA) */
  --orange-survol: #bb5a00;
  --orange-action: #c25400;   /* fond des boutons : texte blanc de 17 px lisible (AA, 4,6:1) */
  --orange-action-survol: #a64700;
  --orange-texte: #b85407;  /* orange pour du texte normal sur fond clair (AA) */
  --orange-vif: #e3892a;    /* accents décoratifs sur fond sombre */
  --or: #e3aa48;
  --creme: #fff9f0;
  --blanc: #ffffff;
  --teinte-1: #fff3ec; --teinte-2: #eaf3ff; --teinte-3: #ecf8ef; --teinte-4: #fff2e7;
  --teinte-5: #efebff; --teinte-6: #ffecef; --teinte-7: #fff3d8; --teinte-8: #e7f7f1;
  --creme-2: #f7eddc;
  --sable: #eadcc3;
  --encre: #102e27;
  --encre-2: #3d5a52;
  --clair: #fffdf8;

  --titre: "Bricolage", "Arial Black", system-ui, sans-serif;
  --manuscrit: "Caveat", "Segoe Print", cursive;
  --texte: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --rayon-s: 6px;     /* champs, petites étiquettes */
  --rayon-b: 8px;     /* boutons */
  --rayon-m: 10px;    /* cartes, tuiles */
  --rayon-l: 14px;    /* grands blocs */
  --ombre: 0 22px 44px -28px rgba(0, 52, 42, .45);
  --ombre-douce: 0 10px 24px -18px rgba(0, 52, 42, .35);

  --conteneur: 1200px;
  --gouttiere: clamp(16px, 4.5vw, 40px);
  --section: clamp(48px, 6vw, 72px);   /* espace entre deux sections (une seule fois, en haut) */

  --z-entete: 20;
  --z-menu: 30;
  --transition: 220ms cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;   /* 17 px */
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.nowrap { white-space: nowrap; }

.conteneur { width: 100%; max-width: calc(var(--conteneur) + 2 * var(--gouttiere)); margin-inline: auto; padding-inline: var(--gouttiere); }

/* Accessibilité */
.evitement {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--vert-nuit); color: #fff; padding: 10px 16px; border-radius: var(--rayon-s);
  text-decoration: none; font-weight: 600;
}
.evitement:focus { top: 12px; }
::selection { background: #ffe1c2; color: var(--encre); }
input, textarea { caret-color: var(--vert); }
:focus-visible { outline: 3px solid var(--orange-vif); outline-offset: 3px; border-radius: 6px; }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icone { width: 1.25em; height: 1.25em; flex: none; }

/* Boutons et liens d'action */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: 11px 20px;
  border: 0; border-radius: var(--rayon-b);
  font: 700 1.0625rem/1.2 var(--texte); letter-spacing: 0;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.bouton:active { transform: translateY(1px) scale(.985); }
.bouton--orange { background: var(--orange-action); color: #fff; }
.bouton--orange:hover { background: var(--orange-action-survol); }
.bouton--vert { background: var(--vert); color: #fff; }
.bouton--vert:hover { background: var(--vert-fonce); }
.bouton--petit { min-height: 42px; padding: 9px 16px; }
.bouton .icone { transition: transform var(--transition); }
.bouton:hover .icone { transform: translateX(3px); }

.lien-fleche {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px;
  font-weight: 700; color: var(--vert); text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: .3em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color var(--transition), color var(--transition);
}
.lien-fleche:hover { text-decoration-color: currentColor; }
.lien-fleche--clair { color: #fff; }

.surtitre { margin: 0 0 14px; font-size: .9375rem; font-weight: 700; color: var(--orange); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--vert); min-height: 44px; }
.logo__feuilles { width: 30px; height: 30px; }
.logo__feuille-1 { fill: var(--vert); }
.logo__feuille-2 { fill: var(--orange-vif); }
.logo__bloc { display: grid; }
.logo__nom { font-family: var(--titre); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1; }
.logo__devise { font-size: .72rem; font-weight: 600; color: var(--vert); margin-top: 3px; letter-spacing: .01em; }
@media (max-width: 479px) { .entete .logo__devise { display: none; } }
.logo--clair { color: #fff; }
.logo--clair .logo__feuille-1 { fill: #7fc4a6; }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: var(--z-entete);
  background: color-mix(in srgb, #fff 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--sable) 70%, transparent);
}
.entete__barre { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.entete__barre .logo { margin-right: auto; }
.entete__nav { display: none; }
.entete__action-long { display: none; }
.menu { position: relative; }
.menu__bouton {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px;
  border-radius: var(--rayon-b); border: 1.5px solid var(--sable); background: var(--clair);
  font-weight: 700; font-size: .95rem; cursor: pointer; list-style: none; color: var(--vert-fonce);
}
.menu__bouton::-webkit-details-marker { display: none; }
.menu[open] .menu__bouton { background: var(--vert-fonce); color: #fff; border-color: var(--vert-fonce); }
.menu__panneau {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: var(--z-menu);
  display: grid; gap: 4px; width: min(86vw, 320px); padding: 12px;
  background: var(--clair); border-radius: var(--rayon-m); box-shadow: var(--ombre); border: 1px solid var(--sable);
}
.menu__panneau a:not(.bouton) {
  display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: var(--rayon-s);
  text-decoration: none; font-weight: 600;
}
.menu__panneau a:not(.bouton):hover { background: var(--creme-2); }
.menu__panneau .bouton { margin-top: 6px; }

@media (max-width: 379px) {
  .entete__barre { gap: 8px; }
  .logo__nom { font-size: 1.4rem; }
  .logo__feuilles { width: 26px; height: 26px; }
  .menu__bouton span { display: none; }
  .entete__action { padding-inline: 14px; }
}
@media (min-width: 560px) {
  .entete__action-long { display: inline; }
  .entete__action-court { display: none; }
}
@media (min-width: 1024px) {
  .entete__barre { gap: 28px; min-height: 76px; }
  .entete__barre .logo { margin-right: 0; }
  .entete__nav { display: flex; gap: 6px; margin-right: auto; }
  .entete__nav a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--rayon-s);
    text-decoration: none; font-weight: 600; font-size: .975rem; color: var(--encre-2);
    transition: background-color var(--transition), color var(--transition);
  }
  .entete__nav a:hover { background: var(--creme-2); color: var(--encre); }
  .entete__nav a[aria-current="page"] { color: var(--vert-fonce); font-weight: 700; box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
  .menu { display: none; }
}

/* Accueil : grande photo (une par visite, en fondu sur grand écran), nom, devise et phrase manuscrite (comme l'ancien site) */
.manuscrit { font-family: var(--manuscrit); font-weight: 700; line-height: 1; }
.hero { position: relative; isolation: isolate; color: #fff; display: flex; align-items: center; min-height: min(62svh, 520px); overflow: hidden; }
.hero__fonds { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--vert-nuit); }
.hero__photo, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__photo { opacity: 0; transition: opacity 1.6s ease; }
.hero__photo.est-visible { opacity: 1; }
.hero--defile .hero__photo img { transition: transform 9s linear; }
.hero--defile .hero__photo.est-visible img { transform: scale(1.06); }
.hero__voile { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 35, 45, .05) 0%, rgba(0, 35, 45, .3) 30%, rgba(0, 35, 45, .34) 70%, rgba(0, 35, 45, .5) 100%); }
.hero__lieu { position: absolute; top: 12px; right: var(--gouttiere); z-index: 1; display: flex; align-items: center; gap: 6px; margin: 0; padding: 5px 6px 5px 10px; border-radius: var(--rayon-s); background: rgba(0, 30, 40, .58); font-size: .8125rem; font-weight: 600; line-height: 1.2; }
.hero__lieu > .icone { width: 1.1em; height: 1.1em; flex: none; }
.hero__lieu > span { padding-right: 4px; }
.hero__pause { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; cursor: pointer; }
.hero__pause:hover { background: rgba(255, 255, 255, .35); }
.hero__pause[hidden] { display: none; }
.hero__pause .icone { display: block; width: 16px; height: 16px; }
.hero__pause-reprise, .hero__pause[aria-pressed="true"] .hero__pause-arret { display: none; }
.hero__pause[aria-pressed="true"] .hero__pause-reprise { display: block; }
.hero__contenu { position: relative; padding-top: 40px; padding-bottom: 64px; }
.hero__nom { margin: 0; font-family: var(--titre); font-weight: 800; font-size: clamp(3.4rem, 15vw, 6.6rem); line-height: .9; letter-spacing: -.04em; text-shadow: 0 2px 6px rgba(0, 25, 35, .35), 0 4px 24px rgba(0, 30, 40, .45); }
.hero h1 { margin-top: 6px; font-size: clamp(1.5rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; text-shadow: 0 1px 4px rgba(0, 25, 35, .5), 0 2px 14px rgba(0, 30, 40, .5); }
.hero__intro { max-width: 32rem; margin: 14px 0 0; font-size: clamp(1.0625rem, 2.4vw, 1.3rem); line-height: 1.5; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 25, 35, .7), 0 2px 12px rgba(0, 30, 40, .55); }
.hero__devise { margin: 18px 0 0; font-size: clamp(1.7rem, 6vw, 2.2rem); color: #fff; transform: rotate(-5deg); transform-origin: left; text-shadow: 0 1px 3px rgba(0, 25, 35, .6), 0 2px 12px rgba(0, 30, 40, .55); }
@media (min-width: 900px) {
  .hero { min-height: min(64vh, 470px); }
  .hero__voile { background: linear-gradient(90deg, rgba(0, 35, 45, .55) 0%, rgba(0, 35, 45, .22) 45%, rgba(0, 35, 45, .05) 70%), linear-gradient(0deg, rgba(0, 35, 45, .3) 0%, rgba(0, 35, 45, 0) 35%); }
  .hero__intro { font-weight: 500; }
  .hero__devise { position: absolute; right: var(--gouttiere); bottom: 70px; margin: 0; font-size: 2.9rem; text-align: right; transform: rotate(-8deg); transform-origin: right; }
}

/* Recherche : la barre qui chevauche la photo, comme sur l'ancien site */
.recherche {
  position: relative; z-index: 5; margin-top: -34px; display: grid; gap: 8px;
  padding: 10px; background: #fff; border-radius: var(--rayon-m); box-shadow: 0 14px 34px -14px rgba(0, 52, 42, .35);
}
.recherche__champ { display: flex; align-items: center; gap: 10px; padding: 0 12px; min-height: 52px; }
.recherche__champ .icone { color: var(--vert); width: 1.5em; height: 1.5em; }
.recherche input, .recherche select { width: 100%; min-height: 48px; border: 0; background: transparent; font: 500 1.0625rem var(--texte); color: var(--encre); outline: none; }
.recherche__quartier select { padding: 0 14px; border-radius: var(--rayon-s); background: #f2f5f4; }
.recherche .bouton { min-height: 48px; border-radius: var(--rayon-s); }
.recherche input:focus-visible, .recherche select:focus-visible { outline: 3px solid var(--orange-vif); outline-offset: 2px; border-radius: var(--rayon-s); }
@media (min-width: 760px) {
  .recherche { grid-template-columns: 1fr 210px auto; align-items: center; padding: 8px 8px 8px 18px; max-width: 1100px; }
  .recherche .bouton { padding-inline: 34px; }
}

/* Huit tuiles pastel, photo, icône ronde (ancien site) */
.tuiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.tuile {
  display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden;
  border-radius: var(--rayon-m); text-decoration: none; color: var(--encre); box-shadow: 0 6px 16px -12px rgba(0, 52, 42, .5);
  transition: transform var(--transition), box-shadow var(--transition);
}
.tuile:hover { transform: translateY(-3px); box-shadow: 0 14px 24px -14px rgba(0, 52, 42, .55); }
.tuile__photo { display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.tuile__photo img { width: 100%; height: 100%; object-fit: cover; }
.tuile__icone {
  display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%;
  background: #fff; color: var(--vert); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); position: relative;
}
.tuile__icone .icone { width: 1.2em; height: 1.2em; }
.tuile__nom { padding: 6px 6px 12px; font-weight: 700; font-size: .875rem; line-height: 1.2; }
@media (max-width: 419px) {
  .tuiles { gap: 8px; }
  .tuile__nom { padding: 6px 3px 10px; font-size: .8125rem; }
}
.tuile--1 { background: var(--teinte-1); } .tuile--2 { background: var(--teinte-2); } .tuile--3 { background: var(--teinte-3); } .tuile--4 { background: var(--teinte-4); }
.tuile--5 { background: var(--teinte-5); } .tuile--6 { background: var(--teinte-6); } .tuile--7 { background: var(--teinte-7); } .tuile--8 { background: var(--teinte-8); }
@media (min-width: 1024px) {
  .tuiles { grid-template-columns: repeat(8, 1fr); gap: 12px; }
  .tuile__nom { font-size: .9375rem; }
}

/* Trio : territoire, carte des quartiers, professionnels et visiteurs */
.trio { display: grid; gap: 16px; margin-top: 22px; }
.territoire { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--rayon-m); color: #fff; min-height: 380px; display: flex; align-items: flex-end; }
.territoire__photo, .territoire__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.territoire::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 50, 60, 0) 25%, rgba(0, 50, 60, .78) 75%); }
@media (max-width: 1023px) { .territoire::after { background: linear-gradient(180deg, rgba(0, 50, 60, .25) 0%, rgba(0, 50, 60, .6) 40%, rgba(0, 50, 60, .8) 85%); } }
.territoire__texte { padding: 24px; }
.territoire h2 { font-size: 1.7rem; line-height: 1.1; }
.territoire p:not(.manuscrit) { margin: 12px 0 18px; font-size: 1.0625rem; line-height: 1.5; }
.territoire__devise { margin: 20px 0 0; font-size: 2rem; text-align: right; transform: rotate(-6deg); color: #fff; }
.explorer { padding: 20px; border-radius: var(--rayon-m); background: var(--teinte-2); }
.explorer h2 { font-size: 1.5rem; color: var(--vert-fonce); }
.explorer h2 span { font-size: 2.1rem; }
.explorer > p { margin: 6px 0 12px; color: var(--encre-2); font-size: .975rem; }
.explorer__credit { margin: 8px 0 0; font-size: .8125rem; color: var(--encre-2); }
.explorer__credit a { color: inherit; }
.carte { position: relative; border-radius: var(--rayon-s); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 52, 42, .08); }
.carte img { width: 100%; height: auto; }
.carte__calque { position: absolute; inset: 0; width: 100%; height: 100%; }
.carte__repere circle { r: 10px; fill: var(--vert); stroke: #fff; stroke-width: 3.5; transition: fill var(--transition); }
.carte__repere text { font: 700 27px var(--texte); dominant-baseline: central; fill: var(--vert-nuit); stroke: #fff; stroke-width: 7px; paint-order: stroke; stroke-linejoin: round; }
@media (max-width: 599px) {
  .carte__repere text { font-size: 34px; stroke-width: 8px; }
  .carte__repere circle { r: 12px; }
}
.carte__repere:hover circle, .carte__repere:focus circle { fill: var(--orange); }
.carte__repere:hover text { fill: var(--orange-texte); }
.publics { display: grid; gap: 16px; }
.public { padding: 22px; border-radius: var(--rayon-m); background: var(--creme); box-shadow: var(--ombre-douce); }
.public h2 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; color: var(--vert-fonce); }
.public h2 .icone { color: var(--orange); width: 1.2em; height: 1.2em; }
.public p { margin: 8px 0 14px; color: var(--encre-2); }
.public .bouton { width: 100%; padding-inline: 14px; }
.public ul { margin: 14px 0 0; padding-left: 20px; color: var(--encre-2); font-size: .975rem; line-height: 1.7; }
.public li::marker { color: var(--orange); }
@media (min-width: 1024px) {
  .trio { grid-template-columns: 1fr 1.3fr 1fr; align-items: stretch; }
  .territoire { min-height: 0; }
}

/* Sections */
.section { padding-top: var(--section); }
.titre-section, .titre-ligne h2 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); color: var(--vert-fonce); }
.titre-section { margin-bottom: 18px; }
.titre-ligne { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 18px; }
.titre-ligne .lien-fleche { font-size: .975rem; }
.section__tete { max-width: 46rem; margin-bottom: clamp(22px, 3vw, 36px); }
.section__tete h2 { font-size: clamp(1.9rem, 5vw, 3rem); color: var(--vert-fonce); }
.section__tete p { margin: 14px 0 0; font-size: clamp(1.0625rem, 2vw, 1.15rem); color: var(--encre-2); max-width: 38rem; }

/* À découvrir (format « À la une » de l'ancien site) */
.alaune { display: grid; gap: 16px; }
.alaune__carte { overflow: hidden; border-radius: var(--rayon-m); background: #fff; box-shadow: 0 8px 22px -16px rgba(0, 52, 42, .45); border: 1px solid #eef0ec; }
.alaune__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.alaune__corps { padding: 14px 16px 18px; }
.theme { display: inline-block; padding: 3px 9px; border-radius: 6px; background: var(--vert); color: #fff; font-size: .8125rem; font-weight: 700; }
.alaune h3 { margin: 10px 0 6px; font-size: 1.2rem; color: var(--vert-fonce); }
.alaune p { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--encre-2); }
@media (max-width: 599px) {
  .alaune { grid-auto-flow: column; grid-auto-columns: 80%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gouttiere)); padding: 2px var(--gouttiere) 14px; scroll-padding-inline: var(--gouttiere); }
  .alaune::-webkit-scrollbar { display: none; }
  .alaune__carte { scroll-snap-align: start; }
}
@media (min-width: 600px) { .alaune { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .alaune { grid-template-columns: repeat(4, 1fr); } }

/* Bandeau « San-Pédro, ensemble, plus loin ! » */
.bandeau { margin-top: var(--section); background: var(--creme); border-block: 1px solid #f1e6d3; }
.bandeau__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; padding-block: 24px; align-items: center; }
.bandeau p { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.bandeau p .icone { grid-row: span 2; color: var(--orange); width: 1.6em; height: 1.6em; }
.bandeau strong { color: var(--vert-fonce); font-size: 1.0625rem; }
.bandeau span { color: var(--encre-2); font-size: .875rem; }
.bandeau__devise { grid-column: 1 / -1; display: block !important; text-align: center; font-size: 2rem; color: var(--vert); transform: rotate(-3deg); }
@media (min-width: 900px) {
  .bandeau__grille { grid-template-columns: repeat(4, 1fr) 1.2fr; }
  .bandeau__devise { grid-column: auto; text-align: right; font-size: 2.2rem; }
}


/* Questions : repliables (details), sans JavaScript ; le texte reste lisible par Google */
.questions { border-top: 1.5px solid var(--sable); }
.question { border-bottom: 1.5px solid var(--sable); }
.question summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0;
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.0625rem; line-height: 1.35; color: var(--vert-fonce);
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after { content: "+"; flex: none; font: 800 1.6rem/1 var(--titre); color: var(--orange); transition: transform var(--transition); }
.question[open] summary::after { transform: rotate(45deg); }
.question summary:hover { color: var(--vert); }
.question p { margin: 0 0 18px; color: var(--encre-2); max-width: 44rem; }
.question p a { color: var(--vert); font-weight: 600; }
@media (min-width: 900px) {
  .questions { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: start; border-top: 0; }
  .question:nth-child(-n+2) { border-top: 1.5px solid var(--sable); }
}

/* Pré-inscription */
.bouton--large { width: 100%; min-height: 58px; font-size: 1.125rem; }
.inscription { padding-top: clamp(32px, 6vw, 72px); }
.inscription__grille { display: grid; gap: 32px; align-items: start; }
.inscription__intro h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); color: var(--vert-fonce); }
.inscription__intro > p:not(.surtitre):not(.whatsapp-alt) { margin: 16px 0 22px; font-size: 1.125rem; color: var(--encre-2); max-width: 30rem; }
@media (min-width: 960px) {
  .inscription__grille { grid-template-columns: 5fr 7fr; gap: 64px; }
  .inscription__intro { position: sticky; top: 108px; }
}

.formulaire { display: grid; gap: 20px; background: var(--clair); border-radius: var(--rayon-l); padding: clamp(18px, 4vw, 36px); box-shadow: var(--ombre); }
.formulaire__bloc { margin: 0; padding: 0; border: 0; display: grid; gap: 18px; min-width: 0; }
.formulaire__bloc > legend {
  padding: 0; margin-bottom: 14px; font-family: var(--titre); font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; color: var(--vert-fonce);
}
.formulaire__bloc + .formulaire__bloc { padding-top: 22px; border-top: 1.5px solid var(--creme-2); }
.formulaire__note { margin: -6px 0 0; text-align: center; font-size: .9375rem; color: var(--encre-2); }

.champ { display: grid; gap: 7px; min-width: 0; }
.champ > label, .champ > legend { font-weight: 700; font-size: 1rem; color: var(--encre); padding: 0; }
.champ__aide { font-weight: 500; font-size: .9rem; color: var(--encre-2); margin: 0; }
.champ input[type="text"], .champ input[type="tel"], .champ input[type="email"], .champ select, .champ textarea {
  width: 100%; min-height: 54px; padding: 12px 16px;
  font: 500 1.0625rem/1.3 var(--texte); color: var(--encre);
  background: var(--creme); border: 1.5px solid var(--sable); border-radius: var(--rayon-b);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}
.champ select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23004735' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.champ input::placeholder { color: #8a9a94; }
.champ textarea { min-height: 140px; padding-block: 12px; line-height: 1.5; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--vert); background-color: #fff; box-shadow: 0 0 0 4px rgba(0, 91, 67, .14); }
.champ [aria-invalid="true"] { border-color: #b3261e; background-color: #fff6f5; }
.champ__erreur { margin: 0; font-weight: 600; font-size: .9375rem; color: #b3261e; }

/* Types d'établissement : grandes options faciles à toucher */
.choix-type { margin: 0; border: 0; padding: 0; gap: 14px; }
.choix-type__famille { display: grid; gap: 8px; padding: 12px; border-radius: var(--rayon-m); background: var(--creme); }
.choix-type__famille.est-mise-en-avant { background: #fdeedd; box-shadow: inset 0 0 0 1.5px var(--orange-vif); }
.choix-type__nom { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; font-size: .9375rem; color: var(--vert-fonce); }
.choix-type__nom .icone { color: var(--orange); }
.choix-type__options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; display: inline-flex; cursor: pointer; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 10px 16px; border-radius: var(--rayon-b);
  background: var(--clair); border: 1.5px solid var(--sable); font-weight: 600; font-size: .975rem;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
.option:hover span { border-color: var(--vert); }
.option input:checked + span { background: var(--vert-fonce); border-color: var(--vert-fonce); color: #fff; }
.option input:checked + span::before { content: "✓"; margin-right: 8px; font-weight: 800; }
.option input:focus-visible + span { outline: 3px solid var(--orange-vif); outline-offset: 2px; }

.champ--accord { padding: 16px; border-radius: var(--rayon-m); background: var(--creme); }
.case { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .975rem; line-height: 1.5; cursor: pointer; }
.case input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--vert); }
.case a { color: var(--vert); font-weight: 600; }

.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alerte { padding: 16px 18px; border-radius: var(--rayon-b); background: #fff1ef; border: 1.5px solid #f0b7b0; color: #7a1b14; }
.alerte p { margin: 0; font-weight: 700; }
.alerte ul { margin: 8px 0 0; padding-left: 20px; }
.alerte a { color: inherit; }
.alerte:focus { outline: none; }

/* Badge « Membre fondateur » et lien WhatsApp (inscription, confirmation) */
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 9px; border-radius: var(--rayon-b);
  background: var(--vert-fonce); color: #fff; font-weight: 700; font-size: .9375rem; box-shadow: var(--ombre-douce);
}
.badge__etoile {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: var(--or); color: var(--vert-nuit); font-family: var(--titre); font-size: .9rem;
}
.whatsapp-alt { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; font-size: .975rem; color: var(--encre-2); max-width: 32rem; }
.whatsapp-alt .icone { color: var(--vert); margin-top: 2px; }
.whatsapp-alt a { font-weight: 700; color: var(--vert-fonce); }

/* Confirmation */
.confirmation__grille { display: grid; gap: 40px; align-items: start; }
.confirmation h1 { font-size: clamp(2.1rem, 6.5vw, 3.4rem); color: var(--vert-fonce); }
.ticket {
  position: relative; margin: 26px 0 18px; padding: 24px 24px 26px; border-radius: var(--rayon-m);
  background: var(--vert-fonce); color: #fff; box-shadow: var(--ombre); max-width: 420px;
}
.ticket__libelle { margin: 0; font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.ticket__ref { margin: 6px 0 16px; font-family: var(--titre); font-weight: 800; font-size: clamp(2rem, 9vw, 2.6rem); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.ticket .badge { background: rgba(255, 255, 255, .12); box-shadow: none; }
.confirmation__note { color: var(--encre-2); max-width: 30rem; }
.confirmation__etape { padding: clamp(22px, 4vw, 36px); border-radius: var(--rayon-l); background: var(--creme-2); }
.confirmation__etape h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); color: var(--vert-fonce); margin-bottom: 12px; }
.confirmation__etape > p { color: var(--encre-2); }
.confirmation__etape .bouton { margin: 8px 0 18px; }
.confirmation__suite { font-size: .975rem; }
@media (min-width: 900px) {
  .confirmation__grille { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* Pages légales et crédits */
.texte-legal { max-width: 46rem; }
.texte-legal h1 { font-size: clamp(2.2rem, 6.5vw, 3.4rem); color: var(--vert-fonce); margin-bottom: 24px; }
.texte-legal h2 { font-size: 1.35rem; letter-spacing: -.01em; color: var(--vert-fonce); margin: 36px 0 10px; }
.texte-legal p, .texte-legal li { color: var(--encre-2); }
.texte-legal ul { padding-left: 22px; margin: 0 0 1em; }
.texte-legal li { margin-bottom: 4px; }
.texte-legal li::marker { color: var(--orange); }
.texte-legal a { color: var(--vert); font-weight: 600; }
.texte-legal strong { color: var(--encre); }
.texte-legal__chapo { font-size: 1.125rem; }

/* Pages courtes (404, confirmation) */
.page-courte { max-width: 44rem; }
.page-courte h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); color: var(--vert-fonce); margin-bottom: 18px; }
.page-courte p { font-size: 1.125rem; color: var(--encre-2); }
.page-courte__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }

/* Pied de page */
.pied { margin-top: var(--section); background: var(--vert-nuit); color: rgba(255, 255, 255, .86); }
.pied a { color: #fff; }
.pied__appel { padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.pied__appel h2 { font-size: clamp(1.9rem, 5.4vw, 3.1rem); color: #fff; max-width: 16ch; }
.pied__appel p { margin: 16px 0 26px; font-size: 1.125rem; }
.pied__grille { display: grid; gap: 32px; padding: 44px 0 28px; }
.pied--sans-appel .pied__grille { padding-top: 56px; }
.pied__marque p { margin: 14px 0 0; font-size: .975rem; line-height: 1.6; }
.pied__liens { display: grid; align-content: start; gap: 2px; }
.pied__liens h2 { margin-bottom: 8px; font-family: var(--texte); font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--or); }
.pied__liens a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; text-decoration: none; font-weight: 500; }
.pied__liens a:hover { text-decoration: underline; text-underline-offset: .25em; }
.pied__liens .icone { color: #7fc4a6; }
.pied__bas { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 22px 0 32px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .875rem; color: rgba(255, 255, 255, .7); }
.pied__bas a { color: rgba(255, 255, 255, .92); }
@media (min-width: 768px) {
  .pied__grille { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
