/* ============================================================
   Click Lab — design system
   Palette : anthracite #172029 + vert de marque #95C11F (couleurs du logo).
   Typo    : Archivo (display, étendu) · IBM Plex Sans (texte) · IBM Plex Mono (data)
   ============================================================ */

/* ---------- 1. Tokens ------------------------------------- */
:root {
  /* base = sombre (le site est pensé sombre d'abord) */
  --bg:            #10161c;
  --bg-deep:       #0a0e12;
  --surface:       #172029;   /* anthracite exact du logo */
  --surface-2:     #1f2a34;
  --line:          #27333d;
  --line-strong:   #3a4a55;
  --text:          #edf1f3;
  --text-2:        #a3aeb6;
  --text-3:        #74828c;
  --accent:        #95c11f;   /* vert de la marque */
  --accent-solid:  #95c11f;   /* fond des boutons, identique dans les 2 thèmes */
  --accent-soft:   rgba(149, 193, 31, .14);
  --accent-ink:    #172029;
  --ch-it:         #95c11f;
  --ch-av:         #c7d98a;
  --ch-msg:        #8b98a1;
  --shadow:        0 24px 60px -30px rgba(0, 0, 0, .9);
  --grid-line:     rgba(255, 255, 255, .045);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", "SF Mono", Consolas, monospace;

  --step--1: clamp(.78rem, .76rem + .12vw, .86rem);
  --step-0:  clamp(.98rem, .95rem + .18vw, 1.08rem);
  --step-1:  clamp(1.16rem, 1.08rem + .38vw, 1.38rem);
  --step-2:  clamp(1.42rem, 1.24rem + .78vw, 1.92rem);
  --step-3:  clamp(1.78rem, 1.42rem + 1.5vw, 2.85rem);
  --step-4:  clamp(2.3rem, 1.6rem + 3vw, 4.4rem);
  --step-5:  clamp(2.9rem, 1.7rem + 5.4vw, 6.6rem);

  --gut: clamp(1.15rem, .6rem + 2.4vw, 3.5rem);
  --max: 1280px;
  --radius: 3px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:          #f1f4ef;
    --bg-deep:     #e5e9e1;
    --surface:     #ffffff;
    --surface-2:   #e8ece4;
    --line:        #d7ddd2;
    --line-strong: #b5bfae;
    --text:        #172029;
    --text-2:      #4d5a63;
    --text-3:      #6f7c85;
    --accent:      #5c7a12;
    --accent-solid: #95c11f;
    --accent-soft: rgba(149, 193, 31, .18);
    --accent-ink:  #172029;
    --ch-it:       #5c7a12;
    --ch-av:       #7b8f45;
    --ch-msg:      #5d6a73;
    --shadow:      0 20px 44px -28px rgba(23, 32, 41, .35);
    --grid-line:   rgba(23, 32, 41, .06);
  }
}

:root[data-theme="light"] {
--bg:          #f1f4ef;
  --bg-deep:     #e5e9e1;
  --surface:     #ffffff;
  --surface-2:   #e8ece4;
  --line:        #d7ddd2;
  --line-strong: #b5bfae;
  --text:        #172029;
  --text-2:      #4d5a63;
  --text-3:      #6f7c85;
  --accent:      #5c7a12;
  --accent-solid: #95c11f;
  --accent-soft: rgba(149, 193, 31, .18);
  --accent-ink:  #172029;
  --ch-it:       #5c7a12;
  --ch-av:       #7b8f45;
  --ch-msg:      #5d6a73;
  --shadow:      0 20px 44px -28px rgba(23, 32, 41, .35);
  --grid-line:   rgba(23, 32, 41, .06);
}

/* ---------- 2. Base --------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 118%;
  line-height: 1.02;
  letter-spacing: -.018em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }

::selection { background: var(--accent-solid); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent-solid); color: var(--accent-ink);
  padding: .7rem 1.1rem; font: 600 var(--step--1)/1 var(--f-mono);
}
.skip:focus { left: .5rem; top: .5rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

.mono {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- 3. En-tête ------------------------------------ */
.hdr {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  display: flex; align-items: center; gap: 1.4rem;
  min-height: 66px;
}
.brand {
  display: inline-flex; align-items: center; gap: .3em;
  text-decoration: none; margin-right: auto;
  color: var(--text);
}
.brand__word {
  font-family: var(--f-display); font-weight: 400; font-stretch: 100%;
  font-size: 1.02rem; letter-spacing: .26em; line-height: 1;
  padding-left: .26em; /* compense le tracking de la dernière lettre */
}
.brand__mark { width: .86em; height: .82em; flex: none; font-size: 1.02rem; }
.brand__bar { fill: var(--text); }
.brand__arrow { stroke: var(--accent-solid); }
.brand__arrow-fill { fill: var(--accent-solid); }
.brand--lg .brand__word { font-size: 1.28rem; }
.brand--lg .brand__mark { font-size: 1.28rem; }

.nav { display: flex; align-items: center; gap: .1rem; }
.nav a {
  text-decoration: none; color: var(--text-2);
  font-family: var(--f-mono); font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .55rem .7rem; border-radius: var(--radius);
  transition: color .18s ease, background .18s ease;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); }

.hdr__act { display: flex; align-items: center; gap: .5rem; }

.iconbtn {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line);
  color: var(--text-2); border-radius: var(--radius); cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.iconbtn:hover { border-color: var(--line-strong); color: var(--text); }
.iconbtn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; }
/* icône : soleil quand le thème sombre est actif, lune quand le clair l'est */
.ico-sun  { display: block; }
.ico-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .ico-sun  { display: none; }
  :root:not([data-theme="dark"]) .ico-moon { display: block; }
}
:root[data-theme="light"] .ico-sun  { display: none; }
:root[data-theme="light"] .ico-moon { display: block; }
:root[data-theme="dark"]  .ico-sun  { display: block; }
:root[data-theme="dark"]  .ico-moon { display: none; }

.burger { display: none; }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.2rem;
    transform: translateY(-120%); transition: transform .28s ease;
    max-height: calc(100dvh - 66px); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: .85rem .2rem; border-bottom: 1px solid var(--line); font-size: .82rem; }
  .burger { display: grid; }
}

/* ---------- 4. Bandeaux techniques ------------------------ */
.strip {
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}
.strip__in {
  display: flex; flex-wrap: wrap; gap: .4rem 1.6rem;
  padding-block: .55rem;
  color: var(--text-3);
  font-family: var(--f-mono); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.strip__in b { color: var(--text-2); font-weight: 500; }

/* ---------- 5. Sections ----------------------------------- */
.sec { border-top: 1px solid var(--line); padding-block: clamp(3.2rem, 6vw, 6.4rem); }
.sec--flush { border-top: 0; }
.sec--tint { background: var(--surface); }

.sec__head {
  display: grid; gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: clamp(1.8rem, 3.5vw, 3rem);
}
@media (min-width: 900px) {
  .sec__head { grid-template-columns: 148px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
}
.sec__code { color: var(--accent); }
.sec__title { font-size: var(--step-3); }
.sec__lede { color: var(--text-2); font-size: var(--step-1); max-width: 62ch; margin-top: .9rem; line-height: 1.5; }

.sec__body { display: grid; gap: 1rem; }
@media (min-width: 900px) {
  .sec__body { grid-template-columns: 148px minmax(0, 1fr); gap: 2.5rem; }
  .sec__body > .sec__code { align-self: start; }
}

/* ---------- 6. Hero --------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 78%);
}
.hero__in { position: relative; padding-block: clamp(3.4rem, 8vw, 7rem) clamp(2.4rem, 4vw, 3.6rem); }

.hero h1 {
  font-size: var(--step-5);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -.035em;
  max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lede {
  margin-top: 1.6rem; max-width: 58ch;
  font-size: var(--step-1); color: var(--text-2); line-height: 1.5;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.scope {
  margin-top: clamp(2.4rem, 5vw, 4rem);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
}
.scope__bar {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  padding: .55rem .9rem; border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3);
}
.scope__leds { display: flex; gap: 1rem; margin-left: auto; }
.scope__led { display: inline-flex; align-items: center; gap: .4rem; }
.scope__led i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.led-it { color: var(--ch-it); } .led-av { color: var(--ch-av); } .led-msg { color: var(--ch-msg); }
#scope { width: 100%; height: 168px; display: block; }
@media (max-width: 640px) { #scope { height: 120px; } }

/* ---------- 7. Boutons ------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.35rem; border-radius: var(--radius);
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .16s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent-solid); color: var(--accent-ink); font-weight: 600; }
.btn--primary:hover { background: color-mix(in srgb, var(--accent-solid) 84%, #172029); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn__arrow { transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- 8. Canaux (3 pôles) --------------------------- */
.channels { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 900px) { .channels { grid-template-columns: repeat(3, 1fr); } }

.channel {
  position: relative; background: var(--bg);
  padding: clamp(1.8rem, 3vw, 2.6rem) clamp(1.4rem, 2.4vw, 2.2rem) clamp(2rem, 3vw, 2.8rem);
  display: flex; flex-direction: column; gap: 1rem;
  text-decoration: none; overflow: hidden;
  transition: background .22s ease;
}
.channel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--ch); transform: scaleX(.18); transform-origin: left;
  transition: transform .38s cubic-bezier(.2, .8, .3, 1);
}
.channel:hover, .channel:focus-visible { background: var(--surface); }
.channel:hover::before, .channel:focus-visible::before { transform: scaleX(1); }
.channel--it  { --ch: var(--ch-it); }
.channel--av  { --ch: var(--ch-av); }
.channel--msg { --ch: var(--ch-msg); }
.channel__code { color: var(--ch); }
.channel h3 { font-size: var(--step-2); }
.channel p { color: var(--text-2); font-size: var(--step-0); }
.channel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.channel li {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em;
  color: var(--text-3); text-transform: uppercase;
  padding-left: 1rem; position: relative;
}
.channel li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 6px; height: 1px; background: var(--ch);
}
.channel__go {
  margin-top: auto; padding-top: .8rem;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ch);
  display: inline-flex; align-items: center; gap: .45rem;
}

/* ---------- 9. Cartes / grilles --------------------------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg); padding: clamp(1.4rem, 2.4vw, 2rem);
  display: flex; flex-direction: column; gap: .7rem;
}
.sec--tint .card { background: var(--surface); }
.card__code { color: var(--text-3); }
.card h3 { font-size: var(--step-1); font-stretch: 112%; }
.card p { color: var(--text-2); font-size: var(--step--1); line-height: 1.6; }
.card ul { margin: .2rem 0 0; padding-left: 1.05rem; color: var(--text-2); font-size: var(--step--1); display: grid; gap: .3rem; }

/* ---------- 10. Process ----------------------------------- */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { background: var(--bg); padding: 1.5rem 1.3rem 1.8rem; display: flex; flex-direction: column; gap: .55rem; }
.sec--tint .step { background: var(--surface); }
.step__n {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em;
  color: var(--accent); display: flex; align-items: center; gap: .5rem;
}
.step__n::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step h3 { font-size: 1.02rem; font-stretch: 108%; }
.step p { color: var(--text-2); font-size: var(--step--1); line-height: 1.55; }

/* ---------- 11. Réalisations ------------------------------ */
.refs { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ref {
  background: var(--bg); display: grid; gap: .3rem 1.5rem;
  padding: 1.15rem clamp(1.1rem, 2vw, 1.6rem);
  align-items: baseline;
  transition: background .2s ease;
}
.sec--tint .ref { background: var(--surface); }
.ref:hover { background: var(--surface-2); }
@media (min-width: 800px) { .ref { grid-template-columns: 1.1fr 1.4fr auto; } }
.ref__name { font-family: var(--f-display); font-weight: 700; font-stretch: 112%; font-size: 1.06rem; }
.ref__what { color: var(--text-2); font-size: var(--step--1); }
.ref__tag {
  justify-self: start; color: var(--text-3);
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line-strong); padding: .18rem .5rem; border-radius: 2px;
  white-space: nowrap;
}
@media (min-width: 800px) { .ref__tag { justify-self: end; } }

/* ---------- 12. Stack ------------------------------------- */
.stack { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em;
  color: var(--text-2); border: 1px solid var(--line);
  background: var(--surface); padding: .38rem .68rem; border-radius: 2px;
}
.chip b { color: var(--accent); font-weight: 500; }

/* ---------- 13. Estimateur -------------------------------- */
.est { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.est__hd {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .7rem 1.1rem; border-bottom: 1px solid var(--line);
  background: var(--bg-deep); color: var(--text-3);
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
}
.est__hd b { color: var(--accent); font-weight: 500; }
.est__body { display: grid; gap: 0; }
@media (min-width: 940px) { .est__body { grid-template-columns: 1.35fr 1fr; } }
.est__form { padding: clamp(1.3rem, 2.4vw, 2rem); display: grid; gap: 1.5rem; }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .7rem; }
.fieldset > legend {
  padding: 0; color: var(--text-3);
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
}
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span {
  display: block; padding: .55rem .85rem; border: 1px solid var(--line-strong);
  border-radius: 2px; font-family: var(--f-mono); font-size: .74rem;
  color: var(--text-2); transition: all .16s ease;
}
.opt input:hover + span { border-color: var(--text-3); color: var(--text); }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.fieldset input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 2px; background: var(--line-strong);
  border-radius: 2px; cursor: pointer; margin: .8rem 0 .2rem;
}
.fieldset input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-solid); border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent-solid);
}
.fieldset input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-solid); border: 2px solid var(--surface);
}
.fieldset > legend [data-out-units] { color: var(--accent); }

.est__out {
  padding: clamp(1.3rem, 2.4vw, 2rem);
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 940px) { .est__out { border-top: 0; border-left: 1px solid var(--line); } }
.est__val {
  font-family: var(--f-display); font-weight: 800; font-stretch: 120%;
  font-size: var(--step-3); letter-spacing: -.02em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.est__meta { display: grid; gap: .5rem; }
.est__row {
  display: flex; justify-content: space-between; gap: 1rem;
  border-bottom: 1px dashed var(--line); padding-bottom: .45rem;
  font-family: var(--f-mono); font-size: .74rem; color: var(--text-2);
}
.est__row b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.est__note { color: var(--text-3); font-size: var(--step--1); line-height: 1.5; }

/* ---------- 14. Équipe ------------------------------------ */
.team { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .team { grid-template-columns: repeat(5, 1fr); } }
.mate { background: var(--bg); padding: 1.5rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.sec--tint .mate { background: var(--surface); }
.mate__ini {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-family: var(--f-mono); font-size: .8rem; color: var(--accent);
  margin-bottom: .5rem;
}
.mate h3 { font-size: 1rem; font-stretch: 108%; }
.mate p { color: var(--text-3); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- 15. Chiffres ---------------------------------- */
.stats { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: clamp(1.3rem, 2.6vw, 2rem) clamp(1.1rem, 2vw, 1.6rem); display: grid; gap: .3rem; }
.stat__v {
  font-family: var(--f-display); font-weight: 800; font-stretch: 122%;
  font-size: var(--step-3); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.stat__l { color: var(--text-3); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; }

/* ---------- 16. Formulaire de contact --------------------- */
.form { display: grid; gap: 1.45rem; align-content: start; }
.field { display: grid; gap: .4rem; }
.field label { color: var(--text-3); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .11em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .9rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 2px;
  font-family: var(--f-body); font-size: var(--step-0);
  transition: border-color .16s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; }
.form__row { display: grid; gap: 1.45rem; }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__msg { font-family: var(--f-mono); font-size: .74rem; color: var(--accent); min-height: 1.2em; line-height: 1.5; }
.form__msg[data-state="err"] { color: #ff6b5b; }

/* ---------- 17. CTA final --------------------------------- */
.cta {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(90% 140% at 12% 0%, var(--accent-soft), transparent 62%),
    var(--surface);
}
.cta__in { padding-block: clamp(3rem, 6vw, 5.4rem); display: grid; gap: 1.6rem; }
.cta h2 { font-size: var(--step-4); max-width: 18ch; }
.cta p { color: var(--text-2); max-width: 56ch; font-size: var(--step-1); }

/* ---------- 18. Pied de page ------------------------------ */
.ftr { border-top: 1px solid var(--line); background: var(--bg-deep); }
.ftr__in { padding-block: clamp(2.4rem, 4vw, 3.6rem); display: grid; gap: 2.4rem; }
@media (min-width: 860px) { .ftr__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; } }
.ftr__cols > div { display: grid; gap: .55rem; align-content: start; }
.ftr h4 { color: var(--text-3); font-family: var(--f-mono); font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-stretch: normal; }
.ftr a { color: var(--text-2); text-decoration: none; font-size: var(--step--1); transition: color .16s ease; }
.ftr a:hover { color: var(--accent); }
.ftr__note { color: var(--text-2); font-size: var(--step--1); max-width: 40ch; line-height: 1.55; }
.ftr__bot {
  border-top: 1px solid var(--line); padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  color: var(--text-3); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- 19. Apparition au scroll ---------------------- */
/* n'est masqué que si JS est actif : sans JS, tout reste visible */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .channel::before { transition: none; }
}

/* ---------- 20. Utilitaires ------------------------------- */
.sec__more { margin-top: 1.4rem; }
.btn__ico { width: 18px; height: 18px; margin-right: .1rem; flex: none; }
.stack-y { display: grid; gap: 1.1rem; }
.prose p { color: var(--text-2); max-width: 66ch; }
.prose p + p { margin-top: .9rem; }
.hr { height: 1px; background: var(--line); border: 0; margin-block: clamp(2rem, 4vw, 3rem); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 21. Sélecteur de langue ----------------------- */
.lang { position: relative; }
.lang > summary {
  width: auto; min-width: 36px; height: 36px; padding: 0 .5rem;
  display: inline-flex; align-items: center; gap: .35rem;
  background: transparent; border: 1px solid var(--line);
  color: var(--text-2); border-radius: var(--radius); cursor: pointer;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em;
  list-style: none; user-select: none;
  transition: border-color .18s ease, color .18s ease;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover { border-color: var(--line-strong); color: var(--text); }
.lang > summary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.lang[open] > summary { border-color: var(--accent); color: var(--text); }
.lang__menu {
  position: absolute; top: calc(100% + .45rem); right: 0; z-index: 120;
  min-width: 178px; display: grid;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
}
.lang__menu a {
  display: flex; align-items: baseline; gap: .7rem;
  padding: .62rem .85rem; text-decoration: none; color: var(--text-2);
  border-bottom: 1px solid var(--line);
  transition: background .16s ease, color .16s ease;
}
.lang__menu a:last-child { border-bottom: 0; }
.lang__menu a:hover { background: var(--surface-2); color: var(--text); }
.lang__menu a b {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em;
  color: var(--text-3); font-weight: 500; min-width: 2.1em;
}
.lang__menu a span { font-size: var(--step--1); }
.lang__menu a[aria-current="true"] { color: var(--accent); }
.lang__menu a[aria-current="true"] b { color: var(--accent); }

/* ---------- 22. Page contact ------------------------------ */
.contact {
  display: grid; gap: clamp(2.4rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .contact { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
  .contact__side {
    padding-left: clamp(2rem, 3.5vw, 3.2rem);
    border-left: 1px solid var(--line);
  }
}
.contact__side { display: grid; gap: 1.6rem; align-content: start; }
.contact__side .hr { margin-block: 0; }
.contact__txt { color: var(--text-2); font-size: var(--step--1); line-height: 1.65; }
.contact__list {
  margin: .7rem 0 0; padding-left: 1.05rem;
  color: var(--text-2); font-size: var(--step--1);
  display: grid; gap: .45rem;
}
.form__foot {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .8rem 1.2rem; margin-top: .3rem;
}
.form__req {
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
}
.check {
  display: grid; grid-template-columns: auto 1fr; gap: .7rem;
  align-items: start; cursor: pointer;
  color: var(--text-2); font-size: var(--step--1); line-height: 1.55;
}
.check input {
  width: 17px; height: 17px; margin-top: .18rem;
  accent-color: var(--accent-solid); cursor: pointer;
}
/* piège à robots : jamais visible, jamais focusable */
.hp {
  position: absolute !important; left: -9999px !important;
  width: 1px !important; height: 1px !important; opacity: 0 !important;
}

/* champ e-mail de l'estimateur, dans le panneau de sortie */
.est__out .field { margin-top: .4rem; }
.est__out .field input { background: var(--bg); }

/* ---------- 23. Pages légales ----------------------------- */
.legal { max-width: 74ch; display: grid; gap: clamp(2rem, 3.6vw, 3rem); }
.legal__date {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3);
}
.legal__blk { display: grid; gap: .85rem; }
.legal__blk h2 {
  font-family: var(--f-display); font-weight: 700; font-stretch: 112%;
  font-size: var(--step-1); letter-spacing: -.015em;
  padding-bottom: .7rem; border-bottom: 1px solid var(--line);
}
.legal__blk p { color: var(--text-2); line-height: 1.7; }
.legal__blk ul {
  margin: 0; padding-left: 1.15rem;
  color: var(--text-2); display: grid; gap: .6rem; line-height: 1.65;
}
.legal__blk li b, .legal__blk p b { color: var(--text); font-weight: 600; }
.legal__blk a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }
.legal__blk a:hover { border-bottom-color: currentColor; }
