/* ============================================
   STYLES GLOBAUX (assets/css/styles.css)
   ============================================ */
:root {
    /* Couleurs mode clair */
    --bg-main: #ffffff;
    --bg-sub: #f9fafb;
    --bg-card: #ffffff;
    --bg-navbar: rgba(255, 255, 255, 0.85);
    --bg-dropdown: #ffffff;
    --text-titre: #1e6078;
    --text-title: #123a48;
    --text-body: #111827;
    --text-muted: #6b7280;
    --text-inverse: #ffffff;
    --border: #f0f0f0;
    --border-dark: #e5e7eb;
    --accent: #123a48;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --icon-color: #123a48;
    --logo-url: url('https://www.xone360.com/assets/images/logo.png');
    --transition-speed: 0.3s;
}

/* Mode sombre */
[data-theme="dark"] {
    --bg-main: #0f1a24;
    --bg-sub: #16222e;
    --bg-card: #1a2a38;
    --bg-navbar: rgba(15, 26, 36, 0.92);
    --bg-dropdown: #1a2a38;
    --text-titre: #7ab7d4;
    --text-title: #8fc9e6;
    --text-body: #e8edf2;
    --text-muted: #9aabb8;
    --text-inverse: #0f1a24;
    --border: #2a4050;
    --border-dark: #3a5568;
    --accent: #4a9bb8;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
    --icon-color: #8fc9e6;
    --logo-url: url('https://www.xone360.com/assets/images/logo-w.png');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

em {
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 600;
}

/* --- BOUTONS GLOBAUX --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-black {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

.btn-black:hover {
    opacity: 0.9;
}

.btn-white {
    background: #fff;
    color: var(--text-title);
    border: 1px solid var(--border-dark);
}

.btn-white:hover {
    background: var(--bg-sub);
}

.badge-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* --- SECTION HEADER GLOBAL --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 100px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 8px;
    color: var(--text-title);
}

/* --- SCROLLBAR PERSONNALISÉE --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-sub);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    opacity: 0.8;
}

/* --- TRANSITIONS DE THÈME --- */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease;
}

/* Empêcher la transition sur le chargement initial */
.no-transition {
    transition: none !important;
}

/* Styles pour le menu mobile */
body.menu-open {
    overflow: hidden;
}

/* Amélioration de l'accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- RESPONSIVE GLOBAL --- */
@media (max-width: 968px) {
    .section-header h2 {
        font-size: 30px;
    }
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 600px) {
    .section-header h2 {
        font-size: 24px;
    }
}