/* Scarlet Roos — le magazine du vestiaire
   Direction artistique : écarlate, ivoire, encre. Coupe en biais, points de piqûre, étiquettes tissées. */

@font-face { font-family: "Bodoni Moda"; src: url("/assets/fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/assets/fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("/assets/fonts/martian-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #16110f;
  --ink-2: #241c19;
  --paper: #f3ede4;
  --paper-2: #e9e0d3;
  --paper-3: #dcd0bf;
  --scarlet: #b3132d;
  --scarlet-hi: #d41c3b;
  --scarlet-deep: #6e0b1b;
  --thread: #c7a25a;
  --mute: #6f635b;
  --line: rgba(22, 17, 15, .14);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --bias: 22px;
  --pad: clamp(1.1rem, 3.4vw, 3.2rem);
  --maxw: 1440px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: clamp(1rem, .96rem + .2vw, 1.09rem); line-height: 1.62;
  font-feature-settings: "ss01", "kern"; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body::after { /* grain */
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--scarlet); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px dashed var(--scarlet); outline-offset: 3px; }
::selection { background: var(--scarlet); color: var(--paper); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--ink); color: var(--paper); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

/* ——— Typo ——— */
.mono, .label { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.serif { font-family: var(--serif); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -.015em; margin: 0 0 .5em; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(2.8rem, 7.4vw, 7.6rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 4.6rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.1; }
em, .it { font-style: italic; }
.scarlet { color: var(--scarlet); }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(5rem, 12vw, 11rem) 0; position: relative; }
.dark { background: var(--ink); color: var(--paper); }
.dark a:hover { color: var(--scarlet-hi); }
.red { background: var(--scarlet); color: var(--paper); }

/* Couture : piqûre, crans, biais */
.stitch { height: 0; border: 0; border-top: 1.5px dashed currentColor; opacity: .35; margin: 0; }
.notch { display: inline-flex; align-items: center; gap: .7rem; }
.notch::before { content: ""; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--scarlet); }
.bias { clip-path: polygon(var(--bias) 0, 100% 0, 100% calc(100% - var(--bias)), calc(100% - var(--bias)) 100%, 0 100%, 0 var(--bias)); }
.bias-r { clip-path: polygon(0 0, calc(100% - var(--bias)) 0, 100% var(--bias), 100% 100%, 0 100%); }

/* Boutons */
.btn {
  --b: 12px; display: inline-flex; align-items: center; gap: .8rem; padding: 1rem 1.5rem; position: relative;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  background: var(--ink); color: var(--paper); clip-path: polygon(var(--b) 0, 100% 0, 100% calc(100% - var(--b)), calc(100% - var(--b)) 100%, 0 100%, 0 var(--b));
  transition: background .4s var(--ease), color .4s var(--ease); will-change: transform;
}
.btn:hover { background: var(--scarlet); color: var(--paper); }
.btn .arr { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px) rotate(-45deg); }
.btn--red { background: var(--scarlet); }
.btn--red:hover { background: var(--paper); color: var(--ink); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; clip-path: none; }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.dark .btn { background: var(--paper); color: var(--ink); }
.dark .btn:hover { background: var(--scarlet); color: var(--paper); }

/* ——— Chargement ——— */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.loader__in { width: min(88vw, 640px); }
.loader__word { font-family: var(--serif); font-size: clamp(3rem, 10vw, 7rem); line-height: .9; overflow: hidden; }
.loader__word i { color: var(--scarlet-hi); }
.loader__bar { margin-top: 1.6rem; height: 1px; background: rgba(243,237,228,.18); position: relative; }
.loader__bar span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--scarlet-hi); }
.loader__row { display: flex; justify-content: space-between; margin-top: .8rem; }
.no-js .loader, .loaded .loader { display: none; }

/* ——— En-tête ——— */
.hdr { position: fixed; inset: 0 0 auto; z-index: 120; padding: 1.1rem var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--paper); mix-blend-mode: difference; transition: transform .6s var(--ease); }
.hdr.is-hidden { transform: translateY(-110%); }
.logo { display: inline-flex; align-items: baseline; gap: .28em; font-family: var(--serif); font-size: 1.45rem; line-height: 1; text-decoration: none; letter-spacing: -.01em; }
.logo i { font-weight: 400; }
.logo b { font-weight: 600; }
.logo svg { width: 1.2em; height: 1.2em; align-self: center; }
.hdr__mid { display: none; }
.hdr__nav { display: flex; align-items: center; gap: 1.6rem; }
.hdr__nav a { text-decoration: none; display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: .6rem; }
.menu-btn .dots { display: grid; grid-template-columns: repeat(2, 5px); gap: 3px; }
.menu-btn .dots span { width: 5px; height: 5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-btn:hover .dots span:nth-child(1) { transform: translate(8px, 0); }
.menu-btn:hover .dots span:nth-child(4) { transform: translate(-8px, 0); }
@media (min-width: 900px) { .hdr__mid { display: block; } .hdr__nav a { display: inline; } }

/* ——— Menu plein écran ——— */
.menu { position: fixed; inset: 0; z-index: 150; background: var(--scarlet); color: var(--paper); visibility: hidden; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); display: grid; grid-template-rows: auto 1fr auto; padding: 1.1rem var(--pad) 1.6rem; }
.menu.is-open { visibility: visible; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__body { display: grid; align-items: center; gap: 2rem; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li { overflow: hidden; border-bottom: 1px dashed rgba(243,237,228,.35); }
.menu__list a { display: flex; align-items: baseline; gap: 1.2rem; text-decoration: none; font-family: var(--serif); font-size: clamp(2.3rem, 7.2vw, 6.4rem); line-height: 1.08; padding: .1em 0; transition: padding .5s var(--ease), color .3s; }
.menu__list a:hover { color: var(--ink); padding-left: .4em; font-style: italic; }
.menu__list .mono { opacity: .7; min-width: 2.4rem; }
.menu__side { display: none; }
.menu__foot { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: space-between; }
.menu__foot a { text-decoration: none; }
@media (min-width: 1000px) {
  .menu__body { grid-template-columns: 1.6fr 1fr; }
  .menu__side { display: block; }
  .menu__card { aspect-ratio: 4/5; overflow: hidden; position: relative; background: var(--scarlet-deep); }
  .menu__card img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform 1.2s var(--ease); }
}

/* ——— Héros accueil ——— */
.hero { position: relative; height: 100svh; min-height: 620px; color: var(--paper); overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: -6% 0 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil { position: absolute; inset: 0; background:
  radial-gradient(120% 80% at 70% 40%, transparent 0%, rgba(22,17,15,.35) 60%, rgba(22,17,15,.82) 100%),
  linear-gradient(180deg, rgba(22,17,15,.45) 0%, transparent 30%, transparent 55%, rgba(22,17,15,.85) 100%); }
.weave { position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 1px, transparent 1px 4px); }
.hero__in { position: relative; height: 100%; display: grid; grid-template-rows: 1fr auto; padding: 6.5rem var(--pad) 2rem; max-width: none; }
.hero__title { align-self: end; margin: 0; font-size: clamp(3.2rem, 11.8vw, 14.5rem); line-height: .86; letter-spacing: -.035em; font-weight: 500; }
.hero__title .l { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .l2 { padding-left: 8vw; }
.hero__title em { color: var(--scarlet-hi); font-weight: 400; }
.hero__foot { display: grid; gap: 1.4rem; margin-top: 2rem; align-items: end; }
.hero__chapo { max-width: 32rem; font-size: 1.06rem; color: rgba(243,237,228,.88); margin: 0; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero__meta { display: flex; gap: 1.6rem; flex-wrap: wrap; opacity: .8; }
.scroll-cue { position: absolute; right: var(--pad); bottom: 2rem; display: flex; flex-direction: column; align-items: center; gap: .7rem; writing-mode: vertical-rl; }
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--paper), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 900px) { .hero__foot { grid-template-columns: 1.1fr auto 1fr; } .hero__meta { justify-content: flex-end; flex-direction: column; gap: .3rem; text-align: right; padding-right: 3rem; } }

/* ——— Rubans qui défilent ——— */
.ribbons { position: relative; height: clamp(9rem, 18vw, 15rem); overflow: hidden; background: var(--paper); }
.ribbon { position: absolute; left: -5%; width: 110%; padding: 1.1rem 0; white-space: nowrap; overflow: hidden; }
.ribbon--a { top: 22%; background: var(--scarlet); color: var(--paper); transform: rotate(-3deg); z-index: 2; }
.ribbon--b { top: 30%; background: var(--ink); color: var(--paper); transform: rotate(2.5deg); }
.ribbon__track { display: inline-flex; gap: 2.4rem; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.8rem); font-style: italic; will-change: transform; }
.ribbon__track span { display: inline-flex; align-items: center; gap: 2.4rem; }
.ribbon__track span::after { content: "✕"; font-style: normal; font-family: var(--mono); font-size: .45em; opacity: .7; }
.ribbon--b .ribbon__track { font-family: var(--mono); font-style: normal; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; }

/* ——— Manifeste ——— */
.manifest { overflow: hidden; }
.giant { position: absolute; left: 0; top: 50%; translate: 0 -50%; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: clamp(9rem, 30vw, 34rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.2px rgba(179,19,45,.32); pointer-events: none; user-select: none; will-change: transform; }
.manifest__grid { position: relative; display: grid; gap: 3rem; }
.manifest__text { font-family: var(--serif); font-size: clamp(1.9rem, 4.1vw, 4.4rem); line-height: 1.08; letter-spacing: -.02em; margin: 0; font-weight: 400; }
.manifest__text em { color: var(--scarlet); }
.manifest__side { display: flex; flex-direction: column; gap: 1rem; max-width: 22rem; }
@media (min-width: 1000px) { .manifest__grid { grid-template-columns: 240px 1fr; } }
.word { display: inline-block; will-change: filter, opacity, transform; }

/* ——— Tissu 3D (WebGL) ——— */
.silk { position: relative; min-height: 115vh; background: var(--ink); color: var(--paper); overflow: hidden; }
.silk canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.silk__fallback { position: absolute; inset: 0; background: radial-gradient(60% 50% at 60% 45%, var(--scarlet) 0%, var(--scarlet-deep) 45%, var(--ink) 80%); }
.silk__in { position: relative; z-index: 2; min-height: 115vh; display: grid; grid-template-rows: auto 1fr auto; padding-top: clamp(5rem, 10vw, 9rem); padding-bottom: 3rem; pointer-events: none; }
.silk__in a, .silk__in button { pointer-events: auto; }
.silk__title { max-width: 14ch; }
.counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(243,237,228,.18); border-top: 1px solid rgba(243,237,228,.18); }
.counter { background: rgba(22,17,15,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 1.4rem 1.2rem; }
.counter b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: 1; letter-spacing: -.03em; }
.counter b sup { font-size: .4em; color: var(--scarlet-hi); vertical-align: top; margin-left: .1em; }
@media (min-width: 900px) { .counters { grid-template-columns: repeat(4, 1fr); } }

/* ——— Outils : défilement horizontal ——— */
.tools { background: var(--paper-2); overflow: hidden; }
.tools__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; padding-top: clamp(5rem, 10vw, 8rem); padding-bottom: 2.5rem; }
.tools__track { display: flex; gap: clamp(1rem, 2vw, 2rem); padding: 0 var(--pad) clamp(4rem, 8vw, 7rem); width: max-content; will-change: transform; }
.tcard { --bias: 34px; position: relative; flex: 0 0 auto; width: min(82vw, 560px); min-height: 520px; padding: 2rem; background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; transition: background .5s var(--ease), color .5s var(--ease); }
.tcard:hover { background: var(--ink); color: var(--paper); }
.tcard__num { font-family: var(--serif); font-style: italic; font-size: 6rem; line-height: .8; color: var(--scarlet); }
.tcard__pic { position: absolute; right: 1.6rem; top: 1.6rem; width: 42%; aspect-ratio: 1; overflow: hidden; }
.tcard__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); filter: saturate(.92); }
.tcard:hover .tcard__pic img { transform: scale(1.08); }
.tcard h3 { font-size: clamp(1.9rem, 2.8vw, 2.8rem); margin: 1.2rem 0 .6rem; }
.tcard p { color: inherit; opacity: .78; max-width: 26rem; }
.tcard .go { display: flex; justify-content: space-between; align-items: center; border-top: 1.5px dashed currentColor; padding-top: 1rem; }
.tcard--end { background: var(--scarlet); color: var(--paper); justify-content: center; align-items: flex-start; gap: 1.5rem; }
.tcard--end:hover { background: var(--ink); }
.no-hscroll .tools__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; }
.no-hscroll .tcard { scroll-snap-align: start; }

/* ——— Collage épinglé ——— */
.collage { position: relative; height: 100svh; overflow: hidden; background: var(--paper); perspective: 900px; }
.collage__stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.collage__item { position: absolute; overflow: hidden; will-change: transform; box-shadow: 0 30px 60px -30px rgba(22,17,15,.45); }
.collage__item img { width: 100%; height: 100%; object-fit: cover; }
.collage__center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; z-index: 5; pointer-events: none; padding: 0 var(--pad); }
.collage__center h2 { font-size: clamp(3rem, 9vw, 10rem); line-height: .9; margin: 0; }
.collage__center h2 em { color: var(--scarlet); }
.collage__center .btn { pointer-events: auto; margin-top: 1.6rem; }

/* ——— Vidéo dévoilée par masque ——— */
.reveal { position: relative; height: 100svh; overflow: hidden; background: var(--ink); }
.reveal video, .reveal img.reveal__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reveal__mask { position: absolute; inset: 0; width: 100%; height: 100%; }
.reveal__copy { position: absolute; left: var(--pad); right: var(--pad); bottom: 2.4rem; color: var(--paper); display: grid; gap: 1rem; z-index: 3; }
.reveal__copy h2 { max-width: 16ch; margin: 0; }
.reveal__copy p { max-width: 34rem; opacity: .9; margin: 0; }

/* ——— Liste matières, survol ——— */
.mlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mlist li { border-bottom: 1px solid var(--line); }
.mlist a { display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: baseline; gap: 1rem; padding: 1.1rem 0; text-decoration: none; transition: padding .5s var(--ease), color .3s; }
.mlist a:hover { padding-left: 1rem; color: var(--scarlet); }
.mlist .n { font-family: var(--mono); font-size: .7rem; opacity: .55; }
.mlist .t { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3.6rem); line-height: 1; }
.mlist a:hover .t { font-style: italic; }
.mlist .f { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; text-align: right; }
.follow { position: fixed; left: 0; top: 0; z-index: 60; width: 240px; aspect-ratio: 3/4; pointer-events: none; opacity: 0; scale: .6; transition: opacity .35s, scale .5s var(--ease); --bias: 28px; }
.follow.on { opacity: 1; scale: 1; }
.swatch { width: 100%; height: 100%; position: relative; background: var(--c, #ccc); overflow: hidden; }
.swatch::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.09) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 3px); }
.swatch::after { content: ""; position: absolute; inset: 10px; border: 1.5px dashed rgba(22,17,15,.35); }
.swatch span { position: absolute; left: 18px; bottom: 16px; font-family: var(--serif); font-style: italic; font-size: 1.8rem; color: var(--ink); z-index: 2; }
@media (hover: none) { .follow { display: none; } }

/* ——— Guides : cartes empilées ——— */
.stack { display: grid; gap: 0; }
.scard { position: sticky; top: 12vh; min-height: 68vh; margin-bottom: 6vh; display: grid; background: var(--paper); border: 1px solid var(--line); transform-origin: 50% 0; will-change: transform; --bias: 40px; text-decoration: none; overflow: hidden; }
.scard:nth-child(2n) { background: var(--paper-2); }
.scard:nth-child(3n) { background: var(--ink); color: var(--paper); }
.scard__pic { position: relative; min-height: 260px; overflow: hidden; }
.scard__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.scard:hover .scard__pic img { transform: scale(1.05); }
.scard__txt { padding: clamp(1.6rem, 3vw, 3rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.scard h3 { font-size: clamp(2rem, 3.6vw, 3.6rem); }
@media (min-width: 900px) { .scard { grid-template-columns: 1fr 1fr; } }

/* ——— FAQ ——— */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.4rem 0; font-family: var(--serif); font-size: clamp(1.25rem, 2.1vw, 1.9rem); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: 0 0 auto; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; transition: transform .5s var(--ease), background .3s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--scarlet); color: var(--paper); border-color: var(--scarlet); }
.faq .ans { padding: 0 0 1.6rem; max-width: 46rem; color: var(--ink-2); }
.dark .faq .ans { color: rgba(243,237,228,.85); }
.dark .faq, .dark .faq details { border-color: rgba(243,237,228,.18); }

/* ——— Pied de page ——— */
.ftr { background: var(--ink); color: var(--paper); padding: clamp(4rem, 8vw, 7rem) 0 1.6rem; overflow: hidden; position: relative; }
.ftr__cols { display: grid; gap: 2.4rem; grid-template-columns: repeat(2, 1fr); }
.ftr__cols h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; opacity: .55; margin-bottom: 1rem; }
.ftr__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ftr__cols a { text-decoration: none; }
.ftr__cta { grid-column: 1 / -1; }
.ftr__cta p { font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.05; max-width: 18ch; }
@media (min-width: 900px) { .ftr__cols { grid-template-columns: 2fr 1fr 1fr 1fr; } .ftr__cta { grid-column: auto; } }
.ftr__giant { font-family: var(--serif); font-size: 21.5vw; line-height: .8; letter-spacing: -.04em; white-space: nowrap; margin: 4rem 0 1.2rem; color: var(--paper); display: flex; justify-content: center; }
.ftr__giant i { color: var(--scarlet-hi); font-weight: 400; }
.ftr__legal { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: space-between; padding-top: 1.2rem; border-top: 1px dashed rgba(243,237,228,.25); }
.ftr__legal a { text-decoration: none; opacity: .8; }

/* ——— Pages intérieures ——— */
.phead { padding: clamp(8rem, 16vw, 13rem) 0 clamp(2.5rem, 5vw, 4.5rem); position: relative; overflow: hidden; }
.phead--dark { background: var(--ink); color: var(--paper); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; list-style: none; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .4; }
.crumbs a { text-decoration: none; opacity: .7; }
.phead h1 { max-width: 16ch; }
.phead h1 em { color: var(--scarlet); }
.phead--dark h1 em { color: var(--scarlet-hi); }
.phead__chapo { font-size: clamp(1.1rem, 1.5vw, 1.35rem); max-width: 44rem; line-height: 1.5; }
.phead__meta { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 2rem; opacity: .8; }
.phead__giant { position: absolute; right: -2vw; bottom: -4vw; font-family: var(--serif); font-style: italic; font-size: 26vw; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(179,19,45,.22); pointer-events: none; white-space: nowrap; }
.cover { position: relative; overflow: hidden; aspect-ratio: 16/8; --bias: 48px; }
.cover img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }

.layout { display: grid; gap: 3rem; padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 9vw, 8rem); }
@media (min-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 5rem; } .aside { position: sticky; top: 6rem; align-self: start; } }
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 2.2em; position: relative; }
.prose h2::before { content: ""; display: block; width: 3rem; border-top: 1.5px dashed var(--scarlet); margin-bottom: 1rem; }
.prose h3 { margin-top: 1.8em; }
.prose a { color: var(--scarlet); }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--scarlet); }
.prose strong { font-weight: 650; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .75rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; border-bottom: 1.5px solid var(--ink); }
.prose blockquote { margin: 2em 0; padding-left: 1.4rem; border-left: 3px solid var(--scarlet); font-family: var(--serif); font-size: 1.4rem; font-style: italic; }
.lede { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.35; }

.tag-card { --bias: 18px; background: var(--paper-2); padding: 1.6rem; position: relative; }
.tag-card::before { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgba(22,17,15,.25); pointer-events: none; clip-path: inherit; }
.tag-card h3 { font-size: 1.5rem; }
.tag-card--red { background: var(--scarlet); color: var(--paper); }
.tag-card--red::before { border-color: rgba(243,237,228,.4); }
.tag-card--ink { background: var(--ink); color: var(--paper); }
.tag-card--ink::before { border-color: rgba(243,237,228,.3); }
.aside > * + * { margin-top: 1.2rem; }

/* Grilles de cartes */
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { --bias: 22px; position: relative; display: flex; flex-direction: column; gap: .8rem; padding: 1.5rem; background: var(--paper-2); text-decoration: none; transition: background .4s var(--ease), color .4s var(--ease), transform .6s var(--ease); min-height: 200px; }
.card:hover { background: var(--ink); color: var(--paper); }
.card h3 { font-size: 1.45rem; margin: 0; }
.card p { margin: 0; opacity: .78; font-size: .95rem; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; gap: 1rem; padding-top: .9rem; border-top: 1px dashed currentColor; }
.card--pic { padding: 0; overflow: hidden; }
.card--pic .pic { aspect-ratio: 16/10; overflow: hidden; }
.card--pic .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card--pic:hover .pic img { transform: scale(1.06); }
.card--pic .in { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
[data-tilt] { transform-style: preserve-3d; }

/* Puces / filtres */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; padding: .55rem .85rem; border: 1px solid var(--line); background: transparent; text-decoration: none; transition: background .3s, color .3s, border-color .3s; }
.chip:hover, .chip.is-on, .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters { display: grid; gap: 1rem; margin-bottom: 2rem; padding: 1.4rem; background: var(--paper-2); }
.field { display: grid; gap: .4rem; }
.field label, .field .lab { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
input[type="text"], input[type="search"], input[type="number"], select {
  font: inherit; width: 100%; padding: .85rem 1rem; background: var(--paper); color: var(--ink); border: 1px solid rgba(22,17,15,.25); border-radius: 0; appearance: none; -webkit-appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem; }
input:focus, select:focus { outline: 2px solid var(--scarlet); outline-offset: 0; border-color: var(--scarlet); }
input[type="range"] { width: 100%; accent-color: var(--scarlet); }
.count { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }

/* Fiche atelier */
.label-epv { --bias: 26px; background: var(--paper); color: var(--ink); padding: 1.8rem; position: relative; }
.label-epv::before { content: ""; position: absolute; inset: 9px; border: 1.5px dashed rgba(22,17,15,.3); pointer-events: none; }
.label-epv dl { margin: 0; display: grid; gap: .9rem; }
.label-epv dt { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.label-epv dd { margin: .15rem 0 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; }
.quote { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.3; font-style: italic; margin: 0 0 1.6rem; position: relative; padding-left: 2.6rem; }
.quote::before { content: "«"; position: absolute; left: 0; top: -.15em; font-size: 2.6em; color: var(--scarlet); font-style: normal; line-height: 1; }

/* Fiche matière */
.mhero { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 1000px) { .mhero { grid-template-columns: 1.3fr 1fr; } }
.mhero .swatch { aspect-ratio: 5/4; max-height: 52vh; width: 100%; --bias: 54px; }
.gauges { display: grid; gap: 1.1rem; }
.gauge { display: grid; gap: .4rem; }
.gauge__row { display: flex; justify-content: space-between; }
.gauge__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.gauge__bar i { height: 10px; border: 1.5px dashed rgba(22,17,15,.3); }
.gauge__bar i.on { background: var(--scarlet); border: 0; }
.care3 { display: grid; gap: 1px; background: var(--line); grid-template-columns: 1fr; margin: 1.5rem 0; }
.care3 > div { background: var(--paper); padding: 1.1rem 1.2rem; }
.care3 b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin-top: .25rem; }
@media (min-width: 700px) { .care3 { grid-template-columns: repeat(3, 1fr); } }
.duo { display: grid; gap: 1.2rem; margin: 1.6rem 0; }
@media (min-width: 700px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo ul { padding-left: 1.1rem; margin: .6rem 0 0; }

/* ——— Outils ——— */
.tool { --bias: 36px; background: var(--ink); color: var(--paper); padding: clamp(1.4rem, 3.4vw, 3rem); position: relative; }
.tool::before { content: ""; position: absolute; inset: 12px; border: 1.5px dashed rgba(243,237,228,.18); pointer-events: none; clip-path: inherit; }
.tool .field label, .tool .lab { opacity: .7; }
.tool input[type="text"], .tool input[type="number"], .tool select { background: transparent; color: var(--paper); border-color: rgba(243,237,228,.3); }
.tool select option { color: var(--ink); }
.tool select { background-image: linear-gradient(45deg, transparent 50%, var(--paper) 50%), linear-gradient(135deg, var(--paper) 50%, transparent 50%); }
.tool__grid { display: grid; gap: 1.2rem; position: relative; }
@media (min-width: 800px) { .tool__grid--2 { grid-template-columns: 1fr 1fr; } .tool__grid--3 { grid-template-columns: repeat(3, 1fr); } .tool__grid--4 { grid-template-columns: repeat(4, 1fr); } }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid rgba(243,237,228,.3); }
.seg button { font-family: var(--mono); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; padding: .7rem 1rem; transition: background .3s, color .3s; }
.seg button[aria-pressed="true"] { background: var(--scarlet); color: var(--paper); }
.result { margin-top: 2rem; padding-top: 1.6rem; border-top: 1.5px dashed rgba(243,237,228,.3); position: relative; }
.big-num { font-family: var(--serif); font-size: clamp(3.6rem, 9vw, 8rem); line-height: .9; letter-spacing: -.04em; }
.big-num small { font-size: .3em; letter-spacing: 0; font-family: var(--mono); text-transform: uppercase; margin-left: .4em; color: var(--scarlet-hi); }
.size-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .95rem; }
.size-table th, .size-table td { padding: .7rem .5rem; text-align: center; border-bottom: 1px solid rgba(243,237,228,.14); }
.size-table th { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; opacity: .7; }
.size-table tr.is-hit td { background: var(--scarlet); color: var(--paper); }
.size-table td:first-child { font-family: var(--serif); font-size: 1.2rem; }
.table-scroll { overflow-x: auto; }
.care-groups { display: grid; gap: 1.6rem; position: relative; }
.care-group h3 { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; opacity: .7; margin-bottom: .8rem; }
.care-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.care-sym { width: 66px; height: 66px; display: grid; place-items: center; border: 1px solid rgba(243,237,228,.22); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.care-sym svg { width: 44px; height: 44px; }
.care-sym:hover { border-color: var(--paper); transform: translateY(-3px); }
.care-sym[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.care-out { min-height: 9rem; display: grid; gap: .6rem; align-content: start; }
.care-out h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); margin: 0; }
.care-out .tip { border-left: 3px solid var(--scarlet-hi); padding-left: 1rem; opacity: .9; }
.bars { display: grid; gap: .9rem; margin-top: 1.2rem; }
.bars .bar { display: grid; gap: .35rem; }
.bars .bar__track { height: 14px; background: rgba(243,237,228,.1); position: relative; overflow: hidden; }
.bars .bar__fill { position: absolute; inset: 0 auto 0 0; background: var(--scarlet-hi); width: 0; transition: width 1s var(--ease); }
.bars .bar__fill.b { background: var(--paper); }
.verdict { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.2; margin-top: 1.2rem; }
.verdict em { color: var(--scarlet-hi); }
.stepper { display: grid; grid-template-columns: 2.6rem 1fr 2.6rem; border: 1px solid rgba(243,237,228,.3); }
.stepper button { font-size: 1.3rem; line-height: 1; transition: background .3s; }
.stepper button:hover { background: var(--scarlet); }
.stepper input { text-align: center; border: 0 !important; font-family: var(--serif); font-size: 1.5rem; padding: .5rem 0 !important; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hint { font-size: .9rem; opacity: .75; }

@media (max-width: 799px) { [data-care-layout] { grid-template-columns: 1fr !important; } }

/* Révélations génériques */
.split-line { display: block; overflow: hidden; }
[data-reveal] { will-change: transform, opacity; }
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.reduced [data-reveal], .no-gsap [data-reveal] { opacity: 1 !important; transform: none !important; }

/* Pages simples */
.sitemap-list { columns: 2 260px; gap: 2rem; padding: 0; list-style: none; }
.sitemap-list li { break-inside: avoid; padding: .3rem 0; border-bottom: 1px dashed var(--line); }

/* 404 */
.e404 { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--scarlet); color: var(--paper); padding: 6rem var(--pad); }
.e404 h1 { font-size: clamp(6rem, 26vw, 22rem); line-height: .8; margin: 0; font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .scroll-cue::after { animation: none; }
}
