/* ==========================================================================
   Œil de Lynx — feuille de style du site
   Charte : docs/04-charte-graphique.md
   Organisation : 1. Polices · 2. Jetons · 3. Base · 4. Mise en page
                  5. Composants · 6. Pages · 7. Utilitaires · 8. Accessibilité / impression
   ========================================================================== */

/* 1. Polices (auto-hébergées, SIL OFL 1.1) ------------------------------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght.7660bd9909fb.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.260c81a4759b.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-italic.0a81fe197e0d.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* 2. Jetons de design ---------------------------------------------------- */
:root {
  /* Couleurs tirées du logo */
  --encre: #0d1b27;        /* texte principal */
  --nuit: #12273a;         /* fonds sombres, pupille */
  --petrole: #213947;      /* dégradés sombres */
  --sarcelle: #32595b;     /* liens, accents (7,3:1 sur crème) */
  --iris: #477664;         /* vert de l'iris */
  --bronze: #a48455;       /* circuits : décor et filets uniquement (3,3:1) */
  --bronze-fonce: #7a5f35; /* bronze lisible pour petits textes (5,7:1) */
  --or: #d9b77e;           /* bouton principal, accents sur fond sombre */
  --creme: #fdf8f2;        /* fond de page */
  --sable: #f3ece1;        /* sections alternées */
  --blanc: #ffffff;
  --gris: #56616b;         /* texte secondaire (6:1) */
  --filet: #e4dccf;        /* bordures */
  --erreur: #a3302a;
  --succes: #2f6b4f;
  --whatsapp: #25d366;

  /* Typographie */
  --police-titres: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --police-texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --taille-base: 1.0625rem; /* 17 px */
  --t-sm: 0.875rem;
  --t-h4: 1.125rem;
  --t-h3: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --t-h2: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
  --t-h1: clamp(2.1rem, 1.6rem + 2.6vw, 3.5rem);

  /* Espacements (échelle de 4 px) */
  --e-1: 0.25rem; --e-2: 0.5rem; --e-3: 0.75rem; --e-4: 1rem;
  --e-5: 1.5rem;  --e-6: 2rem;   --e-7: 3rem;    --e-8: 4.5rem;
  --section: clamp(3rem, 2rem + 5vw, 6rem);

  /* Formes */
  --rayon: 0.75rem;
  --rayon-petit: 0.5rem;
  --rayon-pilule: 999px;
  --ombre: 0 1px 2px rgb(13 27 39 / 0.06), 0 8px 24px rgb(13 27 39 / 0.08);
  --ombre-forte: 0 2px 4px rgb(13 27 39 / 0.08), 0 16px 40px rgb(13 27 39 / 0.14);

  --largeur: 72rem;
  --largeur-texte: 42rem;
  --entete-h: 4.5rem;
  --transition: 180ms ease;
}

/* 3. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--entete-h) + 1rem);
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: var(--taille-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img, svg, video, iframe { max-width: 100%; }
img, picture { display: block; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--police-titres);
  color: var(--nuit);
  line-height: 1.15;
  letter-spacing: -0.015em;
  word-spacing: 0.06em; /* espace entre mots trop serré en graisse forte */
  margin: 0 0 var(--e-4);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); font-weight: 800; }
h2 { font-size: var(--t-h2); font-weight: 750; }
h3 { font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.005em; }
h4 { font-size: var(--t-h4); font-weight: 700; }

p, ul, ol, dl, blockquote, figure { margin: 0 0 var(--e-4); }
p { text-wrap: pretty; }

a {
  color: var(--sarcelle);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition);
}
a:hover { color: var(--nuit); text-decoration-thickness: 2px; }

strong { font-weight: 650; }
small { font-size: var(--t-sm); }
hr { border: 0; border-top: 1px solid var(--filet); margin: var(--e-7) 0; }

::selection { background: var(--or); color: var(--nuit); }

/* 4. Mise en page -------------------------------------------------------- */
.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--e-4);
}
@media (min-width: 48rem) { .conteneur { padding-inline: var(--e-6); } }

.section { padding-block: var(--section); }
.section--sable { background: var(--sable); }
.section--nuit {
  background: var(--nuit);
  color: var(--sable);
}
.section--nuit h2, .section--nuit h3 { color: var(--blanc); }
.section--nuit a:not(.bouton) { color: var(--or); }

.section__entete { max-width: var(--largeur-texte); margin-bottom: var(--e-6); }
.section__entete--centre { margin-inline: auto; text-align: center; }

.grille {
  display: grid;
  gap: var(--e-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}

.contenu { max-width: var(--largeur-texte); }
.contenu--centre { margin-inline: auto; }

/* Mise en page « page intérieure » : bandeau de titre + corps */
.bandeau {
  background:
    radial-gradient(60rem 20rem at 110% -20%, rgb(71 118 100 / 0.18), transparent 60%),
    var(--sable);
  border-bottom: 1px solid var(--filet);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
}
.bandeau h1 { margin-bottom: var(--e-3); }
.bandeau .chapo { margin-bottom: 0; }

.corps { padding-block: var(--e-7) var(--section); }

/* 5. Composants ---------------------------------------------------------- */

/* 5.1 Surtitre et chapô */
.surtitre {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  font-family: var(--police-titres);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze-fonce);
  margin-bottom: var(--e-3);
}
.surtitre::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--bronze);
}
.section--nuit .surtitre, .hero .surtitre { color: var(--or); }
.section--nuit .surtitre::before, .hero .surtitre::before { background: var(--or); }

.chapo {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--gris);
  max-width: var(--largeur-texte);
}

/* 5.2 Boutons */
.bouton {
  --fond: var(--or);
  --texte: var(--nuit);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-2);
  min-height: 3rem;
  padding: var(--e-3) var(--e-5);
  border: 2px solid var(--fond);
  border-radius: var(--rayon-pilule);
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police-titres);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.bouton:hover {
  color: var(--texte);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgb(164 132 85 / 0.35);
}
.bouton .icone { width: 1.15em; height: 1.15em; }

.bouton--sombre { --fond: var(--nuit); --texte: var(--blanc); }
.bouton--sombre:hover { box-shadow: 0 8px 20px rgb(18 39 58 / 0.3); }
.bouton--contour { --fond: transparent; --texte: var(--nuit); border-color: var(--nuit); }
.bouton--contour:hover { background: var(--nuit); color: var(--blanc); box-shadow: none; }
.hero .bouton--contour, .section--nuit .bouton--contour { --texte: var(--blanc); border-color: rgb(255 255 255 / 0.5); }
.hero .bouton--contour:hover, .section--nuit .bouton--contour:hover { background: var(--blanc); color: var(--nuit); }

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: var(--e-1);
  font-weight: 600;
  text-decoration: none;
}
.lien-fleche .icone { width: 1.1em; height: 1.1em; transition: transform var(--transition); }
.lien-fleche:hover .icone { transform: translateX(3px); }

/* 5.3 Icônes */
.icone {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  stroke-width: 1.75;
  vertical-align: middle;
}

/* 5.4 En-tête et navigation */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(253 248 242 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--filet);
}
.entete__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-4);
  min-height: var(--entete-h);
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: var(--e-3);
  color: var(--nuit);
  text-decoration: none;
}
.marque:hover { color: var(--nuit); }
.marque img { width: 2.75rem; height: 2.75rem; border-radius: 50%; }
.marque__nom {
  font-family: var(--police-titres);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.marque__nom small {
  display: block;
  white-space: nowrap;
  margin-top: 0.3rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--bronze-fonce);
}

.entete__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--filet);
  border-radius: var(--rayon-petit);
  background: var(--blanc);
  color: var(--nuit);
  cursor: pointer;
}
.entete__burger .icone--fermer { display: none; }
.entete__burger[aria-expanded="true"] .icone--ouvrir { display: none; }
.entete__burger[aria-expanded="true"] .icone--fermer { display: block; }

.navigation {
  display: none;
  position: absolute;
  inset: 100% 0 auto;
  background: var(--creme);
  border-bottom: 1px solid var(--filet);
  box-shadow: var(--ombre);
  padding: var(--e-3) var(--e-4) var(--e-5);
}
.navigation.ouvert { display: block; }
.navigation ul { list-style: none; margin: 0; padding: 0; }
.navigation a:not(.bouton) {
  display: block;
  padding: var(--e-3) var(--e-2);
  color: var(--encre);
  font-weight: 550;
  text-decoration: none;
  border-bottom: 1px solid var(--filet);
}
.navigation a[aria-current="page"] { color: var(--sarcelle); }
.navigation .bouton { width: 100%; margin-top: var(--e-4); }

@media (min-width: 62rem) {
  .entete__burger { display: none; }
  .navigation {
    display: flex !important;
    align-items: center;
    gap: var(--e-5);
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .navigation ul { display: flex; gap: var(--e-1); }
  .navigation a:not(.bouton) {
    position: relative;
    padding: var(--e-2) var(--e-3);
    border: 0;
    font-size: 0.95rem;
  }
  .navigation a:not(.bouton)::after {
    content: "";
    position: absolute;
    left: var(--e-3);
    right: var(--e-3);
    bottom: 0.2rem;
    height: 2px;
    background: var(--bronze);
    transform: scaleX(0);
    transition: transform var(--transition);
  }
  .navigation a:not(.bouton):hover::after,
  .navigation a[aria-current="page"]::after { transform: scaleX(1); }
  .navigation .bouton { width: auto; margin: 0; min-height: 2.6rem; padding-block: var(--e-2); }
}

/* 5.5 Héros (accueil) */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--sable);
  background:
    radial-gradient(40rem 28rem at 85% 40%, rgb(71 118 100 / 0.45), transparent 65%),
    radial-gradient(30rem 20rem at 10% 110%, rgb(164 132 85 / 0.25), transparent 70%),
    linear-gradient(160deg, var(--nuit) 0%, var(--petrole) 100%);
  padding-block: clamp(3.5rem, 2rem + 7vw, 7.5rem);
}
/* Motif « circuits » du logo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='none' stroke='%23a48455' stroke-width='1'%3E%3Cpath d='M0 40h40l20 20h40M160 120h-50l-20-20H60M40 160v-30l20-20M120 0v30l-20 20'/%3E%3Ccircle cx='100' cy='60' r='3'/%3E%3Ccircle cx='60' cy='100' r='3'/%3E%3Ccircle cx='60' cy='110' r='3'/%3E%3Ccircle cx='100' cy='50' r='3'/%3E%3C/svg%3E");
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
.hero__grille {
  display: grid;
  gap: var(--e-7);
  align-items: center;
}
@media (min-width: 56rem) {
  .hero__grille { grid-template-columns: 1.2fr 0.8fr; }
}
.hero h1 { color: var(--blanc); max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--or); }
.hero__texte {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: #d6dde2;
  max-width: 38rem;
  margin-bottom: var(--e-6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--e-3); }
.hero__visuel { justify-self: center; }
/* L'emblème source fait 192 px : au-delà de ~16rem il devient flou (cf. charte, logo vectoriel à fournir) */
.hero__visuel img, .hero__visuel picture img {
  width: min(16rem, 45vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(217 183 126 / 0.4), 0 0 0 14px rgb(217 183 126 / 0.08), 0 30px 80px rgb(0 0 0 / 0.45);
}

/* 5.6 Cartes */
.carte {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.carte:hover, .carte:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--ombre-forte);
  border-color: var(--bronze);
}
.carte__image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.carte__corps {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--e-2);
  padding: var(--e-5);
}
.carte__icone {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--e-2);
  border-radius: var(--rayon-petit);
  background: linear-gradient(135deg, rgb(71 118 100 / 0.14), rgb(164 132 85 / 0.16));
  color: var(--sarcelle);
}
.carte h3 { font-size: 1.15rem; margin: 0; }
.carte h3 a { color: var(--nuit); text-decoration: none; }
/* Toute la carte est cliquable, sans imbriquer de liens */
.carte h3 a::after { content: ""; position: absolute; inset: 0; }
.carte p { margin: 0; color: var(--gris); font-size: 0.97rem; }
.carte__meta {
  margin-top: auto;
  padding-top: var(--e-3);
  font-size: var(--t-sm);
  color: var(--bronze-fonce);
  font-weight: 600;
}

/* 5.7 Chiffres clés */
.chiffres {
  display: grid;
  gap: var(--e-5);
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  text-align: center;
}
.chiffres strong {
  display: block;
  font-family: var(--police-titres);
  font-size: clamp(2.2rem, 1.8rem + 2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--sarcelle);
}
.chiffres span { color: var(--gris); font-size: 0.95rem; }

/* 5.8 Appel à l'action */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--rayon) * 1.5);
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  background:
    radial-gradient(30rem 16rem at 100% 0%, rgb(71 118 100 / 0.5), transparent 70%),
    var(--nuit);
  color: #d6dde2;
  text-align: center;
}
.cta h2 { color: var(--blanc); }
.cta p { max-width: 36rem; margin-inline: auto; margin-bottom: var(--e-5); }

/* 5.9 Citation et témoignages */
blockquote {
  position: relative;
  margin-inline: 0;
  padding: var(--e-5) var(--e-5) var(--e-5) var(--e-6);
  border-left: 3px solid var(--bronze);
  background: var(--blanc);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  font-size: 1.1rem;
}
blockquote p:last-of-type { margin-bottom: 0; }
blockquote footer { margin-top: var(--e-3); font-size: var(--t-sm); font-weight: 600; color: var(--bronze-fonce); }
.temoignages .grille blockquote { height: 100%; margin: 0; }

/* 5.10 FAQ */
.faq details {
  border-bottom: 1px solid var(--filet);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--e-4);
  padding: var(--e-4) 0;
  font-family: var(--police-titres);
  font-weight: 700;
  color: var(--nuit);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--bronze);
  transition: transform var(--transition);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > :not(summary) { padding-bottom: var(--e-4); color: var(--gris); }

/* 5.11 Médias */
figure img {
  border-radius: var(--rayon);
  width: 100%;
  max-width: min(100%, var(--largeur-max, 100%)); /* --largeur-max : largeur d'origine (blocks/image.html) */
  margin-inline: auto;
}
figcaption { margin-top: var(--e-2); font-size: var(--t-sm); color: var(--gris); text-align: center; }
.video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--rayon);
}
.galerie {
  display: grid;
  gap: var(--e-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  margin-bottom: var(--e-5);
}
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon-petit); }

/* 5.12 Contenu riche (prose) */
/* Wagtail enveloppe chaque bloc dans <div class="block-…"> : sélecteurs descendants, pas enfants directs */
.prose h2 { margin-top: var(--e-7); }
.prose h3 { margin-top: var(--e-6); }
.prose > :first-child h2, .prose > :first-child h3,
.prose > h2:first-child, .prose > h3:first-child,
.prose .cta h2 { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--e-2); }
.prose ul li::marker { color: var(--bronze); }
.prose .etiquettes { padding-left: 0; margin-top: var(--e-6); }
.prose .etiquettes li + li { margin-top: 0; }
.prose figure, .prose .video, .prose .cta, .prose blockquote { margin-block: var(--e-6); }

/* 5.13 Filtres (pilules) */
.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2);
  margin-bottom: var(--e-6);
}
.filtres a {
  padding: var(--e-2) var(--e-4);
  border: 1px solid var(--filet);
  border-radius: var(--rayon-pilule);
  background: var(--blanc);
  color: var(--encre);
  font-size: 0.92rem;
  font-weight: 550;
  text-decoration: none;
}
.filtres a:hover { border-color: var(--sarcelle); color: var(--sarcelle); }
.filtres a[aria-current="true"] { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }

/* 5.14 Fil d'Ariane */
.fil-ariane { margin-bottom: var(--e-4); font-size: var(--t-sm); color: var(--gris); }
.fil-ariane ol { display: flex; flex-wrap: wrap; gap: var(--e-2); list-style: none; margin: 0; padding: 0; }
.fil-ariane li + li::before { content: "›"; margin-right: var(--e-2); color: var(--bronze); }
.fil-ariane a { color: var(--gris); }

/* 5.15 Fiche (réalisation, formation) */
.fiche {
  display: grid;
  gap: var(--e-4);
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  padding: var(--e-5);
  margin-bottom: var(--e-6);
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
}
.fiche dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze-fonce);
}
.fiche dd { margin: var(--e-1) 0 0; font-weight: 600; color: var(--nuit); }
.fiche--compacte { grid-template-columns: 1fr; padding: 0; border: 0; margin-bottom: var(--e-5); }
.etiquettes { display: flex; flex-wrap: wrap; gap: var(--e-2); list-style: none; padding: 0; }
.etiquettes li, .etiquettes a {
  padding: 0.15rem var(--e-3);
  border-radius: var(--rayon-pilule);
  background: var(--sable);
  color: var(--petrole);
  font-size: 0.85rem;
  text-decoration: none;
}

/* 5.16 Formulaires */
.formulaire {
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.formulaire form > div, .formulaire .champ { margin-bottom: var(--e-5); }
label {
  display: block;
  margin-bottom: var(--e-2);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--nuit);
}
input:not([type="checkbox"], [type="radio"], [type="submit"]), select, textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: var(--e-3) var(--e-4);
  border: 1px solid #cfc5b5;
  border-radius: var(--rayon-petit);
  background: var(--creme);
  color: var(--encre);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
textarea { min-height: 9rem; height: 11rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sarcelle);
  background: var(--blanc);
  box-shadow: 0 0 0 3px rgb(50 89 91 / 0.2);
}
input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem var(--e-2) 0 0;
  accent-color: var(--sarcelle);
  float: left;
}
/* Django place le libellé avant la case : on les remet côte à côte, case à gauche */
.formulaire div:has(> input[type="checkbox"]) {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: flex-start;
  gap: var(--e-3);
}
.formulaire div:has(> input[type="checkbox"]) label { margin: 0; font-weight: 450; }
.formulaire input[type="checkbox"] { float: none; margin: 0.15rem 0 0; }
.helptext, .formulaire .aide { display: block; margin-top: var(--e-1); font-size: var(--t-sm); color: var(--gris); }
.errorlist {
  list-style: none;
  margin: var(--e-2) 0 0;
  padding: 0;
  color: var(--erreur);
  font-size: var(--t-sm);
  font-weight: 600;
}
.errorlist + input, [aria-invalid="true"] { border-color: var(--erreur) !important; }
.message-succes {
  padding: var(--e-4) var(--e-5);
  border-left: 4px solid var(--succes);
  border-radius: var(--rayon-petit);
  background: #e7f2ec;
  color: var(--succes);
  font-weight: 600;
}

/* Recherche */
.recherche { display: flex; gap: var(--e-2); margin-bottom: var(--e-6); }
.recherche input { flex: 1; }
.resultats { list-style: none; padding: 0; }
.resultats li { padding: var(--e-4) 0; border-bottom: 1px solid var(--filet); }
.resultats h2 { font-size: 1.15rem; margin-bottom: var(--e-1); }

/* 5.17 Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-4);
  margin-top: var(--e-7);
  color: var(--gris);
}

/* 5.18 Pied de page */
.pied {
  background: var(--encre);
  color: #b9c3cb;
  font-size: 0.95rem;
  padding-block: var(--e-8) var(--e-5);
  border-top: 3px solid var(--bronze);
}
.pied a { color: var(--sable); text-decoration: none; }
.pied a:hover { color: var(--or); text-decoration: underline; }
.pied__grille {
  display: grid;
  gap: var(--e-6);
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-bottom: var(--e-7);
}
.pied h2 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: var(--e-4);
}
.pied .marque { color: var(--blanc); margin-bottom: var(--e-4); }
.pied .marque__nom small { color: var(--or); }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li + li { margin-top: var(--e-2); }
.pied address { font-style: normal; }
.pied__contact li { display: flex; gap: var(--e-3); align-items: flex-start; }
.pied__contact .icone { width: 1.1rem; height: 1.1rem; margin-top: 0.3rem; color: var(--or); }
.pied__reseaux { display: flex; gap: var(--e-2); }
.pied__reseaux a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 50%;
}
.pied__reseaux a:hover { border-color: var(--or); }
.pied__reseaux .icone { width: 1.1rem; height: 1.1rem; }
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--e-3);
  padding-top: var(--e-5);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: var(--t-sm);
}
.pied__bas ul { display: flex; flex-wrap: wrap; gap: var(--e-4); }
.pied__bas li + li { margin: 0; }
.pied__bas p { margin: 0; }

/* 5.19 Bouton WhatsApp flottant */
.whatsapp {
  position: fixed;
  right: var(--e-4);
  bottom: var(--e-4);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--encre);
  box-shadow: 0 6px 20px rgb(13 27 39 / 0.3);
  transition: transform var(--transition);
}
.whatsapp:hover { color: var(--encre); transform: scale(1.06); }
.whatsapp .icone { width: 1.75rem; height: 1.75rem; }

/* 6. Pages --------------------------------------------------------------- */
.page-accueil .section:first-of-type { padding-top: var(--section); }
.service__entete { display: flex; align-items: center; gap: var(--e-4); }
.service__entete .carte__icone { margin: 0 0 var(--e-4); width: 3.5rem; height: 3.5rem; }
.service__entete .carte__icone .icone { width: 1.75rem; height: 1.75rem; }

.deux-colonnes { display: grid; gap: var(--e-7); }
@media (min-width: 62rem) {
  .deux-colonnes { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; }
  .deux-colonnes > aside { position: sticky; top: calc(var(--entete-h) + var(--e-5)); }
}
.encart {
  padding: var(--e-5);
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-top: 3px solid var(--bronze);
  border-radius: var(--rayon);
}
.encart h2 { font-size: 1.15rem; }
.encart ul { list-style: none; padding: 0; margin: 0 0 var(--e-5); }
.encart li { display: flex; gap: var(--e-3); padding: var(--e-2) 0; border-bottom: 1px solid var(--filet); }
.encart li:last-child { border: 0; }
.encart .icone { width: 1.2rem; height: 1.2rem; margin-top: 0.25rem; color: var(--sarcelle); }
.encart ul:last-child { margin-bottom: 0; }
.encart .bouton { width: 100%; }

.page-erreur { text-align: center; padding-block: var(--e-8); }
.page-erreur__code {
  font-family: var(--police-titres);
  font-size: clamp(4rem, 3rem + 6vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: var(--bronze);
}

/* 7. Utilitaires --------------------------------------------------------- */
.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;
}
/* Champ piège anti-spam : invisible pour les humains */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.texte-centre { text-align: center; }
.mt-6 { margin-top: var(--e-6); }

/* 8. Accessibilité et impression ---------------------------------------- */
.lien-evitement {
  position: absolute;
  left: var(--e-4);
  top: -4rem;
  z-index: 100;
  padding: var(--e-3) var(--e-4);
  border-radius: var(--rayon-petit);
  background: var(--nuit);
  color: var(--blanc);
  font-weight: 600;
}
.lien-evitement:focus { top: var(--e-3); color: var(--blanc); }

:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--nuit :focus-visible, .hero :focus-visible, .pied :focus-visible { outline-color: var(--blanc); }

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

@media print {
  .entete, .pied, .whatsapp, .hero::before, .filtres, form { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
  .contenu a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
