/* ======================================================================
   NOVA CORDE · Thibaut Novac, cordiste à La Réunion
   Le contenu est la façade ; la colonne de droite est le vide où le
   cordiste descend sur ses deux cordes, pieds en appui sur le bord.
   Basalte, béton clair, orange sécurité.
   ====================================================================== */
:root {
  --fond: #f4f2ee;
  --surface: #ffffff;
  --texte: #14181c;
  --texte-doux: #4f5a64;
  --basalte: #14181c;
  --basalte-2: #1f252b;
  --orange: #ff6a1a;
  --orange-texte: #b8440a;
  --air: #e3e9ee;
  --accent: var(--orange);
  --accent-texte: #14181c;
  --titre: "Barlow Condensed", "Arial Narrow", sans-serif;
  --corps: "Barlow", system-ui, sans-serif;
  --t-corps: clamp(1.02rem, .98rem + .2vw, 1.1rem);
  --marge: clamp(1.25rem, 4vw, 3.5rem);
  --colonne: clamp(104px, 8.5vw, 124px);
  /* La photo du premier écran : remplacer le fichier images/ouverture.webp
     (ou changer cette ligne). Un voile sombre garantit la lecture du texte. */
  --photo-ouverture: url("../images/ouverture.webp");
  --nav-hauteur: 64px;
  --nav-fond: #14181c;
  --nav-texte: #f4f2ee;
  --nav-bord: rgb(255 255 255 / .08);
  --nav-actif: rgb(255 255 255 / .1);
  --carte-filet: rgb(20 24 28 / .1);
}
body { background: var(--air); }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; line-height: .98; letter-spacing: .005em; margin: 0; text-transform: uppercase; text-wrap: balance; }
p { margin: 0 0 1em; }
.surtitre { font: 600 .8rem/1.2 var(--corps); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1rem; color: var(--orange-texte); }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: 0 1.6rem;
  border-radius: 6px; background: var(--orange); color: var(--basalte); text-decoration: none; font-weight: 700; letter-spacing: .02em;
}
.bouton:hover { background: #ff8340; }
.bouton--clair { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.bouton--clair:hover { background: rgb(255 255 255 / .08); }
.a-completer { display: inline-block; padding: .1rem .5rem; border: 1.5px dashed currentColor; border-radius: 4px; font-weight: 600; opacity: .85; }

/* La façade : tout le contenu, à gauche de la colonne du cordiste. */
main, .pied { margin-right: var(--colonne); position: relative; }
main { box-shadow: 6px 0 0 rgb(20 24 28 / .08); }
.section { padding: clamp(4.5rem, 10vw, 7.5rem) var(--marge); }

/* Navigation : le logo à la place du nom. */
.navigation__nom { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--titre); font-weight: 700; font-size: 1.35rem; letter-spacing: .06em; }
.navigation__nom svg { width: 22px; height: 28px; flex: none; }

/* ---------------- 1. Ouverture ---------------- */
.ouverture {
  background: linear-gradient(180deg, rgb(20 24 28 / .9) 0%, rgb(20 24 28 / .82) 50%, rgb(20 24 28 / .92) 100%), var(--photo-ouverture) center 40% / cover no-repeat var(--basalte);
  color: #f4f2ee; padding-top: calc(var(--nav-hauteur) + clamp(3.5rem, 9vw, 7rem)); padding-bottom: clamp(3.5rem, 8vw, 6rem); overflow: hidden;
}
.ouverture__contenu { position: relative; }
.ouverture .surtitre { color: var(--orange); }
.ouverture h1 { font-size: clamp(3rem, 1.6rem + 6.4vw, 7.4rem); max-width: 12ch; margin-bottom: 1.6rem; }
.ouverture h1 .accent { color: var(--orange); }
.ouverture__intro { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: rgb(244 242 238 / .82); max-width: 40rem; }
.ouverture__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.2rem 0 3rem; }
/* Trois colonnes à la largeur de leur nombre : « 10 ans + » ne mord jamais sur la suivante. */
.chiffres { list-style: none; margin: 0; padding: 2rem 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.4rem 3rem; border-top: 1px solid rgb(255 255 255 / .12); max-width: 46rem; }
/* Les trois nombres partagent la même boîte (celle du plus grand) et se
   posent sur son bord bas : le « 4 », plus gros, reste aligné avec les autres. */
.chiffres strong { display: flex; align-items: flex-end; gap: .22em; white-space: nowrap; height: clamp(4.2rem, 3rem + 5vw, 6.6rem); font-family: var(--titre); font-weight: 700; font-size: clamp(3.4rem, 2.4rem + 4vw, 5.4rem); line-height: 1; color: #fff; }
.chiffres li:first-child strong { font-size: clamp(4.2rem, 3rem + 5vw, 6.6rem); color: var(--orange); }
.chiffres strong span { font-size: inherit; color: inherit; }
.chiffres .chiffres__libelle { display: block; max-width: 15rem; margin-top: .35rem; color: rgb(244 242 238 / .78); font-size: .95rem; line-height: 1.35; }

/* ---------------- 2. Prestations ---------------- */
.prestations { background: var(--fond); }
.tete-section { max-width: 46rem; margin-bottom: clamp(2.4rem, 5vw, 3.4rem); }
.tete-section h2, .tete-section h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.8rem); margin-bottom: 1rem; }
.tete-section p { color: var(--texte-doux); font-size: 1.08rem; }
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.carte { background: var(--surface); border-radius: 10px; padding: 1.6rem 1.5rem 1.4rem; border-top: 4px solid var(--orange); box-shadow: 0 10px 30px rgb(20 24 28 / .06); }
.carte svg { width: 40px; height: 40px; color: var(--basalte); margin-bottom: 1rem; }
.carte h3 { font-size: 1.7rem; margin-bottom: .8rem; }
.carte ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.carte li { padding-left: 1.1rem; position: relative; color: var(--texte-doux); line-height: 1.45; }
.carte li::before { content: ""; position: absolute; left: 0; top: .62em; width: .45rem; height: 2px; background: var(--orange); }
.mention { margin-top: 1.6rem; display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--texte); }
.mention::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--orange); flex: none; }

/* ---------------- 3. Méthode ---------------- */
.methode { background: var(--surface); }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: etape; }
.etape { background: var(--fond); border-radius: 10px; padding: 1.4rem; }
.etape__cadre { aspect-ratio: 4 / 3; border-radius: 6px; background: var(--basalte-2); display: grid; place-items: center; margin-bottom: 1.1rem; position: relative; overflow: hidden; }
.etape__cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.etape__cadre::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 24 28 / .35), transparent 40%); }
.etape__cadre::after { content: attr(data-temps); content: attr(data-temps) / ""; position: absolute; left: .8rem; top: .7rem; font: 700 .8rem/1 var(--corps); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); background: #0d1013; padding: .35rem .55rem; border-radius: 4px; }
.methode__chantier { margin: 1.2rem 0 0; color: var(--texte-doux); font-size: .95rem; }
.etape h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.etape p { color: var(--texte-doux); margin: 0; }
.urgence { margin-top: 2rem; padding: 1.4rem 1.6rem; border-radius: 10px; background: var(--basalte); color: #f4f2ee; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.urgence p { margin: 0; font-size: 1.12rem; max-width: 40rem; }
.urgence strong { color: var(--orange); }

/* ---------------- 3 bis. Chantiers : ses photos, ses légendes ---------------- */
.chantiers { background: var(--basalte-2); color: #f4f2ee; }
.chantiers .tete-section p { color: rgb(244 242 238 / .78); }
.galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.galerie > li { display: contents; } /* le figure est l'élément de grille */
.galerie figure { margin: 0; border-radius: 10px; overflow: hidden; background: #0d1013; }
.galerie figure.pleine { grid-column: 1 / -1; }
.galerie img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.galerie figure.pleine img { aspect-ratio: 2 / 1; }
.galerie .paire { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.galerie .paire img { aspect-ratio: 3 / 4; }
.galerie .paire span { position: absolute; left: .5rem; top: .5rem; font: 700 .7rem/1 var(--corps); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); background: #0d1013; padding: .3rem .5rem; border-radius: 4px; }
.galerie .paire > div { position: relative; }
.galerie figcaption { padding: .8rem 1rem .95rem; font-weight: 600; font-size: .95rem; line-height: 1.35; }
@media (max-width: 1000px) {
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerie figure.pleine img { aspect-ratio: 16 / 9; }
}

/* ---------------- 4. Agences ---------------- */
.agences { background: var(--orange); color: var(--basalte); }
.agences__grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; }
.agences .surtitre { color: var(--basalte); }
.agences h2 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.2rem); margin-bottom: 1rem; }
.agences p { font-size: 1.1rem; }
.agences ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.agences li { background: rgb(255 255 255 / .9); border-radius: 8px; padding: .9rem 1.1rem; font-weight: 600; }
.agences .bouton { background: var(--basalte); color: #fff; }
.agences .bouton:hover { background: #2a3138; }

.agences :focus-visible { outline-color: var(--basalte); }

/* ---------------- 5. Parcours ---------------- */
.parcours { background: var(--fond); }
.parcours__grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: start; }
.parcours h2, .parcours h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.8rem); margin-bottom: 1.4rem; }
.parcours__texte p { color: var(--texte-doux); font-size: 1.08rem; max-width: 40rem; }
.parcours__texte p strong { color: var(--texte); }
.parcours h3 { font-size: 1.5rem; margin: 1.8rem 0 .6rem; }
.parcours__texte ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.parcours__texte li { position: relative; padding-left: 1.1rem; color: var(--texte-doux); line-height: 1.45; }
.parcours__texte li::before { content: ""; position: absolute; left: 0; top: .62em; width: .45rem; height: 2px; background: var(--orange); }
.valeurs { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.valeurs li { padding: .55rem 1rem; border-radius: 999px; background: var(--basalte); color: #f4f2ee; font-weight: 600; font-size: .95rem; }
.diplome { background: var(--surface); border-radius: 10px; padding: 1.8rem; border-left: 4px solid var(--orange); box-shadow: 0 10px 30px rgb(20 24 28 / .06); }
.diplome .surtitre { margin-bottom: .6rem; }
.diplome h3 { font-size: 2rem; margin-bottom: .6rem; }
.diplome p { color: var(--texte-doux); margin: 0 0 1.2rem; }
.diplome h3 { font-size: 1.8rem; }
.qualifs { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.1rem; }
.qualifs li { padding-left: 1rem; border-left: 2px solid var(--orange); }
.qualifs strong { display: block; font-family: var(--titre); font-size: 1.3rem; line-height: 1.1; text-transform: uppercase; margin-bottom: .2rem; }
.qualifs span { color: var(--texte-doux); font-size: .97rem; line-height: 1.45; }

/* ---------------- 6. Contact ---------------- */
.contact { background: var(--basalte); color: #f4f2ee; }
.contact .surtitre { color: var(--orange); }
.contact h2 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.4rem); margin-bottom: 1rem; }
.contact__intro { font-size: 1.12rem; color: rgb(244 242 238 / .82); max-width: 40rem; }
.coordonnees { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.coordonnees li { border: 1px solid rgb(255 255 255 / .14); border-radius: 10px; padding: 1.2rem 1.3rem; }
.coordonnees span { display: block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: rgb(244 242 238 / .7); margin-bottom: .4rem; }
.coordonnees strong { font-size: 1.2rem; }

/* ---------------- Pied ---------------- */
.pied { background: #0d1013; color: rgb(244 242 238 / .78); padding: 2.4rem var(--marge) 3rem; font-size: .92rem; }
.pied__haut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: center; }
.pied__logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--titre); font-weight: 700; font-size: 1.4rem; letter-spacing: .06em; color: #fff; }
.pied__logo svg { width: 20px; height: 26px; }
.pied details { margin-top: 1.6rem; border-top: 1px solid rgb(255 255 255 / .1); padding-top: 1rem; }
.pied summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: #fff; }
.pied summary::after { content: "+"; content: "+" / ""; font-size: 1.3em; line-height: 1; color: var(--orange); transition: transform .2s; }
.pied details[open] summary::after { transform: rotate(45deg); }
.pied details p { margin: .6rem 0; max-width: 46rem; line-height: 1.55; }

/* ---------------- La colonne du cordiste ---------------- */
.colonne-corde {
  position: fixed; top: var(--nav-hauteur); right: 0; bottom: 0; width: var(--colonne);
  pointer-events: none; overflow: hidden; z-index: 5;
  background: linear-gradient(180deg, #d9e2e9, var(--air) 40%, #eef1f3);
  --l: 90px;                        /* largeur du dessin du cordiste */
  --x-corde: calc(var(--l) * .5833); /* la corde de travail : x = 70 sur 120 dans le dessin */
  --x-securite: calc(var(--l) * .5167); /* la corde de sécurité : x = 62, devant elle aussi */
}
/* La potence : le bras d'ancrage déporté qui part du bord de la façade. */
.colonne-corde__potence { position: absolute; left: 0; top: 0; width: calc(var(--x-corde) + 14px); height: 7px; background: #2a3138; border-radius: 0 3px 3px 0; }
.colonne-corde__potence::after { content: ""; position: absolute; left: 0; top: 0; width: 6px; height: 26px; background: #2a3138; border-radius: 0 0 2px 2px; }
/* Les deux cordes, au motif tressé fixe : quand le cordiste descend, le motif
   défile dans son descendeur, c'est la corde qui file. */
.corde { position: absolute; top: 6px; bottom: 0; width: 3px; border-radius: 2px; }
.corde--travail { left: calc(var(--x-corde) - 1.5px); background: repeating-linear-gradient(180deg, #ff6a1a 0 7px, #fff1e6 7px 9px, #c94c0d 9px 10px); }
.corde--securite { left: calc(var(--x-securite) - 1.5px); background: repeating-linear-gradient(180deg, #2f6fd6 0 7px, #e6efff 7px 9px, #1f4fa0 9px 10px); }
.colonne-corde__sol { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: #2a3138; }
.cordiste { position: absolute; left: 0; top: 0; width: var(--l); transform: translate3d(0, 34px, 0); will-change: transform; }
.cordiste svg { display: block; width: 100%; height: auto; transform-origin: 58% 52%; overflow: visible; }
.cordiste .jambe { transform-box: view-box; transform-origin: 81px 77px; }
.cordiste .frottement { opacity: 0; }
.cordiste-js .cordiste { transform: translate3d(0, calc(-100% - 20px), 0); }

/* Bureau : la barre masque Chantiers et Parcours sous 1100 px (ils restent
   dans le pied et sur l'accueil) ; le lien « Demande » n'existe qu'au téléphone. */
@media (max-width: 1100px) { .navigation__large { display: none; } }
@media (min-width: 761px) { .navigation__mobile { display: none; } }
.navigation__liens a[aria-current="page"] { background: var(--nav-actif); }
@media (max-width: 760px) {
  :root { --colonne: 38px; }
  /* Le bouton de l'assistant (56 px, à 1rem du bord et de la colonne) ne doit
     recouvrir aucun lien du pied en fin de page : on lui réserve sa place. */
  .pied__liens { padding-right: 76px; }
  .pied { padding-bottom: calc(2rem + 56px); }
  .colonne-corde { --l: 34px; }
  /* Téléphone : le logo seul (le nom reste lu par les lecteurs d'écran), puis les trois boutons. */
  .navigation__nom { flex: none; margin-right: 0; padding: 0 .25rem; min-width: 44px; justify-content: center; }
  .navigation__texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .chiffres { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .chiffres strong { height: auto; }
  .galerie { grid-template-columns: minmax(0, 1fr); }
  .etapes, .agences__grille, .parcours__grille { grid-template-columns: minmax(0, 1fr); }
  .ouverture__actions .bouton { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cordiste { will-change: auto; } }
@media print { .colonne-corde { display: none; } main, .pied { margin-right: 0; } }

/* ---------------- Pages intérieures ---------------- */
.entete-page { background: var(--basalte); color: #f4f2ee; padding-top: calc(var(--nav-hauteur) + clamp(2.5rem, 6vw, 4.5rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.entete-page .surtitre { color: var(--orange); }
.entete-page h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 5.6rem); max-width: 16ch; margin-bottom: 1.2rem; }
.entete-page__intro { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: rgb(244 242 238 / .82); max-width: 44rem; margin: 0; }

/* Les rubriques de l'accueil : un titre, deux ou trois phrases, un bouton. */
.rubriques { background: var(--fond); }
.rubriques__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.rubrique { background: var(--surface); border-radius: 10px; padding: 1.6rem 1.5rem; border-top: 4px solid var(--orange); box-shadow: 0 10px 30px rgb(20 24 28 / .06); display: flex; flex-direction: column; }
.rubrique h3 { font-size: 1.8rem; margin-bottom: .6rem; }
.rubrique p { color: var(--texte-doux); line-height: 1.5; flex: 1; }
.rubrique .bouton { align-self: flex-start; min-height: 46px; }
.rubrique .bouton--clair { color: var(--texte); }
.rubrique .bouton--clair:hover { background: rgb(20 24 28 / .06); }

/* Appel à l'action en bas de page. */
.appel { background: var(--surface); text-align: center; }
.appel h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); max-width: 22ch; margin: 0 auto .8rem; }
.appel p { color: var(--texte-doux); max-width: 38rem; margin: 0 auto 1.4rem; font-size: 1.08rem; }

/* La frise des étapes. */
.etapes-page { background: var(--fond); }
.frise { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: etape; }
.frise__etape { position: relative; background: var(--surface); border-radius: 10px; padding: 1.4rem 1.4rem 1.4rem 4.6rem; box-shadow: 0 10px 30px rgb(20 24 28 / .06); }
.frise__numero { position: absolute; left: 1.2rem; top: 1.2rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--orange); color: var(--basalte); font-family: var(--titre); font-weight: 700; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; }
.frise__etape h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.frise__etape p { margin: 0; color: var(--texte-doux); }
@media (min-width: 900px) {
  .frise { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .frise__etape { padding: 4.2rem 1.2rem 1.4rem; }
  .frise__numero { left: 1.2rem; top: 1.2rem; }
  .frise__etape::after { content: ""; position: absolute; top: 2.4rem; right: -1rem; width: 1rem; height: 2px; background: var(--orange); }
  .frise__etape:last-child::after { display: none; }
}
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Demandes spécifiques : les types, puis le questionnaire. */
.types-demandes { background: var(--surface); }
.types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .8rem; }
.types li { background: var(--fond); border-radius: 8px; padding: 1rem 1.1rem; border-left: 4px solid var(--orange); }
.types strong { display: block; font-family: var(--titre); font-size: 1.3rem; text-transform: uppercase; margin-bottom: .2rem; }
.types span { color: var(--texte-doux); font-size: .97rem; }
.formulaire { background: var(--fond); }
.demande { max-width: 46rem; }
.demande__bloc { border: 0; padding: 0; margin: 0 0 1.6rem; min-width: 0; }
.demande__bloc legend { font-family: var(--titre); font-size: 1.6rem; text-transform: uppercase; margin-bottom: .8rem; }
.demande .champ { display: block; margin-bottom: .9rem; }
.demande .champ > span { display: block; font-size: .9rem; font-weight: 600; color: var(--texte-doux); margin-bottom: .3rem; }
.demande input:not([type="checkbox"]), .demande select, .demande textarea { width: 100%; min-height: 48px; padding: .6rem .8rem; border: 1px solid rgb(20 24 28 / .2); border-radius: 6px; background: var(--surface); font: inherit; color: var(--texte); }
.demande textarea { resize: vertical; }
.demande input:focus-visible, .demande select:focus-visible, .demande textarea:focus-visible { outline: 3px solid rgb(255 106 26 / .55); outline-offset: 1px; }
.demande__ligne { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .demande__ligne { grid-template-columns: 1fr 1fr; } }
.champ--photos input[type="file"] { padding: .5rem; opacity: .55; }
.champ--photos .aide { margin: 0 0 .5rem; }
.champ--case { display: flex; align-items: flex-start; gap: .7rem; }
.champ--case input { width: 22px; height: 22px; min-height: 0; margin-top: .15rem; flex: none; }
.champ--case span { font-size: .95rem; color: var(--texte); }
.demande__piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demande__erreur { background: #fdecec; color: #c4232a; padding: .7rem .9rem; border-radius: 6px; font-weight: 600; }
.demande .aide { color: var(--texte-doux); font-size: .95rem; margin-top: 1rem; }
.demande__confirmation { max-width: 46rem; background: var(--surface); border-radius: 10px; padding: 1.8rem; border-left: 5px solid var(--orange); }
.demande__confirmation h3 { font-size: 1.9rem; margin-bottom: .6rem; }
.demande__confirmation .bouton { margin-top: .6rem; color: var(--texte); }

/* Un élément hidden le reste, même avec une règle display ailleurs. */
[hidden] { display: none !important; }

/* Pied : plan du site, liens de contact. */
.pied a { color: #fff; }
.pied__liens { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1.2rem; }
.pied__liens a { color: rgb(244 242 238 / .85); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.pied__liens a:hover { color: #fff; text-decoration: underline; }
.coordonnees a { color: inherit; text-decoration: none; }
.coordonnees a:hover { text-decoration: underline; }

/* ---------------- Galerie photo complète et visionneuse ---------------- */
.galerie--complete { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.galerie__ouvrir { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.galerie__ouvrir:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.galerie--complete img { aspect-ratio: 4 / 5; }
.appel--clair { background: var(--surface); color: var(--texte); }
.visionneuse { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgb(13 16 19 / .96); color: #f4f2ee; }
.visionneuse::backdrop { background: rgb(13 16 19 / .9); }
.visionneuse__figure { margin: 0; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem var(--marge) 1rem; gap: .8rem; }
.visionneuse__image { max-width: 100%; max-height: calc(100dvh - 7.5rem); width: auto; height: auto; object-fit: contain; border-radius: 6px; background: #0d1013; }
.visionneuse__figure figcaption { font: 600 .95rem/1.4 var(--corps); text-align: center; max-width: 60ch; }
.visionneuse__compteur { color: rgb(244 242 238 / .6); margin-left: .5rem; }
.visionneuse__fermer, .visionneuse__fleche {
  position: absolute; z-index: 1; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgb(244 242 238 / .12); color: #f4f2ee; display: flex; align-items: center; justify-content: center;
}
.visionneuse__fermer:hover, .visionneuse__fleche:hover { background: var(--orange); color: var(--basalte); }
.visionneuse__fermer:focus-visible, .visionneuse__fleche:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.visionneuse__fermer svg, .visionneuse__fleche svg { width: 24px; height: 24px; }
.visionneuse__fermer { top: .75rem; right: .75rem; }
.visionneuse__fleche { top: 50%; transform: translateY(-50%); }
.visionneuse__fleche--avant { left: .75rem; }
.visionneuse__fleche--apres { right: .75rem; }
html.visionneuse-ouverte { overflow: hidden; }
@media (max-width: 1000px) { .galerie--complete { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .galerie--complete { grid-template-columns: minmax(0, 1fr); }
  .visionneuse__fleche { top: auto; bottom: .75rem; transform: none; }
  .visionneuse__figure { padding: 3.5rem .75rem 4.5rem; }
  .visionneuse__image { max-height: calc(100dvh - 10rem); }
}
