/* Jauge — feuille de style du site jauge.io. Palette : BRANDING.md / JaugeColors.kt. Sans bibliothèque. */

:root {
  color-scheme: light dark;
  --bg: #F7F2E8;
  --bg-2: #EFE8DA;
  --surface: #FFFDF8;
  --line: #E2DACB;
  --ink: #13211D;
  --ink-2: #1E302A;
  --ink-3: #2C423B;
  --text: #13211D;
  --text-2: #5B6863;
  --text-3: #6C7A74;
  --link: #C2361A;
  --action: #FF5A3C;
  --on-action: #13211D;
  --mint: #3CCB9F;
  --mint-text: #0E7A5C;
  --mint-bg: #DDF5EC;
  --amber: #FFB23F;
  --amber-text: #9A5B00;
  --amber-bg: #FFF0D6;
  --coral: #FF5B3A;
  --coral-text: #C2361A;
  --coral-bg: #FFE3DB;
  --emphasis: #13211D;
  --on-emphasis: #F7F2E8;
  --on-emphasis-2: #A9B3AE;
  --focus: #13211D;
  --shadow: 0 24px 60px -30px rgba(19, 33, 29, .35);
  --radius: 24px;
  --radius-s: 14px;
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;
  --gutter: 16px;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13211D;
    --bg-2: #0F1B18;
    --surface: #1E302A;
    --line: #2C423B;
    --text: #F7F2E8;
    --text-2: #A9B3AE;
    --text-3: #A9B3AE;
    --link: #FF8468;
    --mint-text: #3CCB9F;
    --mint-bg: #173B31;
    --amber-text: #FFB23F;
    --amber-bg: #3A2F18;
    --coral-text: #FF8468;
    --coral-bg: #2A2620;
    --emphasis: #1E302A;
    --on-emphasis: #F7F2E8;
    --on-emphasis-2: #A9B3AE;
    --focus: #F7F2E8;
    --shadow: 0 24px 60px -30px rgba(0, 0, 0, .7);
  }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 2rem + 3.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 1.5rem + 2vw, 3rem); }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--emphasis); color: var(--on-emphasis); padding: 12px 18px; border-radius: 12px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; min-height: 44px; }
.brand svg { width: 34px; height: 34px; border-radius: 9px; }

.nav { display: none; gap: 4px; }
.nav a { text-decoration: none; color: var(--text-2); font-weight: 600; padding: 10px 14px; border-radius: 999px; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-2); }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-text); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--action); color: var(--on-action); box-shadow: 0 10px 30px -12px rgba(255, 90, 60, .7); }
.btn-primary:hover { background: #FF6D52; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-ink { background: var(--emphasis); color: var(--on-emphasis); }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: .95rem; }

/* Store badges (SVG inline) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 18px 8px 14px;
  background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 10px; text-decoration: none;
  transition: transform .18s ease;
}
.badge:hover { transform: translateY(-1px); }
.badge svg { width: 28px; height: 28px; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.05; }
.badge small { font-size: .68rem; letter-spacing: .02em; opacity: .9; }
.badge b { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.badge:focus-visible { outline-color: var(--focus); }

/* ---------- Hero ---------- */

.hero { padding: 48px 0 32px; position: relative; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 72px 0 48px; } .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

.hero h1 { max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--coral-text); }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--text-2); max-width: 36ch; margin-bottom: 28px; }
.hero-note { font-size: .9rem; color: var(--text-2); margin-top: 16px; }

/* ---------- Gauge ---------- */

.gauge-card {
  background: var(--emphasis); color: var(--on-emphasis); border-radius: 32px; padding: 32px 24px 28px; box-shadow: var(--shadow);
  position: relative; overflow: hidden; margin-inline: auto; width: 100%; max-width: 520px;
}
.gauge-card::after { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 60%; background: radial-gradient(closest-side, rgba(60, 203, 159, .18), transparent); pointer-events: none; }
.gauge-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .9rem; color: var(--on-emphasis-2); margin-bottom: 8px; }
.gauge-head b { color: var(--on-emphasis); font-weight: 600; }
.gauge { position: relative; width: 100%; aspect-ratio: 2 / 1.12; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }
.gauge-score { position: absolute; inset: auto 0 2%; text-align: center; font-family: var(--font-mono); font-weight: 700; font-size: clamp(3.6rem, 14vw, 5.6rem); line-height: 1; letter-spacing: -.04em; }
.gauge-score small { font-size: .32em; color: var(--on-emphasis-2); font-weight: 600; margin-left: 4px; }
.gauge-pill { margin: 18px auto 0; display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem; transition: background-color .4s, color .4s; }
.gauge-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.gauge-pill[data-level="calme"] { background: #173B31; color: var(--mint); }
.gauge-pill[data-level="dispute"] { background: #3A2F18; color: var(--amber); }
.gauge-pill[data-level="bonde"] { background: #2A2620; color: #FF8468; }
.gauge-legend { display: flex; justify-content: center; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.gauge-legend button {
  font: 600 .85rem var(--font-text); min-height: 44px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--on-emphasis-2); border: 1px solid var(--ink-3);
}
.gauge-legend button[aria-pressed="true"] { color: var(--on-emphasis); border-color: var(--on-emphasis-2); background: rgba(255, 255, 255, .06); }
.gauge-legend button:focus-visible { outline-color: var(--on-emphasis); }
.gauge-foot { text-align: center; font-size: .85rem; color: var(--on-emphasis-2); margin: 14px 0 0; }
.gauge-foot a { color: var(--on-emphasis); }

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--text-2); font-size: 1.1rem; }
.section-alt { background: var(--bg-2); }

.sources { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: var(--text-2); font-size: .95rem; padding: 24px 0 8px; }
.sources span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 600; font-size: .85rem; }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.card h3 { margin-top: 14px; }
.card p { color: var(--text-2); margin: 0; }
.card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; }
.ico-mint { background: var(--mint-bg); color: var(--mint-text); }
.ico-amber { background: var(--amber-bg); color: var(--amber-text); }
.ico-coral { background: var(--coral-bg); color: var(--coral-text); }
.ico-ink { background: var(--emphasis); color: var(--on-emphasis); }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 72px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 24px; left: 24px; font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--coral-text);
}

/* ---------- Phones ---------- */

.phones { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); align-items: end; }
@media (min-width: 960px) { .phones { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.phone { margin: 0; }
.phone-frame {
  position: relative; aspect-ratio: 480 / 1041; border-radius: 12%/5.5%; padding: 3%;
  background: var(--ink); box-shadow: var(--shadow), inset 0 0 0 2px var(--ink-3);
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 9%/4.3%; }
.phone figcaption { font-size: .9rem; color: var(--text-2); margin-top: 12px; text-align: center; }
.phone:nth-child(even) { transform: translateY(24px); }
@media (min-width: 960px) { .phone:nth-child(even) { transform: translateY(40px); } }

/* ---------- Pricing ---------- */

.plans { display: grid; gap: 16px; }
@media (min-width: 800px) { .plans { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.plan-plus { background: var(--emphasis); color: var(--on-emphasis); border-color: var(--emphasis); }
.plan-plus .plan-kicker { color: var(--mint); }
.plan-plus ul, .plan-plus .plan-note { color: var(--on-emphasis-2); }
.plan-plus .btn-primary { align-self: flex-start; }
.plan-kicker { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; }
.price small { font-size: 1rem; font-weight: 600; letter-spacing: 0; font-family: var(--font-text); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; color: var(--text-2); display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: "✓"; color: var(--mint-text); font-weight: 700; flex: none; }
.plan-plus li::before { color: var(--mint); }
.plan-note { font-size: .85rem; color: var(--text-2); margin: auto 0 0; padding-top: 16px; }

/* ---------- Privacy band ---------- */

.band { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 32px 24px; display: grid; gap: 24px; }
@media (min-width: 800px) { .band { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 40px; } }
.band ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.band li { margin-bottom: 8px; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 20px 4px; font-weight: 700; font-size: 1.1rem; font-family: var(--font-display); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 500; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 4px 20px; margin: 0; max-width: 64ch; }

/* ---------- Download block ---------- */

.download { background: var(--emphasis); color: var(--on-emphasis); border-radius: 32px; padding: 40px 24px; display: grid; gap: 32px; align-items: center; }
@media (min-width: 800px) { .download { grid-template-columns: 1fr auto; padding: 56px; } }
.download h2 { color: var(--on-emphasis); }
.download p { color: var(--on-emphasis-2); max-width: 44ch; }
.qr { background: #F7F2E8; color: #13211D; padding: 14px; border-radius: 18px; width: 164px; margin-inline: auto; }
.qr svg { width: 100%; height: auto; }
.qr-caption { text-align: center; font-size: .8rem; color: var(--on-emphasis-2); margin: 10px 0 0; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 32px; color: var(--text-2); font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 28px; }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text); font-family: var(--font-text); font-weight: 700; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--text-2); text-decoration: none; display: inline-block; min-width: 44px; padding: 6px 0; min-height: 44px; line-height: 32px; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .brand { margin-bottom: 8px; }
.footer-note { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.footer-note a { display: inline-block; padding: 12px 2px; line-height: 20px; min-height: 44px; }

/* ---------- Document pages (legal, support) ---------- */

.doc { padding: 40px 0 72px; }
.doc .wrap { display: grid; gap: 40px; }
@media (min-width: 960px) { .doc .wrap { grid-template-columns: 260px minmax(0, 720px); } }
.doc-toc { position: sticky; top: 92px; align-self: start; display: none; }
@media (min-width: 960px) { .doc-toc { display: block; } }
.doc-toc h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-text); color: var(--text-2); margin-bottom: 10px; }
.doc-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.doc-toc a { display: flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .92rem; }
.doc-toc a:hover { background: var(--bg-2); color: var(--text); }
.doc-body h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); }
.doc-body h2 { font-size: 1.45rem; margin: 2em 0 .5em; }
.doc-body h3 { font-size: 1.1rem; margin: 1.6em 0 .4em; }
.doc-body p, .doc-body li { color: var(--text); }
.doc-body li { margin-bottom: 6px; }
.updated { color: var(--text-2); font-size: .92rem; margin-bottom: 28px; }
.box { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-s); padding: 18px 22px; margin: 20px 0; }
.box-mint { background: var(--mint-bg); border-color: transparent; color: var(--mint-text); }
.box-amber { background: var(--amber-bg); border-color: transparent; color: var(--amber-text); }
.todo { background: var(--amber-bg); color: var(--amber-text); padding: 2px 8px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.breadcrumb { font-size: .9rem; color: var(--text-2); margin: 24px 0 0; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { color: var(--text-2); display: inline-block; padding: 12px 0; }
.breadcrumb li { display: flex; align-items: center; }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 16px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 700; }
.doc code { font-family: var(--font-mono); font-size: .9em; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }
ol.steps-list li { margin-bottom: 10px; }

/* ---------- Download page and share page ---------- */

.center { text-align: center; }
.stack { display: grid; gap: 16px; justify-items: center; }
.page-short { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 48px 0; }
.page-short .wrap { max-width: 640px; }
.device-hint { color: var(--text-2); font-size: .95rem; }
[hidden] { display: none !important; }

.share-card { background: var(--emphasis); color: var(--on-emphasis); border-radius: 32px; padding: 28px 24px; box-shadow: var(--shadow); max-width: 520px; margin-inline: auto; width: 100%; }
.share-card h1 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.2rem); margin: 4px 0 2px; }
.share-meta { color: var(--on-emphasis-2); font-size: .95rem; margin: 0 0 16px; }
.share-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.fact { background: rgba(255, 255, 255, .05); border: 1px solid var(--ink-3); border-radius: 16px; padding: 14px 16px; }
.fact b { display: block; font-family: var(--font-mono); font-size: 1.5rem; }
.fact span { font-size: .85rem; color: var(--on-emphasis-2); }
.twin { margin-top: 16px; background: #173B31; color: var(--mint); border-radius: 16px; padding: 14px 16px; }
.twin b { color: #F7F2E8; }
.share-state { color: var(--text-2); }

/* ---------- Reveal on scroll ---------- */

/* Les blocs .reveal ne sont masqués que si le script est chargé (classe reveal-ready sur <html>) ; sans JavaScript, tout est visible. */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-ready .reveal { opacity: 1; transform: none; } }
