/* Page de commande du site, construite par construire-commande-site.js : ne pas modifier ici. */
/* Mise en page : réglages à gauche, devis instantané à droite (collant), comme une feuille de devis posée à côté de la régie. */
:root {
  --bg: #f3f6f9;
  --surface: #ffffff;
  --surface-2: #f7fafc;
  --ink: #17212b;
  --muted: #56636f;
  --line: #d9e2ec;
  --accent: #1193b8;
  --accent-strong: #0b7896;
  --accent-soft: #e3f3f8;
  --deep: #14324a;
  --on-accent: #ffffff;
  --focus: #1193b8;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d151c; --surface: #142029; --surface-2: #182733; --ink: #e7eef4; --muted: #9fb1c0;
    --line: #26394a; --accent: #2bb2d8; --accent-strong: #6ccbe6; --accent-soft: #11313e; --deep: #0a121a;
    --on-accent: #06202b; --focus: #6ccbe6; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d151c; --surface: #142029; --surface-2: #182733; --ink: #e7eef4; --muted: #9fb1c0;
  --line: #26394a; --accent: #2bb2d8; --accent-strong: #6ccbe6; --accent-soft: #11313e; --deep: #0a121a;
  --on-accent: #06202b; --focus: #6ccbe6; color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.55; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-block: 28px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; font-size: 1.05rem; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: var(--on-accent); font-size: .8rem; }
.brand b { color: var(--accent); font-weight: 700; }
.mockup { font-size: .78rem; font-weight: 600; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 2px 10px; margin-left: auto; }
.top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.15; margin: 0; text-wrap: balance; font-weight: 700; }
.lead { color: var(--muted); margin: 8px 0 0; max-width: 62ch; text-wrap: pretty; }
.grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.step + .step { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.jauge { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.jauge output { font-size: 2.6rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.jauge span { color: var(--muted); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
input[type="range"] { width: 100%; accent-color: var(--accent); margin: 14px 0 4px; height: 28px; }
.scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.num { width: 110px; font: inherit; font-variant-numeric: tabular-nums; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { font: inherit; font-size: .85rem; font-weight: 500; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.quick button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.opt + .opt { margin-top: 10px; }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
.opt.off { opacity: .55; cursor: not-allowed; }
.opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.opt strong { display: block; font-weight: 600; }
.opt small { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; text-wrap: pretty; }
.opt .p { font-size: .85rem; font-weight: 600; color: var(--accent-strong); white-space: nowrap; font-variant-numeric: tabular-nums; }
.duree { display: grid; gap: 8px; margin: 10px 0 0 48px; }
.duree[hidden] { display: none; }
.duree [hidden] { display: none; }
.dc { display: grid; grid-template-columns: auto minmax(0, 160px); gap: 6px 12px; align-items: center; }
.dc label { font-size: .9rem; font-weight: 600; }
.dc select { font: inherit; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
.pj { display: flex; gap: 8px; align-items: center; font-size: .9rem; cursor: pointer; }
.pj input { width: 18px; height: 18px; accent-color: var(--accent); }
.hj { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.hj label { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); }
.hj select { font: inherit; font-size: .95rem; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); width: 100%; }
.duree small { color: var(--muted); font-size: .84rem; text-wrap: pretty; }
@media (max-width: 520px) { .duree { margin-left: 0; } }
/* Durée du replay (2026-11-16, choix de l'utilisateur) : liste sous l'option Replay, assez large pour « Plus de 3 mois (sur devis) » */
#replay-box .dc { grid-template-columns: auto minmax(0, 250px); }
@media (max-width: 520px) { #replay-box .dc { grid-template-columns: minmax(0, 1fr); } }   /* téléphone : la liste sous son libellé, sur toute la largeur */
.dc input { font: inherit; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); width: 100%; min-width: 0; }
.sum { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); }
.sum h2 { font-size: 1.05rem; margin: 0 0 14px; }
.lines { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; font-size: .92rem; }
.lines li .d { color: var(--muted); font-size: .82rem; display: block; }
.lines li .v { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.lines li.minus .v { color: var(--accent-strong); }
.lines li.inclus .v { color: var(--accent-strong); font-weight: 600; }   /* « Comprise » à la place d'un prix */
.total { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.total .t { font-size: 2.1rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.total .ht { color: var(--muted); font-size: .85rem; }
.per { color: var(--muted); font-size: .85rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pays { display: grid; gap: 4px; font-size: .82rem; color: var(--muted); margin: 0 0 16px; }
.pays select { font: inherit; font-size: .9rem; color: var(--ink); padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); width: 100%; }
.ttc { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ttc li.fort { font-weight: 700; font-size: 1.05rem; }
.cta { display: block; text-align: center; text-decoration: none; margin-top: 18px; width: 100%; font: inherit; font-weight: 700; padding: 13px 18px; border-radius: 12px; border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; text-wrap: pretty; }
.apres { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .82rem; }
.apres p { margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.apres ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); text-wrap: pretty; }
.incl h2 { font-size: 1.15rem; margin: 0 0 4px; }
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
@media (max-width: 760px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feats li { font-size: .9rem; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.feats li.off { background: transparent; border-style: dashed; color: var(--muted); }
.feats li.off s { text-decoration-thickness: 1px; }
.feats li.off small { display: block; font-size: .78rem; }
.feats li.cle { grid-column: 1 / -1; border-color: var(--accent); background: var(--accent-soft); }
.feats li.cle strong { display: block; font-weight: 600; color: var(--accent-strong); }
.feats li.cle small { display: block; font-size: .84rem; color: var(--ink); margin-top: 2px; text-wrap: pretty; }
.maq { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; font-size: .85rem; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.maq select { font: inherit; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); max-width: 100%; min-width: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .opt, .quick button { transition: background .15s, border-color .15s; } }
/* Étapes du parcours de commande (2026-11-16, choix de l'utilisateur) : formule, réservation, paiement, plateforme. */
.etapes { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.etapes li { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; font-size: .9rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.etapes li:not(:last-child)::after { content: ""; flex: 1; height: 2px; min-width: 24px; margin: 0 14px; background: var(--line); }
.etapes li:last-child { flex: 0 0 auto; }
.etapes .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .8rem; font-weight: 700; border: 2px solid var(--line); background: var(--surface); color: var(--muted); }
.etapes .ici { color: var(--ink); }
.etapes .ici .n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.etapes { min-width: 0; }
@media (max-width: 760px) { .etapes li:not(.ici) .t { display: none; } .etapes li { gap: 8px; } .etapes li:not(:last-child)::after { margin: 0 6px; min-width: 8px; } .etapes .n { width: 26px; height: 26px; } }
/* Au-delà de 2 000 viewers : sur devis (2026-11-16, choix de l'utilisateur : pastille, bouton et encadré de la proposition A, règle de la
   proposition B). La règle continue sur une zone rayée « sur devis » ; y aller ouvre une demande de devis dans la page. */
:root { --rouge: #d63a3a; --rouge-fort: #b52a2a; --rouge-doux: #fdecec; --rouge-raie: #f6c9c9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --rouge: #ef6262; --rouge-fort: #ff8a8a; --rouge-doux: #3a1d1f; --rouge-raie: #5a2a2d; } }
:root[data-theme="dark"] { --rouge: #ef6262; --rouge-fort: #ff8a8a; --rouge-doux: #3a1d1f; --rouge-raie: #5a2a2d; }
.regle-devis { position: relative; --p: 0%; }   /* --z (début de la zone rayée) est posé par le script sur le bloc qui contient la règle et son échelle */
.regle-devis::after { content: "sur devis"; position: absolute; top: 0; right: 0; font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--rouge-fort); pointer-events: none; }
/* zone rayée derrière le bout de la règle (la piste y est transparente) */
.regle-devis::before { content: ""; position: absolute; left: var(--z); right: 0; top: 21px; height: 17px; border-radius: 4px; border: 1px solid var(--rouge-raie); background: repeating-linear-gradient(135deg, var(--rouge-doux) 0 5px, var(--rouge-raie) 5px 9px); pointer-events: none; }
#v-range { position: relative; z-index: 1; width: 100%; -webkit-appearance: none; appearance: none; background: transparent; height: 28px; margin: 16px 0 4px; cursor: pointer; }
#v-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent) 0 var(--p), var(--line) var(--p) var(--z), transparent var(--z)); }
#v-range::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent) 0 var(--p), var(--line) var(--p) var(--z), transparent var(--z)); }
#v-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); }
#v-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); }
#v-range.devis::-webkit-slider-thumb { background: var(--rouge); box-shadow: 0 0 0 1px var(--rouge); }
#v-range.devis::-moz-range-thumb { background: var(--rouge); box-shadow: 0 0 0 1px var(--rouge); }
/* repère « 2 000 » centré sous le début de la zone rayée (pastille « 2 000 + · Sur devis » retirée le 2026-11-16, demande de l'utilisateur) */
.scale .fin { margin-right: calc(100% - var(--z, 87%)); transform: translateX(50%); }
.quick button.plus { border-color: var(--rouge); background: var(--rouge-doux); color: var(--rouge-fort); font-weight: 600; }
.quick button.plus[aria-pressed="true"] { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.devis-plus { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--rouge); border-left-width: 4px; border-radius: 12px; background: var(--rouge-doux); }
.devis-plus[hidden], .devis-fin[hidden] { display: none; }
.devis-plus > p { margin: 0 0 12px; font-size: .88rem; text-wrap: pretty; }
.devis-plus > p b { color: var(--rouge-fort); }
.devis-plus .dp-v { display: grid; gap: 4px; max-width: 220px; font-size: .78rem; color: var(--muted); }
/* Demande de devis, en dernier dans la colonne de gauche (2026-11-16, choix de l'utilisateur : on compose la formule, puis on envoie en bas) */
/* Demande de devis dans le devis à droite, sous « Sur devis » (2026-11-16, choix de l'utilisateur : un seul bouton d'envoi) */
.devis-fin { margin-top: 16px; }
.devis-fin form { display: grid; gap: 10px; }
.devis-fin form[hidden] { display: none; }   /* après l'envoi, seul le message de confirmation reste */
.devis-plus input, .devis-fin input { font: inherit; font-size: .92rem; width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); }
.devis-fin label { display: grid; gap: 4px; font-size: .82rem; color: var(--muted); min-width: 0; }
.devis-fin label span:not(.lt) { font-size: .74rem; }   /* .lt : libellé du champ, à sa taille (traduit à part) */
.devis-fin button[type="submit"] { width: 100%; margin-top: 4px; font: inherit; font-weight: 700; padding: 13px 18px; border: 0; border-radius: 12px; background: var(--rouge); color: #fff; cursor: pointer; }
.devis-fin button[disabled] { opacity: .6; cursor: wait; }
.devis-fin .dp-etat { margin: 10px 0 0; font-size: .88rem; }
.devis-fin .dp-etat:empty { display: none; }
.devis-fin .dp-etat.ko { color: var(--rouge-fort); font-weight: 600; }
.devis-fin .dp-etat.ok { color: var(--ink); font-weight: 600; }
/* Devis à droite en mode « sur devis » : la formule sans montants, « Sur devis » à la place du total, bouton vers la demande en bas */
.sum.sur-devis .lines li .v, .sum.sur-devis .ttc, .sum.sur-devis #apres, .sum.sur-devis .total .ht { display: none; }
.sum.sur-devis .total .t { font-size: 1.7rem; color: var(--rouge-fort); }
.sum.sur-devis #reserver { display: none; }   /* en mode devis, le seul bouton est celui de la demande */
.mode-devis .jauge output { color: var(--rouge-fort); }
.mode-devis #live-p, .mode-devis #replay-p { visibility: hidden; }   /* prix calculés sur 2 000 viewers : sans objet sur devis */
/* Langue (2026-11-16, commande bilingue) : sélecteur FR | EN comme celui du site, et page anglaise montrée une fois ses textes posés
   (au pire après 1 s, si le script ne s'exécute pas). */
.lang { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .85rem; line-height: 1; flex: none; }
.lang a, .lang b { display: block; padding: 8px 12px; text-decoration: none; }
.lang b { background: var(--accent); color: var(--on-accent); }
.lang a { color: var(--ink); }
.lang a:hover { background: var(--accent-soft); color: var(--accent-strong); }
html[lang="en"] body:not(.traduite) { opacity: 0; animation: montrer-page 0s linear 1s forwards; }
@keyframes montrer-page { to { opacity: 1; } }
/* Écran étroit : le sélecteur reste à droite du logo, le badge de la maquette passe dessous. */
@media (max-width: 560px) { .top .lang { margin-left: auto; } .top .mockup { order: 3; margin-left: 0; } }
html[lang="en"] .regle-devis::after { content: "custom quote"; }
/* Composants du site (règle de l'utilisateur du 2026-11-16 : une nouvelle page reprend exactement les composants des pages existantes).
   Sélecteur FR | EN et bouton principal au style du site (assets/style.css : .lang, .btn-primary). */
.lang a:hover { background: #eff2f9; color: #1193b8; }
@media (max-width: 379px) { .lang a, .lang b { padding: 7px 9px; } }
.cta { box-shadow: 0 6px 18px rgba(17, 147, 184, .35); transition: box-shadow .25s, background .15s, color .15s; }
.cta:not(:disabled):hover { background: #0e7d9c; color: #fff; box-shadow: 0 10px 24px rgba(17, 147, 184, .45); }
/* Bouton de la demande de devis : la même ombre et le même survol plus foncé, dans son rouge. */
.devis-fin button[type="submit"] { box-shadow: 0 6px 18px rgba(214, 58, 58, .3); transition: box-shadow .25s, background .15s; }
.devis-fin button[type="submit"]:not([disabled]):hover { background: var(--rouge-fort); box-shadow: 0 10px 24px rgba(214, 58, 58, .4); }
/* Écran étroit (2026-11-16) : sous 420 px, traits et pastilles un peu plus serrés, et le libellé de l'étape en cours peut passer
   sur 2 lignes au lieu de déborder (« Votre plateforme » à 360 px). Les pastilles ne rétrécissent jamais. */
@media (max-width: 420px) { .etapes li { gap: 6px; } .etapes li:not(:last-child)::after { margin: 0 4px; min-width: 6px; } .etapes .n { width: 24px; height: 24px; font-size: .75rem; }
  .etapes li.ici { min-width: 0; } .etapes li.ici:last-child { flex: 0 1 auto; } .etapes .ici .t { white-space: normal; line-height: 1.2; min-width: 0; } }
/* Grand écran (2026-11-16) : traits plus courts entre les étapes, pour que la barre française tienne dans le bloc de 780 px
   de la page de retour (elle le dépassait de 56 px). Même règle sur les 3 pages, pour garder la même barre partout. */
@media (min-width: 761px) { .etapes li { gap: 8px; } .etapes li:not(:last-child)::after { min-width: 12px; margin: 0 10px; } }
@media (min-width: 761px) and (max-width: 820px) { .etapes li:not(:last-child)::after { min-width: 6px; margin: 0 6px; } }   /* juste au-dessus de 760 px, la barre française dépassait de 8 px */
/* Écran étroit (2026-11-16) : le prix à droite des options peut passer à la ligne au lieu d'élargir la page
   (« Depends on viewers and duration » dépassait de 31 px à 320 px). */
@media (max-width: 380px) { .opt .p { white-space: normal; text-align: right; max-width: 120px; overflow-wrap: anywhere; } }
[data-st="1"] { margin:0 !important; }

/* Logo du site (construire-commande-site.js) */
.brand { text-decoration: none; }
.brand-mark { height: 46px; width: auto; display: block; }
.brand-logo { height: 40px; width: auto; display: block; }
/* Sélecteur FR | EN à droite de la barre du haut, à la place qu’il occupe sur le site */
.top .lang, .top .langue { margin-left: auto; }
