/* MD Toiture — artisan haut de gamme.
   Mise en page : conteneur de 1200 px, sections pleine largeur qui alternent fond
   clair (enduit) et fond sombre (ardoise) ; la tuile ne sert qu'aux actions ; la
   frise de tuiles marque les ruptures et la méthode. */
:root {
  --fond: #f5efe4;            /* enduit chaud */
  --fond-2: #ebe2d3;          /* section claire alternée */
  --papier: #fbf8f2;          /* cartes, formulaires */
  --encre: #20272c;
  --encre-douce: #4f5b63;
  --ardoise: #2c3a43;         /* sections sombres */
  --sur-sombre: #f2ece2;
  --sur-sombre-doux: #b9c4cb;
  --tuile: #a8492a;           /* actions */
  --tuile-fonce: #8b3a1f;
  --tuile-texte: #8f3c21;
  --sur-tuile: #ffffff;
  --mousse: #56702f;
  --trait: #d8cdbb;
  --trait-sombre: rgba(242, 236, 226, 0.16);
  --a-completer: #a86a12;

  --f-titre: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-texte: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --t-xs: 0.8125rem; --t-s: 0.9375rem; --t-m: 1.0625rem; --t-l: 1.25rem;
  --t-h3: 1.3rem;
  --t-h2: clamp(1.9rem, 1.3rem + 2vw, 2.75rem);
  --t-h1: clamp(2.3rem, 1.3rem + 4vw, 4.25rem);
  --large: 1200px;
  --section: clamp(4rem, 8vw, 7.5rem);
  --rayon: 4px;
  --entete: 76px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #171d21; --fond-2: #1d252a; --papier: #222b31; --encre: #ece5d9; --encre-douce: #aeb8be;
    --ardoise: #0f1418; --sur-sombre: #ece5d9; --sur-sombre-doux: #9fabb3;
    --tuile: #c8673f; --tuile-fonce: #db7d55; --tuile-texte: #e28c66; --sur-tuile: #14191c;
    --mousse: #8fae5d; --trait: #34404a; --a-completer: #e3a548;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete) + 12px); }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 var(--t-m)/1.65 var(--f-texte); overflow-x: clip; }
img, svg { max-width: 100%; height: auto; display: block; }
/* Toutes les icônes inline : taille fixe par défaut, jamais étirées (les règles par contexte plus bas l'ajustent). */
.icone { width: 1.1em; height: 1.1em; flex-shrink: 0; }
a { color: var(--tuile-texte); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--tuile); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-titre); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance;
  font-variation-settings: "opsz" 96, "SOFT" 30; letter-spacing: -0.012em; overflow-wrap: break-word; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: 0; }
p { margin: 0; }

.conteneur { width: 100%; max-width: calc(var(--large) + 40px); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.evitement { position: absolute; left: -999px; top: 0; z-index: 50; background: var(--papier); padding: 0.7rem 1rem; }
.evitement:focus { left: 1rem; top: 1rem; }

/* ---------- en-tête fixe ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--fond); }
.entete { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--fond); border-bottom: 1px solid var(--trait); }
.entete .conteneur { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; min-height: var(--entete); }
.marque { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--encre); text-decoration: none; min-width: 0; }
.marque strong { font-family: var(--f-titre); font-size: 1.35rem; font-weight: 700; white-space: nowrap; }
.logo-reserve { width: 46px; height: 46px; flex: none; border: 2px dashed var(--a-completer); border-radius: 50%; display: grid; place-items: center;
  font-size: 0.55rem; font-weight: 700; color: var(--a-completer); text-transform: uppercase; text-align: center; line-height: 1.05; letter-spacing: .03em; }
.nav { justify-self: center; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem 1.6rem; }
.nav a { color: var(--encre); text-decoration: none; font-size: var(--t-s); font-weight: 500; padding-block: 0.4rem; display: block; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--tuile-texte); box-shadow: inset 0 -2px 0 currentColor; }
.entete-actions { display: flex; align-items: center; gap: 0.6rem; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--trait); border-radius: var(--rayon); background: transparent;
  color: var(--encre); cursor: pointer; padding: 0; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .entete .conteneur { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
  .marque { grid-row: 1; grid-column: 1; }
  .entete-actions { grid-row: 1; grid-column: 2; }
  .burger { display: inline-grid; }
  .nav { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; padding-bottom: 1rem; }
  .js .nav { display: none; }
  .js .entete[data-ouvert="true"] .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--trait); }
  .nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--trait); font-size: var(--t-m); }
  .nav a:hover, .nav a[aria-current="page"] { box-shadow: none; }
}
@media (max-width: 560px) { .entete .bouton-appel { display: none; } .marque strong { font-size: 1.2rem; } }

/* ---------- boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; font: 600 var(--t-m)/1.2 var(--f-texte);
  text-decoration: none; border: 1.5px solid transparent; border-radius: var(--rayon); padding: 0.95rem 1.5rem; cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease; }
.bouton svg { width: 1.1em; height: 1.1em; flex: none; }
.bouton.plein { background: var(--tuile); color: var(--sur-tuile); }
.bouton.plein:hover { background: var(--tuile-fonce); transform: translateY(-1px); }
.bouton.contour { border-color: currentColor; color: inherit; background: transparent; }
.bouton.contour:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.bouton.clair { background: #f4eee4; color: #20272c; }
.bouton.clair:hover { background: #fff; }
.bouton.petit { padding: 0.7rem 1.1rem; font-size: var(--t-s); }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* bouton d'appel flottant (mobile) */
.appel-flottant { display: none; }
@media (max-width: 760px) {
  .appel-flottant { display: inline-flex; position: fixed; z-index: 45; right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 8px 24px rgba(0,0,0,.28); border-radius: 999px; padding: 0.9rem 1.3rem; }
  .pied { padding-bottom: 5rem; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section.claire-2 { background: var(--fond-2); }
.section.sombre { background: var(--ardoise); color: var(--sur-sombre); }
.section.sombre a:not(.bouton) { color: var(--sur-sombre); }
.section > .conteneur { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.surtitre { font: 600 var(--t-xs)/1.3 var(--f-texte); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tuile-texte); }
.sombre .surtitre, .bandeau .surtitre, .heros .surtitre { color: #e3a689; }
.tete { display: grid; gap: 1rem; max-width: 46rem; min-width: 0; }
.tete.centre { justify-self: center; text-align: center; }
.tete p:not(.surtitre) { color: var(--encre-douce); font-size: var(--t-l); line-height: 1.55; }
.sombre .tete p:not(.surtitre) { color: var(--sur-sombre-doux); }
.prose { display: grid; gap: 1.1rem; max-width: 64ch; min-width: 0; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.prose p { color: var(--encre-douce); }
.aide { font-size: var(--t-xs); color: var(--encre-douce); }
.sombre .aide { color: var(--sur-sombre-doux); }
.frise { height: 22px; background: radial-gradient(circle at 50% 0, transparent 10px, var(--tuile) 11px) 0 0 / 22px 22px repeat-x; }
.frise.vers-sombre { background-color: var(--ardoise); }

/* ---------- héros photo ---------- */
/* Mobile : la hauteur suit le contenu. Ordinateur : environ 60vh, 36rem au plus (le contenu peut l'agrandir). */
.heros { position: relative; isolation: isolate; color: #f4eee4; display: grid; align-items: end; background: #20272c; }
.heros > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* Photo pleine largeur sans voile : dégradé sombre seulement derrière le texte
   (à gauche sur grand écran, vers le bas sur mobile). */
.heros::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18,24,28,.84) 0%, rgba(18,24,28,.66) 38%, rgba(18,24,28,.22) 62%, rgba(18,24,28,0) 78%); }
.heros h1, .heros .chapo, .heros .sous-titre { text-shadow: 0 1px 12px rgba(10,14,16,.45); }
@media (max-width: 760px) {
  .heros::after { background: linear-gradient(180deg, rgba(18,24,28,.25) 0%, rgba(18,24,28,.62) 38%, rgba(18,24,28,.9) 100%); }
}
.heros .conteneur { padding-block: clamp(4rem, 10vw, 7rem) clamp(3rem, 6vw, 5rem); display: grid; gap: 1.5rem; }
@media (min-width: 761px) {
  .heros { min-height: min(60vh, 36rem); }
  .heros .conteneur { padding-block: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 3vw, 3rem); gap: 1.25rem; }
}
.heros h1 { max-width: 19ch; }
.heros .sous-titre { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); color: #f4eee4; max-width: 42rem; }
.heros .sous-titre svg, .zone-pied svg { width: 1.3em; height: 1.3em; flex: none; color: #e3a689; margin-top: .1em; }
.heros .chapo { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); max-width: 40rem; color: #e6dfd4; }
.heros .credit { font-size: var(--t-xs); color: #cfc7ba; }
.heros .a-completer, .bandeau .a-completer { color: #f2c377; outline-color: #f2c377; background: rgba(0,0,0,.25); }

/* bandeau photo des pages intérieures */
.bandeau { position: relative; isolation: isolate; color: #f4eee4; background: #20272c; }
.bandeau > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bandeau::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18,24,28,.9), rgba(18,24,28,.6)); }
.bandeau .conteneur { padding-block: clamp(3rem, 7vw, 5.5rem); display: grid; gap: 1.1rem; }
.bandeau h1 { max-width: 18ch; }
.bandeau .chapo { font-size: var(--t-l); color: #e6dfd4; max-width: 42rem; }
.ariane { font-size: var(--t-xs); }
.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ariane li + li::before { content: "/"; margin-right: 0.4rem; opacity: .6; }
.ariane a { color: inherit; }

/* ---------- garanties ---------- */
.garanties { background: var(--ardoise); color: var(--sur-sombre); }
.garanties ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.garanties li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.3rem 1rem; align-items: start; padding: 2.2rem 1.5rem; border-left: 1px solid var(--trait-sombre); min-width: 0; }
.garanties li:first-child { border-left: 0; padding-left: 0; }
.garanties svg { width: 34px; height: 34px; grid-row: span 2; color: #e3a689; }
.garanties strong { font-family: var(--f-titre); font-size: 1.15rem; font-weight: 600; }
.garanties span { font-size: var(--t-s); color: var(--sur-sombre-doux); }
.garanties .a-completer { color: #f2c377; outline-color: #f2c377; }
@media (max-width: 960px) {
  .garanties ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .garanties li { border-left: 0; border-top: 1px solid var(--trait-sombre); padding: 1.6rem 1.25rem 1.6rem 0; }
  .garanties li:first-child { padding-left: 0; }
  .garanties li:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 560px) { .garanties ul { grid-template-columns: 1fr; } .garanties li:nth-child(2) { border-top: 1px solid var(--trait-sombre); } }

/* ---------- grilles ---------- */
.grille-3 { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille-2 { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.grille-2.haut { align-items: start; }
.grille-3 > *, .grille-2 > * { min-width: 0; }
@media (max-width: 760px) { .grille-3, .grille-2 { grid-template-columns: 1fr; } }

/* cartes prestations */
.carte { position: relative; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; display: grid;
  grid-template-rows: auto 1fr; transition: transform .2s ease, box-shadow .2s ease; }
.carte:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 26, 30, .12); }
.carte figure, .carte figure img { border-radius: 0; }
.carte figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.carte figcaption { display: none; }
.carte .corps { padding: 1.5rem; display: grid; gap: 0.7rem; align-content: start; }
.carte p { color: var(--encre-douce); }
.carte .lien { font-weight: 600; color: var(--tuile-texte); margin-top: 0.3rem; }
.carte .lien::after { content: " →"; }
.carte h3 a { color: inherit; text-decoration: none; }
.carte h3 a::after { content: ""; position: absolute; inset: 0; }

/* figures */
figure { margin: 0; display: grid; gap: 0.6rem; min-width: 0; }
figure img { width: 100%; border-radius: var(--rayon); }
figcaption { font-size: var(--t-xs); color: var(--encre-douce); }
.sombre figcaption { color: var(--sur-sombre-doux); }

/* espaces réservés */
.a-completer { outline: 2px dashed var(--a-completer); outline-offset: 2px; color: var(--a-completer); font-weight: 600;
  background: color-mix(in srgb, var(--a-completer) 10%, transparent); padding: 0 .25em; border-radius: 3px; overflow-wrap: anywhere; }
.sombre .a-completer, .pied .a-completer { color: #f2c377; outline-color: #f2c377; }

/* ---------- avant / après ---------- */
.comparateur { position: relative; overflow: hidden; border-radius: var(--rayon); aspect-ratio: 16 / 10; max-width: 100%; background: var(--trait); }
.comparateur img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.comparateur .apres { clip-path: inset(0 0 0 var(--coupe, 50%)); }
.comparateur .ligne { position: absolute; top: 0; bottom: 0; left: var(--coupe, 50%); width: 2px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.comparateur .poignee { position: absolute; top: 50%; left: var(--coupe, 50%); width: 46px; height: 46px; border-radius: 50%; background: #fff;
  transform: translate(-50%, -50%); pointer-events: none; display: grid; place-items: center; color: #20272c; box-shadow: 0 4px 14px rgba(0,0,0,.3); font-weight: 700; font-size: .9rem; }
.comparateur .etiquette { position: absolute; top: 0.9rem; font: 600 var(--t-xs) var(--f-texte); letter-spacing: .1em; text-transform: uppercase;
  background: rgba(18,24,28,.78); color: #fff; padding: .35rem .7rem; border-radius: 3px; }
.comparateur .g { left: .9rem; } .comparateur .d { right: .9rem; }
.comparateur input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.comparateur:focus-within .poignee { outline: 3px solid var(--tuile); outline-offset: 2px; }
.galerie { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }

/* ---------- méthode sur une frise ---------- */
.methode { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; position: relative; counter-reset: etape; }
.methode::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--tuile) 0 14px, transparent 14px 22px); }
.methode li { counter-increment: etape; display: grid; gap: 0.7rem; align-content: start; position: relative; min-width: 0; }
.methode li::before { content: counter(etape); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fond-2); border: 2px solid var(--tuile); color: var(--tuile-texte); font: 600 1.4rem var(--f-titre); position: relative; }
.methode p { color: var(--encre-douce); }
@media (max-width: 860px) {
  .methode { grid-template-columns: 1fr; gap: 1.8rem; }
  .methode::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--tuile) 0 14px, transparent 14px 22px); }
  .methode li { grid-template-columns: 56px minmax(0, 1fr); column-gap: 1.25rem; }
  .methode li::before { grid-row: span 2; }
}

/* ---------- avis ---------- */
.avis { display: grid; gap: 1rem; align-content: start; padding: 2rem; border: 1px solid var(--trait-sombre); border-radius: var(--rayon); min-width: 0; }
.avis .etoiles { color: #e3a689; font-size: var(--t-s); font-weight: 600; letter-spacing: .04em; }
.avis blockquote { margin: 0; font-family: var(--f-titre); font-size: 1.2rem; line-height: 1.45; }
.avis cite { font-style: normal; font-size: var(--t-s); color: var(--sur-sombre-doux); }

/* ---------- zone ---------- */
.communes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.communes li { border: 1px solid var(--trait); border-radius: 999px; padding: .35rem .9rem; font-size: var(--t-s); }

/* ---------- avantages, FAQ ---------- */
.avantages { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.avantages li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .25rem 1rem; min-width: 0; }
.avantages svg { width: 28px; height: 28px; color: #a9c47a; grid-row: span 2; }
.avantages strong { font-family: var(--f-titre); font-size: 1.15rem; font-weight: 600; }
.avantages span { color: var(--sur-sombre-doux); }
@media (max-width: 760px) { .avantages { grid-template-columns: 1fr; } }
.faq { display: grid; max-width: 52rem; border-top: 1px solid var(--trait); min-width: 0; }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; font-family: var(--f-titre); font-size: 1.2rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 1.05rem; font: 400 1.6rem var(--f-texte); color: var(--tuile-texte); }
.faq details[open] summary::after { content: "−"; }
.faq .reponse { padding: 0 0 1.4rem; color: var(--encre-douce); max-width: 64ch; }

/* tableau des végétaux */
.tableau { overflow-x: auto; min-width: 0; }
.tableau table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: var(--t-s); }
.tableau th, .tableau td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
.legende-tableau { caption-side: bottom; text-align: left; padding-top: .7rem; }
.pastille { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; margin-right: .5rem; vertical-align: -.05em; }
.p-mousse { background: #5b7337; } .p-lichen { background: #a89a5a; } .p-algue { background: #2b2f2c; box-shadow: 0 0 0 1px var(--trait); }

/* ---------- appel final ---------- */
.appel-final { background: var(--tuile); color: var(--sur-tuile); }
.appel-final .conteneur { padding-block: clamp(3.5rem, 7vw, 5.5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.appel-final p { font-size: var(--t-l); opacity: .92; margin-top: .6rem; }
.appel-final .bouton.contour { color: var(--sur-tuile); }
.appel-final .a-completer { color: inherit; outline-color: currentColor; background: rgba(0,0,0,.12); }
@media (max-width: 760px) { .appel-final .conteneur { grid-template-columns: 1fr; } }

/* ---------- formulaire ---------- */
.formulaire { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: clamp(1.4rem, 3vw, 2.5rem); display: grid; gap: 1.3rem; min-width: 0; }
.champs { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .champs { grid-template-columns: 1fr; } }
.champ { display: grid; gap: .4rem; min-width: 0; } .champ.large { grid-column: 1 / -1; }
label, legend { font-weight: 600; font-size: var(--t-s); }
input, select, textarea { font: inherit; color: var(--encre); background: var(--fond); border: 1.5px solid var(--trait); border-radius: var(--rayon); padding: .8rem .9rem; width: 100%; min-width: 0; }
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--tuile); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tuile) 25%, transparent); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; min-width: 0; }
.choix { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.choix label { font-weight: 400; display: inline-flex; gap: .5rem; align-items: center; }
.choix input, .consentement input { width: auto; accent-color: var(--tuile); }
.consentement { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.statut { font-weight: 600; min-height: 1.5em; } .statut.ok { color: var(--mousse); } .statut.erreur { color: var(--tuile-texte); }
[aria-invalid="true"] { border-color: var(--tuile-texte); }
.encart { display: grid; gap: 1rem; align-content: start; padding: 2rem; background: var(--ardoise); color: var(--sur-sombre); border-radius: var(--rayon); min-width: 0; }
.encart p { color: var(--sur-sombre-doux); }
.encart .a-completer { color: #f2c377; outline-color: #f2c377; }

/* coordonnées */
.coordonnees { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .6rem 2rem; margin: 0; }
.coordonnees dt { font-weight: 600; } .coordonnees dd { margin: 0; min-width: 0; }
@media (max-width: 480px) { .coordonnees { grid-template-columns: 1fr; gap: .2rem; } .coordonnees dd { margin-bottom: .8rem; } }

/* ---------- pied ---------- */
.pied { background: var(--ardoise); color: var(--sur-sombre); font-size: var(--t-s); }
.pied .conteneur { padding-block: 3.5rem 2.5rem; display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr; }
.pied .conteneur > * { min-width: 0; }
.pied h2 { font-size: 1.15rem; margin-bottom: .9rem; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.pied a { color: var(--sur-sombre); }
.pied p { color: var(--sur-sombre-doux); max-width: 32ch; }
.pied .bas { grid-column: 1 / -1; border-top: 1px solid var(--trait-sombre); padding-top: 1.5rem; color: var(--sur-sombre-doux); font-size: var(--t-xs); }
@media (max-width: 760px) { .pied .conteneur { grid-template-columns: 1fr; gap: 2rem; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- contenu réel (04/11) : logo, sous-menu, cartes, galerie ---------- */
.logo { height: 46px; width: auto; border-radius: 6px; background: #fff; flex: none; }
.marque-texte { display: grid; line-height: 1.1; min-width: 0; }
.marque-texte small { font-size: 0.72rem; color: var(--encre-douce); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.sous-menu { position: relative; }
.ouvrir-sous-menu { font: 500 var(--t-s) var(--f-texte); color: var(--encre); background: none; border: 0; padding: .4rem 0; cursor: pointer; display: inline-flex; gap: .35rem; align-items: center; white-space: nowrap; }
.ouvrir-sous-menu[data-actif="oui"], .ouvrir-sous-menu:hover { color: var(--tuile-texte); }
.sous-menu > ul { list-style: none; margin: 0; padding: .5rem 0; display: none; position: absolute; top: calc(100% + 10px); left: -1rem; min-width: 17rem;
  background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: 0 14px 30px rgba(20,26,30,.14); z-index: 5; }
.sous-menu > ul a { padding: .6rem 1rem; white-space: nowrap; }
.sous-menu > ul a:hover, .sous-menu > ul a[aria-current="page"] { box-shadow: none; background: var(--fond); }
.sous-menu:hover > ul, .sous-menu:focus-within > ul, .sous-menu[data-ouvert="true"] > ul { display: block; }
@media (max-width: 1100px) {
  .ouvrir-sous-menu { width: 100%; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid var(--trait); font-size: var(--t-m); }
  .sous-menu > ul, .sous-menu:hover > ul, .sous-menu:focus-within > ul { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; background: transparent; }
  .js .sous-menu:not([data-ouvert="true"]) > ul { display: none; }
}
@media (max-width: 420px) { .marque-texte small { display: none; } }
@media (min-width: 761px) { .carte.large { grid-column: span 2; } .carte.large figure img { aspect-ratio: 16 / 7; } }
.carte-appel { background: var(--ardoise); color: var(--sur-sombre); border-color: transparent; align-content: center; grid-template-rows: 1fr; }
.carte-appel p { color: var(--sur-sombre-doux); }
.carte-appel:hover { transform: none; box-shadow: none; }
.photo-prestation img { aspect-ratio: 4 / 3; object-fit: cover; }
.galerie-photos { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.galerie-photos img { aspect-ratio: 4 / 3; object-fit: cover; }
.liste-liens { list-style: none; margin: 0; padding: 0; display: grid; }
.liste-liens a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--trait-sombre); text-decoration: none; color: var(--sur-sombre); }
.liste-liens svg { width: 18px; height: 18px; flex: none; color: #e3a689; }
.encart h3 { font-size: 1.35rem; line-height: 1.3; }
.encart .bouton.contour { color: var(--sur-sombre); }
.numero { font-family: var(--f-titre); font-size: 1.6rem; color: var(--sur-sombre) !important; }
.heros .credit { margin-top: -.5rem; }

/* Zone d'intervention : carte simplifiée et départements */
.zone-pied { display: flex; gap: .5rem; align-items: flex-start; margin-top: .6rem; color: var(--sur-sombre) !important; font-weight: 600; }
.departements { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.departements li, .departements a { display: inline-flex; align-items: center; gap: .55rem; }
.departements li { border: 1px solid var(--trait); border-radius: 999px; padding: .3rem .9rem .3rem .35rem; font-size: var(--t-s); background: var(--papier); }
.departements li.siege { border-color: var(--tuile); }
.departements a { color: var(--encre); text-decoration: none; }
.code-dep { display: inline-grid; place-items: center; min-width: 2.1em; height: 2.1em; padding: 0 .3em; border-radius: 999px;
  background: var(--fond-2); color: var(--encre); font: 600 .85em/1 var(--f-texte); letter-spacing: .02em; }
.siege .code-dep, .departement#dep-37 .code-dep { background: var(--tuile); color: var(--sur-tuile); }
h2 .code-dep { font-size: .55em; vertical-align: .3em; margin-right: .2em; }
.claire-2 .code-dep { background: var(--papier); }
.figure-carte { margin: 0; display: grid; gap: .75rem; min-width: 0; }
.figure-carte figcaption { font-size: var(--t-xs); color: var(--encre-douce); }
.carte-zone { width: 100%; max-width: 560px; margin-inline: auto; }
.carte-zone .dep { fill: var(--fond-2); stroke: var(--papier); stroke-width: 3; stroke-linejoin: round; }
.carte-zone .dep-37 { fill: var(--ardoise); stroke: var(--tuile); stroke-width: 4; stroke-linejoin: round; }
.carte-zone .code { fill: var(--encre-douce); font: 700 30px var(--f-titre); }
.carte-zone .code-37 { fill: var(--sur-sombre); font: 700 44px var(--f-titre); }
.carte-zone .ville { fill: var(--encre); stroke: var(--papier); stroke-width: 2; }
.carte-zone .nom-ville { fill: var(--encre); font: 600 19px var(--f-texte); paint-order: stroke; stroke: var(--fond); stroke-width: 4px; stroke-linejoin: round; }
.carte-zone .siege { fill: var(--tuile); stroke: #fff; stroke-width: 2.5; }
.carte-zone .siege-halo { fill: var(--tuile); opacity: .3; }
.carte-zone .nom-siege { fill: var(--tuile-texte); font: 700 20px var(--f-texte); paint-order: stroke; stroke: var(--fond); stroke-width: 5px; stroke-linejoin: round; }
.departement h3 { font-size: 1.1rem; margin-bottom: 1rem; }
