/* ===== fonts.css ===== */
/* PARAWATT — polices auto-hébergées.
   Rapatriées de Google Fonts le 29/08/2026 : deux fontes variables, sous-ensembles
   latin et latin-ext. Plus aucun appel à un tiers au chargement d'une page, donc
   aucune adresse IP de visiteur transmise à Google — ce que la page « Données
   personnelles » peut désormais affirmer sans réserve. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ===== tokens.css ===== */
/* PARAWATT — jetons de design
   Direction : ingénierie solaire méditerranéenne.
   Encre marine, ivoire de sable, ambre. Trait de cote comme motif. */

:root {
  /* ---- Couleur ---- */
  --ink:         #0B1E33;
  --ink-soft:    #16324F;
  --ink-line:    #22405F;
  --paper:       #FBF9F4;
  --sand:        #F2EDE2;
  --sand-deep:   #E6DECD;
  --amber:       #E8940C;
  --amber-deep:  #9A5C03;
  --teal:        #0E6E63;
  --teal-soft:   #E3F0EC;
  --alert:       #B3261E;

  --text:        var(--ink);
  --text-muted:  #566579;
  --text-invert: #E9EEF4;
  --muted-invert:#93A6BC;

  --surface:     var(--paper);
  --surface-alt: var(--sand);
  --surface-ink: var(--ink);

  --hair:        rgba(11, 30, 51, .14);
  --hair-strong: rgba(11, 30, 51, .28);
  --hair-invert: rgba(233, 238, 244, .18);

  /* ---- Typographie ---- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-text:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --text-micro: 0.6875rem;
  --text-small: 0.8125rem;
  --text-body:  clamp(1rem, 0.955rem + 0.22vw, 1.0625rem);
  --text-lead:  clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --text-h3:    clamp(1.25rem, 1.12rem + 0.6vw, 1.5rem);
  --text-h2:    clamp(1.75rem, 1.35rem + 1.9vw, 3rem);
  --text-h1:    clamp(2.375rem, 1.6rem + 3.4vw, 4.5rem);
  --text-num:   clamp(2rem, 1.3rem + 3.1vw, 3.75rem);

  --leading-tight: 1.04;
  --leading-snug:  1.22;
  --leading-text:  1.62;

  /* ---- Rythme ---- */
  --space-1: 0.375rem;
  --space-2: 0.75rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3.25rem;
  --space-6: 5rem;
  --space-section: clamp(4rem, 2.4rem + 6.5vw, 9rem);
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3.5rem);
  --measure: 63ch;
  --page: 1320px;

  /* ---- Forme ---- */
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 20px;

  /* ---- Mouvement ---- */
  --dur-fast:   140ms;
  --dur-normal: 340ms;
  --dur-slow:   720ms;
  --ease-out:   cubic-bezier(.16, 1, .3, 1);
  --ease-soft:  cubic-bezier(.32, .72, 0, 1);

  --shadow-lift: 0 1px 2px rgba(11,30,51,.05), 0 12px 32px -14px rgba(11,30,51,.22);
  --shadow-deep: 0 2px 4px rgba(11,30,51,.06), 0 34px 70px -30px rgba(11,30,51,.38);
}


/* ===== site.css ===== */
/* PARAWATT — base, mise en page, composants */

/* ============ 1. Base ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: var(--leading-text);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

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

::selection { background: var(--amber); color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--text-invert);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

/* ============ 2. Typographie ============ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
  letter-spacing: -0.021em;
  line-height: var(--leading-snug);
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: var(--leading-tight); letter-spacing: -0.035em; }
h2 { font-size: var(--text-h2); letter-spacing: -0.028em; }
h3 { font-size: var(--text-h3); }

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

.lead { font-size: var(--text-lead); line-height: 1.45; color: var(--ink-soft); max-width: 34ch; }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.1em; }

/* Étiquette technique — le motif mono du dossier */
.kicker {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--amber-deep);
  display: inline-flex; align-items: center; gap: .6rem;
}
.kicker::before {
  content: ""; width: 1.75rem; height: 1px;
  background: currentColor; opacity: .55;
}
.kicker--plain::before { display: none; }
.on-ink .kicker { color: var(--amber); }

.mono { font-family: var(--font-mono); font-size: var(--text-small); letter-spacing: .01em; }
.caption {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  line-height: 1.55;
  letter-spacing: .04em;
  color: var(--text-muted);
  padding-top: .7rem;
  border-top: 1px solid var(--hair);
  max-width: 46ch;
}
.on-ink .caption { color: var(--muted-invert); border-color: var(--hair-invert); }

/* ============ 3. Grille et sections ============ */
.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 940px; }

.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 3.5vw, 5rem); }

.section--ink {
  background: var(--surface-ink);
  color: var(--text-invert);
}
.section--sand { background: var(--surface-alt); }

.on-ink h1, .on-ink h2, .on-ink h3 { color: var(--text-invert); }
.on-ink .lead { color: #C3D2E2; }

/* En-tête de section : numéro + titre + chapô, en asymétrie */
.sec-head {
  display: grid;
  gap: clamp(1.25rem, .6rem + 2vw, 3rem);
  grid-template-columns: 1fr;
  align-items: end;
  margin-bottom: clamp(2rem, 1rem + 3.5vw, 4rem);
}
@media (min-width: 860px) {
  .sec-head { grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr); }
}
.sec-head > * { min-width: 0; }
.sec-head h2 { max-width: 18ch; }
.sec-head__aside { padding-bottom: .4rem; }

/* Trait de cote — motif emprunté au croquis coté */
.rule-dim {
  position: relative;
  height: 1px;
  background: var(--hair-strong);
  margin-block: var(--space-4);
}
.rule-dim::before, .rule-dim::after {
  content: ""; position: absolute; top: -4px; width: 1px; height: 9px;
  background: var(--hair-strong);
}
.rule-dim::before { left: 0; }
.rule-dim::after  { right: 0; }
.on-ink .rule-dim, .on-ink .rule-dim::before, .on-ink .rule-dim::after { background: var(--hair-invert); }

/* ============ 4. En-tête de site ============ */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-normal) var(--ease-out),
              background var(--dur-normal) var(--ease-out);
}
.masthead.is-stuck { border-bottom-color: var(--hair); }
.masthead__inner {
  display: flex; align-items: center; gap: var(--space-3);
  height: 68px;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .28em;
  text-decoration: none;
  margin-right: auto;
  display: inline-flex; align-items: center; gap: .55rem;
}
.brand__mark { width: 17px; height: 17px; flex: none; }
.brand__mark circle { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.brand__mark path { fill: var(--amber); }

.nav { display: none; gap: clamp(1rem, .3rem + 1.6vw, 2.25rem); align-items: center; }
@media (min-width: 1000px) { .nav { display: flex; } }
.nav a {
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: -.005em;
  padding-block: .35rem;
  position: relative;
  color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-normal) var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }

.masthead__actions { display: flex; align-items: center; gap: .5rem; }

.cart-link {
  display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none; font-family: var(--font-mono);
  font-size: var(--text-micro); letter-spacing: .12em; text-transform: uppercase;
  padding: .6rem .85rem;
  border: 1px solid var(--hair-strong); border-radius: 100px;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.cart-link:hover { border-color: var(--ink); background: rgba(11,30,51,.04); }
.cart-count {
  min-width: 1.35rem; height: 1.35rem; padding-inline: .3rem;
  display: inline-grid; place-items: center;
  background: var(--amber); color: var(--ink);
  border-radius: 100px; font-weight: 700; font-size: .6875rem;
}
.cart-count[data-empty="true"] { background: var(--sand-deep); color: var(--text-muted); }

.burger {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; background: none;
  border: 1px solid var(--hair-strong); border-radius: 100px; cursor: pointer;
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 15px; height: 1.5px; background: var(--ink);
  transition: transform var(--dur-normal) var(--ease-out), opacity var(--dur-fast);
}
.burger span::before { transform: translateY(-5px); }
.burger span::after  { transform: translateY(3.5px); }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-1.5px); }

.drawer {
  display: grid; gap: .25rem;
  padding: var(--space-3) var(--gutter) var(--space-4);
  border-top: 1px solid var(--hair);
  background: var(--paper);
}
.drawer[hidden] { display: none; }
.drawer a {
  text-decoration: none; font-family: var(--font-display);
  font-size: 1.5rem; padding-block: .5rem;
  border-bottom: 1px solid var(--hair);
}

/* ============ 5. Boutons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem;
  font-size: .9375rem; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 100px;
  background: var(--ink); color: var(--text-invert);
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out),
              border-color var(--dur-fast);
}
.btn:hover { background: var(--ink-soft); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .45; pointer-events: none; }

.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--amber-deep); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hair-strong); }
.btn--ghost:hover { background: rgba(11,30,51,.05); border-color: var(--ink); }
.on-ink .btn--ghost { color: var(--text-invert); border-color: var(--hair-invert); }
.on-ink .btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--text-invert); }

.btn--wide { width: 100%; }
.btn--sm { padding: .6rem 1.05rem; font-size: .8125rem; }

.link-arrow {
  display: inline-flex; align-items: baseline; gap: .5rem;
  text-decoration: none; font-weight: 600; font-size: .9375rem;
  border-bottom: 1.5px solid var(--amber); padding-bottom: 2px;
  transition: gap var(--dur-normal) var(--ease-out);
}
.link-arrow:hover { gap: .9rem; }

/* ============ 6. Héros ============ */
.hero { position: relative; overflow: hidden; background: var(--sand); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 78% 8%, rgba(232,148,12,.16), transparent 58%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; gap: var(--space-4);
  padding-block: clamp(2.5rem, 1rem + 6vw, 5.5rem) clamp(2rem, 1rem + 3vw, 3.5rem);
}
@media (min-width: 940px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(2rem, 1rem + 3vw, 4.5rem);
  }
}
.hero h1 { margin-block: 1rem 1.5rem; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--amber-deep); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-4); }
.hero__media { position: relative; }
.hero__media img { width: 100%; }
.hero__tag {
  margin-top: .85rem;
  font-family: var(--font-mono); font-size: var(--text-micro);
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
}

/* Bandeau de chiffres */
.figures {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hair-strong);
}
@media (min-width: 800px) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figure {
  padding: var(--space-3) var(--space-3) var(--space-4) 0;
  border-right: 1px solid var(--hair);
}
.figure:last-child { border-right: 0; }
@media (min-width: 800px) { .figure { padding-right: var(--space-4); } }
.figure__n {
  font-family: var(--font-display); font-size: var(--text-num);
  line-height: 1; letter-spacing: -.04em; font-weight: 600;
  display: block; margin-bottom: .55rem;
}
.figure__n sup { font-size: .4em; vertical-align: super; letter-spacing: 0; }
.figure__l { font-size: var(--text-small); color: var(--text-muted); line-height: 1.4; max-width: 22ch; }
.on-ink .figure { border-color: var(--hair-invert); }
.on-ink .figure__l { color: var(--muted-invert); }

/* ============ 7. Blocs éditoriaux ============ */
.split {
  display: grid; gap: clamp(1.75rem, .8rem + 3vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-media { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
  .split--reverse > :first-child { order: 2; }
}
.split > * { min-width: 0; }
.split__body { max-width: 46ch; }

.figure-block { margin: 0; }
.figure-block img { width: 100%; border-radius: var(--radius-m); }
.figure-block figcaption { margin-top: .8rem; }

/* Cartes */
.cards { display: grid; gap: var(--space-3); }
.cards > * { min-width: 0; }
@media (min-width: 700px)  { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px)  { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 620px)  { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  padding: var(--space-4) var(--space-3) var(--space-4);
  border-top: 2px solid var(--ink);
  background: transparent;
}
.card__n {
  font-family: var(--font-mono); font-size: var(--text-micro);
  letter-spacing: .16em; color: var(--amber-deep); display: block; margin-bottom: .9rem;
}
.card h3 { margin-bottom: .6rem; }
.card p { font-size: .9375rem; color: var(--ink-soft); }
.on-ink .card { border-top-color: var(--amber); }
.on-ink .card p { color: #B9C9DA; }

/* Encadré d'avertissement / de note */
.note {
  border-left: 2px solid var(--amber);
  padding: .3rem 0 .3rem 1.15rem;
  font-size: .9375rem;
  color: var(--ink-soft);
  max-width: 58ch;
}
.note strong { color: var(--ink); }
.on-ink .note { color: #C3D2E2; }
.on-ink .note strong { color: var(--text-invert); }

/* ============ 8. Tableaux techniques ============ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.spec {
  width: 100%; min-width: 560px;
  border-collapse: collapse;
  font-size: .9375rem;
}
table.spec caption {
  text-align: left; padding-bottom: .9rem;
  font-family: var(--font-mono); font-size: var(--text-micro);
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted);
}
table.spec th, table.spec td {
  text-align: left; padding: .85rem .9rem .85rem 0;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}
table.spec thead th {
  font-family: var(--font-mono); font-size: var(--text-micro);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
  border-bottom-color: var(--hair-strong);
}
table.spec tbody th { font-weight: 500; color: var(--ink-soft); width: 38%; }
table.spec td { font-variant-numeric: tabular-nums; }
table.spec td strong { font-weight: 600; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }
.on-ink table.spec th, .on-ink table.spec td { border-color: var(--hair-invert); }
.on-ink table.spec tbody th { color: #B9C9DA; }

.hint {
  display: block; font-family: var(--font-mono); font-size: var(--text-micro);
  color: var(--text-muted); margin-top: .28rem; letter-spacing: .02em;
}

/* Barres de comparaison */
.bars { display: grid; gap: 1rem; }
.bar__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .875rem; }
.bar__val { font-family: var(--font-mono); font-weight: 600; }
.bar__track { height: 6px; background: var(--sand-deep); border-radius: 100px; overflow: hidden; margin-top: .4rem; }
.bar__fill {
  height: 100%; border-radius: 100px; background: var(--ink);
  transform-origin: left; transform: scaleX(var(--v, 0));
  transition: transform var(--dur-slow) var(--ease-soft);
}
.bar--accent .bar__fill { background: var(--amber); }
.on-ink .bar__track { background: rgba(255,255,255,.13); }
.on-ink .bar__fill { background: var(--text-invert); }

/* ============ 9. Pied de page ============ */
.footer { background: var(--ink); color: var(--text-invert); padding-block: var(--space-6) var(--space-4); }
.footer__grid { display: grid; gap: var(--space-4); }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer h2 { font-size: 1.5rem; max-width: 16ch; margin-bottom: 1rem; }
.footer__col h3 {
  font-family: var(--font-mono); font-size: var(--text-micro);
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted-invert);
  font-weight: 500; margin-bottom: 1rem;
}
.footer__col ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer__col a { text-decoration: none; font-size: .9375rem; color: #C3D2E2; transition: color var(--dur-fast); }
.footer__col a:hover { color: var(--amber); }
.footer__legal {
  margin-top: var(--space-5); padding-top: var(--space-3);
  border-top: 1px solid var(--hair-invert);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-family: var(--font-mono); font-size: var(--text-micro);
  letter-spacing: .06em; color: var(--muted-invert);
}

/* ============ 10. Révélation au défilement ============ */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .bar__fill { transition: none; }
  .btn:hover { transform: none; }
}

/* ============ 11. Divers ============ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.frame-3d {
  width: 100%; height: clamp(420px, 62vh, 680px);
  border: 1px solid var(--hair-strong); border-radius: var(--radius-m);
  background: var(--ink);
}
.on-ink .frame-3d { border-color: var(--hair-invert); }

/* ============ 12. Les rendus sont posés en plaque ============
   Les images de synthèse ont leur propre fond neutre. Plutôt que de tenter
   de le faire disparaître, on l'assume : plaque arrondie, filet, ombre courte.
   C'est le vocabulaire de la planche technique. */
.hero__media img,
.figure-block img,
.product__shot img {
  border-radius: var(--radius-l);
  box-shadow: 0 0 0 1px var(--hair), var(--shadow-lift);
}
.model__img img, .part__img img, .line__img img, .product__thumbs img { border-radius: 0; box-shadow: none; }
.figure-block img { border-radius: var(--radius-m); }


/* ============ 13. Page d'attente ============ */
.veille {
  min-height: 100vh; display: grid; place-items: center;
  padding: var(--gutter); background: var(--sand); position: relative; overflow: hidden;
}
.veille::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(110% 70% at 70% 10%, rgba(232,148,12,.16), transparent 60%);
}
.veille__bloc { position: relative; z-index: 1; max-width: 34rem; text-align: center; }
.veille__marque { width: 34px; height: 34px; margin: 0 auto 1.25rem; }
.veille__marque circle { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.veille__marque path { fill: var(--amber); }
.veille__nom {
  font-family: var(--font-mono); font-weight: 700; font-size: .875rem;
  letter-spacing: .34em; margin-bottom: 1.75rem;
}
.veille h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  margin-bottom: 1.5rem; text-wrap: balance;
}
.veille__texte { color: var(--ink-soft); margin-inline: auto; max-width: 42ch; }
.veille__lien {
  display: inline-block; margin-top: 1.75rem;
  font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid var(--amber); padding-bottom: 3px;
}
.veille__lien:hover { border-bottom-width: 3px; }
.veille__pied {
  margin-top: 3rem; font-family: var(--font-mono);
  font-size: var(--text-micro); letter-spacing: .08em; color: var(--text-muted);
}


/* ===== shop.css ===== */
/* PARAWATT — boutique : fiches produit, catalogue de pièces, panier */

/* ============ Fiche produit ============ */
.product {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  padding-block: clamp(2rem, 1rem + 3vw, 3.5rem);
}
@media (min-width: 960px) {
  .product { grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); align-items: start; }
}

.product__gallery { display: grid; gap: var(--space-2); }
.product__shot {
  background: var(--sand); border-radius: var(--radius-m);
  overflow: hidden; position: relative;
}
.product__shot img { width: 100%; }
.product__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.product__thumbs button {
  padding: 0; border: 1px solid var(--hair); border-radius: var(--radius-s);
  background: var(--sand); cursor: pointer; overflow: hidden;
  transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.product__thumbs button:hover { transform: translateY(-2px); }
.product__thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.product__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.buy {
  position: sticky; top: 92px;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-m);
  padding: clamp(1.35rem, .9rem + 1.4vw, 2rem);
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}
@media (max-width: 959px) { .buy { position: static; } }

.buy__ref {
  font-family: var(--font-mono); font-size: var(--text-micro);
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted);
}
.buy h1 { font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.6rem); margin: .5rem 0 .6rem; }
.buy__claim { font-size: .9375rem; color: var(--ink-soft); max-width: 40ch; }

.price { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin-block: 1.4rem .3rem; }
.price__main { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; letter-spacing: -.03em; }
.price__ht { font-family: var(--font-mono); font-size: var(--text-small); color: var(--text-muted); }
.price__note { font-family: var(--font-mono); font-size: var(--text-micro); color: var(--text-muted); }

.opt { margin-top: 1.5rem; }
.opt__label {
  font-family: var(--font-mono); font-size: var(--text-micro);
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted);
  display: block; margin-bottom: .6rem;
}
.opt__row { display: grid; gap: .5rem; }
@media (min-width: 480px) { .opt__row--2 { grid-template-columns: 1fr 1fr; } }

.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: block; padding: .7rem .85rem;
  border: 1px solid var(--hair-strong); border-radius: var(--radius-s);
  font-size: .875rem; line-height: 1.3;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.choice small { display: block; font-family: var(--font-mono); font-size: var(--text-micro); color: var(--text-muted); margin-top: .18rem; }
.choice input:checked + span { border-color: var(--ink); background: rgba(11,30,51,.045); }
.choice input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--hair-strong); border-radius: 100px; overflow: hidden; }
.qty button {
  width: 40px; height: 42px; border: 0; background: none; cursor: pointer;
  font-size: 1.1rem; line-height: 1; color: var(--ink-soft);
  transition: background var(--dur-fast);
}
.qty button:hover { background: rgba(11,30,51,.06); }
.qty input {
  width: 46px; height: 42px; border: 0; background: none; text-align: center;
  font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy__actions { display: flex; gap: .6rem; align-items: center; margin-top: 1.5rem; flex-wrap: wrap; }
.buy__actions .btn { flex: 1 1 12rem; }

.buy__facts { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: .55rem; }
.buy__facts li {
  display: flex; gap: .6rem; font-size: .875rem; color: var(--ink-soft); line-height: 1.45;
}
.buy__facts li::before { content: "—"; color: var(--amber-deep); flex: none; }

/* ============ Catalogue de pièces ============ */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space-4); }
.filters button {
  padding: .55rem 1rem; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--hair-strong); background: transparent;
  font-family: var(--font-mono); font-size: var(--text-micro);
  letter-spacing: .12em; text-transform: uppercase;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.filters button:hover { background: rgba(11,30,51,.05); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--text-invert); border-color: var(--ink); }

.grid-parts { display: grid; gap: var(--space-3); }
@media (min-width: 560px)  { .grid-parts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid-parts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid-parts { grid-template-columns: repeat(4, 1fr); } }

.part {
  display: flex; flex-direction: column;
  border: 1px solid var(--hair); border-radius: var(--radius-m);
  background: var(--paper); overflow: hidden;
  transition: border-color var(--dur-normal) var(--ease-out),
              transform var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out);
}
.part:hover { border-color: var(--hair-strong); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.part__img { background: var(--sand); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: .5rem; }
.part__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.part__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.part__ref { font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: .13em; color: var(--amber-deep); }
.part__name { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.part__desc { font-size: .8125rem; color: var(--text-muted); line-height: 1.5; }
.part__foot { margin-top: auto; padding-top: .85rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.part__price { font-family: var(--font-mono); font-weight: 700; font-size: .9375rem; }
.part__price small { display: block; font-weight: 400; font-size: var(--text-micro); color: var(--text-muted); }

/* Cartes de gamme */
.grid-models { display: grid; gap: var(--space-3); }
@media (min-width: 620px)  { .grid-models { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .grid-models { grid-template-columns: repeat(4, 1fr); } }

.model {
  display: flex; flex-direction: column;
  border: 1px solid var(--hair); border-radius: var(--radius-m);
  overflow: hidden; background: var(--paper);
  transition: border-color var(--dur-normal), transform var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal);
}
.model:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.model--featured { border-color: var(--amber); }
.model__flag {
  font-family: var(--font-mono); font-size: var(--text-micro);
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--amber); color: var(--ink);
  padding: .4rem .9rem;
}
.model__img { background: var(--sand); aspect-ratio: 4 / 3; overflow: hidden; }
.model__img img { width: 100%; height: 100%; object-fit: cover; }
.model__body { padding: 1.2rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.model__w { font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: .14em; color: var(--amber-deep); }
.model h3, .model__nom { font-size: 1.35rem; font-family: var(--font-display); font-weight: 600; letter-spacing: -.021em; line-height: 1.22; }
.model p { font-size: .875rem; color: var(--text-muted); line-height: 1.5; }
.model__price { font-family: var(--font-mono); font-weight: 700; margin-top: auto; padding-top: .9rem; }
.model__price small { font-weight: 400; color: var(--text-muted); }

/* ============ Panier ============ */
.cart-layout { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); }
@media (min-width: 940px) { .cart-layout { grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); align-items: start; } }

.line {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem;
  padding-block: 1.15rem; border-bottom: 1px solid var(--hair); align-items: center;
}
.line__img { background: var(--sand); border-radius: var(--radius-s); aspect-ratio: 1; overflow: hidden; }
.line__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.line__name { font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.line__ref { font-family: var(--font-mono); font-size: var(--text-micro); color: var(--text-muted); letter-spacing: .1em; }
.line__ctl { display: flex; align-items: center; gap: .9rem; margin-top: .5rem; }
.line__rm { background: none; border: 0; cursor: pointer; font-size: var(--text-micro); font-family: var(--font-mono); color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.line__rm:hover { color: var(--alert); }
.line__sum { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

.summary {
  border: 1px solid var(--hair-strong); border-radius: var(--radius-m);
  padding: clamp(1.35rem, .9rem + 1.4vw, 1.9rem); background: var(--sand);
  position: sticky; top: 92px;
}
@media (max-width: 939px) { .summary { position: static; } }
.summary h2 { font-size: 1.35rem; margin-bottom: 1.1rem; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.summary__row span:last-child { font-family: var(--font-mono); }
.summary__row--total {
  border-top: 1px solid var(--hair-strong); margin-top: .6rem; padding-top: .9rem;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
}
.summary__row--total span:last-child { font-family: var(--font-display); }
.summary__row--muted { color: var(--text-muted); font-size: var(--text-small); }

.cart-empty { padding: var(--space-6) 0; text-align: center; }
.cart-empty h2 { margin-bottom: .8rem; }

/* Formulaire */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; }
.field > label {
  font-family: var(--font-mono); font-size: var(--text-micro);
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
}
.field input, .field textarea, .field select {
  padding: .8rem .9rem; border: 1px solid var(--hair-strong);
  border-radius: var(--radius-s); background: var(--paper);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field input:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(232,148,12,.24);
}
.field textarea { min-height: 120px; resize: vertical; }
.field--full { grid-column: 1 / -1; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .8125rem; color: var(--ink-soft); line-height: 1.5; }
.check input { margin-top: .2rem; accent-color: var(--amber); }

.form-status { margin-top: 1rem; font-size: .875rem; padding: .85rem 1rem; border-radius: var(--radius-s); display: none; }
.form-status[data-state="ok"]   { display: block; background: var(--teal-soft); color: var(--teal); }
.form-status[data-state="err"]  { display: block; background: #FBE9E7; color: var(--alert); }
.form-status[data-state="wait"] { display: block; background: var(--sand-deep); color: var(--ink-soft); }

/* Toast d'ajout au panier */
.toast {
  position: fixed; z-index: 150; right: var(--gutter); bottom: var(--gutter);
  max-width: min(360px, calc(100vw - 2 * var(--gutter)));
  background: var(--ink); color: var(--text-invert);
  border-radius: var(--radius-m); padding: 1rem 1.15rem;
  box-shadow: var(--shadow-deep);
  display: flex; gap: .9rem; align-items: center;
  transform: translateY(140%); opacity: 0;
  transition: transform var(--dur-normal) var(--ease-out), opacity var(--dur-normal);
}
.toast.is-open { transform: none; opacity: 1; }
.toast p { font-size: .875rem; line-height: 1.35; }
.toast a { font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .toast { transition: opacity var(--dur-fast); transform: none; } .toast:not(.is-open) { display: none; } }

/* Bloc offre pro */
.offers { display: grid; gap: var(--space-3); }
@media (min-width: 860px) { .offers { grid-template-columns: 1.05fr 1fr; } }
.offer {
  border: 1px solid var(--hair-strong); border-radius: var(--radius-m);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.4rem);
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--paper);
}
.offer--lead { border-color: var(--teal); background: var(--teal-soft); }
.offer__flag {
  align-self: flex-start; font-family: var(--font-mono); font-size: var(--text-micro);
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--teal); color: #fff; padding: .3rem .7rem; border-radius: 100px;
}
.offer h3 { font-size: 1.5rem; }
.offer__price { font-family: var(--font-display); font-size: 2.15rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.offer__price small { font-family: var(--font-text); font-size: .9375rem; font-weight: 400; letter-spacing: 0; color: var(--text-muted); }
.offer ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.offer li { display: flex; gap: .65rem; font-size: .9375rem; line-height: 1.45; }
.offer li::before { content: "✓"; color: var(--teal); font-weight: 700; flex: none; }
.offer--plain li::before { content: "·"; color: var(--text-muted); }
