/* ==========================================================================
   Epsilon GE, géomètres-experts : feuille de style
   Direction : sombre et premium. Nuit graphite, accent cuivre (repris de
   l'orange du logo historique), titres Gloock, texte Public Sans.
   ========================================================================== */

@font-face { font-family: "Gloock"; src: url("/fonts/gloock-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-normal.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* Repli métriquement proche pour limiter le saut au chargement */
@font-face { font-family: "Gloock repli"; src: local("Georgia"); size-adjust: 104%; ascent-override: 92%; }

:root {
  --nuit: #0E1013;
  --nuit-2: #14171B;
  --nuit-3: #1B1F25;
  --trait: #2A2E35;
  --trait-f: #3B4048;
  --ivoire: #ECE6DB;
  --ivoire-2: #F5F1EA;
  --gris: #A7A196;        /* 7,2:1 sur nuit */
  --acier: #8E9AA6;       /* 6,4:1 sur nuit */
  --cuivre: #D98B55;      /* 6,8:1 sur nuit */
  --cuivre-cl: #EBA676;
  --cuivre-f: #9A5528;    /* cuivre lisible sur ivoire : 5,0:1 */
  --encre: #15181C;       /* texte sur ivoire */
  --encre-2: #4A4740;     /* secondaire sur ivoire : 8,3:1 */
  --alerte: #F0B44C;
  --f-titre: "Gloock", "Gloock repli", Georgia, "Times New Roman", serif;
  --f-texte: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --pad: clamp(20px, 4.5vw, 48px);
  --head-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; background: var(--nuit); color: var(--ivoire);
  font-family: var(--f-texte); font-size: 1.0625rem; line-height: 1.68; font-weight: 400; letter-spacing: .004em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
::selection { background: var(--cuivre); color: var(--nuit); }
:focus-visible { outline: 2px solid var(--cuivre); outline-offset: 3px; border-radius: 1px; }
html { scrollbar-color: var(--trait-f) var(--nuit); }
::-webkit-scrollbar { width: 11px; } ::-webkit-scrollbar-track { background: var(--nuit); }
::-webkit-scrollbar-thumb { background: var(--trait-f); border: 3px solid var(--nuit); border-radius: 8px; }
input, textarea, select, button { font: inherit; color: inherit; caret-color: var(--cuivre); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--cuivre); color: var(--nuit); padding: 10px 16px; font-weight: 600; }
.skip:focus { left: 8px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.nw { white-space: nowrap; }

/* ---------- Typographie ---------- */
h1, h2, h3, .h1, .h2 { font-family: var(--f-titre); font-weight: 400; line-height: 1.06; letter-spacing: -.012em; margin: 0; text-wrap: balance; color: var(--ivoire-2); }
h1, .h1 { font-size: clamp(2.3rem, 1.3rem + 4.6vw, 5.4rem); line-height: 1.01; letter-spacing: -.02em; }
h2, .h2 { font-size: clamp(2rem, 1.35rem + 2.5vw, 3.35rem); }
h3, .h3 { font-family: var(--f-titre); font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); line-height: 1.15; }
h4 { font-family: var(--f-texte); font-size: 1rem; font-weight: 650; letter-spacing: .01em; margin: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 650; color: var(--ivoire-2); }
em { font-style: italic; }
.lead { font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); line-height: 1.6; color: var(--ivoire); max-width: 62ch; }
.prose { max-width: 70ch; }
.prose h2 { margin: 1.6em 0 .55em; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.5em 0 .45em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--cuivre); }
.prose a { color: var(--cuivre-cl); }
.prose a:hover { color: var(--ivoire-2); }
.prose blockquote { margin: 1.4em 0; padding: 0 0 0 1.2em; border-left: 1px solid var(--cuivre); color: var(--gris); font-style: italic; }
.prose blockquote cite { display: block; margin-top: .5em; font-style: normal; font-size: .875rem; color: var(--acier); }
.muted { color: var(--gris); }
.lien { display: inline-flex; align-items: center; gap: .5em; color: var(--cuivre-cl); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: gap .3s var(--ease), color .2s; }
.lien:hover { gap: .8em; color: var(--ivoire-2); }
.lien .ico { width: 1em; height: 1em; }

/* À compléter : visible, assumé, facile à repérer pour le client */
.a-completer {
  display: inline-block; padding: .18em .6em; border: 1px dashed var(--alerte); color: var(--alerte);
  font-size: .82rem; font-weight: 600; letter-spacing: .02em; line-height: 1.5; border-radius: 2px; background: rgba(240, 180, 76, .07);
}
div.a-completer, p.a-completer { display: block; padding: 1em 1.2em; }
.section--ivoire .a-completer { color: #7A5200; border-color: #B07A14; background: rgba(176, 122, 20, .08); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 1.5em; border-radius: 2px; border: 1px solid transparent;
  font-weight: 650; font-size: 1rem; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease);
}
.btn .ico { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--plein { background: var(--cuivre); color: var(--nuit); }
.btn--plein:hover { background: var(--cuivre-cl); }
.btn--trait { border-color: var(--trait-f); color: var(--ivoire); }
.btn--trait:hover { border-color: var(--ivoire); }
.btn--petit { min-height: 42px; padding: 0 1.1em; font-size: .9375rem; }
.btn--grand { min-height: 58px; padding: 0 1.9em; font-size: 1.0625rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }

/* ---------- En-tête ---------- */
.head {
  position: sticky; top: 0; z-index: 50; height: var(--head-h);
  background: rgba(14, 16, 19, .86); backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--trait);
}
.head__in { height: 100%; display: flex; align-items: center; gap: var(--s6); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivoire-2); flex: none; }
.marque { width: 40px; height: 40px; color: var(--cuivre); }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__nom { font-family: var(--f-titre); font-size: 1.5rem; letter-spacing: -.005em; }
.logo__sous { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--acier); margin-top: 5px; }
.nav { margin-left: auto; }
.nav__liste { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__liste a { display: block; padding: 10px 14px; text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--ivoire); position: relative; }
.nav__liste a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--cuivre); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav__liste a:hover::after, .nav__liste a[aria-current]::after { transform: scaleX(1); }
.nav__liste a[aria-current] { color: var(--ivoire-2); }
.nav__mobile { display: none; }
.head__actions { display: flex; align-items: center; gap: var(--s4); }
.head__tel { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ivoire-2); white-space: nowrap; }
.head__tel .ico { color: var(--cuivre); }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--trait-f); background: none; border-radius: 2px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ivoire); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .head__tel span { display: none; }
  .head__tel { width: 46px; height: 46px; justify-content: center; border: 1px solid var(--trait-f); border-radius: 2px; }
}
@media (max-width: 940px) {
  :root { --head-h: 66px; }
  .burger { display: block; }
  .head__devis { display: none; }
  .nav {
    position: fixed; inset: var(--head-h) 0 0 0; background: var(--nuit); padding: var(--s5) var(--pad) 120px; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s;
  }
  .nav.ouvert { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .4s var(--ease); }
  .nav__liste { flex-direction: column; gap: 0; }
  .nav__liste a { font-family: var(--f-titre); font-size: 1.9rem; padding: 12px 0; border-bottom: 1px solid var(--trait); }
  .nav__liste a::after { display: none; }
  .nav__mobile { display: block; margin-top: var(--s6); }
  .nav__titre { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--acier); margin: 0 0 var(--s3); }
  .nav__presta { list-style: none; padding: 0; margin: 0 0 var(--s6); display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s4); }
  .nav__presta a { display: block; padding: 9px 0; text-decoration: none; color: var(--ivoire); font-size: .95rem; }
  .nav__mobile .btn { width: 100%; margin-bottom: var(--s3); }
  body.menu-ouvert { overflow: hidden; }
}
@media (max-width: 420px) {
  .logo__nom { font-size: 1.3rem; }
  .logo__sous { font-size: .6rem; letter-spacing: .16em; }
  .marque { width: 34px; height: 34px; }
  .head__in { gap: var(--s3); }
  .head__actions { gap: var(--s2); }
}

/* ---------- Fil d'Ariane ---------- */
.fil { padding-top: var(--s5); }
.fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--acier); }
.fil li + li::before { content: "/"; margin-right: 6px; color: var(--trait-f); }
.fil a { text-decoration: none; color: var(--gris); }
.fil a:hover { color: var(--ivoire); }
.fil [aria-current] { color: var(--ivoire); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section--serre { padding-block: clamp(48px, 6vw, 80px); }
.section--haut-serre { padding-top: clamp(32px, 4vw, 56px); }
.section--nuit2 { background: var(--nuit-2); }
.section--trait { border-top: 1px solid var(--trait); }
.section__tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5) var(--s8); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section__tete p { margin: 0; color: var(--gris); max-width: 52ch; }
.section__tete--seul { grid-template-columns: 1fr; }
@media (max-width: 820px) { .section__tete { grid-template-columns: 1fr; } }

/* Bande claire (une respiration dans le sombre) */
.section--ivoire { background: var(--ivoire); color: var(--encre); }
.section--ivoire h2, .section--ivoire h3, .section--ivoire strong { color: var(--encre); }
.section--ivoire .muted, .section--ivoire .section__tete p { color: var(--encre-2); }
.section--ivoire .lien { color: var(--cuivre-f); }
.section--ivoire .lien:hover { color: var(--encre); }
.section--ivoire ::selection { background: var(--encre); color: var(--ivoire); }

/* ---------- Accueil : hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; filter: grayscale(.35) contrast(1.05) brightness(.8); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,16,19,.96) 0%, rgba(14,16,19,.82) 38%, rgba(14,16,19,.35) 72%, rgba(14,16,19,.55) 100%),
    linear-gradient(0deg, rgba(14,16,19,1) 0%, rgba(14,16,19,0) 38%); }
.hero__courbes { position: absolute; right: -6%; top: 4%; width: min(62vw, 820px); z-index: -1; color: var(--cuivre); opacity: .32; pointer-events: none; }
.hero__courbes path { stroke-dasharray: var(--l, 2000); stroke-dashoffset: var(--l, 2000); animation: trace 3.2s var(--ease) forwards; }
.hero__courbes path:nth-child(2n) { animation-delay: .15s; } .hero__courbes path:nth-child(3n) { animation-delay: .3s; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.hero__in { padding-block: clamp(96px, 14vh, 160px) clamp(48px, 7vw, 88px); }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--cuivre); }
.hero__lead { margin: var(--s5) 0 0; max-width: 54ch; font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.6; color: var(--ivoire); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); margin-top: var(--s7); }
.hero__pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); margin-top: clamp(48px, 7vw, 88px); padding-top: var(--s5); border-top: 1px solid rgba(236, 230, 219, .18); font-size: .875rem; color: var(--gris); }
.hero__pied .ico { color: var(--cuivre); }
.coord { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .hero__courbes path { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 700px) {
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(0deg, rgba(14,16,19,1) 8%, rgba(14,16,19,.84) 55%, rgba(14,16,19,.6) 100%); }
  .hero__courbes { width: 130vw; right: -45%; top: 0; opacity: .22; }
  .hero__in { padding-top: 120px; }
  .hero__cta .btn { width: 100%; }
}

.tel-xl { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.tel-xl small { font-size: .8rem; color: var(--gris); letter-spacing: .02em; }
.tel-xl span { font-size: 1.2rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ivoire-2); }
.tel-xl:hover span { color: var(--cuivre-cl); }

/* Réassurance */
.rassure { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; margin: var(--s5) 0 0; padding: 0; font-size: .875rem; color: var(--gris); }
.rassure { gap: 6px 22px; }
.rassure li { display: inline-flex; align-items: center; gap: 10px; }
.rassure li::before { content: ""; flex: none; width: 5px; height: 5px; background: var(--cuivre); transform: rotate(45deg); }
.note { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .875rem; color: var(--gris); }
.ico--etoile { color: var(--cuivre); width: 1em; height: 1em; }

/* ---------- Index des prestations (accueil, /prestations/) ---------- */
.index { border-top: 1px solid var(--trait-f); }
.pole { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5) var(--s8); padding-block: clamp(28px, 3.5vw, 44px); border-bottom: 1px solid var(--trait); }
.pole__nom { display: flex; gap: var(--s4); align-items: baseline; }
.pole__nom h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); }
.pole__pour { margin: var(--s3) 0 0; color: var(--gris); font-size: .95rem; max-width: 40ch; }
.pole__liens { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pole__liens a { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--s4); align-items: center; padding: 14px 0; text-decoration: none; border-bottom: 1px solid transparent; }
.pole__liens li + li a { border-top: 1px solid var(--trait); }
.pole__liens strong { font-size: 1.08rem; font-weight: 600; transition: color .2s; }
.pole__liens span { grid-column: 1; color: var(--gris); font-size: .95rem; }
.pole__liens .ico { grid-row: 1 / span 2; grid-column: 2; color: var(--cuivre); transition: transform .35s var(--ease); }
.pole__liens a:hover strong { color: var(--cuivre-cl); }
.pole__liens a:hover .ico { transform: translateX(4px); }
@media (max-width: 820px) { .pole { grid-template-columns: 1fr; } }

/* ---------- Deux publics ---------- */
.publics { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid rgba(21, 24, 28, .2); }
.public { padding: clamp(28px, 4vw, 48px) clamp(0px, 3vw, 40px) 0 0; }
.public + .public { padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid rgba(21, 24, 28, .2); }
.public h3 { margin-bottom: var(--s3); }
.public > p { color: var(--encre-2); max-width: 46ch; }
.public ul { list-style: none; margin: var(--s5) 0 var(--s6); padding: 0; }
.public li { padding: 10px 0; border-bottom: 1px solid rgba(21, 24, 28, .14); }
.public li a { text-decoration: none; font-weight: 550; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.public li a .ico { color: var(--cuivre-f); transition: transform .3s var(--ease); }
.public li a:hover .ico { transform: translateX(4px); }
@media (max-width: 760px) {
  .publics { grid-template-columns: 1fr; }
  .public + .public { padding-left: 0; border-left: 0; border-top: 1px solid rgba(21, 24, 28, .2); margin-top: var(--s6); }
}

/* ---------- Bloc texte + image ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.duo--inv .duo__media { order: -1; }
.duo h2 { margin-bottom: var(--s5); }
.duo .lead { margin-bottom: var(--s5); }
.duo__media { position: relative; margin: 0; }
.duo__media--paysage img { aspect-ratio: 3 / 2 !important; }
.duo__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.25); }
.duo__media figcaption, .ptete__img figcaption { margin-top: 10px; font-size: .8rem; color: var(--acier); }
.duo__media::after { content: ""; position: absolute; inset: 14px -14px 56px 14px; border: 1px solid var(--cuivre); opacity: .45; z-index: -1; pointer-events: none; }
.duo__media { isolation: isolate; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } .duo--inv .duo__media { order: 0; } .duo__media img { aspect-ratio: 4 / 3; } .duo__media::after { display: none; } }

/* Frise chronologique (dates réelles du cabinet) */
.frise { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); border-top: 1px solid var(--trait-f); }
.frise li { padding-top: var(--s5); position: relative; }
.frise li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--cuivre); transform: rotate(45deg); }
.frise b { display: block; font-family: var(--f-titre); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--ivoire-2); margin-bottom: 8px; font-variant-numeric: lining-nums; }
.frise span { color: var(--gris); font-size: .95rem; }
@media (max-width: 760px) { .frise { grid-template-columns: 1fr 1fr; } }

/* Associés */
.associes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); margin-top: var(--s7); }
.associe { border-top: 1px solid var(--cuivre); padding-top: var(--s5); }
.associe h3 { font-size: 1.6rem; }
.associe .titre { margin: 8px 0 12px; color: var(--cuivre-cl); font-size: .92rem; font-weight: 550; }
.associe p { color: var(--gris); font-size: .97rem; margin: 0; }
.equipe { list-style: none; margin: var(--s7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s6); }
.equipe li { padding: 14px 0; border-bottom: 1px solid var(--trait); }
.equipe b { display: block; font-weight: 600; color: var(--ivoire-2); }
.equipe span { color: var(--gris); font-size: .93rem; }
@media (max-width: 900px) { .associes, .equipe { grid-template-columns: 1fr; } }

/* Matériel */
.materiel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s7); }
.materiel h3 { font-family: var(--f-texte); font-size: .8rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--acier); margin-bottom: var(--s3); }
.materiel dl { margin: 0; }
.materiel { align-items: start; }
.materiel dl > div { padding: 12px 0; border-bottom: 1px solid var(--trait); }
.materiel dt { color: var(--gris); font-size: .9rem; }
.materiel dd { margin: 2px 0 0; font-weight: 600; color: var(--ivoire-2); }
@media (max-width: 900px) { .materiel { grid-template-columns: 1fr; gap: var(--s6); } }

/* ---------- Réalisations ---------- */
.reals__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--trait-f); }
.real a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: var(--s5) var(--s5) var(--s6) 0; border-bottom: 1px solid var(--trait); text-decoration: none; transition: background-color .3s; }
.real:not(:nth-child(3n+1)) a { padding-left: var(--s5); border-left: 1px solid var(--trait); }
.real__lieu { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--acier); }
.real__nom { font-family: var(--f-titre); font-size: 1.45rem; line-height: 1.15; color: var(--ivoire-2); transition: color .2s; }
.real__mission { color: var(--gris); font-size: .95rem; }
.real a:hover .real__nom { color: var(--cuivre-cl); }
.reals__plus { margin: var(--s6) 0 0; }
@media (max-width: 900px) {
  .reals__liste { grid-template-columns: 1fr 1fr; }
  .real:not(:nth-child(3n+1)) a { padding-left: 0; border-left: 0; }
  .real:nth-child(2n) a { padding-left: var(--s5); border-left: 1px solid var(--trait); }
}
@media (max-width: 560px) { .reals__liste { grid-template-columns: 1fr; } .real:nth-child(2n) a { padding-left: 0; border-left: 0; } }

/* Page réalisations : grille photo + fiches */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s6); }
.filtres button { min-height: 42px; padding: 0 16px; border: 1px solid var(--trait-f); background: none; border-radius: 2px; cursor: pointer; font-size: .9rem; font-weight: 550; }
.filtres button:hover { border-color: var(--ivoire); }
.filtres button[aria-pressed="true"] { background: var(--ivoire); color: var(--nuit); border-color: var(--ivoire); }
.fiches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s7) var(--s6); }
.fiche { scroll-margin-top: calc(var(--head-h) + 24px); }
.fiche[hidden] { display: none; }
.fiche__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--nuit-3); margin-bottom: var(--s4); }
.fiche__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); transition: filter .5s, transform .8s var(--ease); }
.fiche:hover .fiche__img img { filter: none; transform: scale(1.03); }
.fiche__img--vide { display: flex; align-items: center; justify-content: center; color: var(--trait-f); }
.fiche__img--vide svg { width: 56px; height: 56px; }
.fiche h2 { font-size: 1.45rem; line-height: 1.15; }
.fiche .lieu { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--acier); margin: 0 0 6px; }
.fiche dl { margin: 10px 0 0; font-size: .93rem; color: var(--gris); }
.fiche dl div { display: flex; gap: 8px; }
.fiche dt { color: var(--acier); }
.fiche dd { margin: 0; }
.fiche:target h2 { color: var(--cuivre-cl); }
@media (max-width: 900px) { .fiches { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fiches { grid-template-columns: 1fr; } }

/* ---------- En-tête de page intérieure ---------- */
.ptete { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--trait); position: relative; overflow: hidden; }
.ptete__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.ptete--img .ptete__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ptete h1 { max-width: 16ch; }
.ptete__lead { margin: var(--s5) 0 0; max-width: 58ch; font-size: clamp(1.1rem, 1rem + .4vw, 1.28rem); line-height: 1.6; }
.ptete__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); margin-top: var(--s6); }
.ptete__tel { text-decoration: none; color: var(--gris); }
.ptete__tel strong { font-variant-numeric: tabular-nums; }
.ptete__tel:hover strong { color: var(--cuivre-cl); }
.ptete__img { margin: 0; }
.ptete__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(.25); }
@media (max-width: 900px) { .ptete--img .ptete__in { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ptete__cta .btn { width: 100%; } }

/* ---------- Corps de page service ---------- */
.corps { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.aside { position: sticky; top: calc(var(--head-h) + 24px); border: 1px solid var(--trait-f); padding: var(--s6); background: var(--nuit-2); }
.aside h2 { font-size: 1.6rem; margin-bottom: var(--s3); }
.aside p { color: var(--gris); font-size: .95rem; }
.aside .btn { width: 100%; margin-top: var(--s3); }
.aside__tel { display: block; text-align: center; margin-top: var(--s4); text-decoration: none; font-weight: 650; font-variant-numeric: tabular-nums; }
.aside__tel:hover { color: var(--cuivre-cl); }
.aside ul { list-style: none; margin: var(--s5) 0 0; padding: var(--s4) 0 0; border-top: 1px solid var(--trait); font-size: .9rem; color: var(--gris); }
.aside li { padding: 4px 0; display: flex; gap: 8px; }
.aside li .ico { color: var(--cuivre); margin-top: .3em; width: 1em; height: 1em; }
@media (max-width: 960px) { .corps { grid-template-columns: 1fr; } .aside { position: static; } }

/* Étapes numérotées : la séquence porte l'information */
.etapes { list-style: none; counter-reset: e; margin: var(--s5) 0 var(--s6); padding: 0; }
.etapes li { counter-increment: e; display: grid; grid-template-columns: 52px 1fr; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--trait); }
.etapes li::before { content: counter(e); font-family: var(--f-titre); font-size: 1.8rem; line-height: 1; color: var(--cuivre); }
.etapes li > div > strong { display: block; margin-bottom: 4px; }
.etapes li > div > p { margin: 0; color: var(--gris); }
@media (max-width: 560px) { .etapes li { grid-template-columns: 30px 1fr; gap: var(--s3); } }

/* Liste de missions (définitions) */
.missions { margin: var(--s5) 0 var(--s6); display: grid; gap: 0; border-top: 1px solid var(--trait); }
.missions > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: var(--s5); padding: var(--s5) 0; border-bottom: 1px solid var(--trait); scroll-margin-top: calc(var(--head-h) + 24px); }
.missions dt { font-family: var(--f-titre); font-size: 1.35rem; line-height: 1.2; color: var(--ivoire-2); }
.missions dd { margin: 0; color: var(--ivoire); }
.missions dd p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .missions > div { grid-template-columns: 1fr; gap: 6px; } }

/* Encadré citation légale */
.loi { margin: var(--s6) 0; padding: var(--s5) var(--s6); background: var(--nuit-2); border: 1px solid var(--trait); }
.loi p { font-family: var(--f-titre); font-size: 1.25rem; line-height: 1.45; color: var(--ivoire-2); margin: 0 0 10px; }
.loi cite { font-style: normal; font-size: .85rem; color: var(--acier); }

/* Encadré information */
.info { margin: var(--s6) 0; padding: var(--s5); border: 1px solid var(--trait-f); display: grid; grid-template-columns: auto 1fr; gap: var(--s4); }
.info .ico { color: var(--cuivre); width: 1.5em; height: 1.5em; }
.info p:last-child { margin: 0; }

/* ---------- Prestations liées ---------- */
.liees__liste { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s6); }
.liees__liste a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: var(--s4) 0; border-top: 1px solid var(--trait-f); text-decoration: none; height: 100%; }
.liees__nom { font-weight: 600; color: var(--ivoire-2); transition: color .2s; }
.liees__res { grid-column: 1; color: var(--gris); font-size: .92rem; }
.liees__liste .ico { grid-row: 1; grid-column: 2; color: var(--cuivre); transition: transform .3s var(--ease); }
.liees__liste a:hover .liees__nom { color: var(--cuivre-cl); }
.liees__liste a:hover .ico { transform: translateX(4px); }
@media (max-width: 860px) { .liees__liste { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s6) var(--s8); align-items: start; }
.faq__liste { border-top: 1px solid var(--trait-f); }
.faq__item { border-bottom: 1px solid var(--trait); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s4); padding: 20px 0; font-weight: 600; font-size: 1.06rem; color: var(--ivoire-2); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--cuivre-cl); }
.faq__ico { color: var(--cuivre); transition: transform .35s var(--ease); margin-top: .2em; }
.faq__item[open] .faq__ico { transform: rotate(45deg); }
.faq__rep { padding: 0 0 22px; color: var(--ivoire); max-width: 64ch; }
.faq__rep p:last-child { margin: 0; }
.faq__rep a { color: var(--cuivre-cl); }
@media (max-width: 860px) { .faq__in { grid-template-columns: 1fr; } }

/* ---------- CTA de fin ---------- */
.cta { background: var(--nuit-2); border-top: 1px solid var(--trait); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 119px, rgba(236, 230, 219, .035) 119px 120px); pointer-events: none; }
.cta__in { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s7) var(--s8); align-items: end; padding-block: clamp(64px, 8vw, 112px); }
.cta h2 { max-width: 14ch; margin-bottom: var(--s4); }
.cta p { color: var(--gris); max-width: 52ch; margin: 0; }
.cta__actions { display: flex; flex-direction: column; gap: var(--s4); align-items: stretch; }
.cta__tel { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border: 1px solid var(--trait-f); text-decoration: none; font-weight: 650; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.cta__tel:hover { border-color: var(--ivoire); }
.cta__tel .ico { color: var(--cuivre); }
p.cta__adr { font-size: .875rem; text-align: center; }
@media (max-width: 860px) { .cta__in { grid-template-columns: 1fr; } }

/* ---------- Formulaire ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s5); }
.form .plein { grid-column: 1 / -1; }
.champ label, .champ legend { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; color: var(--ivoire); padding: 0; }
.champ .opt { font-weight: 400; color: var(--gris); }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: var(--nuit-3); border: 1px solid var(--trait-f); border-radius: 2px;
  color: var(--ivoire-2); transition: border-color .2s, background-color .2s;
}
.champ textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.champ select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D98B55' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.champ input[type=file] { padding: 8px; min-height: 50px; color: var(--gris); font-size: .92rem; }
.champ input[type=file]::file-selector-button { margin-right: 14px; padding: 8px 14px; border: 1px solid var(--trait-f); border-radius: 2px; background: var(--nuit); color: var(--ivoire); font: inherit; font-weight: 600; cursor: pointer; }
.champ input[type=file]::file-selector-button:hover { border-color: var(--cuivre); }
.champ input::placeholder, .champ textarea::placeholder { color: #8A857C; }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: var(--acier); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--cuivre); background: #20252C; }
.champ [aria-invalid="true"] { border-color: #E07B6A; }
fieldset.champ { border: 0; margin: 0; padding: 0; min-width: 0; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix label { margin: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--trait-f); border-radius: 2px; cursor: pointer; font-weight: 500; }
.choix input { width: auto; min-height: 0; accent-color: var(--cuivre); }
.choix label:has(input:checked) { border-color: var(--cuivre); background: rgba(217, 139, 85, .1); }
.rgpd { display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: .88rem; color: var(--gris); }
.rgpd input { width: 20px; height: 20px; accent-color: var(--cuivre); margin-top: 2px; }
.rgpd a { color: var(--cuivre-cl); }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__envoi { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; }
.form__msg { margin: 0; font-weight: 550; }
.form__msg.ok { color: #9FD3A8; }
.form__msg.err { color: #F0A090; }
.coordonnees { border-top: 1px solid var(--cuivre); padding-top: var(--s5); }
.coordonnees h2 { font-size: 1.8rem; margin-bottom: var(--s4); }
.coordonnees dl { margin: 0; }
.coordonnees dl div { padding: 12px 0; border-bottom: 1px solid var(--trait); }
.coordonnees dt { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--acier); margin-bottom: 4px; }
.coordonnees dd { margin: 0; }
.coordonnees a { text-decoration: none; }
.coordonnees a:hover { color: var(--cuivre-cl); }
.carte { margin-top: var(--s5); aspect-ratio: 4 / 3; border: 1px solid var(--trait-f); background: var(--nuit-3); overflow: hidden; }
.carte iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) hue-rotate(180deg); }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- Guides ---------- */
.guides { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trait-f); }
.guides a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px var(--s5); padding: var(--s5) 0; border-bottom: 1px solid var(--trait); text-decoration: none; }
.guides h2, .guides h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); transition: color .2s; }
.guides p { grid-column: 1; margin: 0; color: var(--gris); max-width: 70ch; }
.guides .ico { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--cuivre); width: 1.4em; height: 1.4em; transition: transform .35s var(--ease); }
.guides a:hover h2, .guides a:hover h3 { color: var(--cuivre-cl); }
.guides a:hover .ico { transform: translateX(6px); }
.article__meta { margin-top: var(--s4); color: var(--acier); font-size: .875rem; }

/* Plan du site */
.plan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7); }
.plan h2 { font-size: 1.6rem; margin-bottom: var(--s3); }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 8px 0; border-bottom: 1px solid var(--trait); }
.plan a { text-decoration: none; }
.plan a:hover { color: var(--cuivre-cl); }
@media (max-width: 700px) { .plan { grid-template-columns: 1fr; } }

/* Ville : repères chiffrés réels */
.reperes { list-style: none; padding: 0; margin: var(--s5) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 var(--s6); }
.reperes li { padding: 14px 0; border-top: 1px solid var(--trait); }
.reperes b { display: block; font-weight: 600; color: var(--ivoire-2); }
.reperes span { color: var(--gris); font-size: .93rem; }

/* ---------- Pied de page ---------- */
.foot { background: #0A0B0D; border-top: 1px solid var(--trait); padding-top: clamp(56px, 7vw, 96px); font-size: .95rem; }
.foot__haut { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s7) var(--s6); padding-bottom: var(--s8); }
.foot__marque p { color: var(--gris); max-width: 36ch; margin-top: var(--s4); }
.foot__coord { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; letter-spacing: .04em; font-size: .85rem; }
.foot__coord .ico { color: var(--cuivre); }
.foot__h { font-family: var(--f-texte); font-size: .78rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; color: var(--acier); margin: 0 0 var(--s4); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 4px 0; }
.foot a { text-decoration: none; color: var(--ivoire); }
.foot a:hover { color: var(--cuivre-cl); }
.foot address { font-style: normal; line-height: 1.8; }
.foot__horaires { margin: var(--s3) 0; }
.foot__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3) var(--s6); padding-block: var(--s5); border-top: 1px solid var(--trait); font-size: .84rem; color: var(--gris); }
.foot__bas p { margin: 0; }
.foot__liens { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot__liens a { color: var(--gris); }
@media (max-width: 960px) { .foot__haut { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__haut { grid-template-columns: 1fr; } }

/* ---------- Barre d'appel mobile ---------- */
.mbar { display: none; }
@media (max-width: 940px) {
  .mbar { display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--nuit); border-top: 1px solid var(--trait-f); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 2px; text-decoration: none; font-weight: 650; font-size: .98rem; }
  .mbar__tel { border: 1px solid var(--trait-f); color: var(--ivoire-2); }
  .mbar__tel .ico { color: var(--cuivre); }
  .mbar__devis { background: var(--cuivre); color: var(--nuit); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* ---------- Apparition : un seul geste, discret ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .apparait { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .apparait.vu { opacity: 1; transform: none; }
}

/* 404 */
.p404 { min-height: 60vh; display: flex; align-items: center; }
.p404 .chiffre { font-family: var(--f-titre); font-size: clamp(5rem, 14vw, 11rem); line-height: 1; color: var(--cuivre); margin: 0 0 var(--s4); }
