:root {
  --bg: #060C17; --surface: #0C1524; --surface-2: #121E33; --line: #1B2A41;
  --fg: #F3F7FC; --muted: #93A6BF; --warm: #FF8A3D; --warm-ink: #1F0E02; --ice: #9CC9FF;
  --ok: #5FD39A; --alert: #FFB547; --danger: #FF9B9B;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--body); padding: 0 16px 64px; }
.wrap { max-width: 1080px; margin: 0 auto; }
.wrap.etroit { max-width: 640px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; border-radius: 6px; }

/* En-tête */
.entete { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; margin: 0 -16px; padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.entete .wrap { display: flex; align-items: center; gap: 18px; padding-block: 14px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-bloc { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.logo-md { height: 32px; width: auto; overflow: visible; }
.logo-md .m, .logo-md .d { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.logo-md .m { stroke: var(--fg); }
.logo-md .d { stroke: var(--warm); }
.logo-md .point { fill: var(--ice); }
.logo-url { font: 600 10px/1 var(--body); letter-spacing: 0.08em; color: var(--muted); }
.logo-url .chaud { color: var(--warm); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; font-size: 14.5px; color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav .btn { color: var(--warm-ink); }
@media (max-width: 720px) { .nav .lien-secondaire { display: none; } .nav { gap: 14px; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--body);
  padding: 14px 22px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; cursor: pointer;
  background: var(--warm); color: var(--warm-ink); white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.secondaire { background: var(--surface); color: var(--fg); border-color: var(--line); }
.btn.petit { padding: 10px 14px; font-size: 14px; }
.btn.large { width: 100%; padding: 17px; font-size: 16px; }
button.lien { background: none; border: 0; color: var(--muted); font: 500 14px/1 var(--body); text-decoration: underline; cursor: pointer; padding: 6px 0; }

/* Textes */
.label { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.label.ice { color: var(--ice); }
.intro { color: var(--muted); margin-top: 12px; font-size: 16.5px; }
.note { color: var(--muted); font-size: 13.5px; margin-top: 12px; }
.err { margin-top: 14px; color: var(--danger); font-size: 14px; }
.ok-msg { margin-top: 14px; color: var(--ok); font-size: 14px; }
h1 span.chaud, h2 span.chaud { color: var(--warm); }

/* Sections du site */
.section { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.hero { padding-block: clamp(56px, 9vw, 110px); }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; line-height: 1; max-width: 15ch; margin-top: 18px; }
.hero .intro { max-width: 52ch; font-size: 18px; margin-top: 20px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
h2.titre { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.05; margin-top: 12px; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 36px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; min-width: 0; }
.case h3 { font-size: 19px; font-weight: 700; margin-top: 10px; }
.case p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.case .num { font: 500 13px/1 var(--mono); color: var(--warm); }
.case.bientot { opacity: 0.6; }
.badge { display: inline-block; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--line); border-radius: 99px; padding: 5px 8px; color: var(--muted); }
.badge.ok { color: var(--ok); border-color: var(--ok); }
.badge.alerte { color: var(--alert); border-color: var(--alert); }
.badge.chaud { color: var(--warm); border-color: var(--warm); }
.badge.ice { color: var(--ice); border-color: var(--ice); }

/* Cartes et formulaires */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-top: 18px; min-width: 0; }
.card h2 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step { font: 500 12px/1 var(--mono); color: var(--warm-ink); background: var(--warm); border-radius: 99px; padding: 5px 9px; }
.field { margin-top: 16px; }
.lbl { display: block; font-size: 14px; color: var(--muted); margin-bottom: 7px; }
.lbl em { font-style: normal; color: var(--alert); font-size: 12.5px; margin-left: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: 16px/1.4 var(--body); color: var(--fg); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 13px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--warm); outline-offset: 0; }
textarea { resize: vertical; min-height: 90px; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .deux { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 10px 14px; cursor: pointer; font-size: 15px; }
.chips input:checked + label { border-color: var(--warm); background: color-mix(in srgb, var(--warm) 14%, var(--bg)); }
.chips input:focus-visible + label { outline: 2px solid var(--warm); outline-offset: 2px; }
.case-a-cocher { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); margin-top: 14px; }
.case-a-cocher input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--warm); flex: none; }

/* Onglets */
.onglets { display: flex; gap: 6px; margin-top: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.onglets button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted);
  font: 600 15px/1 var(--body); padding: 12px 14px; cursor: pointer; white-space: nowrap; }
.onglets button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--warm); }

/* Listes */
.liste { display: grid; gap: 12px; margin-top: 18px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 8px; text-align: left;
  color: var(--fg); font: inherit; width: 100%; }
button.item { cursor: pointer; }
button.item:hover, .item.actif { border-color: var(--warm); }
.item .haut { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.item .titre-item { font-weight: 600; }
.item .meta { font: 500 12.5px/1.4 var(--mono); color: var(--muted); }
.item .prix { font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.vide { color: var(--muted); font-size: 15px; padding: 26px 18px; border: 1px dashed var(--line); border-radius: 16px; margin-top: 18px; text-align: center; }

/* Estimation */
.price { font: 800 clamp(32px, 8vw, 44px)/1 var(--display); margin-top: 8px; font-variant-numeric: tabular-nums; }
.price small { font: 500 15px/1 var(--body); color: var(--muted); }
.rows { margin-top: 14px; border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.row.total { font-weight: 600; border-bottom: 0; }
ul.puces { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; display: grid; gap: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.fact { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.fact .k { font: 500 11px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fact .v { margin-top: 4px; font-weight: 600; overflow-wrap: anywhere; }
.fact.unsure { border-color: var(--alert); }
.quote { margin-top: 12px; border-left: 3px solid var(--ice); padding: 10px 14px; font-size: 15px;
  background: color-mix(in srgb, var(--ice) 7%, transparent); border-radius: 0 10px 10px 0; }
.banner { margin-top: 18px; border: 1px solid var(--alert); color: var(--alert); border-radius: 12px; padding: 10px 14px; font-size: 14px; }

/* Parcours vidéo */
ol.consignes { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
ol.consignes b { color: var(--fg); font-weight: 600; }
.exemple { margin-top: 14px; border-left: 3px solid var(--ice); padding: 8px 12px; color: var(--ice); font-size: 14.5px; font-style: italic;
  background: color-mix(in srgb, var(--ice) 7%, transparent); }
.depot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  margin-top: 16px; border: 1px dashed var(--line); border-radius: 14px; background: var(--bg); padding: 24px 16px; cursor: pointer; }
.depot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.depot:focus-within { outline: 2px solid var(--warm); outline-offset: 2px; }
.depot.rempli { border-style: solid; border-color: var(--warm); }
.depot .t { font-weight: 600; }
.depot .h { color: var(--muted); font-size: 13.5px; }
.rec { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--warm); display: grid; place-items: center; }
.rec::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--warm); }
.meta-video { font: 500 12px/1.4 var(--mono); color: var(--muted); margin-top: 8px; }
.progression { margin-top: 14px; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progression i { display: block; height: 100%; width: 0; background: var(--warm); transition: width .2s ease; }
.statut { margin-top: 10px; font-size: 14px; color: var(--muted); }
h1.page { font-size: clamp(30px, 7vw, 42px); font-weight: 800; line-height: 1.05; margin-top: 28px; }

/* Médias */
video.media { width: 100%; max-height: 360px; border-radius: 12px; background: #000; margin-top: 12px; }
.vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.vignettes img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* Entreprise */
.entreprise { display: flex; gap: 12px; align-items: center; }
.entreprise img, .entreprise .sans-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; flex: none; }
.entreprise .sans-logo { background: var(--surface-2); display: grid; place-items: center; font: 700 18px var(--display); color: var(--muted); }
.logo-apercu { width: 96px; height: 96px; border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--line); }

/* Chat */
.chat { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.chat .messages { max-height: 320px; overflow-y: auto; padding: 14px; display: grid; gap: 8px; }
.bulle { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14.5px; overflow-wrap: anywhere; }
.bulle.moi { justify-self: end; background: color-mix(in srgb, var(--warm) 18%, var(--surface)); border-bottom-right-radius: 4px; }
.bulle.autre { justify-self: start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.bulle.systeme { justify-self: center; max-width: 100%; background: none; color: var(--ice); font: 500 12.5px/1.4 var(--mono); text-align: center; }
.bulle time { display: block; font: 400 11px/1 var(--mono); color: var(--muted); margin-top: 4px; }
.chat form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat form input { flex: 1; min-width: 0; }

/* Espace connecté */
.grille-espace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 24px; align-items: start; margin-top: 8px; }
@media (max-width: 900px) { .grille-espace { grid-template-columns: minmax(0, 1fr); } }
.grille-espace h2.colonne { font-size: 18px; font-weight: 700; margin-top: 18px; }
.barre-pro { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.fil { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-top: 14px; }
.fil .offre { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.fil .offre .prix { font: 800 24px/1 var(--display); color: var(--warm); font-variant-numeric: tabular-nums; }
.coche-metiers { display: flex; gap: 16px; flex-wrap: wrap; }
.coche-metiers label { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.coche-metiers input { width: 18px; height: 18px; accent-color: var(--warm); }

.pastille { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 8px; border-radius: 99px;
  background: var(--warm-ink); color: var(--warm); font: 700 11px/1 var(--mono); }
.nav .btn { position: relative; }

/* Pied de page */
.pied { border-top: 1px solid var(--line); margin-top: 48px; padding-block: 28px; color: var(--muted); font-size: 13.5px; }
.pied .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--fg); }
.pied nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Avis et annuaire */
.etoiles { letter-spacing: .08em; font-size: 15px; white-space: nowrap; }
.etoiles .on { color: var(--alert); }
.etoiles .off { color: var(--line); }
.etoiles.vide { color: var(--muted); font: 500 13px var(--body); letter-spacing: 0; }
.pro-carte { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-decoration: none; transition: border-color .2s ease; }
.pro-carte:hover { border-color: var(--warm); }
.pro-carte .entreprise img, .pro-carte .entreprise .sans-logo, .fiche-pro .entreprise img, .fiche-pro .entreprise .sans-logo { width: 56px; height: 56px; }
.pro-carte .nom { font: 700 18px var(--display); letter-spacing: -.01em; }
.pro-carte .meta { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.pro-carte .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pro-carte .note-pro { text-align: right; }
.pro-carte .note-pro b { display: block; font: 800 24px var(--display); }
@media (max-width: 560px) { .pro-carte { grid-template-columns: auto 1fr; } .pro-carte .note-pro { grid-column: 1 / -1; text-align: left; } }
.liste-pros { display: grid; gap: 12px; margin-top: 24px; }
.filtres { display: grid; grid-template-columns: 2fr 1fr auto; gap: 10px; margin-top: 26px; align-items: end; }
@media (max-width: 640px) { .filtres { grid-template-columns: 1fr; } }
.avis-liste { display: grid; gap: 12px; margin-top: 18px; }
.avis { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.avis .entete-avis { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.avis .qui { font-weight: 600; }
.avis .quand { color: var(--muted); font: 500 12.5px var(--mono); }
.avis p { margin-top: 8px; }
.avis .reponse-pro { margin-top: 12px; padding: 12px 14px; border-left: 2px solid var(--ice); background: var(--surface-2); border-radius: 0 10px 10px 0; font-size: 14.5px; color: var(--muted); }
.avis .reponse-pro b { color: var(--fg); }
.choix-note { display: inline-flex; gap: 6px; }
.choix-note button { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--line); padding: 2px; }
.choix-note button.on { color: var(--alert); }

/* Pages de prix (SEO) */
.prix-page .fil-ariane { margin-top: 22px; color: var(--muted); font-size: 13.5px; }
.prix-page .fil-ariane a { color: var(--muted); }
.tableau-prix { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.tableau-prix table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.tableau-prix th, .tableau-prix td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tableau-prix thead th { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.tableau-prix tbody th { font-weight: 600; }
.tableau-prix td { font-variant-numeric: tabular-nums; }
.tableau-prix tr:last-child th, .tableau-prix tr:last-child td { border-bottom: 0; }
.tableau-prix tr.total th, .tableau-prix tr.total td { font-weight: 700; color: var(--warm); }
.prix-page .liste-aides { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.prix-page .liste-aides li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.prix-page .muted { color: var(--muted); }
.prix-page .faq h3 { font-size: 18px; margin-top: 22px; }
.prix-page .faq p { color: var(--muted); margin-top: 6px; max-width: 70ch; }
.prix-page a.case { text-decoration: none; display: block; }
.prix-page a.case:hover { border-color: var(--warm); }
.final-prix { text-align: center; padding: clamp(32px, 5vw, 56px) 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.final-prix h2 { font-size: clamp(24px, 3.6vw, 36px); font-weight: 800; }
