/* ==========================================================================
   LIAZ PACK — feuille de style unique
   Contrat : DESIGN.md. Toute couleur vit dans :root, aucune en dur ailleurs.
   Ratios mesurés (voir DESIGN.md) : ink/paper 16.54 · muted/paper 6.26
   accent-text/paper 5.25 · copper/paper 7.26 · paper/ink 16.54 · line/ink 4.67

   SIGNATURE — DESIGN.md §2 : l'accent orange ne sert QU'au chiffre du prix
   cible. Les seules occurrences autorisées de --accent* sont dans .dial__amount.
   Tout le reste se hiérarchise à l'encre, au taupe et au cuivre.
   ========================================================================== */

:root {
  /* accent — trois valeurs, trois fonds. #E08348 sur paper = 2.43:1, donc
     jamais de texte : décor sur fond sombre uniquement. */
  --accent: #e08348;
  --accent-text: #a34715;
  --accent-on-ink: #e8823b;

  --ink: #1b0c07;
  --paper: #f4eee7;
  --muted: #63544f;
  --line: #857c78;
  --copper: #7a3d1b;

  /* surfaces dérivées — teintes du kraft, pas des gris neutres */
  --paper-2: #ebe3da;
  --ink-2: #2a1710;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 2px;
  --radius-tight: 1px;
  --dur: 240ms;
  --dur-fast: 140ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --gap: clamp(2.5rem, 7vw, 6rem);
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Sur les fonds sombres, l'anneau --ink serait invisible. */
.lock :focus-visible,
.foot :focus-visible,
.wa-float:focus-visible,
.skip:focus-visible {
  outline-color: var(--paper);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}
.skip:focus {
  left: 0;
}

/* étiquette technique — le registre de la fiche fournisseur */
.spec,
.field__hint,
.notice,
.rule__count,
.step__n,
.lang,
.masthead__nav,
.foot__contact dt,
.foot__legal,
.offers__head {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------- en-tête */

.masthead {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem var(--pad);
  border-bottom: 1px solid var(--line);
}

.masthead__logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}
.masthead__logo img {
  width: 104px;
  height: auto;
}

.masthead__nav {
  display: none;
  gap: 1.75rem;
  margin-inline-start: auto;
}
.masthead__nav a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
  transition:
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}
.masthead__nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.masthead__end {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.masthead__nav + .masthead__end {
  margin-inline-start: 0;
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
}
.lang button {
  border: 0;
  background: none;
  padding: 0.25rem;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.lang button[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ===================================================== bande d'ouverture
   Décor, pas signature — elle précède le moteur, elle ne le concurrence
   pas. Aucun texte par-dessus : c'est ce qui garde le contraste hors de
   l'équation. L'affiche est posée en fond du conteneur, donc la bande
   reste pleine même si la vidéo n'est jamais branchée. */

.reel {
  /* 40vh, pas 55 : au-delà, le champ de prix cible — la signature du
     site — sort de la ligne de flottaison en 1440×900. Mesuré, pas
     estimé. La bande annonce le sujet, elle ne prend pas sa place. */
  height: 40vh;
  min-height: 220px;
  max-height: 460px;
  overflow: hidden;
  background: var(--ink) url("assets/video/hero-poster.jpg") center / cover
    no-repeat;
  border-bottom: 1px solid var(--line);
}

.reel__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================================== moteur de prix cible
   La signature du site. Un seul geste fort : ce chiffre. */

.engine {
  padding: clamp(2.5rem, 8vw, 6rem) var(--pad) var(--gap);
  border-bottom: 1px solid var(--line);
}

.engine__kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.engine__title {
  font-size: clamp(2rem, 7vw, 4.5rem);
  max-width: 22ch;
}
.engine__title span {
  display: block;
}
.engine__title-2 {
  color: var(--muted);
}

/* --- le cadran ------------------------------------------------------- */

.dial {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  max-width: 60rem;
}

.dial__row {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label,
.dial__target label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.5rem 0;
  transition: border-color var(--dur-fast) var(--ease);
}
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    right 4px center,
    right 0 center;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: 1.25rem;
}
.field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-tight);
  padding: 0.75rem;
  resize: vertical;
}
.field input:hover,
.field select:hover,
.field textarea:hover,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
}

.field__hint {
  color: var(--muted);
  letter-spacing: 0.06em;
}

.field--wide {
  grid-column: 1 / -1;
}

/* --- le chiffre : là où l'on dépense l'audace ------------------------ */

.dial__target {
  padding-block: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dial__amount {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  color: var(--accent-text);
}

.dial__cur {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
}

.dial__amount input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--accent-text);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--accent-text);
  border-radius: 0;
  padding: 0 0 0.05em;
  transition: border-color var(--dur-fast) var(--ease);
}
.dial__amount input:hover,
.dial__amount input:focus {
  border-bottom-color: var(--ink);
}

.dial__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Pas de ±0,05 sur le prix cible — DESIGN.md §Gestes : le chiffre
   s'incrémente, sans rebond. Volontairement discrets : la signature est le
   chiffre, pas ses commandes. */
.step-pair {
  display: flex;
  gap: 0.4rem;
}
.step-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}
.step-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.step-btn[disabled] {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.5;
}

/* --- boutons --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}
.btn--solid {
  background: var(--ink);
  color: var(--paper);
}
.btn--solid:hover {
  background: var(--copper);
  border-color: var(--copper);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* --- propositions ---------------------------------------------------- */

.offers {
  margin-top: var(--gap);
}
.offers:empty {
  margin: 0;
}

.offers__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: baseline;
  justify-content: space-between;
  color: var(--muted);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ink);
}

.offer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(8px);
  animation: rise var(--dur) var(--ease) forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.offer__who {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.offer__spec {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.offer__price {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--muted);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.offer--under .offer__price {
  color: var(--ink);
}
.offer__delta {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ------------------------------------------------------------ sections */

.rule {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 2rem;
}
.rule h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}
.rule__count {
  color: var(--muted);
  white-space: nowrap;
}

.catalog,
.method,
.quote {
  padding: var(--gap) var(--pad);
  border-bottom: 1px solid var(--line);
}

.notice {
  color: var(--copper);
  border-inline-start: 2px solid var(--copper);
  padding: 0.5rem 0 0.5rem 0.9rem;
  margin-bottom: 2.5rem;
  max-width: 62ch;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-transform: none;
}

.notice--noscript {
  margin: 0 var(--pad);
  margin-block-start: 1.5rem;
}
.notice--noscript a {
  color: var(--copper);
}

/* --- catalogue ------------------------------------------------------- */

.catalog__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.35rem 1.25rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.item__shot {
  grid-row: 1 / span 2;
  width: 72px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--paper-2);
  object-fit: cover;
}
.item__shot--empty {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.25rem;
}

.item__name {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.item__spec {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* --- méthode --------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child {
  border-bottom: 0;
}
.step__n {
  color: var(--copper);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.step p {
  color: var(--muted);
  max-width: 54ch;
}

/* --- le verrou ------------------------------------------------------- */

.lock {
  background: var(--ink);
  color: var(--paper);
  padding: var(--gap) var(--pad);
}
.lock__inner {
  max-width: 54rem;
}
.lock h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.75rem);
  max-width: 20ch;
  margin-bottom: 1.5rem;
  color: var(--paper);
}
.lock p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  max-width: 60ch;
}
.lock__note {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--line);
}

/* --- formulaire de devis --------------------------------------------- */

.qform__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 52rem;
}

/* ── consentement KVKK ────────────────────────────────────────────
   Le texte est replié par défaut : déplié, il pousse les boutons sous
   la ligne de flottaison et personne ne le lit pour autant. Replié, il
   reste à un clic et le résumé dit de quoi il s'agit. La case, elle,
   est toujours visible — c'est elle qui engage. */

.consent {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.consent__notice summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 0.35rem;
}
.consent__notice summary:hover {
  color: var(--ink);
}

.consent__body {
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.5rem 1.25rem;
  max-width: 62ch;
  font-size: 0.86rem;
  line-height: 1.55;
}
.consent__body dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin-top: 0.5rem;
}
.consent__body dd {
  margin: 0;
  color: var(--muted);
}

.consent__check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.25rem;
  max-width: 62ch;
}
.consent__check input {
  /* 18 px : au-dessus du minimum de 24 px une fois le label compté comme
     cible, et aligné sur la première ligne du texte plutôt que centré. */
  inline-size: 18px;
  block-size: 18px;
  margin-block-start: 0.15rem;
  flex: none;
  accent-color: var(--copper);
}
.consent__check label {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
}
.consent__check input[aria-invalid="true"] {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .consent__body {
    grid-template-columns: auto 1fr;
    align-items: baseline;
  }
  .consent__body dt {
    margin-top: 0;
  }
}

.qform__end {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.qform__status {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--copper);
  min-height: 1.4em;
}

/* ---------------------------------------------------------------- pied */

.foot {
  background: var(--ink);
  color: var(--paper);
  padding: var(--gap) var(--pad) 6rem;
  display: grid;
  gap: 2.5rem;
}

.foot__brand img {
  width: 132px;
  margin-bottom: 0.9rem;
}
.foot__brand p {
  color: var(--line);
  max-width: 30ch;
}

.foot__contact {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1.5rem;
  align-items: baseline;
}
.foot__contact dt {
  color: var(--line);
}
.foot__contact dd {
  margin: 0;
}
.foot__contact a {
  color: var(--paper);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
/* Empile plusieurs liens sous un même intitulé — e-mails, réseaux. */
.foot__stack {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

/* Icônes sociales. La cible fait 34 px de côté alors que le glyphe en
   fait 22 : WCAG 2.2 demande 24 px minimum, et un lien de 22 px se rate
   au pouce. Le survol passe par --accent-on-ink (6.97:1 sur --ink) et
   non --accent, qui n'est admis qu'en décor. */
.foot__social {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  /* Le tracé est en retrait de ~2 px dans son viewBox : on recale d'autant
     pour que l'encre tombe sur la colonne, pas la boîte. Mesuré au rendu. */
  margin-inline-start: -2px;
}

/* La boîte fait exactement la taille du glyphe — sinon la rangée gonfle et
   l'intitulé DT, aligné sur la ligne de base, décroche de 7 px. La zone de
   clic est rendue par ::after, hors flux : 34 px de côté (WCAG 2.2 en
   demande 24) sans peser sur la mise en page. */
.foot__social a {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  color: var(--paper);
  transition: color var(--dur-fast) var(--ease);
}
.foot__social a::after {
  content: "";
  position: absolute;
  inset: -6px;
}
.foot__social a:hover {
  color: var(--accent-on-ink);
}

/* marqueur visible : donnée manquante, pas donnée inventée */
.todo {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-tight);
  color: var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot__legal {
  color: var(--line);
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------- WhatsApp ── */

.wa-float {
  position: fixed;
  inset-inline-end: 1rem;
  inset-block-end: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}
.wa-float:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ----------------------------------------------------------- écrans ── */

@media (min-width: 640px) {
  .dial__row {
    grid-template-columns: 2fr 1fr;
  }
  .qform__grid {
    grid-template-columns: 1fr 1fr;
  }
  .item {
    grid-template-columns: 96px 1fr auto;
  }
  .item__shot {
    width: 96px;
  }
  .item__spec {
    grid-column: 2;
  }
  .item__name {
    grid-column: 2;
  }
}

@media (min-width: 900px) {
  .masthead__nav {
    display: flex;
  }
  .step {
    grid-template-columns: 5rem 1fr;
  }
  .foot {
    grid-template-columns: 1fr 1fr;
  }
  .foot__legal {
    grid-column: 1 / -1;
  }
}

/* ------------------------------------------------------ mouvement ── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .offer {
    opacity: 1;
    transform: none;
  }
}
