/* ============================================================================
   NANOOK : calculateur de devis
   Habillage aux couleurs du site : fond Volcanic Rock, Tusker, vert Tundra.
   ========================================================================== */

:root {
  /* Charte Nanook */
  --alpine-ice:    #F7F8FD;
  --tundra-green:  #CEF27E;
  --volcanic-rock: #3D3D3D;
  --volcanic-2:    #20211E;

  --ink:        var(--alpine-ice);
  --ink-soft:   rgba(247, 248, 253, .72);
  --ink-faint:  rgba(247, 248, 253, .5);
  --line:       rgba(247, 248, 253, .18);
  --line-soft:  rgba(247, 248, 253, .07);
  --bg:         var(--volcanic-2);
  --panel:      var(--volcanic-rock);
  --field:      rgba(247, 248, 253, .04);
  --accent:     var(--tundra-green);
  --accent-ink: var(--volcanic-2);
  --ok:         var(--tundra-green);
  --error:      #ffb4a8;
  --alert-bg:   rgba(206, 242, 126, .07);
  --alert-line: rgba(206, 242, 126, .35);
  --radius:     0;
  --shadow:     none;
  --font-display: "Tusker", "Arial Narrow", sans-serif;
  --font-wide:    "Tusker Wide", "Arial Narrow", sans-serif;
  color-scheme: dark;
}

/* Mêmes fichiers de police que le site (WOFF2 servis depuis /assets/fonts), TTF locaux en secours */
@font-face { font-family: "Tusker"; src: url("/assets/fonts/TuskerGrotesk-2600Semibold.woff2") format("woff2"), url("../fonts/TuskerGrotesk-2600Semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Tusker Wide"; src: url("/assets/fonts/TuskerGrotesk-5500Medium.woff2") format("woff2"), url("../fonts/TuskerGrotesk-5500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Regular.woff2") format("woff2"), url("../fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-SemiBold.woff2") format("woff2"), url("../fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 88px;                 /* place pour la barre de prix mobile */
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- header -- */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { display: block; height: 46px; width: auto; }
.brand[hidden] { display: none; }
.brand-tag { color: var(--ink-faint); font-size: 13px; }

/* ----------------------------------------------------------------- steps -- */
.steps { margin: 22px auto 0; }
.steps ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.steps li {
  flex: 1 1 90px; font-size: 11.5px; color: var(--ink-faint);
  padding-top: 9px; border-top: 3px solid var(--line);
  letter-spacing: .02em;
}
.steps li.done    { color: var(--ink-soft); border-top-color: var(--ink-faint); }
.steps li.current { color: var(--ink); border-top-color: var(--accent); font-weight: 600; }

/* ---------------------------------------------------------------- layout -- */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px; align-items: start; margin-top: 22px; margin-bottom: 40px;
}
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
#form { padding: 26px 26px 20px; }

h1 { font-size: 23px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -.015em; }
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft); margin: 26px 0 10px; }
.lead { color: var(--ink-soft); margin: 0 0 22px; }
.hint { color: var(--ink-faint); font-size: 13px; margin: 6px 0 0; }
.note {
  margin: 22px 0 0; padding: 12px 14px; background: var(--line-soft);
  border-radius: 0; font-size: 13.5px; color: var(--ink-soft);
}
.alert {
  margin: 18px 0 0; padding: 14px 16px; background: var(--alert-bg);
  border: 1px solid var(--alert-line); border-radius: 0; font-size: 14px;
}

/* ----------------------------------------------------------- cartes type -- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { position: relative; cursor: pointer; }
.card input { position: absolute; opacity: 0; width: 0; height: 0; }
.card-body {
  display: block; height: 100%; padding: 18px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .12s, background .12s;
}
.card:hover .card-body { border-color: var(--ink-faint); }
.card input:checked + .card-body { border-color: var(--accent); background: var(--line-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.card input:focus-visible + .card-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-icon { display: block; font-size: 19px; margin-bottom: 8px; }
.card-title { display: block; font-weight: 650; margin-bottom: 4px; }
.card-desc { display: block; font-size: 13px; color: var(--ink-soft); }
.badge {
  position: absolute; top: -9px; right: 10px; background: var(--accent); color: var(--accent-ink);
  font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 0; letter-spacing: .02em;
}

/* ---------------------------------------------------------------- champs -- */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-wide); font-weight: 500; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--field); border: 1px solid var(--line); border-radius: 0;
}
button, input, select, textarea { font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: none; }
input:invalid.touched { border-color: var(--error); }
textarea { resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23F7F8FD' stroke-width='1.6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-wide { grid-column: 1 / -1; }
.row-field { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.row-field > div:first-child { flex: 1; }
.row-field label { margin-bottom: 2px; font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; color: var(--ink); }

/* ------------------------------------------------------------ compteurs --- */
.stepper-input { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 0; overflow: hidden; background: var(--field); }
.stepper-input input { width: 62px; text-align: center; border: 0; border-radius: 0; padding: 9px 4px; -moz-appearance: textfield; }
.stepper-input input::-webkit-outer-spin-button,
.stepper-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-input input:focus { box-shadow: none; }
.qty {
  width: 40px; border: 0; background: transparent; color: var(--ink); font-size: 18px; line-height: 1;
  cursor: pointer; transition: background .12s;
}
.qty:hover { background: var(--line-soft); }
.qty:disabled { color: var(--line); cursor: not-allowed; background: transparent; }

/* ------------------------------------------------------------- journées --- */
.jours { display: grid; gap: 10px; }
.jour-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; flex-wrap: wrap;
}
.jour-label { font-weight: 500; font-size: 14px; }
.jour-price { color: var(--ink-soft); font-size: 14px; font-variant-numeric: tabular-nums; }
.jour-controls { display: flex; align-items: center; gap: 12px; }

/* ----------------------------------------------------------- liste films -- */
.list { display: grid; gap: 10px; }
.list-item { position: relative; cursor: pointer; display: block; }
.list-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.list-body {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 0; transition: border-color .12s, background .12s;
}
.list-item:hover .list-body { border-color: var(--ink-faint); }
.list-item input:checked + .list-body { border-color: var(--accent); background: var(--line-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.list-item input:focus-visible + .list-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.list-name { font-weight: 650; }
.list-sub { display: block; font-size: 13px; color: var(--ink-soft); font-weight: 400; margin-top: 2px; }
.list-price { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ------------------------------------------------------- quantités liste -- */
.qty-list { display: grid; gap: 10px; }
.qty-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; flex-wrap: wrap;
}
.qty-row.active { border-color: var(--accent); background: var(--line-soft); }
.qty-name { font-weight: 500; font-size: 14.5px; }
.qty-price { color: var(--ink-soft); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- cases --- */
.checks { display: grid; gap: 10px; }
.check {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 0; transition: border-color .12s, background .12s;
}
.check:hover { border-color: var(--ink-faint); }
.check input { margin: 3px 0 0; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.check em { font-style: normal; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.check small { color: var(--ink-soft); }
.check-alert { margin-top: 24px; background: var(--alert-bg); border-color: var(--alert-line); }

/* ----------------------------------------------------------- récapitulatif */
.recap { border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.recap-group { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.recap-group:last-child { border-bottom: 0; }
.recap-group h3 {
  margin: 10px 16px 4px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-faint); font-weight: 600;
}
.recap-line { display: flex; justify-content: space-between; gap: 16px; padding: 5px 16px; font-size: 14.5px; }
.recap-line span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.recap-line.free span:last-child { color: var(--ok); font-weight: 600; }
.recap-line.discount span:last-child { color: var(--ok); font-weight: 600; }
.recap-total { display: flex; justify-content: space-between; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--line-soft); font-weight: 700; }
.recap-total span:last-child { font-variant-numeric: tabular-nums; }
.recap-sub { display: flex; justify-content: space-between; padding: 4px 16px; font-size: 14px; color: var(--ink-soft); background: var(--line-soft); }
.recap-sub:last-child { padding-bottom: 14px; }
.recap-sub.remise span:last-child { color: var(--ok); font-weight: 600; }
.recap-total.sous-total { font-weight: 600; color: var(--ink-soft); border-top: 1px solid var(--line); background: transparent; }
.summary-line.remise strong { color: var(--ok); }

/* ------------------------------------------------------------ code promo -- */
.promo { margin-top: 18px; padding: 15px 16px; border: 1px dashed var(--line); border-radius: 0; }
.promo label { display: block; font-family: var(--font-wide); font-weight: 500; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }
.promo-row { display: flex; gap: 8px; align-items: stretch; }
.promo-row input {
  flex: 1; min-width: 0; max-width: 220px;
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.promo-row input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-faint); }
.promo-row .btn { white-space: nowrap; padding-left: 16px; padding-right: 16px; }
.promo-msg { margin: 9px 0 0; font-size: 13.5px; }
.promo-msg.ok { color: var(--ok); font-weight: 600; }
.promo-msg.ko { color: var(--error); }
.promo.applique { border-style: solid; border-color: var(--ok); background: var(--alert-bg); }

/* ------------------------------------------------- suggestions clients ---- */
.field-combo { position: relative; }
.suggestions {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 12px);
  margin: 0; padding: 5px; list-style: none;
  background: var(--volcanic-rock); border: 1px solid var(--line); border-radius: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
  max-height: 260px; overflow-y: auto;
}
.suggestions li { display: flex; align-items: center; gap: 8px; border-radius: 0; }
.suggestions button {
  flex: 1; min-width: 0; text-align: left; font: inherit; font-size: 14px;
  background: none; border: 0; padding: 9px 10px; cursor: pointer; border-radius: 0; color: var(--ink);
}
.suggestions button:hover,
.suggestions li.actif button { background: var(--line-soft); }
.suggestions .sugg-nom { display: block; font-weight: 600; }
.suggestions .sugg-detail { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 1px; }
.suggestions .sugg-suppr {
  flex: none; width: 30px; padding: 6px 0; text-align: center; font-size: 15px; line-height: 1;
  color: var(--ink-faint); background: none; border: 0; cursor: pointer; border-radius: 0;
}
.suggestions .sugg-suppr:hover { background: var(--line-soft); color: var(--error); }

/* ------------------------------------------------------------- résumé --- */
.summary { padding: 20px; position: sticky; top: 20px; }
.summary-title { margin: 0 0 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
.summary-lines { display: grid; gap: 7px; margin-bottom: 16px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-soft); }
.summary-line strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary-line.free strong { color: var(--ok); }
.summary-sub { margin: 10px 0 2px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-family: var(--font-wide); font-weight: 500; text-transform: uppercase; letter-spacing: .18em; font-size: 11px; color: var(--ink-faint); }
.summary-empty { color: var(--ink-faint); font-size: 13.5px; }
.summary-total { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 5px; }
.summary-total .row { display: flex; justify-content: space-between; font-size: 14px; font-variant-numeric: tabular-nums; }
.summary-total .row.muted { color: var(--ink-faint); font-size: 13px; }
.summary-total .row.big { font-size: 16px; font-weight: 700; margin-top: 4px; }
.summary-total .row strong { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- boutons --- */
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.btn {
  font: inherit; font-size: 15px; font-weight: 600; padding: 11px 22px; border-radius: 0;
  border: 1px solid transparent; cursor: pointer; transition: background .12s, border-color .12s, opacity .12s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { opacity: .87; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(247, 248, 253, .4); }
.btn-ghost:hover { border-color: var(--ink-faint); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-copy { transition: background .12s, border-color .12s, color .12s; }
.btn-ok { border-color: var(--ok); color: var(--ok); }
kbd {
  display: inline-block; padding: 1px 5px; font: inherit; font-size: 12px;
  background: transparent; border: 1px solid var(--alert-line); border-radius: 0;
  box-shadow: 0 1px 0 var(--alert-line);
}
.btn[hidden] { display: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.download-box { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 8px; }

/* --------------------------------------------------- barre de prix mobile -- */
.pricebar { display: none; }

/* ---------------------------------------------------------------- footer -- */
.site-footer { color: var(--ink-faint); font-size: 12.5px; padding-bottom: 30px; }

/* ================================ RESPONSIVE ============================= */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .summary { display: none; }
  .cards { grid-template-columns: 1fr; }

  .pricebar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--panel); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .35);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .pricebar-toggle {
    width: 100%; display: flex; align-items: center; gap: 10px;
    padding: 14px 20px; background: none; border: 0; font: inherit; cursor: pointer; text-align: left;
  }
  .pricebar-label { color: var(--ink-soft); font-size: 13px; }
  .pricebar-amount { margin-left: auto; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .pricebar-caret { color: var(--ink-faint); font-size: 10px; transition: transform .15s; }
  .pricebar.open .pricebar-caret { transform: rotate(180deg); }
  .pricebar .summary {
    display: block; position: static; border: 0; border-radius: 0; box-shadow: none;
    border-top: 1px solid var(--line-soft); max-height: 52vh; overflow-y: auto;
  }
}

@media (max-width: 560px) {
  .brand { height: 36px; }
  .header-inner { gap: 10px; }
  #form { padding: 20px 18px 16px; }
  h1 { font-size: 20px; }
  .grid-2 { grid-template-columns: 1fr; }
  .row-field { align-items: flex-start; flex-direction: column; gap: 10px; }
  .steps li { font-size: 0; padding-top: 7px; flex-basis: 20px; }
  .nav .btn { flex: 1; padding-left: 12px; padding-right: 12px; }
  .list-body { flex-direction: column; gap: 4px; }
}

/* ================================ IMPRESSION ============================= */
@media print {
  body { background: #fff; color: #20211E; padding: 0; }
  .site-header, .steps, .nav, .summary, .pricebar, .site-footer, .download-box { display: none !important; }
  .panel { border: 0; box-shadow: none; }
}

/* Options vidéo repliables (étape 1) */
.options { margin-top: 18px; border: 1px solid var(--line, #e1e3ea); border-radius: 0; padding: 0 18px; }
.options summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; align-items: baseline; gap: 10px; }
.options summary::-webkit-details-marker { display: none; }
.options summary small { font-weight: 400; color: var(--ink-soft); }
.options[open] { padding-bottom: 18px; }
[data-si][hidden] { display: none; }

/* =========================== HABILLAGE NANOOK ============================ */

/* En-tête : logo blanc du site ; l'image PNG sombre reste cachée pour le PDF */
.site-header { background: var(--volcanic-2); border-bottom: 1px solid var(--line-soft); }
.brand-site { display: block; height: 34px; width: auto; }
.brand-tag, .site-back, .steps li, h2, .summary-title, .recap-group h3, .badge, .btn, .options summary, .pricebar-label {
  font-family: var(--font-wide); font-weight: 500; text-transform: uppercase; letter-spacing: .18em;
}
.brand-tag { font-size: 11px; color: var(--ink-faint); }
.site-back { margin-left: auto; font-size: 11px; color: var(--ink-soft); text-decoration: none; }
.site-back:hover { color: var(--accent); }

/* Étapes */
.steps li { font-size: 11px; border-top-width: 2px; padding-top: 12px; }
.steps li.current { color: var(--accent); border-top-color: var(--accent); font-weight: 500; }
.steps li.done { color: var(--ink-soft); border-top-color: var(--ink-soft); }

/* Panneaux : le formulaire se pose sur le fond, le résumé est une carte */
#form.panel { background: transparent; border: 0; padding-left: 0; padding-right: 0; }
.summary { background: var(--volcanic-rock); border: 0; }

/* Titres */
h1 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(44px, 6vw, 72px); line-height: 1.04; letter-spacing: 0; margin-bottom: 14px; }
h2 { font-size: 12px; color: var(--accent); margin: 36px 0 14px; letter-spacing: .2em; }
.lead { font-size: 17px; }

/* Cartes de type */
.card-body { padding: 20px 18px; }
.card-title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 34px; line-height: 1.04; margin-bottom: 8px; }
.card input:checked + .card-body { border-color: var(--accent); box-shadow: none; background: var(--alert-bg); }
.card input:checked + .card-body .card-title { color: var(--accent); }
.badge { font-size: 10px; padding: 4px 8px; letter-spacing: .12em; }

/* Listes, cases, lignes */
.list-item input:checked + .list-body,
.qty-row.active { border-color: var(--accent); box-shadow: none; background: var(--alert-bg); }
.list-item input:checked + .list-body .list-name { color: var(--accent); }
.check input { accent-color: var(--tundra-green); }
.check-alert { background: transparent; border-color: var(--line); }
.note { background: transparent; border-left: 2px solid var(--accent); padding: 4px 0 4px 14px; }
.alert { border-radius: 0; }

/* Options vidéo */
.options { border-color: var(--line); }
.options summary { font-size: 12px; color: var(--ink); }
.options summary small { font-family: var(--font-body, Inter), sans-serif; text-transform: none; letter-spacing: 0; font-size: 13px; }

/* Récapitulatif et totaux */
.recap { border-color: var(--line); }
.recap-group h3 { color: var(--accent); font-size: 11px; }
.recap-total { background: var(--line-soft); }
.recap-total span:last-child { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1; color: var(--accent); }
.summary-total .row.big strong { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1; color: var(--accent); }
.summary-total .row.big { align-items: baseline; }
.pricebar-amount { font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--accent); }
.pricebar-label { font-size: 11px; }

/* Boutons, comme sur le site */
.btn { font-size: 12px; padding: 14px 24px; border-radius: 0; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { opacity: 1; background: transparent; color: var(--accent); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 18px 28px; font-size: 13px; }
.nav { border-top-color: var(--line); }

/* Champs */
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
select option { background: var(--volcanic-rock); color: var(--ink); }
.promo-row input { font-family: var(--font-wide); font-weight: 500; letter-spacing: .14em; }

/* Options : titre de section, puis un bloc repliable par métier (les deux en Duo) */
.options-bloc .options + .options { margin-top: 10px; }
.check input:disabled + span em { color: var(--ok); }

/* Lignes d'options : un seul style pour les compteurs, les cases et les formats,
   avec le même cadre, les mêmes marges et le même écart partout */
.opt-list { display: grid; gap: 10px; }
.opt-list .qty-list, .opt-list .checks, .opt-list .jours { display: contents; }
.opt-list .field.row-field, .opt-list .qty-row, .opt-list .check, .opt-list .jour-row {
  margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: nowrap;
}
.opt-list .check { justify-content: flex-start; align-items: flex-start; }
.opt-list [hidden] { display: none !important; }
.opt-list .field.row-field label, .opt-list .qty-name, .opt-list .check strong, .opt-list .jour-label { font-size: 15px; font-weight: 500; margin: 0; }
.opt-list .hint, .opt-list .qty-price, .opt-list .check small, .opt-list .jour-price { font-size: 13px; color: var(--ink-soft); margin: 4px 0 0; }
.opt-list .check em { font-size: 15px; }
.opt-list .qty-row.active { border-color: var(--accent); background: var(--alert-bg); }
@media (max-width: 560px) {
  .opt-list .field.row-field, .opt-list .qty-row, .opt-list .jour-row { flex-direction: column; align-items: flex-start; }
}

/* Mention de bas de page alignée sur la colonne de gauche (pas sous le récap) */
@media (min-width: 901px) {
  .site-footer p { max-width: calc(100% - 320px - 22px); }
}

/* Étape 3 : passage à la demande de contact */
.next-step { margin-top: 32px; padding: 24px; border: 1px solid var(--accent); background: var(--alert-bg); }
.next-step h2 { margin-top: 0; }
.next-step p { color: var(--ink-soft); margin: 0 0 18px; max-width: 52ch; }

/* Page « Envoyer ma demande » */
.usages { display: flex; flex-wrap: wrap; gap: 8px; }
.usage { position: relative; cursor: pointer; }
.usage input { position: absolute; opacity: 0; }
.usage span { display: block; padding: 10px 14px; border: 1px solid var(--line); font-size: 14px; transition: border-color .15s, color .15s; }
.usage input:checked + span { border-color: var(--accent); color: var(--accent); background: var(--alert-bg); }
.usage input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field-trap { position: absolute; left: -9999px; }
/* Le formulaire se pose directement sur le fond, comme les étapes du calculateur */
#demande.panel { background: transparent; border: 0; box-shadow: none; padding: 0; }
.demande-send { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.demande-send .hint { margin: 0; }
.demande-status:empty { display: none; }
.demande-status { margin-top: 18px; font-size: 15px; }
.demande-status.is-ok { color: var(--accent); font-size: 18px; }
.demande-status.is-error { color: var(--error); }
#demande.is-sent > *:not(h1):not(.demande-status) { display: none; }
.summary-empty a { color: var(--accent); }

/* Confirmation d'envoi : message seul, centré, sans le récap */
body.is-sent #demande, body.is-sent .summary, body.is-sent .site-footer { display: none; }
body.is-sent .layout { grid-template-columns: 1fr; min-height: 60vh; place-items: center; }
.confirm { text-align: center; max-width: 560px; margin: 0 auto; padding: 40px 0; }
.confirm h1 { color: var(--accent); }
.confirm__msg { font-size: 18px; color: var(--ink); margin: 0 0 14px; }
.confirm__count { color: var(--ink-soft); margin: 0 0 28px; }
.confirm__count strong { color: var(--accent); font-variant-numeric: tabular-nums; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }

/* Case « Sans TVA (autoliquidation) », sous le récap */
.vat-toggle { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); cursor: pointer; }
.vat-toggle input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.vat-toggle__text { font-size: 13px; color: var(--ink); line-height: 1.35; }
.vat-toggle__text small { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-faint); }

/* Liens légaux en bas du calculateur */
.site-footer__links { display: flex; gap: 20px; margin-top: 10px; }
.site-footer__links a, .hint a { color: var(--ink-soft); }
.site-footer__links a:hover, .hint a:hover { color: var(--accent); }

/* Champ piège anti-robots : invisible pour les visiteurs */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
