:root {}

html { scroll-behavior: smooth; }

/* Style principal de ChessBet */

/* Variables CSS */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f1c40f;
    --danger-color: #c0392b;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-muted: #7f8c8d;
    --border-radius: 12px;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Nouvelles variables pour le thème sombre marbre/acier */
    --marble-dark: #1a1a1a;
    --marble-darker: #0f0f0f;
    --steel-gray: #2a2a2a;
    --steel-light: #3a3a3a;
    --copper-primary: #b87333;
    --copper-secondary: #cd7f32;
    --copper-accent: #daa520;
    --copper-glow: #ffd700;
    --glass-bg: rgba(26, 26, 26, 0.4);
    --glass-border: rgba(184, 115, 51, 0.2);
    --glass-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    --glass-blur: blur(8px);
}

/* Styles généraux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background: url('../img/marble-bg.jpg') center/cover fixed;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* ===== STYLES D'AUTHENTIFICATION ===== */
.auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* ===== NAVIGATION AUTHENTIFICATION ===== */
.auth-navbar {
    background: rgba(26, 26, 26, 0.85) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(184, 115, 51, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.auth-navbar:hover {
    background: rgba(26, 26, 26, 0.9) !important;
    border-bottom-color: rgba(184, 115, 51, 0.4);
}

.auth-navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.8rem;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-navbar-brand:hover {
    color: var(--copper-accent) !important;
    transform: translateY(-1px);
}

.auth-navbar-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.auth-navbar-brand:hover .auth-navbar-logo {
    filter: drop-shadow(0 4px 8px rgba(184, 115, 51, 0.4));
    transform: scale(1.05);
}

.auth-navbar-brand-text {
    background: linear-gradient(135deg, #b87333 0%, #cd7f32 50%, #daa520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    position: relative;
    filter: contrast(1.1) saturate(0.9);
}

.auth-navbar-brand-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(184, 115, 51, 0.1) 0%, rgba(205, 127, 50, 0.05) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    filter: blur(0.5px);
}

.auth-navbar-login-btn,
.auth-navbar-register-btn {
    position: relative;
    padding: 0.6rem 1.8rem !important;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
    margin: 0 0.5rem;
}

.auth-navbar-login-btn {
    background: rgba(184, 115, 51, 0.2);
    border: 2px solid rgba(184, 115, 51, 0.5);
    color: var(--copper-accent) !important;
}

.auth-navbar-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(184, 115, 51, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.auth-navbar-login-btn:hover {
    background: rgba(184, 115, 51, 0.3);
    border-color: var(--copper-accent);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.3);
}

.auth-navbar-login-btn:hover::before {
    left: 100%;
}

.auth-navbar-register-btn {
    background: linear-gradient(135deg, var(--copper-primary), var(--copper-accent));
    border: 2px solid var(--copper-accent);
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(184, 115, 51, 0.3);
}

.auth-navbar-register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.auth-navbar-register-btn:hover {
    background: linear-gradient(135deg, var(--copper-accent), var(--copper-primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 115, 51, 0.4);
}

.auth-navbar-register-btn:hover::before {
    left: 100%;
}

.auth-navbar .navbar-toggler {
    border: 1px solid rgba(184, 115, 51, 0.3);
    border-radius: 8px;
}

.auth-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.2);
}

.auth-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28184, 115, 51, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive Auth Navigation */
@media (max-width: 991px) {
    .auth-navbar-login-btn,
    .auth-navbar-register-btn {
        margin: 0.5rem 0;
        text-align: center;
        width: 100%;
    }
    
    .auth-navbar .navbar-nav {
        padding: 1rem 0;
    }
}

@media (max-width: 768px) {
    .auth-navbar-brand-text {
        font-size: 1.5rem;
    }
    
    .auth-navbar-logo {
        width: 50px;
        height: 50px;
    }
    
    .auth-navbar {
        padding: 0.75rem 0;
    }
}

@media (max-width: 480px) {
    .auth-navbar-brand-text {
        font-size: 1.3rem;
    }
    
    .auth-navbar-logo {
        width: 45px;
        height: 45px;
    }
    
    .auth-navbar-login-btn,
    .auth-navbar-register-btn {
        padding: 0.5rem 1.2rem !important;
        font-size: 0.9rem;
    }
}

.auth-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    margin: 2rem auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-logo {
    width: 107px;
    height: 107px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.auth-logo:hover {
    transform: scale(1.05);
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.auth-content {
    margin-bottom: 2rem;
}

/* ===== FORMULAIRES D'AUTHENTIFICATION ===== */
.auth-form-container {
    width: 100%;
}

.auth-form-container h2 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(184, 115, 51, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.form-control:focus {
    outline: none;
    border-color: var(--copper-accent);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.15);
    background: rgba(255, 255, 255, 1);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-control.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .form-control {
    padding-right: 3rem;
}

.input-group-text {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.input-group-text:hover {
    color: var(--primary-color);
}

/* ===== BOUTONS ===== */
.btn {
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    min-height: 56px;
}

.btn-block {
    width: 100%;
}

/* ===== MESSAGES D'ALERTE HARMONISÉS ===== */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.25s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
    backdrop-filter: blur(8px);
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    backdrop-filter: blur(8px);
}

.alert-warning {
    background: rgba(241, 196, 15, 0.1);
    color: #f39c12;
    border: 1px solid rgba(241, 196, 15, 0.3);
    backdrop-filter: blur(8px);
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
    backdrop-filter: blur(8px);
}

/* ===== LIENS ===== */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.auth-links a:hover {
    color: var(--accent-color);
}

.auth-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.auth-links a:hover::after {
    width: 100%;
}

/* ===== FOOTER D'AUTHENTIFICATION ===== */
.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.auth-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--primary-color);
}

/* ===== VALIDATION DES FORMULAIRES ===== */
.invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    animation: fadeIn 0.3s ease-out;
}

.valid-feedback {
    display: block;
    color: var(--success-color);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ===== LOADING STATES ===== */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .auth-title {
        font-size: 2rem;
    }
    
    .auth-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .form-control {
        padding: 0.625rem 0.875rem;
    }
}

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus {
    outline: 3px solid rgba(44, 62, 80, 0.5);
    outline-offset: 2px;
}

/* ===== MODE SOMBRE ===== */
@media (prefers-color-scheme: dark) {
    .auth-card {
        background: rgba(44, 44, 44, 0.95);
        color: var(--light-color);
    }
    
    .form-control {
        background: rgba(60, 60, 60, 0.9);
        border-color: #555;
        color: var(--light-color);
    }
    
    .form-control:focus {
        background: rgba(80, 80, 80, 0.9);
    }
    
    .btn-secondary {
        background: rgba(60, 60, 60, 0.9);
        color: var(--light-color);
    }
}

/* ===== ANIMATIONS SUPPLÉMENTAIRES ===== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== STYLES DE LA LANDING PAGE ===== */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 0;
}

/* Overlays pour lisibilité sur le fond */
.hero-section .hero-background,
.features-section .features-background,
.how-it-works-section .how-it-works-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-section .hero-overlay,
.features-section .features-overlay,
.how-it-works-section .how-it-works-overlay {
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1140px; /* aligné sur container lg */
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Conteneurs en verre harmonisés avec le dashboard */
.glassmorphism-container {
    background: rgba(26, 26, 26, 0.86);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(184, 115, 51, 0.22);
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(184,115,51,0.08);
    padding: 1.5rem;
}

.glassmorphism-card {
    background: rgba(26, 26, 26, 0.82);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(184, 115, 51, 0.18);
    border-radius: 16px;
    box-shadow: none;
}

/* Hero glassmorphism harmonisé (angle 90°, contour cuivre, assombrissement) */
.hero-content.glassmorphism-container {
    background: rgba(26, 26, 26, 0.88);
    backdrop-filter: blur(14px);
    border: 2px solid rgba(184, 115, 51, 0.35);
    border-radius: 0; /* angles droits */
    padding: 2.5rem 2rem;
}

/* Logo et branding */
.hero-logo-container {
    margin-bottom: 2rem;
}

.hero-logo {
    width: 133px;
    height: 133px;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    transition: opacity 0.2s ease;
}

.hero-logo:hover {
    opacity: 0.9;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-brand {
    background: linear-gradient(135deg, #b87333 0%, #cd7f32 50%, #daa520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    position: relative;
    filter: contrast(1.1) saturate(0.9);
}

.hero-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(184, 115, 51, 0.1) 0%, rgba(205, 127, 50, 0.05) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    filter: blur(0.5px);
}

.hero-tagline {
    font-size: 1.25rem;
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.98;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* Boutons d'action */
.hero-actions {
    margin: 1.5rem 0 2rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-btn:hover::before {
    left: 100%;
}

/* Bouton principal */
.hero-btn-primary {
    background: linear-gradient(135deg, var(--copper-primary), var(--copper-accent));
    color: white;
    border-color: var(--copper-primary);
    box-shadow: 0 8px 25px rgba(184, 115, 51, 0.3);
}

.hero-btn-primary:hover {
    background: linear-gradient(135deg, var(--copper-accent), var(--copper-primary));
    color: white;
    transform: translateY(-3px);
    box-shadow: none;
}

/* Bouton secondaire */
.hero-btn-secondary {
    background: var(--glass-bg);
    color: var(--copper-secondary);
    border-color: var(--copper-secondary);
    backdrop-filter: var(--glass-blur);
}

.hero-btn-secondary:hover {
    background: var(--copper-secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(184, 115, 51, 0.3);
}

/* Liste des points clés sous le CTA */
.hero-highlights {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 1rem 1.5rem;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.hero-highlights li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.hero-highlights i { color: var(--copper-accent); }

@media (max-width: 991.98px) {
    .hero-highlights { grid-template-columns: repeat(2, auto); }
}

@media (max-width: 575.98px) {
    .hero-highlights { grid-template-columns: 1fr; }
}

/* Statistiques */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(184, 115, 51, 0.2);
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    min-width: 120px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--glass-shadow);
    border-color: var(--copper-secondary);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--copper-accent);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Features Section */
.features-section {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.features-content {
    position: relative;
    z-index: 2;
}

/* Wrapper pour un seul bloc glassmorphism des features */
.features-wrapper.glassmorphism-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: rgba(26, 26, 26, 0.88);
    backdrop-filter: blur(14px);
    border: 2px solid rgba(184, 115, 51, 0.35);
    border-radius: 0;
    box-shadow: none;
}

.section-title {
    color: var(--copper-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: rgba(26, 26, 26, 0.82);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(184, 115, 51, 0.18);
    border-radius: 0;
    box-shadow: none;
    transition: var(--transition);
    height: 100%;
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: none;
    border-color: var(--copper-secondary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--copper-primary), var(--copper-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(184, 115, 51, 0.3);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--copper-secondary);
    margin-bottom: 1rem;
    min-height: 3.5em;
    line-height: 1.25;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-description {
    color: rgba(255, 255, 255, 0.96);
    line-height: 1.65;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    text-align: justify;
}

/* How it works Section */
.how-it-works-section {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.how-it-works-content {
    position: relative;
    z-index: 2;
}

/* Wrapper pour un seul bloc glassmorphism du how-it-works */
.howit-wrapper.glassmorphism-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: rgba(26, 26, 26, 0.88);
    backdrop-filter: blur(14px);
    border: 2px solid rgba(184, 115, 51, 0.35);
    border-radius: 0;
    box-shadow: none;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.82);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(184, 115, 51, 0.18);
    border-radius: 0;
    box-shadow: none;
    transition: var(--transition);
    height: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
    border-color: var(--copper-secondary);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--copper-accent), var(--copper-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(184, 115, 51, 0.3);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--copper-secondary);
    margin-bottom: 1rem;
}

.step-description {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 44ch;
    margin-left: auto;
    margin-right: auto;
    min-height: 4.8em; /* hauteur unifiée sur 3 colonnes */
    text-align: justify;
}

.step-icon {
    font-size: 2rem;
    color: var(--copper-accent);
    opacity: 0.7;
    margin-top: auto;
}

/* Uniformiser la hauteur des cartes et aligner horizontalement les textes */
.howit-wrapper .row.g-4 > [class^="col-"],
.howit-wrapper .row.g-4 > [class*=" col-"] {
    display: flex;
}

.howit-wrapper .row.g-4 > [class^="col-"] .step-card,
.howit-wrapper .row.g-4 > [class*=" col-"] .step-card {
    width: 100%;
}

.step-title {
    line-height: 1.25;
    min-height: 2.6em; /* aligne les titres sur 2 lignes max */
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER GLASSMORPHISME ===== */

/* Footer principal */
.glassmorphism-footer {
    position: relative;
    background: var(--marble-dark);
    color: var(--light-color);
    margin-top: 0; /* Suppression de la marge supérieure */
    overflow: hidden;
}





.footer-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0 1rem;
}

/* Logo et branding */
.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    transition: var(--transition);
}

.footer-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--copper-primary), var(--copper-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-description {
    font-size: 1.1rem;
    color: var(--copper-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Sections du footer */
.footer-section {
    margin-bottom: 2rem;
}

.footer-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--copper-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-icon {
    color: var(--copper-accent);
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: var(--copper-accent);
    transform: translateX(5px);
}

.footer-link i {
    color: var(--copper-secondary);
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-link:hover i {
    color: var(--copper-glow);
}

/* Réseaux sociaux */
.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--copper-secondary);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--glass-shadow);
}

.social-link:hover {
    background: var(--copper-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(184, 115, 51, 0.4);
}

/* Séparateur */
.footer-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--copper-secondary), transparent);
}

.divider-icon {
    color: var(--copper-accent);
    font-size: 1.2rem;
}

/* Section inférieure */
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(184, 115, 51, 0.2);
}

.footer-copyright {
    margin: 0;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

.footer-version {
    color: var(--copper-secondary) !important;
    font-size: 0.75rem !important;
    font-style: italic;
}

.footer-legal-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.legal-link:hover {
    color: var(--copper-accent);
}

.separator {
    color: var(--copper-secondary);
    font-size: 0.75rem;
}

/* Responsive pour le footer */
@media (max-width: 768px) {
    .footer-content {
        padding: 2rem 0 1rem;
    }
    
    .footer-legal-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section-title {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-title {
        font-size: 1.5rem;
    }
    
    .footer-social {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .footer-legal-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .separator {
        display: none;
    }
}

/* ===== STYLES GÉNÉRAUX (GARDER POUR COMPATIBILITÉ) ===== */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Classes utilitaires */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }

/* Responsive pour la landing page */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
        padding: 2rem 0 !important;
        overflow: visible !important;
        display: block !important;
    }
    
    .hero-content {
        padding: 1.5rem 1rem !important;
        display: block !important;
        position: relative !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-btn {
        min-width: 250px;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-item {
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-logo {
        width: 107px;
        height: 107px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        width: 100%;
        max-width: 200px;
    }
    
    .hero-btn {
        min-width: 200px;
        padding: 0.875rem 2rem;
    }
}

/* ===== CORRECTIONS SPÉCIFIQUES POUR MOBILE ANDROID ===== */
/* Correction pour éviter la duplication du logo sur mobile Android (Opera, Chrome, etc.) */
@media (max-width: 768px) {
    /* Empêcher la duplication du logo */
    .hero-logo-container {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        max-width: 133px !important;
        margin: 0 auto 2rem !important;
        height: auto !important;
    }
    
    .hero-logo-container::before,
    .hero-logo-container::after {
        content: none !important;
        display: none !important;
    }
    
    .hero-logo {
        display: block !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        position: relative !important;
        transform: none !important;
    }
    
    /* Empêcher la duplication de la section hero */
    .hero-section {
        position: relative !important;
        display: block !important;
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 2rem 0 !important;
    }
    
    .hero-section::before,
    .hero-section::after {
        content: none !important;
        display: none !important;
    }
    
    /* S'assurer que le contenu hero n'est pas dupliqué */
    .hero-content {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 1.5rem 1rem !important;
        transform: none !important;
    }
    
    .hero-content::before,
    .hero-content::after {
        content: none !important;
        display: none !important;
    }
    
    /* Empêcher la duplication du background */
    .hero-background {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 0 !important;
    }
    
    .hero-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 1 !important;
    }
}

/* Corrections spécifiques pour tous les navigateurs mobiles Android */
@media (max-width: 768px) and (orientation: portrait) {
    .hero-section {
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
        padding: 2rem 0 !important;
    }
    
    .hero-content {
        display: block !important;
        position: relative !important;
        transform: none !important;
        padding: 1.5rem 1rem !important;
    }
    
    .hero-logo-container {
        display: block !important;
        position: relative !important;
        transform: none !important;
        margin: 0 auto 1.5rem !important;
    }
    
    .hero-logo {
        display: block !important;
        position: relative !important;
        transform: none !important;
        max-width: 100% !important;
        height: auto !important;
        width: 100px !important;
        height: 100px !important;
    }
}

/* Corrections pour les petits écrans mobiles */
@media (max-width: 480px) {
    .hero-section {
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
        padding: 1rem 0 !important;
        overflow: visible !important;
        display: block !important;
    }
    
    .hero-content {
        padding: 1rem 0.75rem !important;
        display: block !important;
        position: relative !important;
    }
    
    .hero-logo-container {
        margin-bottom: 1.5rem !important;
        display: block !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100px !important;
    }
    
    .hero-logo {
        width: 100px !important;
        height: 100px !important;
        max-width: 100px !important;
        display: block !important;
        margin: 0 auto !important;
        position: relative !important;
        transform: none !important;
    }
}

/* ===== FOOTER AUTHENTIFICATION ===== */

.glassmorphism-auth-footer {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    margin-top: 2rem;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
}

.auth-footer-content {
    text-align: center;
}

.auth-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.auth-footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 6px;
    background: rgba(184, 115, 51, 0.1);
    border: 1px solid transparent;
}

.auth-footer-link:hover {
    color: var(--copper-accent);
    background: rgba(184, 115, 51, 0.2);
    border-color: var(--copper-secondary);
    transform: translateY(-2px);
}

.auth-footer-link i {
    color: var(--copper-secondary);
    font-size: 0.75rem;
    transition: var(--transition);
}

.auth-footer-link:hover i {
    color: var(--copper-glow);
}

.auth-footer-separator {
    color: var(--copper-secondary);
    font-size: 0.75rem;
    opacity: 0.6;
}

.auth-footer-copyright {
    margin: 0;
}

.auth-footer-copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
}

/* Responsive pour le footer auth */
@media (max-width: 480px) {
    .auth-footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .auth-footer-separator {
        display: none;
    }
    
    .auth-footer-link {
        width: 100%;
        justify-content: center;
    }
}

/* ===== NAVIGATION GLASSMORPHISM ===== */
.glassmorphism-navbar {
    background: rgba(26, 26, 26, 0.88) !important;
    backdrop-filter: blur(14px);
    border-bottom: 2px solid rgba(184, 115, 51, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Réduire le gap après la navbar vers le Hero */
/* Espace vertical homogène entre les blocs de la landing */
.hero-section,
.features-section,
.how-it-works-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    scroll-margin-top: 80px; /* compense la navbar sticky */
}

@media (max-width: 768px) {
    .hero-section,
    .features-section,
    .how-it-works-section {
        scroll-margin-top: 66px;
    }
}

.glassmorphism-navbar:hover {
    background: rgba(26, 26, 26, 0.9) !important;
    border-bottom-color: rgba(184, 115, 51, 0.5);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.8rem;
    color: #fff !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.navbar-brand:hover {
    color: var(--copper-accent) !important;
}

.navbar-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    transition: opacity 0.2s ease;
}

.navbar-brand:hover .navbar-logo {
    opacity: 0.9;
}

.navbar-brand-text {
    background: linear-gradient(135deg, #b87333 0%, #cd7f32 50%, #daa520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    position: relative;
    filter: contrast(1.1) saturate(0.9);
}

.navbar-slogan {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: rgba(255,255,255,0.85);
    margin-left: 0.75rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(184,115,51,0.35);
}

.navbar-brand-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(184, 115, 51, 0.1) 0%, rgba(205, 127, 50, 0.05) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    filter: blur(0.5px);
}

.navbar-login-btn,
.navbar-register-btn {
    position: relative;
    padding: 0.6rem 1.8rem !important;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
    margin: 0 0.5rem;
}

.navbar-login-btn {
    background: rgba(184, 115, 51, 0.15);
    border: 2px solid rgba(184, 115, 51, 0.35);
    color: rgba(255,255,255,0.9) !important;
}

.navbar-login-btn:hover {
    background: rgba(184, 115, 51, 0.25);
    border-color: var(--copper-accent);
    color: #fff !important;
}

.navbar-register-btn {
    background: linear-gradient(135deg, var(--copper-primary), var(--copper-accent));
    border: 2px solid rgba(184, 115, 51, 0.35);
    color: #fff !important;
    box-shadow: 0 0 0 1px rgba(184,115,51,0.1) inset;
}

.navbar-register-btn:hover {
    background: linear-gradient(135deg, var(--copper-accent), var(--copper-primary));
}

.navbar-toggler {
    border: 1px solid rgba(184, 115, 51, 0.3);
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28184, 115, 51, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== DROPDOWN MENU GLASSMORPHISM ===== */
.dropdown-menu {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(184, 115, 51, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: #fff;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
    width: calc(100% - 1rem);
}

.dropdown-item:hover {
    background: rgba(184, 115, 51, 0.2);
    color: var(--copper-accent);
    transform: translateX(5px);
}

.dropdown-item i {
    color: var(--copper-accent);
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    border-color: rgba(184, 115, 51, 0.3);
    margin: 0.5rem 1rem;
}

/* ===== RESPONSIVE NAVIGATION ===== */
@media (max-width: 991px) {
    .navbar-login-btn,
    .navbar-register-btn {
        margin: 0.5rem 0;
        text-align: center;
        width: 100%;
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .dropdown-menu {
        background: rgba(26, 26, 26, 0.98);
        border: none;
        box-shadow: none;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .navbar-brand-text {
        font-size: 1.5rem;
    }
    
    .navbar-logo {
        width: 50px;
        height: 50px;
    }
    
    .glassmorphism-navbar {
        padding: 0.75rem 0;
    }
}

@media (max-width: 480px) {
    .navbar-brand-text {
        font-size: 1.3rem;
    }
    
    .navbar-logo {
        width: 45px;
        height: 45px;
    }
    
    .navbar-login-btn,
    .navbar-register-btn {
        padding: 0.5rem 1.2rem !important;
        font-size: 0.9rem;
    }
}

/* ===== DASHBOARD SPECIFIC STYLES ===== */
.dashboard-navbar {
    background: rgba(26, 26, 26, 0.9) !important;
    border-bottom: 2px solid rgba(184, 115, 51, 0.4);
}

.dashboard-navbar .navbar-brand {
    font-size: 1.4rem;
}

.dashboard-navbar .dropdown-menu {
    min-width: 200px;
}

.dashboard-navbar .dropdown-item {
    font-size: 0.95rem;
}

/* ===== ANIMATIONS ===== */
@keyframes navbarGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(184, 115, 51, 0.2);
    }
}

.glassmorphism-navbar.scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    animation: navbarGlow 3s ease-in-out infinite;
}

/* ===== ACCESSIBILITY ===== */
.navbar-brand:focus,
.navbar-login-btn:focus,
.navbar-register-btn:focus,
.dropdown-item:focus {
    outline: 2px solid var(--copper-accent);
    outline-offset: 2px;
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .glassmorphism-navbar {
        background: rgba(15, 15, 15, 0.9) !important;
    }
    
    .dropdown-menu {
        background: rgba(15, 15, 15, 0.98);
    }
}

/* ===== STYLES POUR LES ICÔNES DE NAVIGATION ===== */

/* Boutons d'action de la navbar */
.navbar-action-btn {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.navbar-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    transform: translateY(-1px);
}

.navbar-action-btn:active {
    transform: translateY(0);
}

.navbar-action-btn i {
    font-size: 1.1rem;
}

/* Badge de messages */
.message-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ===== STYLES POUR LES MODALES ===== */

/* Overlay des modales */
.navbar-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Conteneur des modales */
.navbar-modal-container {
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease;
}

.navbar-modal-large {
    max-width: 700px;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* En-tête des modales */
.navbar-modal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-modal-header h3 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-navbar-modal {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-navbar-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

/* Corps des modales */
.navbar-modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Styles pour les formulaires dans les modales */
.navbar-modal-body .form-label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.navbar-modal-body .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.navbar-modal-body .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(184, 115, 51, 0.2);
    color: var(--text-color);
}

.navbar-modal-body .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.navbar-modal-body .form-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ===== STYLES POUR LA MESSAGERIE ===== */

/* Onglets */
.nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.nav-tabs .nav-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1rem;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

.nav-tabs .nav-link.active {
    color: var(--accent-color);
    background: rgba(184, 115, 51, 0.1);
    border-bottom: 2px solid var(--accent-color);
}

/* Liste des amis */
.friends-online-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.friend-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.friend-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.friend-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
}

.friend-info {
    flex: 1;
}

.friend-name {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.friend-status {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

.friend-status.online {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.friend-status.offline {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

/* Historique des conversations */
.conversation-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.conversation-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.conversation-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.conversation-participants {
    color: var(--text-color);
    font-weight: 600;
}

.conversation-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.conversation-preview {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .navbar-action-btn {
        padding: 0.4rem 0.6rem;
        min-width: 36px;
        height: 36px;
    }
    
    .navbar-action-btn i {
        font-size: 1rem;
    }
    
    .navbar-modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .navbar-modal-header {
        padding: 1rem;
    }
    
    .navbar-modal-body {
        padding: 1rem;
    }
    
    .friend-item {
        padding: 0.75rem;
    }
    
    .friend-avatar {
        width: 35px;
        height: 35px;
        margin-right: 0.75rem;
    }
}

@media (max-width: 480px) {
    .navbar-action-btn {
        padding: 0.3rem 0.5rem;
        min-width: 32px;
        height: 32px;
        margin: 0 0.1rem;
    }
    
    .navbar-modal-container {
        width: 98%;
        margin: 0.5rem;
    }
    
    .navbar-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}


    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(184, 115, 51, 0.2);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(184, 115, 51, 0.1);
    border-color: #b87333;
    transform: translateX(5px);
}

.notification-item.unread {
    border-left: 4px solid #b87333;
    background: rgba(184, 115, 51, 0.1);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b87333 0%, #d4af37 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.notification-message {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-time {
    color: #888;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Liste des amis */
.friends-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.friend-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(184, 115, 51, 0.2);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.friend-item:hover {
    background: rgba(184, 115, 51, 0.1);
    border-color: #b87333;
    transform: translateX(5px);
}

.friend-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b87333 0%, #d4af37 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    position: relative;
}

.friend-avatar.online::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    border: 2px solid #fff;
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.friend-status {
    color: #ccc;
    font-size: 0.9rem;
}

.friend-status.online {
    color: #28a745;
}

.friend-actions {
    display: flex;
    gap: 0.5rem;
}

.friend-action-btn {
    background: linear-gradient(135deg, #b87333 0%, #d4af37 100%);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.friend-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.4);
}

/* Formulaire d'ajout d'ami */
.add-friend-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #fff;
    font-weight: 500;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(184, 115, 51, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    color: #fff;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #b87333;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.2);
}

.form-control::placeholder {
    color: #888;
}

.add-friend-btn {
    background: linear-gradient(135deg, #b87333 0%, #d4af37 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-friend-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.4);
}

.add-friend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.add-friend-feedback {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.add-friend-feedback.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
    display: block;
}

.add-friend-feedback.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
    display: block;
}

.add-friend-feedback.info {
    background: rgba(23, 162, 184, 0.2);
    border: 1px solid #17a2b8;
    color: #17a2b8;
    display: block;
}

/* Spinner de chargement */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #b87333;
    font-size: 1.1rem;
}

.loading-spinner i {
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .social-unified-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .social-tabs {
        flex-direction: column;
    }
    
    .social-tab {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .social-content {
        max-height: 50vh;
    }
    
    .friend-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .friend-actions {
        justify-content: center;
    }
}

/* Animation pulse pour les badges */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
} 