/* Caféino — vitrine vivante du système de design « Torréfaction » (design.html).
   Tout s'appuie sur base.css ; ce fichier ne fait que la mise en page de la vitrine. */

/* Îlot clair dans une page sombre : base.css n'offre que .theme-dark, on rétablit ici les valeurs claires de :root. */
.theme-light {
  --bg: #F6F1EA; --surface: #FFFFFF; --surface-2: #FBF8F4; --surface-3: #F1EAE1;
  --ink: #1A1512; --ink-2: #4A413A; --muted: #857A70; --line: #EBE3D9; --line-strong: #DCD1C4;
  --steel: #0E0C0B; --scrim: rgba(14, 12, 11, .5);
  --accent: #A8642F; --accent-bright: #C8814A; --accent-soft: #F4E6D7; --accent-ink: #8A4F22; --on-accent: #FFF8F1;
  --accent-grad: linear-gradient(180deg, #C8814A 0%, #A8642F 100%); --wood-strong: #8E5226;
  --ok: #2E7A4E; --ok-soft: #E2F1E7; --warn: #99620F; --warn-soft: #F8ECD5;
  --danger: #B5412A; --danger-soft: #F9E3DC; --info: #3D6E9E; --info-soft: #E3EDF7;
  --shadow-xs: 0 1px 2px rgba(26, 21, 18, .06);
  --shadow-sm: 0 1px 2px rgba(26, 21, 18, .05), 0 4px 12px rgba(26, 21, 18, .05);
  --shadow: 0 1px 2px rgba(26, 21, 18, .05), 0 10px 30px rgba(26, 21, 18, .08);
  --shadow-md: 0 2px 6px rgba(26, 21, 18, .06), 0 18px 44px rgba(26, 21, 18, .12);
  --shadow-lg: 0 30px 80px rgba(14, 12, 11, .30);
  --shadow-accent: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 8px 22px rgba(168, 100, 47, .30);
  --glass: rgba(255, 255, 255, .72); --glass-thick: rgba(255, 255, 255, .86); --glass-thin: rgba(255, 255, 255, .5);
  --glass-edge: rgba(255, 255, 255, .7); --glass-line: rgba(26, 21, 18, .08);
  --tile-cafe: #F1E2D2; --tile-the: #E3EEDC; --tile-frais: #F7EACB; --tile-brunch: #F6E0CF;
  --tile-bowl: #DCEDE3; --tile-sandwich: #EEE5D8; --tile-sucre: #F5E0DD;
  color-scheme: light; color: var(--ink);
}
/* base.css cible le sombre par descendance (.theme-dark .x) : on neutralise ces règles dans un îlot clair. */
.theme-dark .theme-light .btn-dark { background: var(--espresso); color: var(--milk); }
.theme-dark .theme-light .btn-dark:hover:not(:disabled) { background: #221E1B; }
.theme-dark .theme-light .btn-tinted:hover:not(:disabled) { filter: brightness(.97); }
.theme-dark .theme-light .btn-ok { color: #fff; }
.theme-dark .theme-light .segmented > button.is-active,
.theme-dark .theme-light .segmented > button[aria-selected="true"] { background: var(--surface); }
.theme-dark .theme-light .item-icon {
  background: linear-gradient(155deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%), var(--tile, var(--surface-3));
  box-shadow: inset 0 0 0 1px rgba(26, 21, 18, .05), inset 0 1px 0 rgba(255, 255, 255, .6);
  text-shadow: 0 3px 6px rgba(26, 21, 18, .16);
}
.theme-dark .layer.theme-light .layer-panel { box-shadow: var(--shadow-lg); }

/* ---------- Socle de page ---------- */
.ds { overflow-x: hidden; transition: background-color var(--dur-slow) var(--ease-out), color var(--dur-slow) var(--ease-out); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.ds a:not(.btn) { color: inherit; text-decoration: none; }
.ds a.btn { text-decoration: none; }
.ds code, .ds small { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; }
.ds p code, .ds-lede code { font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--ink); }
.ds-wrap { width: min(1180px, 100% - 64px); margin-inline: auto; }
main > section[id] { scroll-margin-top: 84px; }
.ds-ico { display: inline-flex; }
.ds-mt { margin-top: 16px; }
.ds-grow { flex: 1; }
.ds-skip { position: absolute; left: 12px; top: -80px; z-index: 120; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--surface); box-shadow: var(--shadow); font-weight: 600; }
.ds-skip:focus { top: 12px; }

/* ---------- Navigation flottante (verre) ---------- */
.ds-nav {
  position: fixed; z-index: 90; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; width: max-content; max-width: calc(100vw - 24px);
  padding: 6px; padding-left: 20px; border-radius: var(--radius-pill); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 var(--glass-edge), var(--shadow);
  transition: background-color var(--dur-slow) var(--ease-out), color var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.ds-nav-logo { display: flex; align-items: center; margin-right: 10px; border-radius: 8px; }
.ds-nav-logo .logo { font-size: 15px; padding-top: .5em; }
.ds-nav-links { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ds-nav-links::-webkit-scrollbar { display: none; }
.ds-nav-links a {
  flex: none; padding: 8px 13px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background-color var(--dur) ease, color var(--dur) ease;
}
.ds-nav-links a:hover { color: var(--ink); background: var(--surface-3); }
.ds-nav-links a.is-active { color: var(--ink); background: var(--surface-3); }
.ds-theme { margin-left: 6px; flex: none; }
.ds-theme > button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; font-size: 13px; }

/* ---------- Hero ---------- */
.ds-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--ink); background: var(--espresso);
  padding: 128px 0 96px;
}
.ds-hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ds-hero-glow i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.ds-hero-glow i:nth-child(1) { width: 720px; height: 720px; right: -160px; top: -220px; background: radial-gradient(circle, #C8814A, transparent 65%); animation: ds-drift 18s var(--ease-in-out) infinite alternate; }
.ds-hero-glow i:nth-child(2) { width: 560px; height: 560px; left: -200px; bottom: -260px; background: radial-gradient(circle, #A8642F, transparent 65%); opacity: .4; animation: ds-drift 22s var(--ease-in-out) infinite alternate-reverse; }
.ds-hero-glow i:nth-child(3) { width: 380px; height: 380px; left: 42%; top: 38%; background: radial-gradient(circle, #E9C9A3, transparent 65%); opacity: .14; animation: ds-drift 26s var(--ease-in-out) infinite alternate; }
.ds-hero::after { /* trame acier de la vitrine, en filigrane */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), rgba(255, 255, 255, .03) calc(12.5% - 1px) 12.5%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
@keyframes ds-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-60px, 40px, 0) scale(1.12); } }

.ds-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; }
.ds-hero-copy { display: contents; }
.ds-hero-logo { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.ds-hero-logo .logo { font-size: 30px; color: var(--milk); }
.ds-hero-eyebrow { grid-column: 1 / -1; margin-top: -18px; color: var(--crema); }
.ds-hero-title {
  grid-column: 1 / -1; margin: -6px 0 8px -.05em; hyphens: manual;
  font: 800 clamp(48px, 14.6vw, 206px)/.88 var(--font-display); letter-spacing: -.058em; white-space: nowrap;
  background: linear-gradient(100deg, #F6F1EA 0%, #E9C9A3 30%, #C8814A 62%, #A8642F 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em;
}
.ds-hero-side { grid-column: 1; align-self: start; display: grid; gap: 28px; padding-top: 6px; }
.ds-hero-lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; letter-spacing: -.018em; font-weight: 500; color: var(--ink-2); max-width: 30ch; }
.ds-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ds-hero-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 32px; margin: 14px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.ds-hero-stats div { display: grid; gap: 8px; }
.ds-hero-stats dt { font-size: 10.5px; }
.ds-hero-stats dd { margin: 0; font-size: 36px; line-height: 1; color: var(--ink); }
.ds-hero-stage { grid-column: 2; grid-row: 4; position: relative; height: 430px; align-self: start; }

.ds-float { position: absolute; animation: ds-bob 7s var(--ease-in-out) infinite alternate; }
@keyframes ds-bob { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.ds-f1 { left: 0; top: 0; width: 300px; padding: 20px 22px 18px; animation-delay: -1s; box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line); }
.ds-f1-top { display: flex; justify-content: space-between; align-items: center; }
.ds-f1-amount { margin-top: 10px; font-size: 42px; line-height: 1; letter-spacing: -.04em; }
.ds-f1-amount span, .ds-amount-big span, .ds-amount-row span, .ds-dc-amount span, .ds-modal-amount span, #ds-calm-total span, .ds-dt {
  font-size: .42em; font-weight: 650; letter-spacing: 0; color: var(--muted); margin-left: .3em;
}
.ds-bars { display: flex; align-items: end; gap: 6px; height: 64px; margin-top: 16px; }
.ds-bars i { flex: 1; height: var(--h); border-radius: 6px; background: var(--surface-3); }
.ds-bars i.is-now { background: var(--accent-grad); box-shadow: 0 6px 18px rgba(200, 129, 74, .35); }
.ds-f1-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; }
.ds-f2 { right: 0; top: 34px; position: absolute; opacity: 1; transform: none; animation-delay: -3s; }
.ds-f3 { right: 0; top: 232px; width: 340px; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 14px; border-radius: var(--radius); animation-delay: -5s; box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line); }
.ds-f3-ico { width: 56px; height: 56px; font-size: 30px; }
.ds-f3-txt { flex: 1; display: grid; gap: 2px; min-width: 0; }
.ds-f3-txt .t-footnote { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-f3 .stepper button { pointer-events: none; }
.ds-f4 { left: 22px; top: 318px; display: flex; gap: 10px; padding: 10px; border-radius: 26px; animation-delay: -2s;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 var(--glass-edge), var(--shadow-md); }
.ds-f4 .item-icon { width: 52px; height: 52px; font-size: 28px; }
.ds-f5 { right: 0; top: 142px; z-index: 1; pointer-events: none; animation-delay: -4s; }

/* ---------- Sections ---------- */
.ds-sec { padding: 128px 0 40px; }
.ds-sec:last-of-type { padding-bottom: 128px; }
.ds-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 56px; }
.ds-head .eyebrow { display: flex; align-items: center; gap: 10px; }
.ds-head .eyebrow b { color: var(--accent); font-weight: 750; }
.ds-head .t-display { font-size: clamp(38px, 5vw, 64px); letter-spacing: -.04em; }
.ds-lede { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.ds-sub { margin: 72px 0 8px; }
.ds-sub-lede { color: var(--muted); margin-bottom: 24px; max-width: 70ch; }
.ds-box { padding: 26px; }
.ds-box > .eyebrow { margin-bottom: 18px; }

/* Plateau à deux thèmes : un cadre (rayon 30, marge 10) qui tient deux cellules concentriques (rayon 20). */
.ds-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; border-radius: var(--radius-xl);
  background: var(--surface); box-shadow: var(--shadow-sm), var(--hairline);
}
.ds-cell { position: relative; min-width: 0; padding: 26px 28px 30px; border-radius: 20px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.ds-cell[data-theme-label]::before {
  content: attr(data-theme-label); display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; margin-bottom: 20px;
  border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 650; letter-spacing: .02em; color: var(--muted); background: var(--surface-3);
}

/* ---------- Principes ---------- */
.ds-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ds-pr { position: relative; padding: 28px 28px 30px; display: grid; align-content: start; gap: 12px; min-height: 260px;
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out); }
.ds-pr:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), var(--hairline); }
.ds-pr p { color: var(--ink-2); }
.ds-pr .t-title3 { font-size: 21px; margin-top: 18px; }
.ds-pr-n { position: absolute; top: 26px; right: 28px; font: 750 13px/1 var(--font-display); color: var(--muted); font-variant-numeric: tabular-nums; }
.ds-pr-ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.ds-pr-bold { color: #1A0F07; background:
  radial-gradient(120% 90% at 100% 0%, rgba(233, 201, 163, .9), transparent 55%),
  linear-gradient(150deg, #D4915A 0%, #A8642F 70%, #7C4520 100%); box-shadow: var(--shadow-accent); }
.ds-pr-bold p { color: rgba(26, 15, 7, .78); }
.ds-pr-bold .ds-pr-n { color: rgba(26, 15, 7, .6); }
.ds-pr-bold .ds-pr-ico { background: rgba(26, 15, 7, .14); color: #1A0F07; }

/* ---------- Couleur ---------- */
.ds-brand { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.ds-sw { display: grid; gap: 14px; align-content: start; }
.ds-sw-chip { height: 220px; border-radius: var(--radius-lg); background: var(--sw); box-shadow: inset 0 0 0 1px rgba(26, 21, 18, .08), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform var(--dur-slow) var(--ease-spring); }
.ds-sw:hover .ds-sw-chip { transform: translateY(-6px); }
.ds-sw-meta { display: grid; gap: 2px; align-content: start; }
.ds-sw-meta strong { font-size: 15px; font-weight: 650; }
.ds-sw-meta code { color: var(--muted); }
.ds-sw-hex { font: 600 13px/1.4 var(--font-mono); color: var(--ink); margin-top: 4px; }
.ds-sw-use { font-size: 12.5px; color: var(--muted); }
.ds-tok-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.ds-tok-group { display: grid; gap: 4px; align-content: start; }
.ds-tok-group .eyebrow { margin-bottom: 6px; }
.ds-tok { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 5px 0; }
.ds-tok i { width: 30px; height: 30px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(128, 112, 98, .25); }
.ds-tok-name { display: grid; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.ds-tok-name code { font-size: 11px; color: var(--muted); font-weight: 400; }
.ds-tok-hex { font: 500 11.5px var(--font-mono); color: var(--ink-2); text-align: right; white-space: nowrap; }

/* ---------- Typographie ---------- */
.ds-specimen { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; margin-bottom: 16px; }
.ds-spec-aa { display: flex; align-items: center; gap: 32px; padding: 28px 36px; overflow: hidden; }
.ds-aa { font: 800 172px/.9 var(--font-display); letter-spacing: -.06em;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .04em .08em 0; }
.ds-spec-meta { display: grid; gap: 10px; }
.ds-spec-meta .t-footnote { font: 500 13px/1.7 var(--font); letter-spacing: .01em; }
.ds-spec-amount { padding: 30px 32px; display: grid; align-content: center; gap: 10px; }
.ds-amount-big { font-size: clamp(44px, 5.2vw, 68px); line-height: 1; letter-spacing: -.045em; color: var(--ink); }
.ds-scale { padding: 8px 32px; }
.ds-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 210px; align-items: baseline; gap: 24px; padding: 20px 0; }
.ds-row + .ds-row { border-top: 1px solid var(--line); }
.ds-row > code { color: var(--accent); font-weight: 600; }
.ds-row > small { color: var(--muted); text-align: right; }
.ds-row > span { min-width: 0; overflow-wrap: anywhere; }
.ds-amount-row { font-size: 44px; line-height: 1; }

/* ---------- Forme ---------- */
.ds-shape-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ds-space { display: grid; gap: 9px; }
.ds-sp { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 12px; }
.ds-sp-n { font: 600 12px var(--font-mono); color: var(--muted); text-align: right; }
.ds-sp i { display: block; height: 14px; border-radius: 4px; background: var(--accent-grad); opacity: .9; }
.ds-concentric { display: grid; place-items: center; padding: 6px 0 4px; }
.ds-c1, .ds-c2, .ds-c3 { position: relative; }
.ds-c1 { width: min(100%, 340px); padding: 12px; border-radius: 30px; background: var(--surface-3); }
.ds-c2 { padding: 6px; border-radius: 18px; background: var(--accent-soft); }
.ds-c3 { height: 92px; border-radius: 12px; background: var(--accent-grad); box-shadow: var(--shadow-accent); }
.ds-concentric span { position: absolute; top: 5px; right: 12px; font: 650 10.5px var(--font-mono); color: var(--muted); z-index: 1; }
.ds-c1 > span { top: -2px; right: 30px; transform: translateY(-100%); }
.ds-c2 > span { top: 50%; right: -36px; transform: translateY(-50%); color: var(--accent-ink); }
.ds-c3 > span { top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); color: var(--on-accent); font-size: 13px; }
.ds-c2 > span { right: auto; left: calc(100% + 18px); }
.ds-formula { text-align: center; margin: 14px 0 22px; font-size: 12.5px; }
.ds-radii { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ds-radii div { display: grid; justify-items: center; gap: 7px; font-size: 11px; color: var(--muted); text-align: center; }
.ds-radii i { width: 100%; aspect-ratio: 1; max-width: 56px; background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ds-elev { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.ds-el { height: 150px; padding: 18px; border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; }
.ds-el code { font-size: 11.5px; color: var(--ink-2); }
.ds-el span { font-weight: 650; font-size: 15px; }
.theme-dark .ds-el { outline: 1px solid var(--line); outline-offset: -1px; }
.ds-el-accent { background: var(--accent-grad); color: var(--on-accent); }
.ds-el-accent code { color: inherit; opacity: .8; }

.ds-busy { overflow: hidden; isolation: isolate; min-height: 300px; }
.ds-busy::before { position: relative; z-index: 2; }
.ds-busy-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(128, 112, 98, .12) 18px 20px); }
.ds-busy-bg i { position: absolute; border-radius: 50%; }
.ds-busy-bg i:nth-of-type(1) { width: 220px; height: 220px; left: -40px; top: 40px; background: #C8814A; }
.ds-busy-bg i:nth-of-type(2) { width: 170px; height: 170px; left: 40%; top: 120px; background: #5FBD88; }
.ds-busy-bg i:nth-of-type(3) { width: 200px; height: 200px; right: -50px; top: -30px; background: #7FB0E0; }
.ds-busy-bg b { position: absolute; font-size: 64px; line-height: 1; }
.ds-busy-bg b:nth-of-type(1) { left: 18%; top: 22%; } .ds-busy-bg b:nth-of-type(2) { left: 58%; top: 10%; font-size: 54px; }
.ds-busy-bg b:nth-of-type(3) { left: 78%; top: 58%; } .ds-busy-bg b:nth-of-type(4) { left: 8%; top: 68%; font-size: 52px; }
.ds-busy-bg b:nth-of-type(5) { left: 38%; top: 66%; font-size: 70px; } .ds-busy-bg b:nth-of-type(6) { left: 88%; top: 18%; font-size: 46px; }
.theme-dark .ds-busy-bg i { opacity: .8; }
.ds-glass-row { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 54px; }
.ds-gl { min-height: 150px; padding: 16px; border-radius: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.ds-gl code { font-size: 12px; font-weight: 600; color: var(--ink); }
.ds-gl span { font-weight: 650; font-size: 15px; }

/* ---------- Galerie : deux planches, même HTML ---------- */
.ds-gallery-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: -24px 0 22px; }
.ds-gallery-bar .segmented > button { display: inline-flex; align-items: center; gap: 6px; }
.ds-board {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; border-radius: var(--radius-xl);
  background: var(--surface); box-shadow: var(--shadow), var(--hairline);
}
.ds-board[data-show="light"], .ds-board[data-show="dark"] { grid-template-columns: 1fr; }
.ds-board[data-show="light"] > .theme-dark, .ds-board[data-show="dark"] > .theme-light { display: none; }
.ds-col { min-width: 0; padding: 8px 30px 12px; border-radius: 20px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.ds-col-label { display: flex; align-items: center; gap: 8px; padding: 18px 0 6px; font-size: 13px; font-weight: 650; color: var(--muted); }
.ds-grp { padding: 24px 0 30px; }
.ds-grp + .ds-grp { box-shadow: 0 -1px 0 var(--line); }
.ds-grp-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ds-grp-head code { flex-basis: 100%; color: var(--muted); font-size: 11.5px; }
.ds-g-n { font: 750 12px var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.ds-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ds-flow-end { align-items: end; }
.ds-icon-on { background: var(--accent-soft); color: var(--accent-ink); }
.ds-icon-on:hover { background: var(--accent-soft); color: var(--accent-ink); }
.ds-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ds-list { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-xs), var(--hairline); padding: 0 16px; }
.ds-li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; font-weight: 500; }
.ds-li + .ds-li { box-shadow: 0 -1px 0 var(--line); }
.ds-demo-card { padding: 20px 22px; display: grid; gap: 6px; max-width: 440px; }
.ds-dc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ds-dc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.ds-dc-amount { font-size: 26px; }
.ds-tiles { display: flex; flex-wrap: wrap; gap: 14px 12px; }
.ds-tile { display: grid; justify-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ds-tile .item-icon { width: 62px; height: 62px; font-size: 34px; transition: transform var(--dur-slow) var(--ease-spring); }
.ds-tile:hover .item-icon { transform: scale(1.08) rotate(-4deg); }

/* Couches de démo */
.ds-modal-amount { font-size: 52px; line-height: 1; margin-top: 6px; }
.ds-sheet { padding-top: 22px; }
.ds-sheet-hero { display: flex; align-items: center; gap: 18px; }
.ds-sheet-hero .item-icon { width: 92px; height: 92px; font-size: 52px; }
.ds-sheet-foot { display: flex; align-items: center; gap: 12px; }
.layer.theme-light, .layer.theme-dark { color: var(--ink); }

/* ---------- Mouvement ---------- */
.ds-motion-tokens { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.ds-curves { display: grid; gap: 14px; }
.ds-curve { display: grid; grid-template-columns: 64px 170px minmax(0, 1fr); align-items: center; gap: 18px; }
.ds-curve svg { width: 64px; height: 64px; overflow: visible; }
.ds-curve-axis { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.ds-curve-path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.ds-curve-meta { display: grid; gap: 1px; }
.ds-curve-meta strong { font-weight: 650; }
.ds-curve-meta code { color: var(--accent-ink); }
.ds-curve-meta span { font-size: 12.5px; color: var(--muted); }
.ds-track { position: relative; height: 26px; border-radius: var(--radius-pill); background: var(--surface-3); }
.ds-track i { position: absolute; inset: 4px; display: block; }
.ds-track i::after { content: ''; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-grad); box-shadow: var(--shadow-accent); }
.ds-track.is-go i { transform: translateX(calc(100% - 18px)); transition-property: transform; transition-duration: 1100ms; }
.ds-durs { display: grid; gap: 16px; }
.ds-dur { display: grid; gap: 6px; }
.ds-dur-top { display: flex; justify-content: space-between; align-items: baseline; }
.ds-dur-top .amount { font-size: 17px; }
.ds-dur-bar { height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.ds-dur-bar i { display: block; height: 100%; width: var(--w); border-radius: 5px; background: var(--accent-grad); }
.ds-dur .t-footnote { font-size: 12px; }

.ds-demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 72px 0 18px; }
.ds-demo { display: grid; grid-template-rows: auto 1fr auto; }
.ds-demo::before { justify-self: start; }
.ds-demo-note { margin-top: 18px; font-size: 12.5px; }
.ds-calm { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); display: grid; gap: 12px; align-content: start; min-height: 318px; }
.ds-calm-head { display: flex; justify-content: space-between; align-items: center; }
.ds-calm-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-height: 152px; align-content: start; }
.ds-calm-line { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px;
  animation: ds-calm-in var(--dur) var(--ease-out) both; }
.ds-calm-line .ds-q { font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.ds-calm-line .amount { font-weight: 650; }
@keyframes ds-calm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ds-calm-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; }
.ds-calm-total .amount { font-size: 30px; }
.ds-calm-pay { pointer-events: none; }
.ds-calm-pay.is-press { animation: ds-press 260ms var(--ease-out); }
@keyframes ds-press { 0%, 100% { transform: none; } 40% { transform: scale(.965); } }

.ds-exp { display: grid; gap: 22px; align-content: center; min-height: 318px; }
.ds-exp-tiles { display: grid; grid-template-columns: repeat(4, 64px); gap: 12px; justify-content: start; }
.ds-exp-tiles .item-icon { width: 64px; height: 64px; font-size: 34px; }
.ds-exp.is-play .item-icon { animation: ds-pop var(--dur-expressive) var(--ease-spring) both; }
.ds-exp.is-play .item-icon:nth-child(2) { animation-delay: 40ms; } .ds-exp.is-play .item-icon:nth-child(3) { animation-delay: 80ms; }
.ds-exp.is-play .item-icon:nth-child(4) { animation-delay: 120ms; } .ds-exp.is-play .item-icon:nth-child(5) { animation-delay: 160ms; }
.ds-exp.is-play .item-icon:nth-child(6) { animation-delay: 200ms; } .ds-exp.is-play .item-icon:nth-child(7) { animation-delay: 240ms; }
.ds-exp.is-play .item-icon:nth-child(8) { animation-delay: 280ms; }
.ds-exp-kpi { display: grid; gap: 6px; justify-items: start; }
.ds-exp-num { font-size: clamp(40px, 4.4vw, 56px); line-height: 1; letter-spacing: -.045em; }
.ds-exp.is-play .ds-exp-badge { animation: ds-pop var(--dur-expressive) var(--ease-spring) 1.1s both; }

/* ---------- Stories ---------- */
.ds-stories { position: relative; isolation: isolate; overflow: hidden; background: var(--espresso); color: var(--ink); padding: 128px 0 !important; }
.ds-stories::before { content: ''; position: absolute; z-index: -1; width: 900px; height: 900px; right: -200px; top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(200, 129, 74, .35), transparent 62%); filter: blur(40px); }
.ds-stories-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ds-stories-copy { display: grid; gap: 16px; align-content: center; }
.ds-stories-copy .eyebrow { display: flex; gap: 10px; color: var(--crema); }
.ds-stories-copy .eyebrow b { color: var(--accent); }
.ds-stories-copy .t-display { font-size: clamp(40px, 5vw, 64px); letter-spacing: -.04em; }
.ds-stories-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ds-story-stack { position: relative; height: 580px; }
.ds-story { position: absolute; left: 50%; top: 50%; width: 300px; aspect-ratio: 9 / 16; border-radius: 30px; padding: 22px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ds-story-back2 { transform: translate(-50%, -50%) translateX(172px) rotate(9deg) scale(.88); background: linear-gradient(170deg, #F1DCC0, #E9C9A3); color: #1A0F07;
  display: grid; align-content: end; justify-items: end; text-align: right; gap: 6px; padding: 26px; }
.ds-story-back2 .eyebrow { color: rgba(26, 15, 7, .62); }
.ds-story-back2-n { font: 800 84px/.9 var(--font-display); letter-spacing: -.06em; }
.ds-story-back { transform: translate(-50%, -50%) translateX(-172px) rotate(-8deg) scale(.9); background: linear-gradient(170deg, #2D2825, #0E0C0B); color: var(--milk);
  display: grid; align-content: end; gap: 6px; padding: 26px; }
.ds-story-back .eyebrow { color: var(--crema); }
.ds-story-back-t { font: 750 30px/1 var(--font-display); letter-spacing: -.035em; }
.ds-story-emo { position: absolute; top: 16%; left: 22px; font-size: 92px; line-height: 1; text-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
.ds-story-main { transform: translate(-50%, -50%); color: #1A0F07; display: flex; flex-direction: column;
  background:
    radial-gradient(110% 70% at 15% 0%, rgba(246, 225, 196, .85), transparent 55%),
    radial-gradient(90% 60% at 100% 100%, rgba(90, 46, 18, .9), transparent 60%),
    linear-gradient(165deg, #DDA06A 0%, #C8814A 38%, #A8642F 72%, #6E3A18 100%);
  background-size: 140% 140%; animation: ds-story-drift 9s var(--ease-in-out) infinite alternate; }
@keyframes ds-story-drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.ds-story-prog { display: flex; gap: 4px; }
.ds-story-prog i { flex: 1; height: 3px; border-radius: 2px; background: rgba(26, 15, 7, .22); overflow: hidden; }
.ds-story-prog i.is-done { background: #1A0F07; }
.ds-story-prog i.is-on { background: linear-gradient(90deg, #1A0F07 55%, rgba(26, 15, 7, .22) 55%); }
.ds-story-top { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.ds-story-top .logo { font-size: 13px; color: #1A0F07; }
.ds-story-week { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); background: rgba(26, 15, 7, .14); }
.ds-story-kicker { margin-top: auto; font: 650 17px/1.25 var(--font-display); letter-spacing: -.015em; max-width: 14ch; }
.ds-story-num { font: 800 98px/.9 var(--font-display); letter-spacing: -.065em; font-variant-numeric: tabular-nums; margin: 8px 0 0 -.04em; white-space: nowrap; }
.ds-story-unit { font: 750 30px/1 var(--font-display); letter-spacing: -.03em; margin-top: 4px; }
.ds-story-foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(26, 15, 7, .2); font-size: 13px; font-weight: 550; line-height: 1.45; }

/* ---------- Pied de page ---------- */
.ds-foot { padding: 40px 0 48px; }
.ds-foot-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ds-foot .logo { font-size: 16px; }
.ds-foot .t-footnote { flex: 1; min-width: 220px; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .ds-nav-logo { display: none; }
  .ds-nav { padding-left: 6px; }
  .ds-elev { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ds-tok-grid { grid-template-columns: 1fr; }
  .ds-curve { grid-template-columns: 56px 1fr; }
  .ds-curve .ds-track { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .ds-hero-grid { grid-template-columns: 1fr; }
  .ds-hero-stage { grid-column: 1; grid-row: auto; width: 520px; max-width: 100%; margin: 12px auto 0; }
  .ds-principles { grid-template-columns: 1fr 1fr; }
  .ds-brand { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ds-pair, .ds-specimen, .ds-shape-grid, .ds-motion-tokens, .ds-stories-grid { grid-template-columns: 1fr; }
  .ds-board[data-show="both"] { grid-template-columns: 1fr; }
  .ds-tok-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .ds-wrap { width: calc(100% - 36px); }
  .ds-nav { top: 10px; }
  .ds-theme-l { display: none; }
  .ds-theme > button { padding: 0 10px; }
  .ds-nav-links a { padding: 8px 11px; font-size: 13.5px; }
  .ds-hero { padding: 96px 0 56px; }
  .ds-hero-logo .logo { font-size: 24px; }
  .ds-hero-title { font-size: 15.4vw; margin-top: 0; }
  .ds-hero-eyebrow { margin-top: -10px; }
  .ds-hero-lead { font-size: 19px; }
  .ds-hero-cta .btn { flex: 1 1 auto; }
  .ds-hero-stats { grid-template-columns: repeat(2, auto); gap: 18px 36px; }
  .ds-hero-stage { zoom: .68; width: 520px; margin-left: 0; }
  .ds-sec { padding: 84px 0 16px; }
  .ds-sec:last-of-type { padding-bottom: 84px; }
  .ds-head { margin-bottom: 36px; }
  .ds-lede { font-size: 17px; }
  .ds-sub { margin-top: 52px; }
  .ds-principles { grid-template-columns: 1fr; }
  .ds-pr { min-height: 0; }
  .ds-brand { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-sw-chip { height: 120px; border-radius: var(--radius); }
  .ds-tok-grid { grid-template-columns: 1fr; }
  .ds-pair { padding: 6px; gap: 6px; border-radius: 26px; }
  .ds-cell { padding: 18px 18px 22px; }
  .ds-spec-aa { flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; }
  .ds-aa { font-size: 120px; }
  .ds-scale { padding: 4px 20px; }
  .ds-row { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 0; }
  .ds-row > span { grid-column: 1 / -1; grid-row: 2; }
  .ds-row .t-hero { font-size: 50px; }
  .ds-row .t-display { font-size: 40px; }
  .ds-amount-row { font-size: 36px; }
  .ds-radii { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; }
  .ds-elev { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ds-el { height: 120px; }
  .ds-glass-row { grid-template-columns: 1fr; margin-top: 8px; }
  .ds-gl { min-height: 84px; }
  .ds-fields { grid-template-columns: 1fr; }
  .ds-view-both { display: none; }
  .ds-gallery-bar { margin-top: -12px; }
  .ds-board { padding: 6px; border-radius: 26px; }
  .ds-col { padding: 4px 18px 8px; }
  .ds-exp-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ds-exp-tiles .item-icon { width: 100%; height: auto; aspect-ratio: 1; }
  .ds-demo-bar { margin-top: 52px; }
  .ds-stories { padding: 84px 0 !important; }
  .ds-story-stack { height: 520px; zoom: .86; }
  .ds-story-back2 { transform: translate(-50%, -50%) translateX(96px) rotate(9deg) scale(.84); }
  .ds-story-back { transform: translate(-50%, -50%) translateX(-96px) rotate(-8deg) scale(.86); }
}
