/* ==========================================================================
   theme.css
   --------------------------------------------------------------------------
   RÔLE :
   - Base globale commune à toutes les pages
   - Reset léger et fondation structurelle
   - Accessibilité minimale partagée
   - Styles neutres qui ne doivent pas concurrencer app.css
   --------------------------------------------------------------------------
   IMPORTANT :
   - Ce fichier ne doit PAS contenir l'identité MAKE
   - Ce fichier ne doit PAS contenir le header stylé MAKE
   - Ce fichier ne doit PAS imposer de layout spécifique à une page
   - Les composants de marque vivent dans app.css
   --------------------------------------------------------------------------
   PHILOSOPHIE :
   - theme.css = socle neutre
   - app.css   = direction visuelle / composants MAKE
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES NEUTRES
   ========================================================================== */

:root {
    --theme-bg: #0f1115;
    --theme-surface: #ffffff;
    --theme-text: #e5e7eb;
    --theme-border: #e4e1da;
    --theme-link: #111827;
    --theme-link-hover: #000000;
    --theme-focus: #2563eb;
}


/* ==========================================================================
   2. RESET DE BASE
   ========================================================================== */

html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

ul[role="list"],
ol[role="list"] {
    list-style: none;
    margin: 0;
    padding: 0;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}


/* ==========================================================================
   3. DOCUMENT GLOBAL
   ========================================================================== */

html,
body {
    min-height: 100%;
}

.site-body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--theme-bg);
    color: var(--theme-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}


/* ==========================================================================
   4. LIENS / TEXTE
   ========================================================================== */

a {
    color: inherit;
    text-decoration: none;
}


/* ==========================================================================
   5. MAIN GLOBAL
   --------------------------------------------------------------------------
   Volontairement neutre.
   app.css prend la main sur le vrai layout du shell MAKE.
   ========================================================================== */

.site-main {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}


/* ==========================================================================
   6. ACCESSIBILITÉ
   ========================================================================== */

.site-skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.site-skip-link:focus {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 2000;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    margin: 0;
    overflow: visible;
    clip-path: none;
    background: #111111;
    color: #ffffff;
    border-radius: 10px;
}

:focus-visible {
    outline: 2px solid var(--theme-focus);
    outline-offset: 3px;
}

.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;
}


/* ==========================================================================
   7. STRUCTURE GÉNÉRIQUE DE FOOTER
   --------------------------------------------------------------------------
   Neutre.
   Le vrai style du footer vit dans app.css.
   ========================================================================== */

.site-footer {
    margin-top: 0;
}

.site-footer__inner {
    width: 100%;
}

.site-footer__brand {
    text-decoration: none;
    color: inherit;
}

.site-footer__nav a {
    text-decoration: none;
    color: inherit;
}


/* ==========================================================================
   8. HELPERS TRÈS LÉGERS
   ========================================================================== */

[hidden] {
    display: none !important;
}


/* ==========================================================================
   9. RÉDUCTION DES MOUVEMENTS
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}