/* Dawnr — feuille de style. Charte de l'app : navy profond + accent cyan,
   glows radiaux en fond (repris du RadialGradient de l'app). Design dark assumé. */

:root {
    --bg:          #0b1622;   /* MainBackground (dark) */
    --surface:     #0f1d2b;   /* MainSurface (dark)    */
    --surface-2:   #13273a;
    --border:      #22384b;   /* MainBorder (dark)     */
    --border-soft: rgba(255, 255, 255, .07);
    --text:        #e7f1f7;   /* MainForeground (dark) */
    --muted:       #90a6b8;
    --accent:      #00e1fe;   /* MainEnabled / Highlight / GoodMorning */
    --accent-2:    #16b6d8;   /* TabTint-ish            */
    --accent-ink:  #04212c;   /* texte sur fond cyan    */
    --glow:        rgba(0, 225, 254, .55);
    --max:         1040px;
    --radius:      18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(130% 90% at 50% -20%, rgba(0, 225, 254, .18), transparent 55%),
        radial-gradient(130% 80% at 50% 120%, rgba(0, 225, 254, .12), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #7ff0ff; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 .35em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin: 2.2em 0 .7em; }
h3 { font-size: 1.15rem; }

.icon { width: 26px; height: 26px; display: block; }

/* Lien d'accessibilité */
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent); color: var(--accent-ink);
    padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 22, 34, .72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border-soft);
}
.site-header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__logo {
    width: 34px; height: 34px; display: block;
    filter: drop-shadow(0 2px 10px rgba(0, 225, 254, .35));
}
.brand__name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }

.nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav__link { color: var(--muted); font-weight: 500; }
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active { position: relative; }
.nav__link.is-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px;
    background: var(--accent); box-shadow: 0 0 10px var(--glow);
}
.nav__lang {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--border); border-radius: 999px;
    padding: 5px 13px; color: var(--text); font-size: .82rem; font-weight: 600;
}
.nav__lang:hover { border-color: var(--accent); color: var(--text); }
.flag {
    width: 20px; height: auto; display: block; border-radius: 3px;
    box-shadow: 0 0 0 1px var(--border-soft);
}

/* ---------------------------------------------------------------- Boutons */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    color: var(--accent-ink); font-weight: 700;
    padding: 13px 24px; border-radius: 14px;
    box-shadow: 0 8px 30px -8px var(--glow); transition: transform .15s, box-shadow .15s;
}
.btn:hover { color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--glow); }
.btn svg { width: 20px; height: 20px; }
.btn--ghost {
    background: transparent; color: var(--text);
    border: 1px solid var(--border); box-shadow: none;
}
.btn--ghost:hover { color: var(--text); border-color: var(--accent); }

/* ---------------------------------------------------------------- Contenu */
.page { max-width: var(--max); margin: 0 auto; padding: 30px 22px 72px; }

/* Hero (accueil) */
.hero { text-align: center; padding: 56px 0 20px; position: relative; }
.hero__logo {
    width: clamp(120px, 26vw, 168px); height: auto; margin: 0 auto 26px; display: block;
    filter: drop-shadow(0 18px 60px rgba(0, 225, 254, .45));
    animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero__logo { animation: none; } }

.hero h1 {
    background: linear-gradient(180deg, #ffffff, #a8d9e6);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__tagline {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: var(--muted);
    margin: 0 auto 1.8em; max-width: 34ch;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero__lead {
    max-width: 60ch; margin: 40px auto 0; color: var(--muted); font-size: 1.05rem;
}

/* Grille de fonctionnalités */
.section-title { text-align: center; margin-top: 8px; }
.section-title h1 { margin-bottom: .2em; }
.section-title p { color: var(--muted); margin: 0 auto; max-width: 46ch; }

.features {
    list-style: none; padding: 0; margin: 40px 0 0;
    display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.features li {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.features li:hover {
    transform: translateY(-4px); border-color: rgba(0, 225, 254, .5);
    box-shadow: 0 18px 44px -20px var(--glow);
}
.feature__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 13px; margin-bottom: 16px;
    color: var(--accent);
    background: rgba(0, 225, 254, .10);
    border: 1px solid rgba(0, 225, 254, .22);
}
.feature__title { font-weight: 700; font-size: 1.08rem; margin: 0 0 6px; }
.feature__desc { color: var(--muted); margin: 0; font-size: .96rem; }

/* Pages texte (Markdown) */
.prose {
    max-width: 44rem; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: clamp(24px, 5vw, 48px);
}
.prose h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; padding-top: .2em; }
.prose h2:first-of-type { margin-top: 1em; }
.prose p, .prose li { color: #c6d5e0; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose em { color: var(--muted); font-style: normal; font-size: .92em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

/* ---------------------------------------------------------------- Footer */
.site-footer {
    border-top: 1px solid var(--border-soft); margin-top: 64px;
    color: var(--muted); font-size: .9rem;
}
.site-footer .wrap {
    padding: 32px 22px 44px; display: flex; gap: 12px;
    align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 0; }
