/* Mise en page : une « fiche d'intervention » — bandeau mètre-ruban, colonnes qui s'empilent, la journée de 8 h comme unité de mesure partout. */
:root {
  --bg: #EDF0F4;          /* papier bleuté */
  --surface: #FFFFFF;
  --fg: #121C30;
  --muted: #4D5870;
  --line: #CDD4DF;
  --brand: #1F3B73;       /* bleu de travail */
  --brand-text: #1F3B73;
  --brand-fg: #FFFFFF;
  --brand-soft: #DCE4F2;
  --accent: #F4C20D;      /* jaune mètre-ruban */
  --accent-fg: #17140A;
  --ok: #1E7A4C;

  --f-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem;
  --radius: 6px;
  --wrap: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1422; --surface: #152038; --fg: #E4E9F2; --muted: #9AA6BC; --line: #2A3756;
    --brand: #2C4E92; --brand-text: #9DB9F0; --brand-fg: #FFFFFF; --brand-soft: #1C2B4A;
    --accent: #F4C20D; --accent-fg: #17140A; --ok: #5BC48C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1422; --surface: #152038; --fg: #E4E9F2; --muted: #9AA6BC; --line: #2A3756;
  --brand: #2C4E92; --brand-text: #9DB9F0; --brand-fg: #FFFFFF; --brand-soft: #1C2B4A;
  --accent: #F4C20D; --accent-fg: #17140A; --ok: #5BC48C;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  padding-bottom: 4.5rem; /* place pour la barre d'appel mobile */
}
@media (min-width: 760px) { body { padding-bottom: 0; } }
a { color: var(--brand-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.02; letter-spacing: .005em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); text-transform: uppercase; }
h3 { font-size: 1.55rem; text-transform: uppercase; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 760px) { .wrap { padding-inline: 32px; } }
.eyebrow { font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.lede { color: var(--muted); max-width: 40rem; }
section { padding-block: var(--s-8); }
.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }

/* Mètre-ruban : graduations tous les 1/2 cm visuels, repère fort tous les 5 */
.tape {
  height: 22px;
  background:
    repeating-linear-gradient(90deg, var(--accent-fg) 0 2px, transparent 2px 50px) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--accent-fg) 0 1px, transparent 1px 10px) 0 0 / 100% 7px no-repeat,
    var(--accent);
  border-bottom: 1px solid rgba(0,0,0,.25);
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.2rem;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; text-decoration: none;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
}
.btn-accent { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn-accent:hover { filter: brightness(1.05); }
.btn-brand { background: var(--brand); color: var(--brand-fg); border-color: var(--brand); }
.btn-brand:hover { filter: brightness(1.12); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* En-tête */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.site-head .wrap { display: flex; align-items: center; gap: var(--s-4); min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--fg); }
.brand-mark { width: 38px; height: 38px; border-radius: 4px; background: var(--brand); color: var(--accent); display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-size: 1.1rem; letter-spacing: .02em; }
.brand-name { font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.brand-sub { display: block; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.nav { display: none; gap: var(--s-5); margin-left: auto; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:hover { color: var(--brand-text); text-decoration: underline; text-underline-offset: 4px; }
.head-cta { margin-left: auto; }
@media (min-width: 980px) { .nav { display: flex; } .head-cta { margin-left: 0; } }
.head-cta .btn { min-height: 42px; padding: .45rem .9rem; font-size: .92rem; }
@media (max-width: 420px) { .head-cta .label-long { display: none; } }

/* Hero */
.hero { padding-block: var(--s-7) var(--s-8); }
.hero-grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.15fr 1fr; gap: var(--s-8); } }
.hero-copy { display: grid; gap: var(--s-5); min-width: 0; }
.hero h1 { font-size: clamp(2.9rem, 8vw, 5.4rem); text-transform: uppercase; font-weight: 900; }
.hero h1 .hl { background: linear-gradient(transparent 58%, var(--accent) 58% 92%, transparent 92%); padding-inline: .05em; }
.hero .lede { font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.fact { display: grid; }
.fact b { font-family: var(--f-mono); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.fact span { font-size: .85rem; color: var(--muted); }

/* Fiche du jour */
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(18,28,48,.35); overflow: hidden; min-width: 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding: var(--s-4) var(--s-5); background: var(--brand); color: var(--brand-fg); }
.sheet-head h3 { font-size: 1.35rem; }
.sheet-head .mono { font-size: .78rem; opacity: .85; }
.sheet ol { list-style: none; margin: 0; padding: var(--s-2) 0; }
.sheet li { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: var(--s-3); align-items: baseline; padding: .55rem var(--s-5); border-bottom: 1px dashed var(--line); }
.sheet li:last-child { border-bottom: 0; }
.sheet .t { font-family: var(--f-mono); font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sheet .task { min-width: 0; }
.sheet .task small { display: block; color: var(--muted); font-size: .82rem; }
.sheet .tick { width: 22px; height: 22px; border-radius: 4px; border: 2px solid var(--ok); color: var(--ok); display: grid; place-items: center; }
.sheet .tick svg { width: 14px; height: 14px; }
.sheet li.pause { background: var(--brand-soft); }
.sheet li.pause .task { font-style: italic; color: var(--muted); }
.sheet-foot { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }

/* Services */
.services { background: var(--surface); border-block: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--fg); }
@media (min-width: 620px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.svc { padding: var(--s-5) var(--s-4) var(--s-5) 0; border-bottom: 1px solid var(--line); display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
@media (min-width: 620px) { .svc { padding-inline: var(--s-4); border-right: 1px solid var(--line); } }
.svc-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; }
.svc-icon svg { width: 24px; height: 24px; }
.svc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .3rem; color: var(--muted); font-size: .95rem; }
.svc li::before { content: "— "; color: var(--line); }
.svc-note { margin-top: var(--s-5); font-size: .92rem; color: var(--muted); max-width: 46rem; }

/* Composeur */
.composer-grid { display: grid; gap: var(--s-6); }
@media (min-width: 980px) { .composer-grid { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.task-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.task-group { padding: var(--s-4) var(--s-5) var(--s-2); }
.task-group + .task-group { border-top: 1px solid var(--line); }
.task-group h3 { font-size: 1.15rem; color: var(--brand-text); margin-bottom: var(--s-2); }
.trow { display: grid; grid-template-columns: 1fr auto auto; gap: var(--s-3); align-items: center; padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.trow:last-child { border-bottom: 0; }
.trow .tname { min-width: 0; font-size: .98rem; }
.trow .tdur { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stepper button { width: 36px; height: 36px; border: 0; background: transparent; color: var(--fg); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.stepper button:hover { background: var(--brand-soft); }
.stepper output { min-width: 2ch; text-align: center; font-family: var(--f-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.trow.on .tname { font-weight: 700; }
.trow.on .stepper { border-color: var(--brand-text); }

.summary { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); background: var(--surface); border: 2px solid var(--fg); border-radius: var(--radius); padding: var(--s-5); display: grid; gap: var(--s-4); min-width: 0; }
.summary .verdict { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.summary .verdict h3 { font-size: 2rem; }
.summary .price { font-family: var(--f-mono); font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary .price small { font-size: .8rem; font-weight: 400; color: var(--muted); }
.example-flag { justify-self: start; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; background: var(--brand-soft); color: var(--brand-text); padding: .2rem .5rem; border-radius: 3px; }
.bar-wrap { display: grid; gap: .35rem; }
.bar { position: relative; height: 34px; border: 1px solid var(--fg); border-radius: 3px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / var(--cells, 8))); display: flex; overflow: hidden; }
.bar .seg { height: 100%; background: var(--brand); border-right: 2px solid var(--surface); min-width: 2px; transition: flex-basis .25s ease; }
.bar .seg:nth-child(even) { background: var(--brand-text); }
.bar .half { position: absolute; top: -1px; bottom: -1px; width: 0; border-left: 2px dashed var(--accent); }
.bar .daysep { position: absolute; top: -1px; bottom: -1px; width: 0; border-left: 2px solid var(--fg); }
.bar-scale { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.total-line { font-size: .95rem; color: var(--muted); }
.total-line b { color: var(--fg); font-family: var(--f-mono); }
.form { display: grid; gap: var(--s-3); }
.form-row { display: grid; gap: var(--s-3); }
@media (min-width: 520px) { .form-row { grid-template-columns: 1fr 1fr; } }
label { display: grid; gap: .25rem; font-size: .88rem; font-weight: 700; min-width: 0; }
input, textarea, select { font: inherit; font-weight: 400; font-size: 1rem; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .7rem; width: 100%; min-width: 0; }
textarea { min-height: 4.5rem; resize: vertical; }
input:focus, textarea:focus { border-color: var(--brand-text); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.send-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.send-actions .btn { flex: 1 1 10rem; }
.status { font-size: .88rem; color: var(--ok); min-height: 1.3em; }
.preview-msg { font-family: var(--f-mono); font-size: .8rem; white-space: pre-wrap; background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius); padding: var(--s-3); max-height: 14rem; overflow: auto; color: var(--muted); }
.disclaimer { font-size: .82rem; color: var(--muted); }

/* Tarifs */
.pricing { background: var(--brand); color: var(--brand-fg); }
.pricing .eyebrow, .pricing .lede { color: rgba(255,255,255,.75); }
.price-grid { display: grid; gap: var(--s-4); }
@media (min-width: 820px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.plan { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.plan.featured { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.plan .dur { font-family: var(--f-mono); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.plan .amount { font-family: var(--f-display); font-weight: 900; font-size: 3.6rem; line-height: 1; }
.plan .amount small { font-family: var(--f-body); font-size: 1rem; font-weight: 400; }
.plan p { font-size: .95rem; }
.included { margin-top: var(--s-6); display: grid; gap: var(--s-4); }
@media (min-width: 820px) { .included { grid-template-columns: 1fr 1fr; } }
.included h3 { font-size: 1.2rem; margin-bottom: var(--s-2); }
.included ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; color: rgba(255,255,255,.88); font-size: .97rem; }
.vat { margin-top: var(--s-5); font-family: var(--f-mono); font-size: .78rem; color: rgba(255,255,255,.7); }

/* Étapes */
.steps { display: grid; gap: var(--s-5); counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-4); border-top: 2px solid var(--fg); }
.steps li::before { content: counter(step); font-family: var(--f-display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--brand-text); }
.steps p { color: var(--muted); font-size: .97rem; }

/* Zone + FAQ */
.zone { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .zone { grid-template-columns: 1fr 1.5fr; } }
.zone-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.zone-card .big { font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; text-transform: uppercase; line-height: 1.05; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .2rem var(--s-4); font-family: var(--f-mono); font-size: .9rem; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; }
.faq { display: grid; border-top: 2px solid var(--fg); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s-4) 2.2rem var(--s-4) 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 1.4rem; color: var(--brand-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 var(--s-4); color: var(--muted); max-width: 44rem; }

/* Contact */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: var(--s-4); }
@media (min-width: 820px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.ch { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.ch .val { font-family: var(--f-mono); font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; user-select: all; }
.ch .row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.ch .btn { min-height: 42px; padding: .45rem .9rem; font-size: .92rem; }

/* Pied */
.site-foot { padding-block: var(--s-6); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.site-foot .wrap { display: grid; gap: var(--s-3); }
.legal { font-family: var(--f-mono); font-size: .76rem; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }

/* Barre d'appel mobile */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
.callbar .btn { min-height: 46px; }
@media (min-width: 760px) { .callbar { display: none; } }

/* Valeur de configuration encore à remplir */
.todo { background: var(--accent); color: var(--accent-fg); padding-inline: .2em; border-radius: 2px; }
.site-foot a { color: var(--fg); font-weight: 600; }

/* Page des mentions légales */
.legal-page { padding-block: var(--s-7) var(--s-8); }
.legal-page .wrap { display: grid; gap: var(--s-6); }
.legal-page header { display: grid; gap: var(--s-3); }
.legal-page h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); text-transform: uppercase; font-weight: 900; }
.legal-toc { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-family: var(--f-mono); font-size: .82rem; padding-block: var(--s-3); border-block: 1px solid var(--line); }
.legal-toc a { color: var(--brand-text); }
.legal-block { display: grid; gap: var(--s-3); max-width: 46rem; padding-top: var(--s-4); border-top: 2px solid var(--fg); scroll-margin-top: 90px; }
.legal-block h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.legal-block p, .legal-block li { color: var(--muted); }
.legal-block ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.idcard { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: .45rem var(--s-4); margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4) var(--s-5); }
.idcard dt { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); padding-top: .15rem; }
.idcard dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .idcard { grid-template-columns: 1fr; gap: .1rem; } .idcard dd + dt { margin-top: var(--s-3); } }
.back { justify-self: start; }
