/* ===================================================
   KBEEN — Styles communs à toutes les pages
   =================================================== */

/* === POLICES AUTO-HÉBERGÉES (plus de dépendance Google Fonts) === */

/* Inter — latin-ext (graisses 400 & 600) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url(fonts/inter-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;
}
/* Inter — latin (graisses 400 & 600) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url(fonts/inter-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;
}

/* League Spartan — latin-ext (graisses 800 & 900) */
@font-face {
    font-family: 'League Spartan';
    font-style: normal;
    font-weight: 800 900;
    font-display: swap;
    src: url(fonts/leaguespartan-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;
}
/* League Spartan — latin (graisses 800 & 900) */
@font-face {
    font-family: 'League Spartan';
    font-style: normal;
    font-weight: 800 900;
    font-display: swap;
    src: url(fonts/leaguespartan-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;
}

/* === VARIABLES === */
:root {
    --accent-green: #74B094;
    --bg-pure-black: #000000;
    --bg-section-dark: #0a0a0a;
    --bg-card: #111111;
    --border-color: #1a1a1a;
    --border-dim: #222222;
    --text-primary: #000000;
    --text-secondary: #ffffff;
    --text-muted: #888888;
    --text-disabled: #555555;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'League Spartan', sans-serif; font-weight: 800; margin: 0; letter-spacing: -1px; }
p { line-height: 1.8; font-weight: 400; margin-bottom: 30px; }
a { text-decoration: none; transition: 0.3s; color: inherit; }
img { width: 100%; height: auto; display: block; }

/* === ACCESSIBILITÉ === */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--accent-green);
    color: #000;
    padding: 10px 20px;
    z-index: 100000;
    font-family: 'League Spartan', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0 0 8px 0;
    transition: top 0.2s ease;
    text-decoration: none;
}
.skip-link:focus { top: 0; outline: 3px solid #000; outline-offset: 2px; }

.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;
}

/* === PAGE TRANSITION === */
#page-transition {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    z-index: 99998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* === SCROLL PROGRESS === */
#scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0%;
    background: linear-gradient(to right, var(--accent-green), #a8d5be);
    z-index: 10001;
    pointer-events: none;
    transition: width 0.1s linear;
}

/* === REVEAL ANIMATIONS === */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s cubic-bezier(0.2, 1, 0.3, 1), transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}
.reveal-up.active { opacity: 1; transform: translateY(0); }

/* === ACCESSIBILITÉ : focus-visible === */
:focus-visible {
    outline: 2px solid var(--accent-green, #74B094);
    outline-offset: 3px;
    border-radius: 4px;
}

/* === ACCESSIBILITÉ : prefers-reduced-motion === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-up { opacity: 1; transform: none; }
}
