html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #1A1A1A;
    color: #F0F0F0;  
}

/* MAIN */

main {
    flex: 1;
    padding: 2rem;
    background-color: rgb(102, 97, 97);
}


/* ===========================================
   GLOBAL.CSS - Wheel of Fight
   Charte graphique VERTE/GRISE/NOIRE
   =========================================== */

/* Variables pour VOTRE charte graphique */
:root {
    --primary-green: #00FF88;
    --error-red: #F88888;
    --neutral-gray: #A0A0A0;
    --dark-gray: #2A2A2A;
    --text-dark: #1A1A1A;
    --black: #000000;
    --white: #FFFFFF;
    
    /* Nuances subtiles pour les hovers */
    --green-hover: #00E67A;
    --red-hover: #F67777;
    --gray-hover: #B5B5B5;
    --dark-gray-hover: #3A3A3A;
    
    /* Espacement cohérent */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    
    /* Border radius moderne mais discret */
    --radius: 10px;
    --radius-lg: 15px;
    
    /* Ombres subtiles */
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.2);
    
    /* Transitions douces */
    --transition: 0.2s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--white);
    background: var(--black);
}

/* ===========================================
   TITRES AMÉLIORÉS
   =========================================== */

[class*="component_title"] {
    display: flex;
    justify-content: center;
    align-items: center;
}

.component_title1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.component_title2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.component_title3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.component_title4 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.component_title5 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.component_title6 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

/* ===========================================
   BOUTONS - VOTRE STYLE AMÉLIORÉ
   =========================================== */

/* Base pour tous les boutons (sauf header) */
[class^="component_btn"]:not(header [class^="component_btn"]) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem;
    margin: 10px;
    border-radius: var(--radius);
    color: var(--text-dark);
    border: none;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-subtle);
}

[class^="component_btn"]:not(header [class^="component_btn"]):hover {
    background-color: var(--green-hover) !important;
    cursor: grab;
    user-select: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

[class^="component_btn"]:not(header [class^="component_btn"]):active {
    transform: translateY(0);
    box-shadow: var(--shadow-subtle);
}

/* Tailles améliorées */
:not(header) [class*="--L"] {
    width: 200px;
    height: 35px;
    font-size: 1.25rem;
}

:not(header) [class*="--M"] {
    width: 180px;
    height: 38px;
    font-size: 1.15rem;
}

:not(header) [class*="--S"] {
    width: 140px;
    height: 16px;
    font-size: 1.1rem;
}

:not(header) [class*="--XS"] {
    width: 140px;
    height: 12px;
    font-size: 0.8rem;
}

/* Couleurs des boutons */
:not(header) [class*="btn-Confirm"] {
    background-color: var(--primary-green);
}

:not(header) [class*="btn-Error"] {
    background-color: var(--error-red);
}

:not(header) [class*="btn-Neutral"] {
    background-color: var(--neutral-gray);
}

/* États spéciaux pour les boutons Error et Neutral */
:not(header) [class*="btn-Error"]:hover {
    background-color: var(--red-hover) !important;
}

:not(header) [class*="btn-Neutral"]:hover {
    background-color: var(--gray-hover) !important;
}

/* ===========================================
   DIVS - VOTRE STYLE AMÉLIORÉ
   =========================================== */

/* Base pour toutes les divs (sauf noStyle) */
[class^="component_div"]:not([class*="noStyle"]) {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Divs d'erreur */
[class^="component_div-error"] {
    color: var(--error-red);
}

[class^="component_div-notif-error"] {
    color: var(--error-red);
    background-color: var(--dark-gray);
    width: 30vw;
    height: 10vh;
    border-radius: var(--radius);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--error-red);
}

/* Divs de succès */
[class^="component_div-success"] {
    color: var(--primary-green);
}

/* Div background principale */
[class^="component_div-bg"] {
    background-color: var(--dark-gray);
    border-radius: var(--radius);
    width: 75rem;
    max-width: 95vw; /* Responsive */
    margin: 0 auto;
    padding: 3rem;
    box-shadow: var(--shadow-medium);
}

/* Nouvelles divs pour la page d'accueil */
.component_div-header {
    background-color: var(--dark-gray);
    border-bottom: 2px solid var(--primary-green);
    box-shadow: var(--shadow-medium);
}

.component_div-hero {
    background: var(--black);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-lg);
}

.component_div-authContainer {
    background-color: var(--dark-gray);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 2px solid var(--primary-green);
    box-shadow: var(--shadow-medium);
    min-height: auto; /* Permet l'adaptation en hauteur */
    transition: all var(--transition);
}

.component_div-authTabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
}

.component_div-formsContainer {
    position: relative;
}

.component_div-formContainer {
    transition: opacity var(--transition);
}

.component_div-formContainer:not(.active) {
    display: none;
}

.component_div-formGroup {
    margin-bottom: var(--spacing-md);
}

.component_div-card {
    background-color: var(--dark-gray);
    border-radius: var(--radius);
    padding: var(--spacing-md);
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: var(--shadow-subtle);
    transition: all var(--transition);
}

.component_div-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.component_div-featuresGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.component_div-featureCard {
    background-color: var(--dark-gray);
    border-radius: var(--radius);
    padding: var(--spacing-md);
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: all var(--transition);
}

.component_div-featureCard:hover {
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Utilitaires */
.component_div-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.component_div-flex {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.component_div-grid {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===========================================
   INPUTS AVEC VOTRE STYLE
   =========================================== */

.input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--neutral-gray);
    border-radius: var(--radius);
    background-color: var(--dark-gray);
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition);
    outline: none;
}

.input::placeholder {
    color: var(--neutral-gray);
}

.input:focus {
    border-color: var(--primary-green);
    background-color: var(--dark-gray-hover);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.input:hover:not(:focus) {
    border-color: var(--green-hover);
}


/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
    .component_title1 {
        font-size: 2rem;
    }
    
    .component_title2 {
        font-size: 1.5rem;
    }
    
    [class^="component_div-bg"] {
        width: 95vw;
        padding: 2rem;
    }
    
    [class^="component_div-notif-error"] {
        width: 90vw;
        height: 8vh;
    }
    
    .component_div-flex {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .component_div-grid,
    .component_div-featuresGrid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .component_div-authContainer {
        padding: var(--spacing-md);
    }
    
    .component_div-authTabs {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ===========================================
   AMÉLIORATIONS FINALES
   =========================================== */

/* Focus visible pour l'accessibilité */
:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Sélection de texte */
::selection {
    background: var(--primary-green);
    color: var(--text-dark);
}

/* État désactivé */
[class*="component_btn"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Classes utilitaires */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.visible { display: block; }

.w-full { width: 100%; }

.mt-sm { margin-top: var(--spacing-sm); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mb-md { margin-bottom: var(--spacing-md); }


/* CSS RELATIF AU header  */

/* ===========================================
   HEADER MODERNE AMÉLIORÉ - CORRECTION
   =========================================== */

header {
    display: flex;
    justify-content: center;
    flex-direction: row;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #475569;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
    gap: 15px;
    min-height: 80px;
    align-items: center;
}

/* Effet de fond animé subtil */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(96, 165, 250, 0.08), 
        transparent
    );
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* CORRECTION: Container des boutons */
#headerContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    /* SUPPRESSION des propriétés qui cassaient l'affichage */
}

/* ===========================================
   BOUTONS HEADER - RETOUR AUX SPECS ORIGINALES
   =========================================== */

header [class^="component_btn"] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.25rem;
    margin: 5px;
    border-radius: 12px;
    color: #f1f5f9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
    white-space: nowrap; /* Empêche le retour à la ligne */
}

/* CORRECTION: Effet hover sans clignotement */
header [class^="component_btn"]:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 255, 136, 0.3);
    border-color: #00FF88;
    background: linear-gradient(135deg, #00FF88 0%, #00cc6a 100%);
    color: #1a1a1a;
    z-index: 10; /* IMPORTANT: Évite les conflits de hover */
}

header [class^="component_btn"]:active {
    transform: translateY(-1px) scale(1.02);
    transition: transform 0.1s;
}

/* ===========================================
   TAILLES ORIGINALES PRÉSERVÉES
   =========================================== */

header [class*="--L"] {
    width: 220px;
    height: 45px;
    font-size: 1.3rem;
}

header [class*="--M"] {
    width: 180px;
    height: 40px;
    font-size: 1.2rem;
}

header [class*="--S"] {
    width: 160px;
    height: 35px;
    font-size: 1.1rem;
}

header [class*="--XS"] {
    width: 140px;
    height: 30px;
    font-size: 0.9rem;
}

/* SOLUTION MODE HISTOIRE: Réduire uniquement la taille de police */
header #story {
    font-size: 0.95rem !important; /* Plus petit pour éviter le wrap */
    letter-spacing: 0.2px;
}

/* ===========================================
   STYLES PAR VARIANTE - ORIGINAUX
   =========================================== */

header [class*="btn-Confirm"] {
    background: linear-gradient(135deg, #00FF88 0%, #00cc6a 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

header [class*="btn-Confirm"]:hover {
    background: linear-gradient(135deg, #00cc6a 0%, #00a855 100%);
    transform: translateY(-4px) scale(1.08);
}

header [class*="btn-Error"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

header [class*="btn-Error"]:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #ef4444;
    transform: translateY(-4px) scale(1.08);
}

header [class*="btn-Neutral"] {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #f9fafb;
}

header [class*="btn-Neutral"]:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    border-color: #9ca3af;
}

/* ===========================================
   BOUTONS SPÉCIAUX
   =========================================== */

/* Panel Admin avec couronne */
header [class^="component_btn"]#admin {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    position: relative;
}

header [class^="component_btn"]#admin::after {
    content: '👑';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 16px;
    animation: bounce 1s infinite;
    z-index: 20;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Bouton Déconnexion */
header [class^="component_btn"]#logout {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1a1a1a;
}

header [class^="component_btn"]#logout:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* CORRECTION: Bouton Accueil - Style spécial */
header [class^="component_btn"]#home {
    background: linear-gradient(135deg, #00FF88 0%, #00cc6a 100%);
    color: #1a1a1a;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(0, 255, 136, 0.5); }
}

/* ===========================================
   RESPONSIVE SIMPLIFIÉ
   =========================================== */

@media (max-width: 1024px) {
    header {
        padding: 1rem;
        gap: 10px;
    }
    
    header [class*="--L"] { width: 180px; height: 40px; font-size: 1.1rem; }
    header [class*="--M"] { width: 160px; height: 36px; font-size: 1rem; }
    header [class*="--S"] { width: 140px; height: 32px; font-size: 0.95rem; }
    header [class*="--XS"] { width: 120px; height: 28px; font-size: 0.8rem; }
    
    header #story {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem 0.5rem;
        gap: 8px;
    }
    
    header [class^="component_btn"] {
        width: 90%;
        max-width: 280px;
        margin: 3px 0;
    }
    
    header #story {
        font-size: 1.1rem !important; /* Normal en mobile */
    }
}

/* ===========================================
   CORRECTION: Supprimer les effets problématiques
   =========================================== */

/* Suppression de l'effet de brillance qui causait des problèmes */
header [class^="component_btn"]::before {
    display: none;
}

/* Indicateur de page active */
header [class^="component_btn"].active {
    background: linear-gradient(135deg, #00FF88 0%, #00cc6a 100%);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}




/* CSS RELATIF AU FOOTER */


/* Container principal du footer */
#footerMainDiv {
    width: 100%;
    padding: 20px 20px 15px;
    background: linear-gradient(135deg, #0c1220 0%, #1e293b 30%, #334155 100%);
    border-top: 2px solid #475569;
    position: relative;

}

/* Effet de bordure magique en haut */
#footerMainDiv::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b5cf6, #06b6d4, #10b981, transparent);
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Card du personnage actuel */
#footerCardContainer {
    display: flex;
    max-width: 600px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 2px solid rgba(71, 85, 105, 0.6);
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 30px;
    color: #f8fafc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.2s ease;
}

#footerCardContainer:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}



/* Partie stats à gauche */
#footerCardStats {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

/* Nom du personnage */
#footerCardPersoName {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    color: #f8fafc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

/* Lignes de stats */
.footerCardStatLine {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 6px;
    border-left: 2px solid #64748b;
    transition: all 0.2s ease;
}

.footerCardStatLine:hover {
    background: rgba(15, 23, 42, 0.6);
    border-left-color: #8b5cf6;
    transform: translateX(3px);
}


.footerCardStatLabel {
    font-weight: 600;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.footerCardStatValue {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
}

/* Styles spéciaux pour certaines stats */
.footerCardStatLine:nth-child(2) { border-left-color: #10b981; } /* Niveau */
.footerCardStatLine:nth-child(2) .footerCardStatValue { color: #34d399; }

.footerCardStatLine:nth-child(4) { border-left-color: #f59e0b; } /* Puissance */
.footerCardStatLine:nth-child(4) .footerCardStatValue { color: #fbbf24; }

/* Image du personnage */
#footerCardImageContainer {
    width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    position: relative;
}

#footerCardImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* STYLES POUR LES NOUVELLES CLASSES TOOLBOX */

/* Items d'information avec texte et valeur */
.footer-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 6px 0;
}

/* Texte simple d'information */
.footer-info-text {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 6px 0;
}

/* Valeur mise en évidence */
.highlight {
    color: #60a5fa;
    font-weight: 600;
}

/* Sections d'info */
.footer-info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(5px);
    transition: transform 0.2s ease;
}

.footer-info-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.6);
}

.footer-info-card h3 {
    color: #8b5cf6;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* SECTION COPYRIGHT */
.footer-copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    color: #94a3b8;
    font-size: 0.85rem;
}

.footer-copyright > div {
    margin: 4px 0;
}

/* Version compacte pour petits écrans */
@media (max-width: 768px) {
    #footerMainDiv {
        padding: 20px 15px 15px;
    }
    
    #footerCardContainer {
        max-width: 100%;
        flex-direction: column;
        text-align: center;
    }
    
    #footerCardImageContainer {
        width: 100%;
        height: 120px;
        order: -1;
    }
    
    #footerCardStats {
        padding: 15px;
    }
    
    .footer-info-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-info-card {
        padding: 15px;
    }
}


/* CSS RELATIF AUX FORMULAIRES (connexion/inscription) */

.label {
    display: flex;
    justify-content: center;
}

.input {
    border-radius: 10px;
    height: 30px;
}

