@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/dmsans-latin-400-700.woff2') format('woff2');
    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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/dmsans-latin-ext-400-700.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'DM Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/dmsans-italic-latin.woff2') format('woff2');
    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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/dmsans-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Palette of the app icon (assets/thalia_icon.svg in the app repo). */
:root {
    --ink:        #12060F;
    --plum:       #2A0E2E;
    --plum-light: #351339;
    --surface:    #1C0A1C;
    --magenta:    #E23D74;
    --coral:      #FF7A59;
    --gold:       #FFC66B;
    --gold-dim:   rgba(255,198,107,0.12);
    --magenta-dim:rgba(226,61,116,0.14);
    --line:       rgba(255,198,107,0.12);
    --text:       #F7EAF0;
    --muted:      #C2A5B6;
    --white:      #ffffff;
    --paper:      #FFFBF6;
    --highlight:  #FFF3DF;
    --warm:       linear-gradient(120deg, var(--gold), var(--coral));
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:84px; }
body { background:var(--ink); color:var(--text); font-family:'DM Sans',system-ui,sans-serif; font-weight:400; overflow-x:hidden; -webkit-font-smoothing:antialiased; }
img, svg { max-width:100%; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline:2px solid var(--gold); outline-offset:3px; border-radius:3px; }
.skip-link { position:absolute; left:-9999px; top:8px; z-index:300; background:var(--gold); color:var(--ink); padding:8px 16px; border-radius:4px; }
.skip-link:focus { left:8px; }

/* Gradient accent text, the "warm" stroke of the logo. */
.warm { background:var(--warm); -webkit-background-clip:text; background-clip:text; color:transparent; }
.accent { color:var(--magenta); }
/* Lighter magenta for small text on the plum sections (AA contrast). */
.section-alt .section-eyebrow { color:#F05A8C; }

/* ─── NAV ─── */
.nav {
    position:fixed; top:0; left:0; right:0; z-index:200;
    display:flex; align-items:center; justify-content:space-between; gap:24px;
    padding:18px 64px;
    background:rgba(18,6,15,0.86); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
    border-bottom:1px solid rgba(226,61,116,0.18);
}
.nav-brand { display:flex; align-items:center; gap:12px; text-decoration:none; }
.nav-brand img { height:36px; width:36px; border-radius:9px; }
.nav-brand span { font-size:1.45rem; font-weight:700; color:var(--white); letter-spacing:0.04em; }
.nav-links { display:flex; gap:32px; list-style:none; }
.nav-links a { color:var(--muted); text-decoration:none; font-size:0.82rem; letter-spacing:0.08em; text-transform:uppercase; transition:color .3s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color:var(--gold); }
.nav-toggle {
    display:none; align-items:center; justify-content:center; width:42px; height:42px; margin-left:auto;
    background:none; border:1px solid rgba(255,255,255,0.18); border-radius:10px; color:var(--text); cursor:pointer;
}
.nav-toggle svg { width:22px; height:22px; }

/* ─── BUTTONS ─── */
.btn {
    display:inline-flex; align-items:center; justify-content:center; gap:10px;
    padding:15px 34px; border-radius:100px;
    font-size:0.9rem; font-weight:600; letter-spacing:0.02em;
    text-decoration:none; transition:transform .25s, box-shadow .3s, background .3s, border-color .3s, color .3s;
}
.btn-warm { background:var(--warm); color:var(--ink); box-shadow:0 10px 30px rgba(255,122,89,0.28); }
.btn-warm:hover { transform:translateY(-2px); box-shadow:0 16px 40px rgba(255,122,89,0.4); }
.btn-ghost { color:var(--text); border:1px solid rgba(255,255,255,0.18); }
.btn-ghost:hover { border-color:var(--gold); color:var(--gold); }
.btn-small { padding:10px 22px; font-size:0.8rem; }
.btn svg { width:20px; height:20px; flex-shrink:0; }

/* Store badges ("bientôt disponible"). */
.store-badges { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.store-badge {
    display:inline-flex; align-items:center; gap:12px;
    padding:11px 22px 11px 18px; border-radius:14px;
    background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.16);
    color:var(--text); text-align:left; cursor:default;
}
.store-badge svg { width:26px; height:26px; flex-shrink:0; }
.store-badge small { display:block; font-size:0.68rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--gold); }
.store-badge strong { display:block; font-size:1.05rem; font-weight:600; line-height:1.2; }

/* ─── SECTIONS ─── */
.section { padding:120px 64px; }
.section-inner { max-width:1200px; margin:0 auto; }
.section-alt { background:linear-gradient(180deg, var(--plum) 0%, var(--surface) 100%); }
.section-eyebrow { font-size:0.72rem; letter-spacing:0.26em; text-transform:uppercase; color:var(--magenta); font-weight:600; margin-bottom:14px; }
.section-title { font-size:clamp(1.9rem,3.6vw,3rem); font-weight:700; color:var(--white); line-height:1.15; letter-spacing:-0.01em; }
.section-lead { font-size:1.05rem; color:var(--muted); line-height:1.75; max-width:640px; margin-top:18px; }
.section-head { margin-bottom:56px; }
.section-head.center { text-align:center; }
.section-head.center .section-lead { margin-left:auto; margin-right:auto; }

/* ─── FOOTER ─── */
.footer {
    padding:44px 64px; border-top:1px solid rgba(255,255,255,0.06);
    display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px;
}
.footer-brand { display:flex; align-items:center; gap:10px; text-decoration:none; }
.footer-brand img { height:28px; width:28px; border-radius:7px; }
.footer-brand span { font-size:1.1rem; font-weight:700; color:var(--white); letter-spacing:0.04em; }
.footer-links { display:flex; gap:26px; flex-wrap:wrap; }
.footer-links a { font-size:0.8rem; color:var(--muted); text-decoration:none; transition:color .3s; }
.footer-links a:hover { color:var(--gold); }
.footer-copy { font-size:0.76rem; color:var(--muted); }

/* ─── TEXT PAGES (guide, legal, 404) ─── */
.page { max-width:800px; margin:0 auto; padding:150px 64px 100px; }
.page-eyebrow { font-size:0.72rem; letter-spacing:0.26em; text-transform:uppercase; color:var(--magenta); font-weight:600; margin-bottom:14px; }
.page-title { font-size:clamp(2rem,4.5vw,3.2rem); font-weight:700; color:var(--white); line-height:1.15; margin-bottom:14px; }
.page-lead { font-size:1.05rem; color:var(--muted); line-height:1.75; margin-bottom:12px; }
.page-date { font-size:0.8rem; color:var(--muted); margin-bottom:48px; }
.prose { margin-bottom:44px; }
.prose h2 {
    font-size:1.25rem; font-weight:600; color:var(--gold);
    margin-bottom:14px; padding-bottom:10px; border-bottom:1px solid var(--line);
}
.prose h3 { font-size:1.02rem; font-weight:600; color:var(--white); margin:22px 0 8px; }
.prose p, .prose li { font-size:0.95rem; color:var(--muted); line-height:1.85; }
.prose p + p { margin-top:10px; }
.prose ul, .prose ol { padding-left:22px; display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.prose strong { color:var(--text); font-weight:600; }
.prose a { color:var(--gold); text-decoration:none; }
.prose a:hover { text-decoration:underline; }
.prose code { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:0.86em; background:rgba(255,255,255,0.07); padding:2px 6px; border-radius:4px; color:var(--text); }
.prose pre {
    margin-top:14px; padding:20px 22px; border-radius:10px; overflow-x:auto;
    background:#0B0309; border:1px solid var(--line);
    font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:0.82rem; line-height:1.7; color:#EBD9E2;
}
.prose pre code { background:none; padding:0; font-size:inherit; }
.prose table { width:100%; border-collapse:collapse; margin-top:14px; font-size:0.9rem; }
.prose th, .prose td { text-align:left; padding:10px 12px; border-bottom:1px solid rgba(255,255,255,0.07); color:var(--muted); vertical-align:top; }
.prose th { color:var(--text); font-weight:600; }
.callout { margin-top:16px; padding:16px 20px; border-radius:10px; background:var(--magenta-dim); border-left:3px solid var(--magenta); }
.callout p { color:var(--text); }

/* ─── RESPONSIVE (shared parts) ─── */
@media (max-width:960px) {
    .nav { padding:14px 16px; }
    .nav-links { display:none; }
    .nav-toggle { display:inline-flex; }
    .nav { flex-wrap:wrap; gap:12px; }
    .nav.open .nav-links {
        display:flex; flex-direction:column; gap:0; order:3; width:100%;
        padding-top:8px; border-top:1px solid var(--line);
    }
    .nav.open .nav-links a { display:block; padding:14px 2px; font-size:0.9rem; }
    .section { padding:88px 16px; }
    .footer { flex-direction:column; align-items:flex-start; padding:32px 16px; }
    .page { padding:120px 16px 80px; }
}
@media (max-width:420px) {
    .nav-brand { gap:10px; }
    .nav-brand span { font-size:1.2rem; }
    .nav .btn-small { padding:9px 14px; }
}
@media (prefers-reduced-motion:reduce) {
    *, *::before, *::after { animation:none !important; transition:none !important; }
    html { scroll-behavior:auto; }
}
