/* Rembobine — « étiquette de cassette et album de famille ».
   Papier crème, encre bleu nuit (le bandeau de l'appli), ambre (sa pastille). Aucune ressource externe. */

@font-face { font-family: "Fraunces"; src: url("/site/polices/Fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/site/polices/Fraunces-Italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/site/polices/Atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/site/polices/Atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --papier: oklch(96.5% 0.018 85);
  --papier-fonce: oklch(92.5% 0.028 82);
  --ligne: oklch(82% 0.035 80);
  --encre: oklch(25% 0.045 262);
  --encre-douce: oklch(42% 0.04 262);
  --nuit: oklch(22% 0.05 262);
  --ambre: oklch(76% 0.155 72);
  --ambre-fonce: oklch(52% 0.13 62);
  --brique: oklch(55% 0.16 32);
  --mousse: oklch(52% 0.09 150);
  --titre: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --texte: "Atkinson", "Segoe UI", system-ui, sans-serif;
  --marge: clamp(1.25rem, 5vw, 4.5rem);
  --mesure: 62ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font: 400 clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem)/1.6 var(--texte);
}
img { max-width: 100%; height: auto; display: block; }
body { overflow-wrap: break-word; }
main, .entete, .pied { max-width: 100vw; }
a { color: var(--ambre-fonce); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--encre); }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 560; line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 4.6vw, 5.2rem); font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); line-height: 1.2; }
p { margin: 0 0 1em; max-width: var(--mesure); }
em { font-family: var(--titre); font-style: italic; }

.saut { position: absolute; left: -999px; top: 0; background: var(--nuit); color: var(--papier); padding: 0.6em 1em; z-index: 9; }
.saut:focus { left: 0; }

/* ---- En-tête et pied */
.entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding: 1.1rem var(--marge); }
.marque { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--encre); text-decoration: none; font: 600 1.55rem/1 var(--titre); letter-spacing: -0.02em; }
.marque img { border-radius: 9px; }
.entete nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; align-items: center; }
.entete nav a { color: var(--encre); text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.entete nav a:hover, .entete nav a[aria-current] { border-bottom-color: var(--ambre); }
.entete nav .langue { color: var(--encre-douce); font-size: 0.92em; }

.pied { margin-top: clamp(4rem, 10vw, 8rem); padding: 3rem var(--marge) 2.5rem; background: var(--nuit); color: oklch(88% 0.02 85); display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.pied strong { font: 600 1.5rem/1.2 var(--titre); color: var(--papier); }
.pied p { margin: 0.4em 0 0; }
.pied a { color: var(--ambre); }
.pied nav { display: grid; gap: 0.45rem; align-content: start; }
.pied-note { grid-column: 1 / -1; font-size: 0.9em; color: oklch(72% 0.03 262); border-top: 1px solid oklch(36% 0.05 262); padding-top: 1.2rem; max-width: none; }

/* ---- Boutons */
.bouton { display: inline-block; padding: 0.85em 1.5em; border-radius: 4px; font-weight: 700; text-decoration: none; background: var(--nuit); color: var(--papier); border: 2px solid var(--nuit); transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s; }
.bouton:hover { background: var(--encre-douce); border-color: var(--encre-douce); color: var(--papier); transform: translateY(-2px); }
.bouton.ambre { background: var(--ambre); border-color: var(--ambre); color: var(--nuit); }
.bouton.ambre:hover { background: oklch(81% 0.15 75); border-color: oklch(81% 0.15 75); color: var(--nuit); }
.bouton.fantome { background: transparent; color: var(--encre); }
.bouton.fantome:hover { background: var(--papier-fonce); color: var(--encre); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: center; margin-top: 1.8rem; }
.sous-action { font-size: 0.92em; color: var(--encre-douce); margin-top: 0.9rem; }

/* ---- Accueil : ouverture */
.ouverture { padding: clamp(2rem, 6vw, 5rem) var(--marge) clamp(3rem, 7vw, 6rem); display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: end; }
.ouverture h1 em { color: var(--ambre-fonce); font-weight: 420; }
.ouverture .chapeau { font-size: 1.2em; margin-top: 1.4rem; color: var(--encre-douce); max-width: 34ch; }
@media (max-width: 62rem) { .ouverture { grid-template-columns: minmax(0, 1fr); } }
.ouverture > *, .deux > *, .prix > * { min-width: 0; }

/* Motif signature : la bande, puis les fichiers datés qui en sortent */
.bande { --h: 3.4rem; }
.bande-etiquette { font: italic 420 1.05rem/1 var(--titre); color: var(--encre-douce); margin: 0 0 0.6rem; }
.bande-ruban { display: flex; height: var(--h); border: 2px solid var(--nuit); border-radius: 3px; overflow: hidden; background: var(--nuit); gap: 2px; }
.bande-ruban span { flex: var(--l); background: var(--c); transform-origin: left; animation: derouler 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--i) * 90ms); }
.bande-ruban .vierge { background: repeating-linear-gradient(135deg, oklch(34% 0.03 262) 0 6px, oklch(28% 0.04 262) 6px 12px); }
.bande-fichiers { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.bande-fichiers li { display: grid; grid-template-columns: 0.9rem minmax(0, 1fr) auto; gap: 0.7rem; align-items: baseline; padding: 0.5rem 0; border-bottom: 1px solid var(--ligne); animation: poser 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(0.5s + var(--i) * 110ms); }
.bande-fichiers i { width: 0.9rem; height: 0.9rem; background: var(--c); border: 1.5px solid var(--nuit); border-radius: 2px; align-self: center; }
.bande-fichiers b { font-weight: 700; overflow-wrap: anywhere; }
.bande-fichiers small { color: var(--encre-douce); white-space: nowrap; }
.bande-note { font-size: 0.85em; color: var(--encre-douce); margin-top: 0.8rem; }
@keyframes derouler { from { transform: scaleX(0); } }
@keyframes poser { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .bande-ruban span, .bande-fichiers li { animation: none; } html { scroll-behavior: auto; } .bouton { transition: none; } }

/* ---- Sections */
.section { padding: clamp(3rem, 7vw, 6rem) var(--marge) 0; }
.section > h2 { max-width: 20ch; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section.teinte { background: var(--papier-fonce); padding-bottom: clamp(3rem, 7vw, 6rem); margin-top: clamp(3rem, 7vw, 6rem); }

.etapes { list-style: none; margin: 0; padding: 0; counter-reset: etape; display: grid; gap: 2rem clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.etapes li { counter-increment: etape; border-top: 2px solid var(--nuit); padding-top: 1rem; }
.etapes li::before { content: counter(etape); font: italic 380 4.2rem/0.9 var(--titre); color: var(--ambre-fonce); display: block; margin-bottom: 0.6rem; }
.etapes h3 { margin-bottom: 0.5rem; }
.etapes p { margin: 0; }

.deux { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 58rem) { .deux { grid-template-columns: minmax(0, 1fr); } }
.deux h2 { margin-bottom: clamp(1.2rem, 2.5vw, 2rem); }
.capture { border: 2px solid var(--nuit); border-radius: 6px; overflow: hidden; background: var(--nuit); box-shadow: 14px 14px 0 var(--ambre); }
.capture figcaption { color: oklch(86% 0.02 85); font-size: 0.85em; padding: 0.6rem 0.9rem; }
figure { margin: 0; }

.liste { list-style: none; margin: 0; padding: 0; }
.liste li { padding: 1.05rem 0; border-top: 1px solid var(--ligne); display: grid; gap: 0.25rem; }
.liste li:last-child { border-bottom: 1px solid var(--ligne); }
.liste strong { font: 560 1.2rem/1.25 var(--titre); }
.liste span { color: var(--encre-douce); max-width: var(--mesure); }

/* ---- Prix */
.prix { display: grid; gap: 1rem clamp(2rem, 6vw, 5rem); grid-template-columns: auto minmax(0, 1fr); align-items: start; }
@media (max-width: 46rem) { .prix { grid-template-columns: minmax(0, 1fr); } }
.prix-montant { font: 560 clamp(4rem, 3rem + 6vw, 7.5rem)/0.9 var(--titre); letter-spacing: -0.04em; font-variation-settings: "opsz" 144; }
.prix-montant small { display: block; font: 400 1rem/1.4 var(--texte); letter-spacing: 0; color: var(--encre-douce); margin-top: 0.9rem; max-width: 22ch; }
.prix ul { margin: 0 0 1.2rem; padding-left: 1.1em; }
.prix li { margin-bottom: 0.4em; max-width: var(--mesure); }

.franchise { border: 2px solid var(--nuit); padding: clamp(1.25rem, 3vw, 2.2rem); background: var(--papier); max-width: 70ch; }
.franchise h3 { margin-bottom: 0.7rem; }
.franchise ul { margin: 0; padding-left: 1.1em; }
.franchise li { margin-bottom: 0.4em; }

/* ---- Pages de texte (aide, matériel, juridique) */
.texte { padding: clamp(2rem, 5vw, 4rem) var(--marge) 0; max-width: calc(72ch + 2 * var(--marge)); }
.texte h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.8rem); margin-bottom: 1.5rem; }
.texte h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin: 2.4rem 0 0.8rem; }
.texte h3 { margin: 1.8rem 0 0.5rem; }
.texte ul, .texte ol { padding-left: 1.2em; max-width: var(--mesure); }
.texte li { margin-bottom: 0.45em; }
.texte .chapeau { font-size: 1.15em; color: var(--encre-douce); }
.encadre { border-left: 0; border-top: 2px solid var(--nuit); border-bottom: 2px solid var(--nuit); padding: 1.1rem 0; margin: 1.8rem 0; }
.encadre p:last-child { margin-bottom: 0; }
details { border-top: 1px solid var(--ligne); padding: 0.9rem 0; max-width: 72ch; }
details:last-of-type { border-bottom: 1px solid var(--ligne); }
summary { cursor: pointer; font: 560 1.18rem/1.3 var(--titre); list-style-position: outside; }
details[open] summary { margin-bottom: 0.7rem; }
details p:last-child, details ul:last-child { margin-bottom: 0; }
code, kbd { font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.92em; background: var(--papier-fonce); padding: 0.1em 0.35em; border-radius: 3px; overflow-wrap: anywhere; }
.empreinte { font-size: 0.85em; color: var(--encre-douce); overflow-wrap: anywhere; }
