/* ============================================================
   WebTemplate — app.css
   Rôle : reset minimal + variables CSS de FALLBACK.
   Tout le design visuel est dans site.css (chargé après).
   Les variables :root sont surchargées par BrandingHead.razor
   via <style> injecté dans <HeadContent>.
   ============================================================ */

/* ── Variables de fallback ──────────────────────────────────
   Nommage ALIGNÉ sur site.css pour éviter les conflits.
   site.css les redéfinit avec ses propres valeurs par défaut,
   BrandingHead les écrase avec les couleurs du tenant.        */
:root {
    /* Couleurs */
    --color-primary: #6200EE;
    --color-secondary: #03DAC6;
    --color-text: #1a1a1a;
    --color-background: #ffffff;
    --color-surface: #ffffff;
    --color-border: #e8e8e8;
    --color-muted: #6b7280;
    --color-accent: #f0f0f0;
    /* Typographie */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Roboto', sans-serif;
    /* Layout — mêmes noms que site.css */
    --nav-height: 64px;
    --content-width: 1200px;
    --content-pad: clamp(1rem, 4vw, 2rem);
    /* Tokens — mêmes noms que site.css */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
    --shadow-card: 0 2px 8px rgba(0,0,0,.06);
    --transition: 180ms ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul[role="list"] {
    list-style: none;
}

/* ── Base typographie ────────────────────────────────────── */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-background);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

/* ── Layout de base ──────────────────────────────────────── */
/* FIX : pas de padding ici — site.css gère padding-top: nav-height */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    /* NE PAS mettre padding ici — site.css applique padding-top: var(--nav-height) */
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--content-pad);
}

/* ── Utilitaires universels ──────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.loading {
    text-align: center;
    padding: 4rem;
    color: var(--color-muted);
}

.empty-state {
    text-align: center;
    padding: 4rem;
    color: var(--color-muted);
}

/* ── Responsive mobile ───────────────────────────────────── */
/* FIX : cette accolade se ferme AVANT les styles additionnels  */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-primary);
        padding: 1rem;
    }

        .nav-links.is-open {
            display: flex;
        }

    .nav-toggle {
        display: flex;
        margin-left: auto;
        background: none;
        border: none;
        cursor: pointer;
        color: #fff;
        padding: .5rem;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        display: block;
        width: 22px;
        height: 2px;
        background: currentColor;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .search-input-group {
        flex-direction: column;
    }

    .section-header {
        flex-direction: column;
        gap: .5rem;
    }
}
/* ☝️ FIX BUG 1 : fermeture ici, PAS en fin de fichier       */

/*
   Tout le reste du design system est dans site.css :
   navbar glassmorphism, footer grid, breadcrumb horizontal,
   admin layout, blog cards, prose, social share, contact, CMS…

   app.css = reset + variables de fallback uniquement.
*/
