/* VintRank Radar · habillage « carnet de chineuse » (scrapbook) :
   papier quadrillé, photos découpées, ruban adhésif, notes manuscrites. */
@font-face { font-family: "Fraunces"; src: url("/radar/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/radar/fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #f8f1e6;
  --grid: rgba(120, 90, 70, .075);
  --surface: #fffaf2;
  --surface-2: #f3e9da;
  --ink: #3a2930;
  --title: #4d1b2b;
  --muted: #76626a;
  --line: #e6d8c6;
  --accent: #b0503b;
  --accent-ink: #ffffff;
  --accent-soft: #f6dcd3;
  --pink: #f4d3cd;
  --lilac: #ded3ee;
  --tape: rgba(242, 214, 128, .78);
  --tape-2: rgba(214, 196, 236, .8);
  --kraft: #efe2cc;
  --marker: rgba(246, 205, 197, .9);
  --marker-2: rgba(222, 211, 238, .95);
  --ok: #3d7a4f;
  --ok-soft: #e1eedc;
  --warn: #9a5a12;
  --warn-soft: #fbeccf;
  --danger: #b2352b;
  --danger-soft: #fbe2de;
  --radius: 6px;
  --shadow: 0 1px 1px rgba(80, 50, 30, .08), 0 6px 18px rgba(80, 50, 30, .09);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* « only » : Chrome Android et Samsung Internet ne forcent pas de mode sombre. */
  color-scheme: only light;
}
/* Le carnet reste clair, comme la maquette retenue (papier crème). */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  font: 16px/1.55 var(--body);
  overflow-x: hidden;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
h1, h2, h3, .section-title { font-family: var(--display); color: var(--title); font-weight: 700; }
.hand { font-family: var(--hand); font-weight: 600; }

/* Éléments de carnet réutilisables */
.taped { position: relative; }
.taped::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 24px;
  transform: translateX(-50%) rotate(-3deg); background: var(--tape);
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 82% 0, 88% 8%, 94% 0, 100% 10%, 100% 92%, 94% 100%, 88% 90%, 82% 100%, 18% 100%, 12% 92%, 6% 100%, 0 90%);
  z-index: 2; pointer-events: none;
}
.taped.tape-lilac::before { background: var(--tape-2); transform: translateX(-50%) rotate(4deg); }
.torn {
  clip-path: polygon(0% 4px, 4.17% 2px, 8.33% 6px, 12.5% 1px, 16.67% 0px, 20.83% 0px, 25% 5px, 29.17% 3px, 33.33% 0px, 37.5% 4px, 41.67% 3px, 45.83% 0px, 50% 3px, 54.17% 2px, 58.33% 0px, 62.5% 0px, 66.67% 6px, 70.83% 6px, 75% 0px, 79.17% 2px, 83.33% 0px, 87.5% 3px, 91.67% 6px, 95.83% 0px, 100% 5px, 100% calc(100% - 3px), 95.83% 100%, 91.67% calc(100% - 2px), 87.5% calc(100% - 1px), 83.33% calc(100% - 1px), 79.17% calc(100% - 3px), 75% 100%, 70.83% calc(100% - 3px), 66.67% calc(100% - 3px), 62.5% calc(100% - 6px), 58.33% 100%, 54.17% calc(100% - 2px), 50% 100%, 45.83% calc(100% - 3px), 41.67% calc(100% - 5px), 37.5% calc(100% - 2px), 33.33% calc(100% - 4px), 29.17% calc(100% - 6px), 25% calc(100% - 2px), 20.83% calc(100% - 3px), 16.67% 100%, 12.5% calc(100% - 3px), 8.33% calc(100% - 4px), 4.17% calc(100% - 3px), 0% calc(100% - 5px));
}
.mark { background: linear-gradient(transparent 22%, var(--marker) 22%, var(--marker) 88%, transparent 88%); padding: 0 .18em; border-radius: 2px; }
.mark-lilac { background: linear-gradient(transparent 22%, var(--marker-2) 22%, var(--marker-2) 88%, transparent 88%); }
.sticker { display: block; filter: drop-shadow(0 4px 8px rgba(70, 40, 20, .18)); pointer-events: none; user-select: none; }
.doodle { color: var(--title); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-bottom: 1.5px dashed var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font: italic 800 24px/1 var(--display); color: var(--title); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.logo svg { width: 34px; height: 30px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:not(.btn):hover { text-decoration: underline wavy var(--accent) 1.5px; text-underline-offset: 5px; }
@media (max-width: 720px) { .nav .hide-sm { display: none; } .logo { font-size: 21px; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: 5px; padding: 12px 22px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; transition: transform .08s ease, filter .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink) !important; box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 60%, #000); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: var(--surface); color: var(--title) !important; border-color: color-mix(in srgb, var(--title) 35%, transparent); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-small { padding: 7px 14px; font-size: 14px; }
.btn-danger { background: transparent; color: var(--danger) !important; border-color: var(--line); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible, summary:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }

/* Accueil · hero */
.hero { padding: 44px 0 26px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 28px; align-items: center; }
.eyebrow { display: inline-block; position: relative; padding: 4px 18px 2px; font: 600 23px/1.2 var(--hand); color: var(--title); background: var(--tape); transform: rotate(-2deg); letter-spacing: .02em; clip-path: polygon(0 10%, 3% 0, 97% 4%, 100% 0, 99% 90%, 100% 100%, 2% 96%, 0 100%); }
.hero h1 { font-size: clamp(42px, 6.6vw, 76px); line-height: .98; letter-spacing: -.025em; margin: 18px 0 18px; font-weight: 750; }
.hero h1 .under { position: relative; white-space: nowrap; }
.hero h1 .under svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .28em; color: var(--accent); }
h1 em { font-style: italic; color: var(--accent); }
.lead { font-size: 19px; color: var(--ink); max-width: 540px; margin: 0 0 18px; }
.crit { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.crit li { background: var(--pink); color: var(--title); font-weight: 600; font-size: 15px; padding: 5px 14px; border-radius: 3px; transform: rotate(var(--r, -1deg)); }
.crit li:nth-child(2n) { --r: 1.2deg; background: var(--lilac); }
.crit li:nth-child(3n) { --r: -.4deg; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-row .btn-primary { font-size: 18px; padding: 14px 28px; }
.fine { color: var(--muted); font-size: 14px; }

/* Collage du hero */
.collage { position: relative; height: 560px; max-width: 520px; width: 100%; margin: 0 auto; }
.collage .paper-pink { position: absolute; inset: 40px 30px 30px 10px; background: var(--pink); transform: rotate(-4deg); }
.collage .paper-lilac { position: absolute; width: 46%; height: 42%; right: -6px; bottom: 6px; background: var(--lilac); transform: rotate(5deg); }
.collage .s-veste { position: absolute; width: 50%; left: -6%; top: 8%; transform: rotate(-9deg); z-index: 1; }
.collage .s-ballerines { position: absolute; width: 31%; right: -9%; bottom: 25%; transform: rotate(10deg); z-index: 3; }
.collage .s-fleurs { position: absolute; width: 24%; left: 2%; bottom: 0; transform: rotate(-14deg); z-index: 3; }
.collage .note { position: absolute; right: -10px; top: -6px; font: 600 26px/1.05 var(--hand); color: var(--title); transform: rotate(-7deg); z-index: 4; text-align: center; }
.collage .note svg { display: block; width: 74px; height: 54px; margin: 2px 0 0 4px; }

/* Alerte Telegram (aperçu) */
.tg-card { position: absolute; z-index: 2; width: 62%; min-width: 250px; right: 9%; top: 44px; transform: rotate(2.2deg); background: var(--surface); border: 7px solid var(--surface); border-radius: 4px; box-shadow: var(--shadow); color: var(--ink); }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--lilac); }
.tg-head .tg-logo { width: 32px; height: 32px; border-radius: 50%; background: #2aabee; display: grid; place-items: center; flex: none; }
.tg-head .tg-logo svg { width: 18px; height: 18px; }
.tg-head b { display: block; font-size: 15px; line-height: 1.15; color: var(--title); }
.tg-head span { font-size: 12.5px; color: var(--muted); }
.tg-body { padding: 10px 10px 8px; background: color-mix(in srgb, var(--lilac) 45%, var(--surface)); }
.tg-msg { background: var(--surface); border-radius: 10px 10px 10px 3px; padding: 9px; font-size: 14px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.tg-msg .t { font-weight: 700; display: block; margin-bottom: 7px; }
.tg-msg .ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--surface-2); border-radius: 6px; margin-bottom: 7px; }
.tg-msg .price { display: block; font: 800 22px/1.2 var(--body); color: var(--title); }
.tg-msg .see { display: block; text-align: center; margin-top: 8px; padding: 7px; background: color-mix(in srgb, var(--title) 80%, var(--accent)); color: #fff; border-radius: 6px; font-weight: 700; font-size: 14px; }
.tg-msg time { display: block; text-align: right; color: var(--muted); font: italic 12px var(--body); margin-top: 4px; }

@media (max-width: 860px) {
  .hero { padding-top: 26px; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .collage { height: 540px; max-width: 420px; }
}
@media (max-width: 420px) {
  .collage { height: 500px; }
  .collage .s-ballerines { width: 30%; right: -5%; }
  .tg-card { right: 4%; width: 70%; min-width: 0; }
  .collage .note { font-size: 22px; right: -4px; }
  .collage .note svg { width: 54px; height: 40px; }
}

/* Bandeau des atouts */
.perks { margin-top: 18px; background: var(--kraft); padding: 22px 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.perk { display: flex; gap: 14px; align-items: center; }
.perk + .perk { border-left: 1.5px dashed color-mix(in srgb, var(--title) 25%, transparent); padding-left: 18px; }
.perk svg { width: 44px; height: 44px; flex: none; }
.perk b { display: block; font: 700 18px/1.2 var(--display); color: var(--title); }
.perk span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .perks { grid-template-columns: 1fr; }
  .perk + .perk { border-left: 0; padding-left: 0; border-top: 1.5px dashed color-mix(in srgb, var(--title) 25%, transparent); padding-top: 14px; }
}

/* Sections */
section { padding: 46px 0; }
.section-title { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 10px; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head .section-title { display: inline-flex; align-items: center; gap: 14px; }
.section-head .section-title svg { width: 34px; height: 30px; flex: none; color: var(--accent); }
.section-head .section-title svg:last-child { transform: scaleX(-1); }
.section-lead { color: var(--muted); margin: 0 0 28px; font-size: 17px; }
.section-head .section-lead { margin: 0 auto; max-width: 620px; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 34px; } }
.step { position: relative; padding: 26px 22px 22px; background: var(--surface); box-shadow: var(--shadow); transform: rotate(var(--r, -1deg)); }
.step:nth-child(2) { --r: .8deg; background: color-mix(in srgb, var(--pink) 45%, var(--surface)); }
.step:nth-child(3) { --r: -.5deg; background: color-mix(in srgb, var(--lilac) 45%, var(--surface)); }
.step-n { position: absolute; top: -16px; left: 16px; width: 44px; height: 44px; display: grid; place-items: center; font: 700 30px/1 var(--hand); color: var(--accent); background: var(--surface); border: 2px solid var(--accent); border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; }
.step img { width: 88px; height: 88px; object-fit: contain; float: right; margin: -8px -6px 4px 8px; transform: rotate(6deg); }
.card h3, .step h3 { margin: 6px 0 6px; font-size: 21px; }
.card p, .step p { margin: 0; color: var(--muted); }
.card { background: var(--surface); border: 0; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }

/* Offres : étiquettes de prix */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-top: 14px; }
@media (max-width: 960px) { .plans { grid-template-columns: repeat(2, 1fr); row-gap: 34px; } }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: center; padding: 30px 20px 20px; transform: rotate(var(--r, -.8deg)); }
.plan:nth-child(2) { --r: .7deg; }
.plan:nth-child(3) { --r: -.3deg; }
.plan:nth-child(4) { --r: 1deg; }
.plan::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 84px; height: 24px;
  transform: translateX(-50%) rotate(-3deg); background: var(--tape);
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 82% 0, 88% 8%, 94% 0, 100% 10%, 100% 92%, 94% 100%, 88% 90%, 82% 100%, 18% 100%, 12% 92%, 6% 100%, 0 90%);
}
.plan:nth-child(2n)::before { background: var(--tape-2); transform: translateX(-50%) rotate(3deg); }
.plan.featured { outline: 2.5px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
.plan .tag { position: absolute; top: -40px; right: 0; font: 700 24px/1 var(--hand); color: var(--accent); transform: rotate(8deg); background: none; padding: 0; white-space: nowrap; }
.plan .name { font: 700 25px/1.2 var(--display); color: var(--title); align-self: center; padding: 0 10px; background: linear-gradient(transparent 20%, var(--marker) 20%, var(--marker) 90%, transparent 90%); }
.plan:nth-child(2n) .name { background: linear-gradient(transparent 20%, var(--marker-2) 20%, var(--marker-2) 90%, transparent 90%); }
.plan .price { font: 700 46px/1.1 var(--display); color: var(--title); letter-spacing: -.02em; margin-top: 6px; }
.plan .price small { font: 500 17px var(--body); color: var(--muted); letter-spacing: 0; }
.plan .per { color: var(--muted); font-size: 14px; min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 10px 0 16px; color: var(--ink); font-size: 14.5px; text-align: left; }
.plan li { padding: 3px 0 3px 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font: 700 18px/1.2 var(--hand); }
.plan .btn { margin-top: auto; }
.plan.current { outline: 2.5px dashed var(--ok); outline-offset: 5px; }

/* FAQ : feuilles lignées */
.faq details { background: var(--surface); background-image: linear-gradient(var(--surface) 0, var(--surface) 100%); border-left: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 3px; padding: 14px 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font: 700 18px/1.35 var(--display); color: var(--title); }
.faq p { color: var(--ink); margin: 10px 0 2px; }

footer { margin-top: 30px; background: var(--kraft); padding: 30px 0 42px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
footer a { color: var(--ink); }
footer .sign { font: 600 22px var(--hand); color: var(--title); }

/* Pages de texte : une feuille de cahier */
.doc { margin-top: 34px; margin-bottom: 60px; padding: 34px 36px 40px 56px; background-color: var(--surface); background-image: linear-gradient(90deg, transparent 38px, rgba(210, 90, 80, .35) 38px, rgba(210, 90, 80, .35) 40px, transparent 40px); box-shadow: var(--shadow); }
.doc h1 { font-size: clamp(30px, 4.4vw, 44px); margin: 0 0 14px; line-height: 1.1; }
.doc h2 { font-size: 22px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc .muted { color: var(--muted); }
@media (max-width: 600px) { .doc { padding: 26px 18px 30px 30px; background-image: linear-gradient(90deg, transparent 18px, rgba(210, 90, 80, .35) 18px, rgba(210, 90, 80, .35) 20px, transparent 20px); } }

/* Espace client */
.app { padding-top: 30px; padding-bottom: 60px; }
.app-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
.app-head h1 { font-size: clamp(32px, 4.6vw, 44px); margin: 0; }
.app-head .spacer { flex: 1; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 22px; }
.grid-2 > .stack { display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px; align-items: start; }
.grid-2 > .stack > * + * { margin-top: 0; }
.grid-2:has(> #form-card:not(.hidden)) { grid-template-columns: 1fr 1fr; align-items: start; }
.grid-2:has(> #form-card:not(.hidden)) > .stack { grid-template-columns: 1fr; }
@media (max-width: 820px) {
  .grid-2, .grid-2:has(> #form-card:not(.hidden)) { grid-template-columns: 1fr; }
  .grid-2 > .stack { grid-template-columns: 1fr; }
}
.stack > * + * { margin-top: 22px; }
.app .card { position: relative; padding-top: 24px; }
.app .card > .row:first-child b { font: 700 22px/1.2 var(--display); color: var(--title); }
.app .card::before {
  content: ""; position: absolute; top: -11px; left: 26px; width: 78px; height: 22px; transform: rotate(-4deg); background: var(--tape);
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 82% 0, 88% 8%, 94% 0, 100% 10%, 100% 92%, 94% 100%, 88% 90%, 82% 100%, 18% 100%, 12% 92%, 6% 100%, 0 90%);
}
.app .stack > .card:nth-child(2)::before, #form-card::before { background: var(--tape-2); left: auto; right: 30px; transform: rotate(3deg); }
.app .plan::before { left: 50%; right: auto; top: -12px; }
.app .login-card::before { left: 50%; transform: translateX(-50%) rotate(-3deg); }
.banner { border-radius: 4px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.err { background: var(--danger-soft); color: var(--danger); }
.meter { height: 10px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin: 10px 0 6px; }
.meter > i { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--accent) 0 8px, color-mix(in srgb, var(--accent) 80%, #fff) 8px 16px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#watches { display: grid; gap: 12px; margin-top: 14px; }
.watch { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; background: color-mix(in srgb, var(--pink) 55%, var(--surface)); border-radius: 2px; transform: rotate(var(--r, -.35deg)); box-shadow: 0 1px 2px rgba(80, 50, 30, .1); }
.watch:nth-child(2n) { --r: .35deg; background: color-mix(in srgb, var(--lilac) 60%, var(--surface)); }
.watch:nth-child(3n) { background: color-mix(in srgb, var(--tape) 45%, var(--surface)); }
.watch .info { flex: 1; min-width: 0; }
.watch .title { font: 700 17px/1.3 var(--display); color: var(--title); }
.watch .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.watch.paused { opacity: .72; }
.watch.paused .title { color: var(--muted); }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 3px; background: var(--surface-2); color: var(--muted); }
.pill.on { background: var(--ok-soft); color: var(--ok); }
.switch { position: relative; width: 44px; height: 26px; flex: none; margin-top: 1px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: color-mix(in srgb, var(--muted) 40%, transparent); cursor: pointer; transition: background .15s; }
.switch span::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; padding: 2px 6px; border-radius: 4px; }
.icon-btn:hover { background: var(--surface-2); color: var(--danger); }

label { display: block; font-weight: 700; font-size: 14px; margin: 16px 0 6px; color: var(--title); }
label .opt { color: var(--muted); font-weight: 500; }
input[type=text], input[type=search], input[type=number], input[type=email], textarea { width: 100%; font: inherit; padding: 10px 12px; border-radius: 4px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 3px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.chip[aria-pressed=true] { background: var(--title); border-color: var(--title); color: var(--surface); }
.chip .x { margin-left: 6px; opacity: .7; }
.suggest { border: 1.5px solid var(--line); border-radius: 4px; margin-top: 6px; max-height: 260px; overflow: auto; background: var(--surface); }
.suggest button { display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); padding: 9px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.suggest button:first-child { border-top: 0; }
.suggest button:hover, .suggest button:focus { background: var(--accent-soft); }
.suggest .path { color: var(--muted); font-size: 12px; display: block; }
.selected { margin-top: 8px; padding: 10px 12px; border-radius: 3px; background: var(--pink); color: var(--title); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.selected span { flex: 1; }
.browse { margin-top: 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 14px; margin-bottom: 6px; }
.crumbs button { border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; padding: 2px 0; }
.crumbs .sep { color: var(--muted); }
.suggest .more { float: right; color: var(--muted); }
.browse .pick { margin-top: 8px; }

/* Fenêtre de confirmation de l'offre */
.plan-dialog { width: min(440px, calc(100vw - 32px)); margin: auto; color: var(--ink); padding: 26px 24px 22px; border: 0; overflow: visible; }
.app .plan-dialog::before {
  content: ""; position: absolute; top: -12px; left: 50%; right: auto; width: 96px; height: 24px; transform: translateX(-50%) rotate(-2deg); background: var(--tape);
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 82% 0, 88% 8%, 94% 0, 100% 10%, 100% 92%, 94% 100%, 88% 90%, 82% 100%, 18% 100%, 12% 92%, 6% 100%, 0 90%);
}
.plan-dialog::backdrop { background: rgba(40, 20, 25, .55); }
.plan-dialog #pd-title { font: 700 24px/1.2 var(--display); color: var(--title); }
.plan-dialog .pd-price { font: 700 30px/1.2 var(--display); color: var(--title); margin: 10px 0 4px; }
.plan-dialog .check { margin: 16px 0; color: var(--ink); }
.plan-dialog .pd-pay { width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; color: var(--muted); margin: 12px 0; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.empty { text-align: center; padding: 26px 10px; color: var(--muted); }
.empty:not(:has(.spinner)) { font: 600 22px/1.3 var(--hand); color: var(--title); }
.login-card { max-width: 520px; margin: 36px auto; text-align: center; padding: 34px 28px 28px; }
.login-card h1 { font-size: clamp(30px, 5vw, 38px); margin: 6px 0 10px; }
.login-card .btn { margin: 10px 0 4px; }
.tg-icon { width: 58px; height: 58px; border-radius: 50%; background: #2aabee; color: #fff; display: grid; place-items: center; margin: 0 auto 10px; font-size: 26px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Catégories : fiches bristol à onglets */
.cats { padding-top: 34px; }
.cats .cat-root { position: relative; background: var(--surface); box-shadow: var(--shadow); border-radius: 0 4px 4px 4px; padding: 14px 18px; margin: 32px 0 0; border-left: 0; }
.cats .cat-root > summary { position: relative; display: flex; align-items: baseline; gap: 10px; font: 700 20px/1.3 var(--display); color: var(--title); cursor: pointer; }
.cats .cat-root::after { content: ""; position: absolute; top: -18px; left: 0; width: 120px; height: 18px; background: var(--surface); border-radius: 6px 6px 0 0; box-shadow: 0 -2px 4px rgba(80, 50, 30, .05); }
.cats .cat-root:nth-of-type(3n+2), .cats .cat-root:nth-of-type(3n+2)::after { background: color-mix(in srgb, var(--pink) 45%, var(--surface)); }
.cats .cat-root:nth-of-type(3n+2)::after { left: 120px; }
.cats .cat-root:nth-of-type(3n), .cats .cat-root:nth-of-type(3n)::after { background: color-mix(in srgb, var(--lilac) 50%, var(--surface)); }
.cats .cat-root:nth-of-type(3n)::after { left: 240px; }
.cats .cat-root:nth-of-type(n+2)::after { border-radius: 6px 6px 0 0; }
.cats .count { margin-left: auto; color: var(--muted); font: 600 19px var(--hand); }
.cat-tree, .cat-tree ul { list-style: none; margin: 6px 0 0; padding-left: 0; }
.cat-tree ul { padding-left: 18px; border-left: 1.5px dashed var(--line); margin-left: 4px; }
.cat-tree li { padding: 3px 0; }
.cat-tree > li { padding-top: 8px; }
.cat-tree > li > a, .cat-tree > li > span { font-weight: 700; color: var(--title); }
.cat-tree a { color: var(--ink); text-decoration: none; }
.cat-tree a:hover { color: var(--accent); text-decoration: underline; }

#form-card, #offres, #tarifs, #comment, #faq { scroll-margin-top: 80px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
#plan-error:not(.hidden) { margin-top: 24px; }

/* Contact */
textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.contact { padding-top: 40px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-intro h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1; margin: 18px 0 16px; }
.contact-sticker { width: 200px; margin: 18px 0 0 20px; transform: rotate(-8deg); }
.contact-card { position: relative; padding: 26px 26px 24px; transform: rotate(.4deg); }
.contact-card::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: var(--tape);
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 82% 0, 88% 8%, 94% 0, 100% 10%, 100% 92%, 94% 100%, 88% 90%, 82% 100%, 18% 100%, 12% 92%, 6% 100%, 0 90%);
}
.contact-card label:first-child { margin-top: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-done { text-align: center; padding: 40px 26px; }
.contact-done h2 { font-size: 34px; margin: 8px 0; }
.done-mark { width: 60px; height: 60px; margin: 0 auto; display: grid; place-items: center; font: 700 34px var(--hand); color: var(--accent); border: 2.5px solid var(--accent); border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-sticker { display: none; }
  .contact-card { transform: none; }
}

/* Espace abonné : filtres d'abord, appel à créer un filtre */
.cta-note { position: relative; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 4px 0 30px; padding: 22px 26px; background: color-mix(in srgb, var(--pink) 70%, var(--surface)); box-shadow: var(--shadow); transform: rotate(-.4deg); }
.cta-note::before {
  content: ""; position: absolute; top: -11px; left: 40px; width: 96px; height: 24px; transform: rotate(-4deg); background: var(--tape);
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 82% 0, 88% 8%, 94% 0, 100% 10%, 100% 92%, 94% 100%, 88% 90%, 82% 100%, 18% 100%, 12% 92%, 6% 100%, 0 90%);
}
.cta-text { flex: 1; min-width: 240px; }
.cta-ok { display: inline-block; font: 700 21px/1 var(--hand); color: var(--ok); margin-bottom: 4px; }
.cta-note b { display: block; font: 700 clamp(24px, 3.2vw, 32px)/1.15 var(--display); color: var(--title); }
.cta-note p { margin: 6px 0 0; color: var(--ink); max-width: 620px; }
.cta-note .btn { font-size: 18px; padding: 14px 26px; }
.subscribed .grid-2 > .stack { grid-template-columns: 1.4fr 1fr; }
.subscribed .grid-2 > .stack > .watches-card { order: 1; }
.subscribed .grid-2 > .stack > .offer-card { order: 2; }
.offres-head { align-items: baseline; margin-bottom: 4px; }
@media (max-width: 820px) {
  .subscribed .grid-2 > .stack { grid-template-columns: 1fr; }
  .cta-note { transform: none; }
  .cta-note .btn { width: 100%; }
}

.watch-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.watch-actions .btn-small { padding: 5px 12px; font-size: 13.5px; }
@media (max-width: 520px) {
  .watch { flex-wrap: wrap; }
  .watch .info { flex-basis: calc(100% - 60px); }
  .watch-actions { width: 100%; justify-content: flex-end; }
}

/* Navigation secondaire des petits écrans (les liens de l'en-tête y sont masqués) */
.subnav { display: none; }
@media (max-width: 720px) {
  .subnav { display: flex; justify-content: center; gap: 22px; padding: 2px 16px 9px; font-size: 14px; }
  .subnav a { color: var(--ink); text-decoration: none; font-weight: 600; }
}
@media (max-width: 720px) { #form-card, #offres, #tarifs, #comment, #faq { scroll-margin-top: 110px; } }

/* Écrans tactiles : cibles d'au moins 44 px (Apple) à 48 px (Android). */
html { scroll-padding-top: 84px; }
@media (max-width: 720px) { html { scroll-padding-top: 112px; } }
@media (pointer: coarse) {
  .btn-small { min-height: 44px; }
  .chip { min-height: 44px; }
  .icon-btn { min-width: 44px; min-height: 44px; }
  .watch-actions .btn-small { padding: 8px 14px; min-height: 44px; }
  .switch::before { content: ""; position: absolute; inset: -10px -8px; }
  summary { padding: 10px 0; }
  .faq details { padding-top: 6px; padding-bottom: 6px; }
  .cats .cat-root { padding-top: 6px; padding-bottom: 6px; }
  .subnav { padding-bottom: 2px; }
  .subnav a { padding: 11px 4px; }
  .suggest button { padding: 12px; }
  .crumbs button { padding: 10px 2px; }
  .cat-tree a { display: inline-block; padding: 6px 0; }
}

/* Petits écrans (iPhone SE, 320 px) : rien ne doit dépasser sur le côté,
   Safari laisse sinon la page glisser latéralement. */
.hero { overflow-x: clip; }
@media (max-width: 420px) {
  .collage .s-veste { left: 0; width: 44%; }
  .collage .s-ballerines { right: 0; }
  .collage .note { right: 2px; }
}
@media (max-width: 380px) {
  .top .wrap { gap: 8px; }
  .logo { font-size: 18px; gap: 6px; }
  .logo svg { width: 24px; height: 22px; }
  .nav .btn-small { padding: 7px 11px; font-size: 13.5px; }
}
@media (max-width: 560px) {
  .cats .cat-root::after { width: 30%; }
  .cats .cat-root:nth-of-type(3n+2)::after { left: 34%; }
  .cats .cat-root:nth-of-type(3n)::after { left: 68%; }
}
@media (max-width: 380px) {
  .subnav { gap: 14px; font-size: 13.5px; }
  .subnav a { white-space: nowrap; }
}

/* Grand écran, formulaire ouvert : les filtres et l'offre restent visibles
   à côté pendant qu'on remplit le formulaire. */
@media (min-width: 821px) {
  .grid-2:has(> #form-card:not(.hidden)) > .stack { position: sticky; top: 84px; }
}
/* Tablettes : liens de l'en-tête assez hauts pour le doigt. */
@media (pointer: coarse) and (min-width: 721px) {
  .nav a:not(.btn) { padding: 11px 2px; }
  .logo { padding: 8px 0; }
}
