/* amberday.app : piste G « Épuré » (voir Branding/site-pistes). Polices du système, aucune ressource externe. */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F5F5F7;
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --line: #E5E5EA;
  --accent: #A85F00;        /* ambre lisible sur blanc (texte, liens) */
  --amber: #F9A826;         /* ambre du logo (aplats, pastilles) */
  --dawn: #FFF4E4;          /* pêche de l'aube, derrière les téléphones */
  --go: #2FA866;
  --ease: #F08A24;
  --rest: #E5484D;
  --badge-bg: #000000;
  --badge-ink: #FFFFFF;
  /* Maquette d'iPhone */
  --ph-frame: #1C1F2A;
  --ph-bg: #F6F4EF;
  --ph-card: #FFFFFF;
  --ph-text: #14182A;
  --ph-muted: #6B7084;
  --ph-line: #E6E2D8;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-soft: #111114;
    --ink: #F5F5F7;
    --muted: #A1A1A6;
    --line: #2A2A2E;
    --accent: #F9B54A;
    --dawn: #2A1A08;
    --badge-bg: #FFFFFF;
    --badge-ink: #000000;
    --ph-frame: #2B3044;
    --ph-bg: #0E1324;
    --ph-card: #1A2036;
    --ph-text: #F4F1EA;
    --ph-muted: #9AA0B4;
    --ph-line: #2A3150;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.top-inner { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 34px; width: auto; }
.brand .dark { display: none; }
@media (prefers-color-scheme: dark) { .brand .light { display: none; } .brand .dark { display: block; } }
.nav { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
/* Sélecteur de langue : FR · EN · ES, la langue de la page sur fond gris */
.nav .langs { display: flex; gap: 2px; margin-left: -6px; }
.nav .langs a { padding: 1px 6px; border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.nav .langs a[aria-current="true"] { color: var(--ink); background: var(--bg-soft); }

/* Boutons */
.badge {
  display: inline-flex; align-items: center; gap: 10px; background: var(--badge-bg); color: var(--badge-ink);
  border-radius: 99px; padding: 11px 22px 11px 18px; font-weight: 600; font-size: 17px; line-height: 1.2;
}
.badge svg { width: 17px; height: 20px; fill: currentColor; }
.badge small { display: block; font-size: 11px; font-weight: 500; opacity: .7; }
a.badge:hover { text-decoration: none; opacity: .88; }
.more::after { content: " ›"; }

/* Accueil */
.hero { text-align: center; padding: clamp(48px, 9vw, 96px) 16px 0; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: clamp(17px, 2vw, 21px); }
.hero h1 { margin-top: 8px; font-size: clamp(44px, 8vw, 96px); font-weight: 700; letter-spacing: -.04em; line-height: 1; text-wrap: balance; max-width: 10em; margin-inline: auto; }
.hero .lead { margin: 22px auto 0; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.4; color: var(--muted); max-width: 25em; font-weight: 500; }
.cta { margin-top: 30px; display: flex; gap: 14px 26px; justify-content: center; align-items: center; flex-wrap: wrap; font-size: 17px; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }

.stage {
  display: flex; justify-content: center; align-items: flex-start; gap: 28px;
  padding: clamp(40px, 6vw, 70px) 16px clamp(40px, 6vw, 70px);
  /* Aube douce : le blanc se teinte de pêche derrière les téléphones, puis redevient blanc */
  background: linear-gradient(180deg, var(--bg) 0%, var(--dawn) 45%, var(--bg) 100%);
}
.stage figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.stage figcaption { width: 250px; text-align: center; font-size: 15px; color: var(--muted); line-height: 1.4; }
.stage figcaption b { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); font-size: 20px; letter-spacing: -.01em; margin-bottom: 4px; }
.stage figcaption b i { width: 11px; height: 11px; border-radius: 50%; }
.stage figure:not(.main) .phone { transform: scale(.86); transform-origin: 50% 100%; margin: 0 -20px; }


.band { border-top: 1px solid var(--line); }
.watch { margin-top: 0; }
.brands { margin: 44px auto 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 14px 44px; max-width: 900px; }
.brands li { font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: -.02em; color: var(--muted); opacity: .8; }
.note-s { margin: 26px auto 0; text-align: center; color: var(--muted); font-size: 15px; max-width: 34em; }

.band.soft { background: var(--bg-soft); border-top: 0; }
.band.soft .receipt, .band.soft .features li { background: var(--bg); }
.wrap { max-width: 980px; margin: 0 auto; padding: clamp(56px, 8vw, 100px) 16px; }
.wrap > h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -.035em; text-align: center; }
.wrap > .sub { margin: 16px auto 0; text-align: center; color: var(--muted); font-size: clamp(17px, 1.8vw, 21px); max-width: 32em; }

.ideas { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.ideas .kicker { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.ideas h3 { font-size: 19px; }
.ideas p:not(.kicker) { margin-top: 6px; color: var(--muted); font-size: 16px; }


/* Exemple chiffré, replié par défaut, présenté comme un ticket */
.example { margin: 28px auto 0; max-width: 720px; }
.example summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: center; gap: 4px 12px; flex-wrap: wrap; padding: 10px 0; color: var(--accent); }
.example summary::-webkit-details-marker { display: none; }
.example summary .t { font-weight: 600; font-size: 17px; }
.example summary .t::after { content: "›"; display: inline-block; margin-left: 8px; transition: transform .2s; }
.example[open] summary .t::after { transform: rotate(90deg); }
.example summary .s { color: var(--muted); font-size: 15px; }
.example summary:hover .t { text-decoration: underline; }
.receipt { margin: 14px auto 0; max-width: 720px; background: var(--bg-soft); border-radius: 22px; padding: 10px 28px; }
.receipt .line { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.receipt .what { font-weight: 600; }
.receipt .what small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; margin-top: 2px; }
.receipt .val { font-variant-numeric: tabular-nums; color: var(--muted); }
.receipt .eff { font-weight: 700; color: var(--accent); min-width: 74px; text-align: right; }
.receipt .eff.none { color: var(--muted); font-weight: 500; }
.receipt .total { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 20px 0 14px; flex-wrap: wrap; }
.receipt .sum { color: var(--muted); font-size: 15px; }
.receipt .big { display: flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.receipt .big i { width: 14px; height: 14px; border-radius: 50%; }
.receipt .further { border-top: 1px solid var(--line); padding: 14px 0 10px; text-align: right; font-size: 15px; }

/* Grille de décision (aide) */
.decision { margin-top: 18px; background: var(--bg-soft); border-radius: 18px; padding: 16px 14px 12px; overflow-x: auto; }
.decision table { width: 100%; border-collapse: separate; border-spacing: 5px; font-size: 14px; }
.decision caption { font-size: 13px; color: var(--muted); padding-bottom: 4px; }
.decision th { font-weight: 600; color: var(--muted); font-size: 13px; text-align: center; }
.decision th[scope="row"] { text-align: left; color: var(--ink); font-size: 14px; padding-right: 6px; white-space: nowrap; }
.decision td { text-align: center; border-radius: 10px; padding: 10px 4px; font-weight: 700; font-size: 13px; }
.decision td.m { background: #2FA86620; color: #1E7A49; }
.decision td.a { background: #F08A2424; color: #A85A10; }
.decision td.r { background: #E5484D20; color: #B8262B; }
@media (prefers-color-scheme: dark) {
  .decision td.m { color: #5FD08F; } .decision td.a { color: #F6A75A; } .decision td.r { color: #FF7A7E; }
}

.features { margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features li { list-style: none; border: 1px solid var(--line); border-radius: 22px; padding: 14px 14px 22px; }
.features h3 { font-size: 18px; letter-spacing: -.01em; padding: 0 8px; }
.features p { margin-top: 6px; color: var(--muted); font-size: 16px; padding: 0 8px; }

/* Mini-visuels des tuiles « Autour du verdict », dessinés à l'image de l'app */
.viz { height: 92px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; border-radius: 14px; background: var(--bg-soft); overflow: hidden; font-size: 12px; line-height: 1.25; }
.viz > svg { width: 100%; height: 100%; }
.viz .chip { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 10px; padding: 7px 10px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); white-space: nowrap; }
.viz .chip small { color: var(--muted); font-weight: 500; }
.viz .pl { margin-left: 8px; width: 18px; height: 18px; border-radius: 50%; background: #F9A82633; color: #D98A0A; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.viz .dotc { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.viz .stack { display: flex; flex-direction: column; gap: 6px; }
.viz .notif { width: 86%; display: flex; gap: 8px; align-items: center; background: var(--bg); border-radius: 12px; padding: 8px 10px; font-size: 11.5px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.viz .notif .ic { width: 22px; height: 22px; border-radius: 6px; background: #0B1020; flex-shrink: 0; position: relative; overflow: hidden; }
.viz .notif .ic::after { content: ""; position: absolute; left: 5px; top: 6px; width: 12px; height: 6px; border-radius: 12px 12px 0 0; background: var(--amber); }
.viz .widget { width: 72px; height: 72px; border-radius: 16px; background: var(--bg); box-shadow: 0 1px 2px rgba(0,0,0,.08); padding: 9px; font-size: 10px; font-weight: 700; display: flex; flex-direction: column; justify-content: space-between; }
.viz .widget .muted { color: var(--muted); font-weight: 600; }
.viz .widget b { font-size: 13px; display: flex; align-items: center; gap: 4px; }
.viz .meteo { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.viz .meteo small { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.viz .share { width: 128px; height: 72px; border-radius: 12px; background: linear-gradient(#0B1020, #1A1430); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #F4F1EA; font-size: 10px; font-weight: 700; }

.statement { text-align: center; }
.statement h2 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; letter-spacing: -.04em; }
.statement p { margin: 18px auto 0; color: var(--muted); font-size: clamp(17px, 1.8vw, 21px); max-width: 30em; }
.statement .cta { margin-top: 26px; }

.medical { max-width: 760px; margin: 0 auto; padding: 0 16px clamp(56px, 8vw, 90px); text-align: center; color: var(--muted); font-size: 14px; }

/* Maquette d'iPhone (en attendant les captures) */
.phone {
  width: 290px; aspect-ratio: 9 / 19.5; border-radius: 48px; padding: 11px; flex-shrink: 0; text-align: left;
  background: var(--ph-frame); box-shadow: 0 30px 60px -24px rgba(0,0,0,.35);
}
.phone .screen { height: 100%; border-radius: 38px; background: var(--ph-bg); color: var(--ph-text); overflow: hidden; padding: 46px 16px 16px; display: flex; flex-direction: column; gap: 10px; position: relative; font-size: 13px; line-height: 1.35; }
.phone .screen::before { content: ""; position: absolute; top: 11px; left: 50%; translate: -50% 0; width: 88px; height: 25px; border-radius: 14px; background: #000; }
.phone .date { font-size: 11px; color: var(--ph-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.phone .card { background: var(--ph-card); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.phone .word { display: flex; align-items: center; gap: 8px; font-size: 27px; font-weight: 800; letter-spacing: -.01em; }
.phone .dot { width: 14px; height: 14px; border-radius: 50%; }
.phone .why { font-size: 12.5px; color: var(--ph-muted); }
.phone .session { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--ph-line); display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.phone .session s { color: var(--ph-muted); font-weight: 500; }
.phone .label { font-size: 11px; color: var(--ph-muted); font-weight: 600; margin-top: 4px; }
.phone .opt { background: var(--ph-card); border-radius: 14px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.phone .opt small { display: block; color: var(--ph-muted); font-size: 11px; }
.phone .plus { width: 22px; height: 22px; border-radius: 50%; background: #F9A82633; color: #D98A0A; display: grid; place-items: center; font-weight: 700; }
.phone .trend { margin-top: auto; background: var(--ph-card); border-radius: 14px; padding: 10px 12px; }
.phone .trend .label { margin: 0 0 4px; }
.phone .trend svg { width: 100%; height: 44px; }

/* Pages de texte (aide, confidentialité, mentions) */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 72px) 16px clamp(56px, 8vw, 90px); }
.doc h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 700; letter-spacing: -.035em; }
.doc .intro { margin-top: 14px; color: var(--muted); font-size: 19px; }
.doc .date { margin-top: 10px; color: var(--muted); font-size: 14px; }
.doc h2 { margin-top: 48px; font-size: 26px; letter-spacing: -.02em; }
.doc h3 { margin-top: 26px; font-size: 19px; letter-spacing: -.01em; }
.doc p, .doc ul, .doc ol { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--accent); }
.doc .small { font-size: 15px; color: var(--muted); }
.summary { margin-top: 32px; background: var(--bg-soft); border-radius: 18px; padding: 20px 24px; }
.summary h2 { margin: 0; font-size: 15px; color: var(--muted); letter-spacing: 0; text-transform: uppercase; }
.summary ul { margin: 10px 0 0; padding: 0; list-style: none; }
.summary li + li { margin-top: 4px; }
.summary.brief li { padding-left: 1.2em; position: relative; }
.summary.brief li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.toc { columns: 2; column-gap: 32px; }
.qa { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--line); }
.qa h2 { margin-top: 32px; }
.back { margin-top: 18px; font-size: 14px; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); background: var(--bg-soft); font-size: 13px; color: var(--muted); }
.foot-inner { max-width: 1080px; margin: 0 auto; padding: 24px 16px 32px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.foot ul { display: flex; gap: 8px 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .stage { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 44px; scrollbar-width: none; }
  .stage::-webkit-scrollbar { display: none; }
  .stage figure { scroll-snap-align: center; }
  .stage figure:not(.main) .phone { transform: none; margin: 0; }
  .stage::before, .stage::after { content: ""; flex: 0 0 calc(50% - 159px); }
  .ideas,   .ideas { gap: 20px; }
  .receipt { padding: 6px 18px; }
  .receipt .line { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .receipt .val { grid-column: 1; grid-row: 2; font-size: 14px; }
  .receipt .eff { grid-row: 1 / span 2; align-self: center; }
  .receipt .big { font-size: 26px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav { gap: 16px; }
  .nav .hide-s { display: none; }
  .toc { columns: 1; }
  .decision { padding: 12px 6px 10px; }
  .decision table { border-spacing: 3px; }
  .decision td { font-size: 11px; padding: 9px 1px; }
  .decision th[scope="row"] { font-size: 13px; padding-right: 2px; }
  .features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Apparition au défilement (posée par apparition.js sur <html>) */
.anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.anim .reveal.in { opacity: 1; transform: none; }
.anim-fondu .reveal { transform: translateY(12px); transition-duration: .9s; }
.anim-scene .stage figure.rise { transform: translateY(70px) scale(.96); transition-duration: 1.1s; }
