:root {
    --color-primary: #f87171;
    --color-primary-rgb: 248, 113, 113;
}

[data-theme="light"] {
    /* Palette raffinée et recherchée */
    --bg-override-900: #fafbfc;        /* Blanc cassé très subtil */
    --bg-override-800: #f4f6f8;        /* Gris clair avec nuance bleue */
    --bg-override-700: #eef1f5;        /* Gris moyen élégant */
    --bg-override-600: #e5e9f0;        /* Gris avec caractère */
    --text-override-white: #0d1117;    /* Noir profond, pas pur */
    --text-override-200: #0d1117;      /* Texte principal très foncé */
    --text-override-300: #3d444d;      /* Texte secondaire avec contraste */
    --text-override-400: #6e7681;      /* Texte tertiaire subtil */
    --text-override-500: #848d97;      /* Texte léger */
    --border-override-700: #d0d7de;    /* Bordures définies */
    --border-override-600: #c5cdd5;    /* Bordures moyennes */
}

body[data-theme="light"] {
    background-color: #fafbfc !important;
    color: #0d1117 !important;
}

/* Backgrounds - Hiérarchie visuelle améliorée */
[data-theme="light"] .bg-gray-900 {
    background-color: #fafbfc !important;
}

[data-theme="light"] .bg-gray-800 {
    background-color: #f4f6f8 !important;
}

[data-theme="light"] .bg-gray-700 {
    background-color: #eef1f5 !important;
}

[data-theme="light"] .bg-gray-600 {
    background-color: #e5e9f0 !important;
}

/* Texte - Contraste optimal et lisibilité maximale */
[data-theme="light"] .text-white {
    color: #0d1117 !important;
}

[data-theme="light"] .text-gray-200 {
    color: #0d1117 !important;
}

[data-theme="light"] .text-gray-300 {
    color: #3d444d !important;
}

[data-theme="light"] .text-gray-400 {
    color: #6e7681 !important;
}

[data-theme="light"] .text-gray-500 {
    color: #848d97 !important;
}

/* Bordures - Plus définies et élégantes */
[data-theme="light"] .border-gray-700,
[data-theme="light"] .border-gray-600,
[data-theme="light"] .border-gray-800 {
    border-color: #d0d7de !important;
}

[data-theme="light"] .border-gray-700\/50 {
    border-color: rgba(208, 215, 222, 0.6) !important;
}

/* Header - Design moderne et épuré */
[data-theme="light"] header,
[data-theme="light"] header.sticky {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    border-color: #d0d7de !important;
    box-shadow: 0 1px 0 rgba(208, 215, 222, 0.4), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

/* Barre promo - couleurs fixes conservées */
[data-theme="light"] .bg-gradient-to-r.from-gray-800.via-gray-700.to-gray-800 {
    background: linear-gradient(to right, #1f2937, #374151, #1f2937) !important;
    border-color: #4b5563 !important;
}

[data-theme="light"] .bg-gradient-to-r.from-gray-800.via-gray-700.to-gray-800 .text-white {
    color: #ffffff !important;
}

[data-theme="light"] .bg-gradient-to-r.from-gray-800.via-gray-700.to-gray-800 .text-gray-300 {
    color: #d1d5db !important;
}

[data-theme="light"] .bg-gradient-to-r.from-gray-800.via-gray-700.to-gray-800 .text-gray-400 {
    color: #9ca3af !important;
}

/* Gradient rose dans le H1 - Plus vif et saturé */
[data-theme="light"] .bg-gradient-to-r.from-white.via-red-100.to-white.bg-clip-text {
    background: linear-gradient(to right, #e11d48, #f43f5e, #e11d48) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

[data-theme="light"] .bg-gradient-to-r.from-red-400.to-pink-500 {
    background: linear-gradient(to right, #f43f5e, #ec4899) !important;
}

[data-theme="light"] .text-red-400 {
    color: #f43f5e !important;
}

/* Sections avec alternance - Contraste subtil mais visible */
[data-theme="light"] section.bg-gray-900 {
    background-color: #fafbfc !important;
}

[data-theme="light"] section.bg-gray-800 {
    background-color: #f4f6f8 !important;
}

/* Alternance de sections pour créer du rythme visuel */
[data-theme="light"] section:nth-of-type(odd).bg-gray-900 {
    background-color: #ffffff !important;
}

[data-theme="light"] section:nth-of-type(even).bg-gray-900 {
    background-color: #f4f6f8 !important;
}

[data-theme="light"] section:nth-of-type(odd).bg-gray-800 {
    background-color: #f4f6f8 !important;
}

[data-theme="light"] section:nth-of-type(even).bg-gray-800 {
    background-color: #eef1f5 !important;
}

/* Sections spécifiques - Design cohérent */
[data-theme="light"] section[id="tarifs"],
[data-theme="light"] section[id="tarifs"].bg-gray-800 {
    background-color: #eef1f5 !important;
}

[data-theme="light"] section.py-16.bg-gray-900 {
    background-color: #f4f6f8 !important;
}

[data-theme="light"] section.py-20.bg-gray-800,
[data-theme="light"] section.py-16.bg-gray-800 {
    background-color: #eef1f5 !important;
}

/* Sections avec border-y pour séparer visuellement */
[data-theme="light"] section.bg-gray-900.border-y {
    background-color: #f4f6f8 !important;
    border-color: #d0d7de !important;
}

/* Cards - Design moderne avec élévation */
[data-theme="light"] .bg-gray-900.rounded-xl,
[data-theme="light"] .bg-gray-900.rounded-lg,
[data-theme="light"] .bg-gray-900.rounded-2xl {
    background-color: #ffffff !important;
    border-color: #d0d7de !important;
}

[data-theme="light"] .bg-gray-900.rounded-xl .text-white,
[data-theme="light"] .bg-gray-900.rounded-xl .text-gray-200 {
    color: #0d1117 !important;
}

[data-theme="light"] .bg-gray-900.rounded-xl .text-gray-300,
[data-theme="light"] .bg-gray-900.rounded-xl .text-gray-400 {
    color: #3d444d !important;
}

/* Footer - Séparation claire avec le contenu */
[data-theme="light"] footer {
    background-color: #fafbfc !important;
    border-color: #d0d7de !important;
}

[data-theme="light"] footer .bg-gray-800\/50 {
    background-color: #f4f6f8 !important;
}

/* Cartes et éléments arrondis - Ombres douces et élégantes */
[data-theme="light"] .bg-gray-900.rounded-xl,
[data-theme="light"] .bg-gray-900.rounded-lg,
[data-theme="light"] .bg-gray-900.rounded-2xl,
[data-theme="light"] .bg-gray-800.rounded-xl,
[data-theme="light"] .bg-gray-800.rounded-lg,
[data-theme="light"] .bg-gray-800.rounded-2xl {
    background-color: #ffffff !important;
    border-color: #d0d7de !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 3px 0 rgba(0, 0, 0, 0.02) !important;
}

/* Gradients pour sections hero - Subtils et sophistiqués */
[data-theme="light"] .bg-gradient-to-br.from-gray-900.via-gray-800.to-gray-900 {
    background: linear-gradient(to bottom right, #fafbfc, #f4f6f8, #fafbfc) !important;
}

[data-theme="light"] .bg-gradient-to-br.from-gray-800.via-gray-900.to-gray-800 {
    background: linear-gradient(to bottom right, #f4f6f8, #eef1f5, #f4f6f8) !important;
}

/* Navbar et dropdowns - Lisibilité optimale */
[data-theme="light"] nav a,
[data-theme="light"] nav button {
    color: #0d1117 !important;
}

[data-theme="light"] .text-gray-300.header-primary,
[data-theme="light"] nav .text-gray-300 {
    color: #3d444d !important;
}

/* Dropdowns - Design épuré et moderne */
[data-theme="light"] #dropdown-game-menu,
[data-theme="light"] #dropdown-cloud-menu,
[data-theme="light"] #dropdown-flexicore-menu,
[data-theme="light"] #dropdown-lang-menu {
    background-color: #ffffff !important;
    border-color: #d0d7de !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] #dropdown-game-menu .bg-gray-900,
[data-theme="light"] #dropdown-cloud-menu .bg-gray-900 {
    background-color: #fafbfc !important;
}

[data-theme="light"] #dropdown-game-menu .hover\:bg-gray-700:hover,
[data-theme="light"] #dropdown-cloud-menu .hover\:bg-gray-700:hover {
    background-color: #f4f6f8 !important;
}

/* Menu mobile - Cohérent avec le header */
[data-theme="light"] #mobile-menu {
    background-color: #ffffff !important;
    border-color: #d0d7de !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* SVG et effets visuels - Plus visibles et élégants */
[data-theme="light"] svg circle {
    fill-opacity: 0.08 !important;
}

/* Bouton de changement de thème - Design moderne */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #374151;
    border: 1px solid #4b5563;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #f3f4f6;
    font-size: 18px;
}

.theme-toggle-btn:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .theme-toggle-btn {
    background: #ffffff;
    border-color: #d0d7de;
    color: #0d1117;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: #f4f6f8;
    border-color: #c5cdd5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Tableaux - Design épuré */
[data-theme="light"] table {
    background-color: #ffffff !important;
    border-color: #d0d7de !important;
}

[data-theme="light"] thead th {
    background-color: #f4f6f8 !important;
    color: #0d1117 !important;
    border-color: #d0d7de !important;
}

[data-theme="light"] tbody tr {
    border-color: #d0d7de !important;
}

[data-theme="light"] tbody tr:hover {
    background-color: #fafbfc !important;
}

/* Ombres - Plus profondes et sophistiquées */
[data-theme="light"] .shadow-lg {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .shadow-xl,
[data-theme="light"] .shadow-2xl {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.04) !important;
}

/* Transitions globales */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Fix pour les éléments avec opacité - Cohérence avec la palette */
[data-theme="light"] .bg-gray-900\/90,
[data-theme="light"] .bg-gray-900\/95 {
    background-color: rgba(250, 251, 252, 0.95) !important;
}

[data-theme="light"] .bg-gray-800\/50,
[data-theme="light"] .bg-gray-900\/50 {
    background-color: rgba(244, 246, 248, 0.85) !important;
}

[data-theme="light"] .bg-gray-800\/30 {
    background-color: rgba(244, 246, 248, 0.6) !important;
}

/* Statistiques et cartes de stats - Design cohérent */
[data-theme="light"] .bg-gray-800\/50.rounded-xl {
    background-color: #ffffff !important;
    border-color: #d0d7de !important;
}

/* Cartes d'offres avec fond élégant */
[data-theme="light"] .fivem-offer-card .bg-gray-900\/75,
[data-theme="light"] .bg-gray-900\/75 {
    background-color: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(8px) !important;
}

[data-theme="light"] .group-hover\:bg-gray-900\/60:hover {
    background-color: rgba(244, 246, 248, 0.9) !important;
}

/* === AMÉLIORATIONS SUPPLÉMENTAIRES === */

/* États de focus pour l'accessibilité */
[data-theme="light"] *:focus-visible {
    outline-color: #f43f5e !important;
    outline-offset: 2px;
}

/* Boutons avec états hover améliorés */
[data-theme="light"] button:not(:disabled):hover,
[data-theme="light"] a.inline-block:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* Inputs et formulaires */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background-color: #ffffff !important;
    border-color: #d0d7de !important;
    color: #0d1117 !important;
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
    border-color: #f43f5e !important;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1) !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: #848d97 !important;
}

/* Liens avec meilleur contraste */
[data-theme="light"] a:not(.inline-block):not([class*="bg-"]) {
    color: #e11d48 !important;
}

[data-theme="light"] a:not(.inline-block):not([class*="bg-"]):hover {
    color: #be123c !important;
    text-decoration: underline;
}

/* Amélioration des badges et tags */
[data-theme="light"] .bg-gradient-to-r.from-red-400.to-red-500 {
    background: linear-gradient(to right, #f43f5e, #e11d48) !important;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.25) !important;
}

/* Cartes au hover - effet d'élévation */
[data-theme="light"] .bg-gray-900.rounded-xl:hover,
[data-theme="light"] .bg-gray-800.rounded-xl:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar personnalisée (WebKit) */
[data-theme="light"] ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f4f6f8;
    border-radius: 6px;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #d0d7de;
    border-radius: 6px;
    border: 2px solid #f4f6f8;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #c5cdd5;
}

/* Code et éléments pré-formatés */
[data-theme="light"] code,
[data-theme="light"] pre {
    background-color: #f4f6f8 !important;
    border: 1px solid #d0d7de !important;
    color: #0d1117 !important;
}

/* Sélection de texte personnalisée */
[data-theme="light"] ::selection {
    background-color: rgba(244, 63, 94, 0.2);
    color: #0d1117;
}

[data-theme="light"] ::-moz-selection {
    background-color: rgba(244, 63, 94, 0.2);
    color: #0d1117;
}

/* Amélioration du contraste pour les icônes */
[data-theme="light"] .text-red-400 i,
[data-theme="light"] i.text-red-400 {
    color: #f43f5e !important;
}

/* Dividers et séparateurs */
[data-theme="light"] hr {
    border-color: #d0d7de !important;
}

/* Tooltips et popovers */
[data-theme="light"] [role="tooltip"],
[data-theme="light"] .tooltip {
    background-color: #0d1117 !important;
    color: #ffffff !important;
    border: 1px solid #3d444d !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Amélioration des gradients de couleur primaire */
[data-theme="light"] .bg-red-400 {
    background-color: #f43f5e !important;
}

[data-theme="light"] .bg-red-500 {
    background-color: #e11d48 !important;
}

[data-theme="light"] .hover\:bg-red-300:hover {
    background-color: #fb7185 !important;
}

[data-theme="light"] .hover\:bg-red-400:hover {
    background-color: #f43f5e !important;
}

[data-theme="light"] .hover\:bg-red-500:hover {
    background-color: #e11d48 !important;
}

/* Amélioration de la lisibilité des textes gris */
[data-theme="light"] .text-gray-500 {
    color: #6e7681 !important;
}

[data-theme="light"] .text-gray-600 {
    color: #3d444d !important;
}

/* Modal et overlays */
[data-theme="light"] .modal-backdrop,
[data-theme="light"] [class*="backdrop"] {
    background-color: rgba(13, 17, 23, 0.4) !important;
    backdrop-filter: blur(4px) !important;
}

