/* ============================================================
   FLOW DAILY — Design System partagé
   Importer sur toutes les pages AVANT le <style> spécifique
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
    /* Couleurs officielles Flow */
    --bg:          #F5F3EE;
    --text:        #1E293B;
    --dark:        #111827;
    --dark-footer: #0F172A;
    --green:       #0f6e56;
    --blue-cta:    #B3E5FC;
    --gold:        #D9AE40;
    --gold-light:  #F2D166;
    --purple:      #9473D9;

    /* Typographie */
    --font: 'Fredoka', sans-serif;

    /* Navigation */
    --nav-bg: #111827;
    --nav-h:  70px;

    /* Rayons (système unifié) */
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;

    /* Espacement sections */
    --section-v: 88px;
    --section-h: 24px;

    /* Largeur max contenu */
    --max-w: 1100px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg);
    font-family: var(--font);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── NAVIGATION ──────────────────────────────────────────── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: center;
    padding: 14px 20px;
    z-index: 100;
    pointer-events: none;
}
.nav-pill {
    pointer-events: all;
    background: var(--nav-bg);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 16px 7px 10px;
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.28);
}
.nav-logo img {
    height: 28px;
    border-radius: 7px;
    display: block;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 18px;
}
.nav-links a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 400;
    transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--gold-light); font-weight: 500; }
.nav-cta {
    color: #fff;
    text-decoration: none;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 7px 16px;
    border-radius: 50px;
    transition: background .2s;
    white-space: nowrap;
}
.nav-cta:hover { background: rgba(255,255,255,0.22); }

/* Burger */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
}
.burger-btn span {
    display: block;
    width: 16px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.25s;
}
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--dark);
    z-index: 99;
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 400;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: color 0.2s;
}
.mobile-menu a:hover { color: #fff; }
.mobile-menu-cta {
    margin-top: 10px;
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: var(--radius-sm) !important;
    text-align: center;
    padding: 13px 8px !important;
    color: #fff !important;
    border-bottom: none !important;
}
@media (max-width: 500px) {
    .burger-btn { display: flex; }
    .nav-links  { display: none; }
    .nav-cta    { display: none; }
    .nav-logo img { height: 24px; }
    .nav-cta  { font-size: 0.82rem; padding: 6px 12px; }
    .nav-pill { padding: 6px 10px 6px 8px; gap: 8px; }
}

/* ── FOOTER ──────────────────────────────────────────────── */
#footer {
    background: var(--dark-footer);
    padding: 80px 40px 0;
    font-family: var(--font);
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 64px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    text-decoration: none;
}
.footer-logo img   { height: 32px; border-radius: 8px; }
.footer-logo-name  { font-size: 1.3rem; font-weight: 600; color: #fff; }
.footer-tagline    { font-size: 0.95rem; color: rgba(255,255,255,0.5); line-height: 1.65; margin-bottom: 16px; max-width: 280px; }
.footer-seo        { font-size: 0.78rem; color: rgba(255,255,255,0.2); line-height: 1.6; max-width: 280px; }
.footer-col-title  { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 20px; }
.footer-links      { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-links a    { font-size: 0.92rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-dl         { display: flex; flex-direction: column; gap: 14px; }
.appstore-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    text-decoration: none;
    transition: background 0.2s;
    width: fit-content;
}
.appstore-badge:hover { background: rgba(255,255,255,0.12); }
.appstore-badge-text .dl-soon { display: block; font-size: 0.7rem;  color: rgba(255,255,255,0.5); letter-spacing: 0.04em; }
.appstore-badge-text .dl-store { display: block; font-size: 1rem; font-weight: 600; color: #fff; }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 0 28px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-copy  { font-size: 0.8rem; color: rgba(255,255,255,0.28); }
.footer-love  { font-size: 0.8rem; color: rgba(255,255,255,0.2); }
.footer-love span { color: rgba(255,100,100,0.7); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 540px)  { .footer-grid { grid-template-columns: 1fr; } #footer { padding-left: 20px; padding-right: 20px; } }

/* ── ANIMATION SCROLL ────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }

/* ── PATTERNS SECTIONS PARTAGÉS ──────────────────────────── */
.section-wrap {
    padding: var(--section-v) var(--section-h);
    max-width: var(--max-w);
    margin: 0 auto;
}
.section-label {
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 12px;
    display: block;
}
.section-title {
    font-family: var(--font);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}
.section-sub {
    font-family: var(--font);
    font-size: 1rem;
    color: rgba(30,41,59,0.55);
    line-height: 1.7;
    max-width: 560px;
}

/* ── CARTES ──────────────────────────────────────────────── */
.card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(30,41,59,0.07);
    box-shadow: 0 4px 24px rgba(30,41,59,0.04);
}
.card:hover { transform: translateY(-3px); }

/* Section sombre standard */
.dark-block {
    background: var(--dark);
    border-radius: var(--radius-lg);
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* ── BOUTONS ──────────────────────────────────────────────── */
.btn {
    font-family: var(--font);
    border: none;
    cursor: pointer;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn-dark {
    background: var(--dark);
    color: #fff;
    padding: 15px 28px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 24px rgba(17,24,39,0.22);
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(17,24,39,0.35); color: #fff; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--text);
    padding: 15px 28px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 24px rgba(217,174,64,0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(217,174,64,0.45); }

.btn-ghost {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    padding: 15px 28px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

.btn-outline {
    background: transparent;
    color: var(--text);
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--text);
}
.btn-outline:hover { background: var(--text); color: #fff; }

/* ── UTILITAIRES ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
