/* ============================================================
   TRADE R — feuille de style « Salle des marchés »
   Papier blanc · encre · vermillon · règles fines de tableau
   Fonts : Bebas Neue (affichage) · Schibsted Grotesk (texte)
           Martian Mono (cotations, libellés)
   ============================================================ */

:root {
  --paper: #ffffff;
  --paper-2: #f4f4f2;
  --paper-3: #e9e9e6;
  --ink: #0f0f0f;
  --ink-2: #4a4a48;
  --ink-3: #8a8a86;
  --line: #0f0f0f;
  --line-soft: #d6d6d2;
  --red: #e52b1d;
  --red-dark: #b81f14;
  --green: #0c8a4b;
  --display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --body: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Martian Mono', 'Courier New', monospace;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::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(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- Typo affichage ---------- */
.d1, .d2, .d3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; }
.d1 { font-size: clamp(3.4rem, 9vw, 8.5rem); line-height: .9; }
.d2 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: .95; }
.d3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1; }
.red { color: var(--red); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-2); margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--red); }

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: #fff; overflow: hidden; height: 32px; display: flex; align-items: center; border-bottom: 1px solid #333; }
.ticker__track { display: flex; gap: 3rem; white-space: nowrap; animation: ticker 48s linear infinite; padding-left: 100%; will-change: transform; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; }
.ticker__item b { color: #fff; font-weight: 600; margin-right: .5rem; }
.ticker__item i { font-style: normal; margin-left: .4rem; }
.ticker__item .down { color: var(--red); }
.ticker__item .up { color: #3fd07f; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Barre de navigation ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: stretch; font-family: var(--display); font-size: 1.9rem; line-height: 1; letter-spacing: .04em; }
.brand__t { padding: .28rem 0; }
.brand__r { background: var(--red); color: #fff; padding: .28rem .45rem; margin-left: .35rem; transition: transform .3s var(--ease); }
.brand:hover .brand__r { transform: skewX(-8deg); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { position: relative; font-weight: 500; font-size: .95rem; padding: .3rem 0; }
.nav a:not(.nav__cart)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--red); transition: width .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { width: 100%; }
.nav__cart { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); padding: .45rem .8rem !important; }
.nav__cart:hover { background: var(--ink); color: #fff; }
.nav__count { font-family: var(--mono); font-size: .75rem; min-width: 1.4em; text-align: center; background: var(--red); color: #fff; padding: .1rem .35rem; }
.nav__count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.burger { display: none; background: none; border: 1px solid var(--line); width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.burger span { width: 20px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; cursor: pointer;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  font-weight: 600; font-size: .95rem; padding: .85rem 1.4rem;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--red); border-color: var(--red); }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); border-color: var(--red); }
.btn--red:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn--sm { padding: .55rem .9rem; font-size: .85rem; }
.btn--full { width: 100%; justify-content: center; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Héros ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; min-height: min(88vh, 820px); display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,15,.15) 0%, rgba(15,15,15,.55) 55%, rgba(15,15,15,.95) 100%); }
.hero__in { position: relative; width: 100%; padding: 8rem 0 3rem; }
.hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { color: rgba(255,255,255,.78); }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.hero__quote { border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); background: rgba(15,15,15,.45); }
.hero__quote .q-row { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid rgba(255,255,255,.15); font-family: var(--mono); font-size: .74rem; align-items: center; }
.hero__quote .q-row:last-child { border-bottom: 0; }
.hero__quote .q-row b { font-weight: 600; }
.hero__quote .q-row span:nth-child(2) { color: rgba(255,255,255,.6); }
.hero__quote .q-head { background: rgba(255,255,255,.08); text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); }
.hero__quote .up { color: #3fd07f; }
.hero__quote .down { color: var(--red); }
.hero__scroll { position: absolute; right: var(--gutter); top: 50%; transform: rotate(90deg) translateX(-50%); transform-origin: right; font-family: var(--mono); font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.5); }

/* ---------- Sections tableau ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--grey { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .eyebrow { color: rgba(255,255,255,.6); }
.section--ink .lead { color: rgba(255,255,255,.75); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: 3rem; }
.section__head .lead { margin: 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Board : grille avec règles */
.board { display: grid; border: 1px solid var(--line); }
.board--4 { grid-template-columns: repeat(4, 1fr); }
.board--3 { grid-template-columns: repeat(3, 1fr); }
.board--2 { grid-template-columns: repeat(2, 1fr); }
.board > * { padding: 1.8rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.board--4 > *:nth-child(4n), .board--3 > *:nth-child(3n), .board--2 > *:nth-child(2n) { border-right: 0; }
.board--4 > *:nth-last-child(-n+4), .board--3 > *:nth-last-child(-n+3), .board--2 > *:nth-last-child(-n+2) { border-bottom: 0; }
.board .num { font-family: var(--display); font-size: clamp(3rem, 6vw, 5rem); line-height: 1; letter-spacing: .01em; }
.board .num small { font-size: .45em; color: var(--red); margin-left: .1em; }
.board .lbl { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-top: .6rem; }
.board p { margin: .8rem 0 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- Marchés (stratégies) sur l’accueil ---------- */
.markets { border-top: 1px solid var(--line); }
.market { display: grid; grid-template-columns: 90px 1fr 1.2fr auto; gap: 2rem; align-items: center; padding: 2rem 0; border-bottom: 1px solid var(--line); transition: background .3s var(--ease); position: relative; }
.market:hover { background: var(--paper-2); }
.market__idx { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); }
.market__title { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 3rem); text-transform: uppercase; line-height: .95; }
.market__title small { display: block; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-top: .5rem; }
.market__txt { color: var(--ink-2); margin: 0; }
.market__arrow { font-family: var(--display); font-size: 2.4rem; transition: transform .3s var(--ease); }
.market:hover .market__arrow { transform: translateX(8px); color: var(--red); }
.market__img { position: absolute; right: 10%; top: 50%; width: 220px; aspect-ratio: 3/2; object-fit: cover; transform: translateY(-50%) rotate(-3deg) scale(.9); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); box-shadow: 0 20px 40px rgba(0,0,0,.2); }
.market:hover .market__img { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }

/* ---------- Ordres (cartes produits) ---------- */
.orders { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.orders--3 { grid-template-columns: repeat(3, 1fr); }
.order { display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); position: relative; transition: background .3s var(--ease); }
.orders > .order:nth-child(4n) { border-right: 0; }
.orders--3 > .order:nth-child(4n) { border-right: 1px solid var(--line); }
.orders--3 > .order:nth-child(3n) { border-right: 0; }
.orders > .order:nth-last-child(-n+4) { border-bottom: 0; }
.orders--3 > .order:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
.orders--3 > .order:nth-last-child(-n+3) { border-bottom: 0; }
.order:hover { background: var(--paper-2); }
.order__head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.2rem; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; }
.order__ticker { font-weight: 600; }
.order__mkt { text-transform: uppercase; color: var(--ink-3); }
.order__img { aspect-ratio: 1; overflow: hidden; background: #fff; }
.order__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.order:hover .order__img img { transform: scale(1.05); }
.order__body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; gap: .6rem; }
.order__name { font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.order__name a::after { content: ""; position: absolute; inset: 0; }
.order__txt { font-size: .9rem; color: var(--ink-2); margin: 0; flex: 1; }
.order__foot { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-top: 1px solid var(--line-soft); }
.order__price { font-family: var(--display); font-size: 1.8rem; line-height: 1; }
.order__price small { font-family: var(--mono); font-size: .62rem; color: var(--ink-3); margin-left: .3rem; letter-spacing: .05em; }
.order__foot form { position: relative; z-index: 1; }

/* Filtres */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filters button { background: transparent; border: 1px solid var(--line); padding: .5rem 1rem; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; transition: background .2s, color .2s; }
.filters button:hover, .filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.order.is-hidden { display: none; }

/* ---------- Fiche ordre ---------- */
.sheet { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.sheet__media { border-right: 1px solid var(--line); background: #fff; }
.sheet__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sheet__body { padding: clamp(1.5rem, 3vw, 3rem); display: flex; flex-direction: column; gap: 1.4rem; }
.sheet__meta { display: flex; gap: 1.5rem; flex-wrap: wrap; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--ink-2); }
.sheet__meta b { color: var(--ink); }
.sheet__price { display: flex; align-items: baseline; gap: .8rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; }
.sheet__price .big { font-family: var(--display); font-size: 3.4rem; line-height: 1; }
.sheet__price .ttc { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); }
.sheet__buy { display: flex; gap: .8rem; align-items: stretch; }
.qty { display: inline-flex; border: 1px solid var(--line); }
.qty button { background: transparent; border: 0; width: 42px; cursor: pointer; font-size: 1.2rem; }
.qty button:hover { background: var(--ink); color: #fff; }
.qty input { width: 54px; border: 0; border-inline: 1px solid var(--line); text-align: center; font-family: var(--mono); }
.check { list-style: none; padding: 0; display: grid; gap: .6rem; }
.check li { padding-left: 1.6rem; position: relative; font-size: .95rem; }
.check li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--red); }
.pour { background: var(--paper-2); padding: 1rem 1.2rem; border-left: 3px solid var(--red); font-size: .95rem; }
.pour b { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: .3rem; }

/* ---------- Carnet (panier) ---------- */
.cart { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; text-align: left; padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }
.cart-table td { padding: 1.2rem 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.cart-table .c-prod { display: flex; gap: 1rem; align-items: center; }
.cart-table .c-prod img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line-soft); }
.cart-table .c-prod b { font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; display: block; line-height: 1; }
.cart-table .c-prod span { font-family: var(--mono); font-size: .68rem; color: var(--ink-3); }
.cart-table .c-total { font-family: var(--mono); font-weight: 600; text-align: right; white-space: nowrap; }
.cart-table .c-del { background: none; border: 0; cursor: pointer; color: var(--ink-3); font-family: var(--mono); font-size: .7rem; text-decoration: underline; }
.cart-table .c-del:hover { color: var(--red); }
.summary { border: 1px solid var(--line); padding: 1.5rem; position: sticky; top: 90px; }
.summary h3 { font-family: var(--display); font-size: 1.8rem; text-transform: uppercase; margin-bottom: 1rem; }
.summary .row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); }
.summary .row--ttc { border-bottom: 0; border-top: 1px solid var(--line); margin-top: .5rem; padding-top: 1rem; font-size: 1rem; font-weight: 600; }
.summary .btn { margin-top: 1.2rem; }
.summary .note { font-size: .8rem; color: var(--ink-3); margin: 1rem 0 0; }
.empty { border: 1px dashed var(--line); padding: 3rem; text-align: center; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); background: #fff; padding: .8rem .9rem; width: 100%; outline: none;
  transition: box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 3px rgba(229,43,29,.18); border-color: var(--red); }
.field textarea { min-height: 140px; resize: vertical; }
.field--check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; }
.field--check input { width: 18px; height: 18px; margin-top: .2rem; flex: none; accent-color: var(--red); }
.form__legend { font-family: var(--display); font-size: 1.8rem; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: .5rem; margin: 1rem 0 .4rem; }
.alert { padding: 1rem 1.2rem; border-left: 3px solid var(--red); background: var(--paper-2); margin-bottom: 1.5rem; }
.alert--ok { border-color: var(--green); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.pay-opts { display: grid; gap: .6rem; }
.pay-opt { display: flex; gap: .8rem; align-items: center; border: 1px solid var(--line); padding: .9rem 1rem; cursor: pointer; }
.pay-opt:has(input:checked) { background: var(--ink); color: #fff; }
.pay-opt input { accent-color: var(--red); }
.pay-opt small { display: block; font-size: .78rem; opacity: .7; }

/* ---------- Sections diverses ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split--rev > :first-child { order: 2; }
.figure { position: relative; }
.figure__tag { position: absolute; left: 1rem; bottom: 1rem; background: var(--paper); font-family: var(--mono); font-size: .68rem; padding: .4rem .7rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); }

/* Processus (étapes) */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { counter-increment: s; padding: 2rem 1.5rem 2rem 0; border-right: 1px solid var(--line-soft); padding-left: 1.5rem; }
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; }
.step::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-size: 3.2rem; color: var(--red); line-height: 1; display: block; margin-bottom: .8rem; }
.step h3 { font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; margin-bottom: .5rem; }
.step p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* Strategies détaillées */
.strat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); align-items: center; scroll-margin-top: 90px; }
.strat:nth-child(even) > :first-child { order: 2; }
.strat__k { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .8rem; display: block; }
.strat h2 { margin-bottom: 1rem; }
.strat .figure img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.strat__kpis { display: flex; gap: 2rem; margin: 1.5rem 0; padding: 1rem 0; border-block: 1px solid var(--line-soft); }
.strat__kpis div { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.strat__kpis span { display: block; font-family: var(--mono); font-size: .62rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; margin-top: .3rem; }
.tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tags span { border: 1px solid var(--line); font-family: var(--mono); font-size: .66rem; padding: .3rem .6rem; letter-spacing: .06em; }

/* Bandeau CTA */
.cta { background: var(--red); color: #fff; padding: clamp(3rem, 6vw, 5rem) 0; position: relative; overflow: hidden; }
.cta::before { content: "TRADE R"; position: absolute; right: -2%; bottom: -25%; font-family: var(--display); font-size: 28vw; line-height: 1; color: rgba(255,255,255,.08); pointer-events: none; }
.cta__in { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; position: relative; }
.cta .lead { color: rgba(255,255,255,.85); }

/* Témoignages */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.quote { margin: 0; background: var(--paper); padding: 2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.quote p { font-size: 1.05rem; margin: 0; flex: 1; }
.quote p::before { content: "« "; color: var(--red); font-family: var(--display); font-size: 1.4em; }
.quote footer { font-family: var(--mono); font-size: .7rem; color: var(--ink-2); }
.quote footer b { color: var(--ink); display: block; }

/* Le desk */
.desk-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; padding-bottom: 3rem; }
.desk-hero img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2rem; }
.values h3 { font-family: var(--display); font-size: 1.7rem; text-transform: uppercase; margin-bottom: .6rem; }
.values h3::before { content: "— "; color: var(--red); }
.values p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.stack { display: flex; flex-wrap: wrap; gap: .5rem; }
.stack span { border: 1px solid var(--line); padding: .5rem .9rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; background: #fff; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 5rem); }
.contact__info { display: grid; gap: 1.5rem; align-content: start; }
.contact__info .item { border-top: 1px solid var(--line); padding-top: 1rem; }
.contact__info .item b { display: block; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: .3rem; }
.contact__info .item a { font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; }
.contact__info .item a:hover { color: var(--red); }

/* Confirmation */
.receipt { border: 1px solid var(--line); max-width: 760px; margin: 0 auto; }
.receipt__head { background: var(--ink); color: #fff; padding: 2rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.receipt__body { padding: 2rem; }
.receipt__body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.receipt__body td { padding: .6rem 0; border-bottom: 1px solid var(--line-soft); }
.receipt__body td:last-child { text-align: right; font-family: var(--mono); font-size: .8rem; }
.receipt__body tr.tot td { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--line); }

/* Pages légales */
.legal { max-width: 820px; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { font-family: var(--display); font-size: 1.7rem; text-transform: uppercase; margin: 2.5rem 0 .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--ink-2); font-size: .97rem; }
.legal ul { list-style: square; padding-left: 1.2rem; }
.legal ul li { margin-bottom: .4rem; }
.legal .mono-block { font-family: var(--mono); font-size: .78rem; background: var(--paper-2); padding: 1rem 1.2rem; border-left: 3px solid var(--red); }
.legal-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.legal-nav a { border: 1px solid var(--line); font-family: var(--mono); font-size: .66rem; padding: .35rem .7rem; text-transform: uppercase; letter-spacing: .06em; }
.legal-nav a[aria-current], .legal-nav a:hover { background: var(--ink); color: #fff; }

/* Page-head générique */
.page-head { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 1rem; }
.crumbs { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 1rem; }
.crumbs a:hover { color: var(--red); }

/* ---------- Pied ---------- */
.foot { background: var(--ink); color: #fff; padding: 4rem 0 2rem; margin-top: 0; }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid #333; }
.brand--foot { color: #fff; font-size: 2.4rem; }
.foot__tag { color: rgba(255,255,255,.7); margin: 1rem 0 .5rem; max-width: 30ch; }
.foot__meta { color: rgba(255,255,255,.5); }
.foot__h { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.55); margin-bottom: 1rem; }
.foot__list { display: grid; gap: .5rem; font-size: .92rem; }
.foot__list a:hover { color: var(--red); }
.foot__legal { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.5rem; color: rgba(255,255,255,.5); }
.foot__links { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .78rem; }
.foot__links a:hover { color: #fff; }

/* ---------- Cookie / toast ---------- */
.cookie { position: fixed; left: 1rem; bottom: 1rem; z-index: 90; max-width: 460px; background: var(--paper); border: 1px solid var(--line); padding: 1.2rem; box-shadow: 0 20px 40px rgba(0,0,0,.15); font-size: .88rem; }
.cookie p { margin-bottom: 1rem; }
.cookie a { text-decoration: underline; }
.cookie__btns { display: flex; gap: .5rem; justify-content: flex-end; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: .8rem 1.2rem; font-family: var(--mono); font-size: .75rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); z-index: 95; border-left: 3px solid var(--red); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Apparitions ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; padding-left: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .board--4 { grid-template-columns: repeat(2, 1fr); }
  .board--4 > *:nth-child(4n) { border-right: 1px solid var(--line); }
  .board--4 > *:nth-child(2n) { border-right: 0; }
  .board--4 > *:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .board--4 > *:nth-last-child(-n+2) { border-bottom: 0; }
  .orders { grid-template-columns: repeat(2, 1fr); }
  .orders > .order:nth-child(4n) { border-right: 1px solid var(--line); }
  .orders > .order:nth-child(2n) { border-right: 0; }
  .orders > .order:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .orders > .order:nth-last-child(-n+2) { border-bottom: 0; }
  .orders--3 { grid-template-columns: repeat(2, 1fr); }
  .orders--3 > .order:nth-child(3n) { border-right: 1px solid var(--line); }
  .orders--3 > .order:nth-child(2n) { border-right: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .step:nth-child(3) { padding-left: 0; }
  .market { grid-template-columns: 60px 1fr 1fr auto; }
  .market__img { display: none; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .quotes, .values { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .burger { display: flex; }
  .nav { position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 1rem var(--gutter); border-top: 1px solid var(--line-soft); }
  .nav a:not(.nav__cart)::after { display: none; }
  .nav__cart { margin: 1rem var(--gutter); justify-content: center; }
  .hero__grid, .section__head, .split, .strat, .cart, .checkout, .contact, .desk-hero, .sheet, .cta__in { grid-template-columns: 1fr; }
  .split--rev > :first-child, .strat:nth-child(even) > :first-child { order: 0; }
  .hero__in { padding-top: 5rem; }
  .hero__scroll { display: none; }
  .hero__quote .q-row { grid-template-columns: 1fr auto; }
  .hero__quote .q-row span:nth-child(2) { display: none; }
  .market { grid-template-columns: 1fr auto; gap: .6rem 1.5rem; }
  .market__idx { grid-column: 1 / -1; }
  .market__txt { grid-column: 1 / -1; }
  .sheet__media { border-right: 0; border-bottom: 1px solid var(--line); }
  .form__row { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; gap: .5rem; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
  .cart-table td { padding: 0; border: 0; }
  .cart-table td:first-child { grid-column: 1 / -1; }
  .cookie { left: .75rem; right: .75rem; max-width: none; }
}
@media (max-width: 540px) {
  .board--4, .board--3, .board--2, .orders, .orders--3, .steps { grid-template-columns: 1fr; }
  .board > *, .orders > .order { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .board > *:last-child, .orders > .order:last-child { border-bottom: 0 !important; }
  .step { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--line-soft); }
  .foot__grid { grid-template-columns: 1fr; }
  .sheet__buy { flex-direction: column; }
}
