/* formalo.app : page d'accueil, confidentialité, support.
   Même système visuel que l'application (www/css/style.css) : neutres bleu-gris OKLCH, accent indigo,
   Fredoka pour le registre enfant, Inter pour le texte et le registre adulte. Polices locales (dist/fonts),
   repli system-ui. Aucune ressource externe. */
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: oklch(96.6% 0.008 250);
  --surface: oklch(99.3% 0.004 250);
  --ink: oklch(24% 0.035 265);
  --ink-2: oklch(42% 0.03 262);
  --ink-3: oklch(52% 0.02 260);
  --line: oklch(92% 0.01 250);
  --line-2: oklch(86% 0.014 250);
  --accent: oklch(46% 0.2 275);          /* indigo un peu plus sombre que dans l'app : blanc sur accent >= 4.5:1 */
  --accent-d: oklch(38% 0.18 275);
  --accent-soft: oklch(95.5% 0.03 275);
  --cream: #fff4dc;                       /* fond Junior (icône, splash, manifest) */
  --cream-edge: oklch(88% 0.09 85);
  --cream-ink: oklch(30% 0.05 60);
  --night: oklch(27% 0.055 265);          /* bleu nuit : carte Formalo adulte */
  --night-2: oklch(33% 0.05 265);
  --night-ink: oklch(97% 0.006 250);
  --night-ink-2: oklch(84% 0.015 255);
  --shadow: 0 1px 2px oklch(30% 0.03 260 / 0.06), 0 6px 18px oklch(30% 0.03 260 / 0.07);
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.5; display: flex; flex-direction: column; }
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-d); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* en-tête */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1100px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: 0.04em; line-height: 1; display: inline-flex; text-decoration: none; }
.wordmark span:nth-child(1) { color: #e11d48; } .wordmark span:nth-child(2) { color: #d97706; } .wordmark span:nth-child(3) { color: #059669; }
.wordmark span:nth-child(4) { color: #0284c7; } .wordmark span:nth-child(5) { color: #4f46e5; } .wordmark span:nth-child(6) { color: #e11d48; } .wordmark span:nth-child(7) { color: #d97706; }
.nav { margin-left: auto; display: flex; gap: 4px 18px; flex-wrap: wrap; font-weight: 600; font-size: 0.95rem; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 2px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 28px 20px 48px; }
@media (min-width: 720px) { main { padding: 44px 24px 64px; } }

/* accueil */
.hero { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 2vw + 1.4rem, 2.9rem); line-height: 1.12; letter-spacing: 0.005em; }
.hero p { margin-top: 12px; font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.3rem); color: var(--ink-2); }
.notice { max-width: 720px; margin: 0 auto 24px; padding: 12px 16px; border-radius: 16px; background: var(--accent-soft); border: 1px solid oklch(88% 0.06 275); color: var(--accent-d); font-weight: 600; text-align: center; }

.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; gap: 24px; } }
.ed { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 22px 24px; border-radius: 26px; box-shadow: var(--shadow); border: 1px solid transparent; }
@media (min-width: 720px) { .ed { padding: 34px 30px 30px; } }
.ed-head { display: flex; align-items: center; gap: 16px; }
.ed-icon { width: 76px; height: 76px; border-radius: 20px; flex: none; box-shadow: 0 2px 6px oklch(30% 0.03 260 / 0.18); }
@media (min-width: 720px) { .ed-icon { width: 92px; height: 92px; border-radius: 24px; } }
.ed h2 { font-size: 1.75rem; line-height: 1.1; }
.ed .tag { display: block; margin-top: 4px; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; }
.ed .pitch { font-size: 1.05rem; line-height: 1.5; }
.ed ul { list-style: none; padding: 0; display: grid; gap: 7px; font-size: 0.98rem; }
.ed li { display: flex; gap: 10px; align-items: flex-start; }
.ed li::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 0.5em; border-radius: 50%; background: currentColor; opacity: 0.55; }
.ed .spacer { flex: 1; }

.ed.junior { background: var(--cream); border-color: var(--cream-edge); color: var(--cream-ink); }
.ed.junior h2 { font-family: var(--display); font-weight: 600; color: oklch(27% 0.05 60); }
.ed.adult { background: var(--night); color: var(--night-ink); border-color: var(--night-2); }
.ed.adult h2 { font-weight: 800; letter-spacing: -0.01em; }
.ed.adult .tag, .ed.adult .pitch, .ed.adult li { color: var(--night-ink-2); }
.ed.adult .pitch { color: var(--night-ink); }

/* bouton principal : comme .cta dans l'app, 64 px, ombre pleine qui s'enfonce */
.cta { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 0 26px; border-radius: 20px; text-decoration: none; font-weight: 700; font-size: 1.2rem; border: 0; cursor: pointer; transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease); }
.cta svg { width: 22px; height: 22px; flex: none; }
.cta:active { transform: translateY(3px); }
.ed.junior .cta { font-family: var(--display); font-weight: 600; font-size: 1.3rem; background: var(--accent); color: #fff; box-shadow: 0 4px 0 var(--accent-d); }
.ed.junior .cta:hover { background: oklch(50% 0.2 275); }
.ed.junior .cta:active { box-shadow: 0 1px 0 var(--accent-d); }
.ed.adult .cta { background: #fff; color: var(--night); box-shadow: 0 4px 0 oklch(70% 0.02 255); }
.ed.adult .cta:hover { background: oklch(96% 0.01 250); }
.ed.adult .cta:active { box-shadow: 0 1px 0 oklch(70% 0.02 255); }

/* liens vers les stores : masqués tant que data-url est vide (voir js/site.js) */
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.stores a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; text-decoration: none; border: 1.5px solid currentColor; color: inherit; }

.why { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why article { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px 20px 18px; box-shadow: var(--shadow); }
.why .glyph { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.why .glyph svg { width: 26px; height: 26px; }
.why h3 { font-size: 1.1rem; font-weight: 700; }
.why p { margin-top: 6px; color: var(--ink-2); font-size: 0.97rem; }
.calm { margin: 28px auto 0; text-align: center; color: var(--ink-2); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; }
.calm svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* pages texte */
.doc { max-width: 760px; margin: 0 auto; }
.doc h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 1.5vw + 1.4rem, 2.4rem); line-height: 1.15; }
.doc .lead { margin-top: 10px; color: var(--ink-2); font-size: 1.05rem; }
.doc section { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 22px 20px; box-shadow: var(--shadow); }
.doc h2 { font-size: 1.3rem; font-weight: 700; }
.doc h3 { font-size: 1.05rem; font-weight: 700; margin-top: 18px; }
.doc p, .doc li { margin-top: 10px; color: var(--ink-2); }
.doc ul { padding-left: 20px; }
.doc li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.doc .meta { margin-top: 8px; font-size: 0.9rem; color: var(--ink-3); }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; }
.doc details { margin-top: 12px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.doc summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::before { content: ""; flex: none; width: 10px; height: 10px; border-right: 2.4px solid var(--accent); border-bottom: 2.4px solid var(--accent); transform: rotate(-45deg); transition: transform 0.15s var(--ease); margin-right: 4px; }
.doc details[open] summary::before { transform: rotate(45deg); }
.doc details > div { padding: 0 16px 14px; }
.doc details p:first-child { margin-top: 0; }
[data-contact]:empty::before { content: attr(data-placeholder); color: var(--ink-3); font-style: italic; }

/* pied de page */
footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.92rem; }
.foot-in { max-width: 1100px; margin: 0 auto; padding: 20px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.foot-in a { color: var(--ink-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-in a:hover { color: var(--accent); }
.foot-in .ch { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.foot-in .ch i { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 3px; background: #d52b1e; }
.foot-in .ch i::before { content: ""; width: 10px; height: 10px; background: #fff; clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }
.langs { display: inline-flex; gap: 2px; flex-wrap: wrap; }
.langs a { padding: 0 8px; border-radius: 8px; font-weight: 600; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.04em; }
.langs a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-d); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .top, footer { display: none; } .doc section { box-shadow: none; } }
