/* =========================================================================
   KËLO NORDIC — feuille de style unique
   Reprise du canevas « KELO Nordic.dc.html ».
   Ordre : jetons → base → typographie → éléments → blocs → pages → responsive
   ========================================================================= */

/* ---------- 1. Jetons ---------------------------------------------------- */

:root {
  /* Surfaces claires */
  --paper:        #F5F2ED;
  --panel:        #EFEBE4;
  --field:        #FFFDF9;
  --img:          #E6E1D8;

  /* Encre */
  --ink:          #16181A;
  --ink-soft:     #3D4045;
  --muted:        #6E6A62;
  --muted-soft:   #8A8378;
  --muted-faint:  #A79F92;

  /* Filets */
  --line:         #DFD9CF;
  --line-strong:  #C9C2B6;

  /* Sur fond sombre */
  --on-dark:        #F5F2ED;
  --on-dark-soft:   #C9C4BB;
  --on-dark-muted:  #9A958C;
  --on-dark-faint:  #7C7870;
  --dark-line:      #33363A;
  --dark-line-2:    #4A4D51;

  /* Familles */
  --f-display: "Newsreader", Georgia, "Times New Roman", serif;
  --f-ui:      "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body:    "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Rythme */
  --gutter: clamp(20px, 4.4vw, 56px);
  --maxw:   1280px;

  --focus: #0B5FFF;
}

/* ---------- 2. Base ------------------------------------------------------ */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { background: var(--img); }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* Nos classes de composants posent display:flex ; sans ce garde-fou elles
   l'emportent sur la règle [hidden] de l'agent utilisateur. */
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--on-dark);
  padding: 14px 20px;
  font: 12px/1 var(--f-mono);
  letter-spacing: .14em;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. Typographie ---------------------------------------------- */

.display {
  font-family: var(--f-display);
  font-weight: 300;
  line-height: 1.05;
  text-wrap: pretty;
}
.display--hero   { font-size: clamp(38px, 5.9vw, 78px); letter-spacing: -.01em; }
.display--page   { font-size: clamp(34px, 4.8vw, 66px); line-height: 1.03; }
.display--lg     { font-size: clamp(30px, 4.2vw, 60px); line-height: 1.04; }
.display--md     { font-size: clamp(28px, 3.6vw, 52px); line-height: 1.06; }
.display--sm     { font-size: clamp(26px, 3.1vw, 44px); line-height: 1.1; }
.display--xs     { font-size: clamp(24px, 2.6vw, 40px); line-height: 1.12; }
.display--xxs    { font-size: clamp(22px, 2.3vw, 34px); line-height: 1.15; }

.eyebrow {
  font: 12px/1 var(--f-mono);
  letter-spacing: .2em;
  color: var(--muted);
  text-transform: uppercase;
}

.label {
  font: 11px/1 var(--f-mono);
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}

.mono {
  font: 11px/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lede {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 52ch;
}

.body-text  { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.small      { font-size: 14px; color: var(--muted); line-height: 1.55; }

.jost       { font-family: var(--f-ui); }
.title-ui   { font-family: var(--f-ui); font-size: 18px; letter-spacing: .02em; }
.price      { font-family: var(--f-ui); font-size: 17px; letter-spacing: .04em; white-space: nowrap; }
.price--lg  { font-size: clamp(26px, 2.6vw, 34px); }

.rule-top   { border-top: 1px solid var(--line); }
.rule-ink   { border-top: 1px solid var(--ink); }

/* Masquage piloté par les options du canevas (showPrices / showFrieze) */
.no-prices .price,
.no-prices [data-price] { display: none !important; }
.no-frieze .frieze { display: none !important; }

/* ---------- 4. Gabarit --------------------------------------------------- */

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

.section        { padding-block: clamp(48px, 6vw, 84px); }
.section--tight { padding-block: clamp(32px, 3.6vw, 48px); }
.section--flush-top { padding-top: 0; }

.stack   { display: flex; flex-direction: column; }
.stack-6  > * + * { margin-top: 6px; }
.stack-10 > * + * { margin-top: 10px; }
.stack-14 > * + * { margin-top: 14px; }
.stack-20 > * + * { margin-top: 20px; }
.stack-26 > * + * { margin-top: 26px; }

.grid { display: grid; gap: clamp(24px, 2.6vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}
.split--even    { grid-template-columns: 1fr 1fr; }
.split--wide-l  { grid-template-columns: 1.15fr 1fr; }
.split--wide-r  { grid-template-columns: 1fr 1.1fr; }
.split--start   { align-items: start; }
.split--center  { align-items: center; }

.media          { width: 100%; object-fit: cover; }
.media--4x3     { aspect-ratio: 4 / 3; }
.media--4x34    { aspect-ratio: 4 / 3.4; }
.media--3x4     { aspect-ratio: 3 / 4; }
.media--square  { aspect-ratio: 1; }
.media--16x11   { aspect-ratio: 16 / 11; }

/* ---------- 5. Boutons, puces -------------------------------------------- */

.btn {
  display: inline-block;
  padding: 17px 30px;
  border: 1px solid var(--ink);
  background: none;
  font: 12px/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }

.btn--solid { background: var(--ink); color: var(--on-dark); }
.btn--solid:hover { background: #2A2D30; }

.btn--ghost:hover { background: var(--ink); color: var(--on-dark); }

.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: #FFFFFF; }

.btn--outline-light { border-color: var(--paper); color: var(--paper); }
.btn--outline-light:hover { background: var(--paper); color: var(--ink); }

.btn--block { display: block; width: 100%; }
.btn--sm { padding: 14px 20px; font-size: 11px; }

.btn:disabled { opacity: .45; cursor: not-allowed; }

.link-underline {
  align-self: flex-start;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  font: 12px/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.link-underline:hover { text-decoration: none; border-bottom-width: 2px; }

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }

.chip {
  border: 1px solid var(--line-strong);
  background: none;
  padding: 10px 16px;
  font: 11px/1 var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}

/* Puces de choix produit / devis (texte plus grand, casse normale) */
.option {
  border: 1px solid var(--line-strong);
  background: var(--field);
  padding: 13px 20px;
  font-size: 14px;
  font-family: var(--f-body);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  text-align: left;
}
.option:hover { border-color: var(--ink); }
.option[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}
.option__extra { color: var(--muted); }
.option[aria-pressed="true"] .option__extra { color: var(--on-dark-soft); }

.badge {
  font: 10px/1 var(--f-mono);
  letter-spacing: .12em;
  background: var(--ink);
  color: var(--on-dark);
  padding: 5px 8px;
  text-transform: uppercase;
}

/* ---------- 6. En-tête --------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  z-index: 20;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
}

/* Logo — le lockup complet (runes, filet, KËLO, NORDIC) est un masque et non
   une image : il n'a donc aucun fond propre, celui du site passe au travers,
   et il prend la couleur du texte courant. Il fonctionne tel quel sur le
   papier de l'en-tête comme sur l'encre du pied, sans seconde version.
   --logo-size règle la hauteur ; la largeur suit le ratio de l'original. */

.brand {
  --logo-size: 44px;
  display: block;
  flex: none;
  color: inherit;
  line-height: 0;
}
.brand:hover { text-decoration: none; }

.brand__mark {
  display: block;
  /* Largeur posée explicitement plutôt que déduite du ratio : une boîte non
     remplacée à hauteur définie ne calcule pas toujours sa largeur comme on
     l'attend selon le contexte de mise en forme. */
  height: var(--logo-size);
  width: calc(var(--logo-size) * 244 / 88);
  background: currentColor;
  -webkit-mask: url("../logo-kelo.png") center / contain no-repeat;
          mask: url("../logo-kelo.png") center / contain no-repeat;
}

/* Sans masques CSS, le bloc serait un rectangle plein : on retombe sur le
   mot composé en Jost. */
@supports not ((-webkit-mask: url("#")) or (mask: url("#"))) {
  .brand__mark {
    background: none;
    width: auto;
    height: auto;
    font-family: var(--f-ui);
    font-size: calc(var(--logo-size) * .62);
    letter-spacing: .16em;
    line-height: 1;
  }
  .brand__mark::after { content: "KËLO NORDIC"; }
}

.site-nav { display: flex; gap: 34px; font-size: 14px; letter-spacing: .06em; }
.site-nav a { padding-bottom: 2px; border-bottom: 1px solid transparent; }
.site-nav a:hover { text-decoration: none; border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.site-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  font: 12px/1 var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-actions .cart-link { border: 1px solid var(--ink); padding: 9px 14px; }
.site-actions .cart-link:hover { background: var(--ink); color: var(--on-dark); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 6px 0 6px 8px;
  cursor: pointer;
}
.nav-toggle__bars { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.nav-toggle__bars span { height: 1px; background: var(--ink); display: block; }

/* En-tête « tunnel de commande » (4A) */
.checkout-header .checkout-steps {
  display: flex;
  gap: 26px;
  font: 11px/1 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-faint);
}
.checkout-header .checkout-steps [aria-current="step"] { color: var(--ink); }
.checkout-header .back-link {
  font: 11px/1 var(--f-mono);
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- 7. Bandeaux animés ------------------------------------------- */

.marquee {
  background: var(--ink);
  color: var(--on-dark-soft);
  height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  font: 11px/1 var(--f-mono);
  letter-spacing: .28em;
  text-transform: uppercase;
  animation: marquee 42s linear infinite;
}
.marquee__track > span { padding-right: 2.4em; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.frieze {
  height: 32px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.frieze__runes {
  font-size: 15px;
  letter-spacing: 1.1em;
  color: var(--muted-faint);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- 8. Blocs de contenu ------------------------------------------ */

.breadcrumb {
  padding-top: 28px;
  font: 11px/1 var(--f-mono);
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}

/* Héros d'accueil, avec runes en filigrane */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6.5vw, 88px);
}
.hero__runes {
  position: absolute;
  top: -30px;
  right: -10px;
  font-size: clamp(140px, 22vw, 300px);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  letter-spacing: .06em;
  pointer-events: none;
  user-select: none;
}
.hero__inner { position: relative; }

/* Carte produit / projet */
.card { display: flex; flex-direction: column; gap: 12px; }
.card:hover { text-decoration: none; }
.card:hover .card__title { text-decoration: underline; text-underline-offset: 3px; }
.card__title { font-family: var(--f-ui); font-size: 18px; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__meta {
  border-top: 1px solid var(--ink);
  padding-top: 11px;
  font: 11px/1 var(--f-mono);
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}
.card--boxed {
  border: 1px solid var(--line-strong);
  padding: 28px;
  gap: 14px;
}
.card--boxed:hover { border-color: var(--ink); }

/* Panneau beige */
.panel {
  background: var(--panel);
  padding: 34px;
  display: flex;
  flex-direction: column;
}

/* Bande sombre */
.band {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(48px, 5.5vw, 76px);
}
.band p { color: var(--on-dark-soft); }
.band .eyebrow, .band .label { color: var(--on-dark-muted); }
.band__divider { border-left: 1px solid var(--dark-line); padding-left: clamp(28px, 4vw, 64px); }

/* Bandeau de réassurance */
.assurance {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 44px;
  font-size: 14px;
  color: var(--ink-soft);
}
.assurance dt {
  font-family: var(--f-ui);
  font-size: 15px;
  letter-spacing: .08em;
  margin-bottom: 7px;
  color: var(--ink);
}
.assurance dd { margin: 0; }

/* Bandeau délais */
.leadtimes {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 30px;
}
.leadtimes__grid {
  display: grid;
  grid-template-columns: auto repeat(4, 1fr);
  gap: 34px;
  align-items: center;
}
.leadtimes dt {
  font-family: var(--f-ui);
  font-size: 15px;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.leadtimes dd { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* Statistiques */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 44px;
}
.stats__value { font-family: var(--f-ui); font-size: clamp(28px, 3vw, 38px); font-weight: 300; }
.stats__label { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* Colonnes numérotées */
.pillar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}
.pillar__title { font-family: var(--f-ui); font-size: 19px; letter-spacing: .05em; }

/* Chiffres du rituel */
.ritual__value {
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1;
}

/* Liste à filets */
.ruled-list > * {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.ruled-list > *:last-child { border-bottom: 1px solid var(--line); }
.ruled-list strong {
  font-family: var(--f-ui);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: .05em;
}

/* Tableau clé/valeur */
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; font-size: 15px; }
.spec-list dt,
.spec-list dd {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  margin: 0;
}
.spec-list dt { color: var(--muted); }

.kv-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 14px;
}
.kv-row:last-child { border-bottom: 1px solid var(--line); }
.kv-row dt { color: var(--muted); margin: 0; }
.kv-row dd { margin: 0; }

/* Note définition/valeur des blocs « avant de commander » */
.note__term {
  display: block;
  font-family: var(--f-ui);
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ---------- 9. Pagination ------------------------------------------------ */

.pagination {
  display: flex;
  justify-content: center;
  gap: 14px;
  font: 12px/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pagination a {
  border: 1px solid var(--line-strong);
  padding: 13px 20px;
}
.pagination a:hover { border-color: var(--ink); text-decoration: none; }
.pagination a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}

/* ---------- 10. Formulaires ---------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 12px; }

.field > .label { text-transform: uppercase; }

.input,
.select,
.textarea {
  border: 1px solid var(--line-strong);
  background: var(--field);
  padding: 17px 18px;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
  width: 100%;
  border-radius: 0;
  appearance: none;
}
.input::placeholder,
.textarea::placeholder { color: var(--muted-soft); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink); }

.select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.field__error {
  font-size: 13px;
  color: #8C2F1E;
  min-height: 0;
}
.field.is-invalid .input,
.field.is-invalid .select { border-color: #8C2F1E; }

/* Choix radio en encadré (mode de réception) */
.choice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line-strong);
  padding: 20px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.choice:hover { border-color: var(--ink); }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice__mark {
  width: 12px; height: 12px;
  border: 1px solid var(--line-strong);
  margin-top: 6px;
  flex: 0 0 auto;
}
.choice__title { font-family: var(--f-ui); font-size: 17px; }
.choice__hint { font-size: 14px; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--ink); }
.choice:has(input:checked) .choice__mark { background: var(--ink); border-color: var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Dépôt de photos */
.dropzone {
  aspect-ratio: 1;
  border: 1px dashed var(--line-strong);
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted-soft);
  font: 11px/1.5 var(--f-mono);
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
}
.dropzone:hover { border-color: var(--ink); color: var(--ink); }

.thumb { position: relative; }
.thumb__remove {
  position: absolute;
  top: 6px; right: 6px;
  width: 24px; height: 24px;
  border: 0;
  background: var(--ink);
  color: var(--on-dark);
  font: 13px/1 var(--f-mono);
  cursor: pointer;
}

/* Étapes */
.steps { display: flex; gap: 30px; align-items: flex-start; }
.steps__item {
  flex: 1;
  border-top: 1px solid var(--line-strong);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted-soft);
}
.steps__item .label { color: var(--muted-faint); }
.steps__item.is-active { border-top-color: var(--ink); color: var(--ink-soft); }
.steps__item.is-active .label { color: var(--ink); }

/* Message de confirmation */
.notice {
  border: 1px solid var(--ink);
  background: var(--panel);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- 11. Panier --------------------------------------------------- */

.cart-line {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  align-items: start;
}
.cart-line:first-of-type { border-top-color: var(--ink); }
.cart-line__title { font-family: var(--f-ui); font-size: 19px; }
.cart-line__hint { font-size: 14px; color: var(--muted); line-height: 1.6; }
.cart-line__price { font-family: var(--f-ui); font-size: 19px; white-space: nowrap; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); }
.stepper button {
  border: 0;
  background: none;
  padding: 8px 14px;
  cursor: pointer;
  line-height: 1;
}
.stepper button:hover { background: var(--panel); }
.stepper output {
  padding: 8px 14px;
  border-left: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  min-width: 44px;
  text-align: center;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  font-size: 15px;
}
.summary-row dt { color: var(--ink-soft); margin: 0; }
.summary-row dd { margin: 0; }
.summary-row--total {
  padding: 22px 0 0;
  align-items: baseline;
  border-top: 0;
}
.summary-row--total dt { font-family: var(--f-ui); font-size: 19px; color: var(--ink); }
.summary-row--total dd { font-family: var(--f-ui); font-size: clamp(24px, 2.4vw, 30px); }

.cart-empty {
  border: 1px solid var(--line-strong);
  padding: 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

/* ---------- 12. Comparateur ---------------------------------------------- */

.compare-scroll { overflow-x: auto; }

.compare {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  text-align: left;
}
.compare th, .compare td {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  padding: 16px 22px;
  font-size: 15px;
  font-weight: 400;
  vertical-align: top;
}
.compare thead th, .compare thead td { border-top: 1px solid var(--ink); }
.compare th[scope="row"] {
  border-left: 0;
  padding-left: 0;
  width: 220px;
  font-size: 14px;
  color: var(--muted);
}
.compare thead th { padding: 26px 22px; }
.compare .is-featured { background: var(--panel); }
.compare tfoot td, .compare tfoot th { border-top: 1px solid var(--ink); padding: 24px 22px; }
.compare tfoot th[scope="row"] { padding-left: 0; }

.compare__head { display: flex; flex-direction: column; gap: 14px; }
.compare__name { font-family: var(--f-ui); font-size: 20px; display: flex; align-items: center; gap: 10px; }
.compare__price { font-family: var(--f-ui); font-size: 18px; }

/* ---------- 13. Galerie produit ------------------------------------------ */

.gallery { display: flex; flex-direction: column; gap: 14px; }
.gallery__main { aspect-ratio: 4 / 3.2; width: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__thumb {
  padding: 0;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  display: block;
}
.gallery__thumb img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--ink); }
.gallery__dots { display: none; gap: 10px; }
.gallery__dots span { flex: 1; height: 2px; background: var(--line); }
.gallery__dots span.is-active { background: var(--ink); }

/* ---------- 14. Projet en vedette ---------------------------------------- */

.feature-project {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  border-top: 1px solid var(--ink);
}
.feature-project:hover { text-decoration: none; }
.feature-project img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.feature-project__body {
  padding: 38px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}
.feature-project__facts {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  flex-wrap: wrap;
}
.feature-project__facts dt {
  font: 11px/1 var(--f-mono);
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
}
.feature-project__facts dd { margin: 0; }

/* ---------- 15. Pied de page --------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  padding-block: clamp(44px, 5vw, 60px) 34px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer__brand {
  --logo-size: 34px;
  color: var(--on-dark);
}
.site-footer h2 {
  color: var(--on-dark);
  font: 12px/1 var(--f-mono);
  letter-spacing: .14em;
  margin-bottom: 5px;
  text-transform: uppercase;
  font-weight: 400;
}
.site-footer nav { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }

.site-footer__wordmark {
  overflow: hidden;
  border-top: 1px solid var(--dark-line);
  padding-top: 30px;
  margin-top: 44px;
}
.site-footer__wordmark span {
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: clamp(56px, 11.7vw, 150px);
  line-height: .86;
  letter-spacing: .06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--dark-line-2);
  white-space: nowrap;
  display: block;
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 44px;
  font: 11px/1.6 var(--f-mono);
  letter-spacing: .12em;
  color: var(--on-dark-faint);
  text-transform: uppercase;
}

.site-footer--slim { padding-block: 34px; }
.site-footer--slim .site-footer__legal { margin-top: 0; }

/* ---------- 16. Responsive ----------------------------------------------- */

@media (max-width: 1080px) {
  .site-nav { gap: 22px; font-size: 13px; }
  .site-actions { gap: 14px; }
  .leadtimes__grid { grid-template-columns: 1fr 1fr 1fr; }
  .leadtimes__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .site-header__inner { padding-block: 16px; }
  .brand { --logo-size: 30px; }

  .nav-toggle { display: flex; align-items: center; }
  .site-actions .desktop-only { display: none; }
  .site-actions .cart-link { border: 0; padding: 0; font-size: 10px; }
  .site-actions .cart-link:hover { background: none; color: inherit; text-decoration: underline; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    font-size: 17px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

  .checkout-header .checkout-steps { font-size: 10px; gap: 14px; letter-spacing: .1em; }
  .checkout-header .back-link { display: none; }

  .marquee { height: 34px; }
  .marquee__track { font-size: 10px; letter-spacing: .2em; }
  .frieze { height: 28px; }
  .frieze__runes { font-size: 13px; letter-spacing: .9em; }

  .split--even,
  .split--wide-l,
  .split--wide-r { grid-template-columns: 1fr; align-items: start; }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }

  .steps { flex-direction: column; gap: 0; }
  .steps__item { width: 100%; padding-block: 14px; }

  .band__divider { border-left: 0; border-top: 1px solid var(--dark-line); padding-left: 0; padding-top: 32px; }

  .feature-project { grid-template-columns: 1fr; }
  .feature-project img { min-height: 260px; }
  .feature-project__body { padding: 26px; }

  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .assurance dl,
  .stats__grid { grid-template-columns: 1fr 1fr; }

  .hero { padding-block: 32px 40px; }
  .hero__runes { display: none; }
  .hero .split { gap: 26px; }
  .hero__media { order: -1; }

  .gallery__thumbs { display: none; }
  .gallery__dots { display: flex; }
  .gallery__main { aspect-ratio: 4 / 3.2; }
}

@media (max-width: 640px) {
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .leadtimes__grid { grid-template-columns: 1fr 1fr; }
  .spec-list { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .assurance dl { grid-template-columns: 1fr 1fr; }

  .cart-line { grid-template-columns: 96px 1fr; }
  .cart-line__price { grid-column: 2; }

  .panel { padding: 24px; }
  .card--boxed { padding: 22px; }
  .btn { padding: 16px 22px; }
  .section-head { align-items: flex-start; }
}

/* Cartes de gamme en 2 colonnes façon maquette mobile 4F */
@media (max-width: 900px) {
  .ranges { grid-template-columns: 1fr 1fr; }
  .ranges .card__desc { display: none; }
}

/* ---------- 12. Blog ------------------------------------------------------
   Article long, sommaire, tableaux de données, encadrés et FAQ dépliante.
   Les blocs restent lisibles seuls : c'est ce que vont extraire les moteurs
   de recherche comme les moteurs génératifs. */

.article__head {
  padding-top: clamp(24px, 3vw, 36px);
  max-width: 46rem;
}
.article__head .display { margin-top: 14px; }
.article__standfirst { margin-top: 18px; max-width: 46rem; }

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font: 11px/1.4 var(--f-mono);
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
}

.article__figure { margin-top: clamp(28px, 3.5vw, 40px); }
.article__body { padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(40px, 5vw, 72px); }

/* Réponse directe, en tête d'article */
.brief {
  max-width: 46rem;
  background: var(--panel);
  border-left: 3px solid var(--ink);
  padding: clamp(22px, 2.6vw, 30px);
}
.brief__label {
  font: 11px/1 var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.brief p { font-size: 17px; line-height: 1.65; }
.brief p + p { margin-top: 12px; }

/* Sommaire */
.toc {
  max-width: 46rem;
  margin-top: 36px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding-block: 22px;
}
.toc__title {
  font: 11px/1 var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.toc ol { counter-reset: toc; display: grid; gap: 8px; }
.toc li { counter-increment: toc; display: flex; gap: 12px; font-size: 15px; }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font: 11px/1.5 var(--f-mono);
  color: var(--muted-faint);
  flex: none;
}
.toc a { border-bottom: 1px solid transparent; }
.toc a:hover { text-decoration: none; border-bottom-color: var(--line-strong); }

/* Corps rédactionnel */
.prose { max-width: 46rem; margin-top: 44px; }
.prose > * + * { margin-top: 22px; }

.prose h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.prose h3 {
  font-family: var(--f-ui);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: .02em;
  margin-top: 36px;
  scroll-margin-top: 100px;
}
.prose p  { font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose em { font-style: italic; }

.prose ul, .prose ol { display: grid; gap: 12px; padding-left: 0; }
.prose li { font-size: 17px; line-height: 1.7; color: var(--ink-soft); padding-left: 26px; position: relative; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 4px; top: 13px;
  width: 7px; height: 1px;
  background: var(--muted-faint);
}
.prose ol { counter-reset: pas; }
.prose ol > li { counter-increment: pas; }
.prose ol > li::before {
  content: counter(pas) ".";
  position: absolute;
  left: 0; top: 0;
  font: 13px/1.9 var(--f-mono);
  color: var(--muted-faint);
}

.prose a {
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
}
.prose a:hover { border-bottom-color: var(--ink); text-decoration: none; }

/* Formule mise en évidence */
.formula {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px 26px;
  text-align: center;
}
.formula p {
  font-family: var(--f-mono);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}
.formula p + p { margin-top: 10px; color: var(--muted); }

/* Encadré de remarque */
.callout {
  border-left: 3px solid var(--muted-faint);
  background: var(--field);
  padding: 22px 26px;
}
.callout p { font-size: 16px; line-height: 1.7; }

/* Tableaux de données */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 34rem;
}
.data-table caption {
  caption-side: top;
  text-align: left;
  font: 11px/1.5 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
}
.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--line);
}
.data-table thead th {
  font-family: var(--f-ui);
  font-weight: 400;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
}
.data-table tbody th {
  font-family: var(--f-body);
  font-weight: 400;
  color: var(--muted);
  padding-right: 24px;
}
.data-table td { color: var(--ink-soft); }
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: 1px solid var(--ink); }

/* FAQ dépliante */
.faq { max-width: 46rem; margin-top: 64px; }
.faq h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
  margin-bottom: 8px;
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--f-ui);
  font-size: 17px;
  letter-spacing: .01em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font: 18px/1 var(--f-mono);
  color: var(--muted);
  flex: none;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--muted); }
.faq__body { padding: 0 0 22px; }
.faq__body p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.faq__body p + p { margin-top: 12px; }

/* Cartes d'article : le résumé sous le titre */
.card .small { color: var(--muted); }

@media (max-width: 900px) {
  .prose h2 { margin-top: 44px; }
  .prose p, .prose li { font-size: 16px; }
  .brief p { font-size: 16px; }
  .data-table { min-width: 30rem; font-size: 14px; }
  .data-table th, .data-table td { padding: 12px 14px 12px 0; }
  .article__meta { gap: 8px 18px; }
}
