/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables principales */
:root {
    --primary-color: #dc3545;
    --secondary-color: #ff6b6b;
    --accent-color: #c92a2a;
    --gradient-primary: linear-gradient(135deg, #dc3545 0%, #c92a2a 100%);
    --gradient-secondary: linear-gradient(45deg, #ff6b6b, #dc3545);
    --shadow-light: 0 5px 20px rgba(220,53,69,0.1);
    --shadow-medium: 0 10px 30px rgba(220,53,69,0.15);
    --shadow-heavy: 0 20px 60px rgba(220,53,69,0.2);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* THÈME SOMBRE PAR DÉFAUT (sans !important pour permettre le basculement) */
body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Thème sombre (par défaut) */
:root,
[data-theme="dark"],
body {
    --bg-color: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: rgba(255, 255, 255, 0.1);
    --navbar-bg: rgba(10, 10, 10, 0.95);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --input-bg: #2a2a2a;
    --input-border: rgba(255, 255, 255, 0.2);
}

/* Thème clair */
[data-theme="light"] {
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-color: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --input-bg: #ffffff;
    --input-border: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] body {
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color) !important;
    overflow-x: hidden;
    padding-top: 80px; /* Compensation pour la navigation fixe */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Force l'application du thème pour toutes les pages */
body:not([data-theme]) {
    background: #0a0a0a !important;
    color: #ffffff !important;
}

/* Page d'accueil spécifique - force le thème sombre */
body[data-theme="dark"],
html[data-theme="dark"] body {
    background: #0a0a0a !important;
    color: #ffffff !important;
}

/* Transitions douces pour tous les éléments */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Sections principales adaptatives */
section:not(.hero),
.presentation,
.why-essential,
.server-features,
.stats-section,
.team,
.cta-section {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Cartes adaptatives */
.feature-card,
.why-item,
.team-member,
.stat-item {
    background: var(--bg-card);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

/* Textes adaptatifs */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
}

p, span, div:not(.hero) {
    color: var(--text-secondary);
}

/* Container transparent */
.container {
    background: transparent;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation moderne */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.navbar.scrolled {
    background: var(--navbar-bg);
    box-shadow: var(--shadow-medium);
}

/* Bouton de basculement de thème */
.theme-toggle {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

/* Animation de rotation pour l'icône */
.theme-toggle.rotating i {
    transform: rotate(360deg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem 0.5rem 0.25rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.nav-logo .logo {
    height: 60px;
    transition: var(--transition);
    filter: drop-shadow(0 2px 10px rgba(220, 53, 69, 0.3));
    z-index: 10;
}

.nav-logo .logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 20px rgba(220, 53, 69, 0.5));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    display: block;
    min-width: 120px;
    text-align: center;
}

.nav-link:hover {
    color: var(--secondary-color);
    background: rgba(220, 53, 69, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 90%;
}

/* Sous-menu moderne */
.submenu {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    border-radius: var(--border-radius);
    padding: 1.5rem 0;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    pointer-events: none;
    z-index: 1001;
}

.nav-item:hover .submenu,
.nav-item .submenu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Créer une zone de tolérance pour éviter que le sous-menu disparaisse */
.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 20px;
    background: transparent;
    z-index: 1000;
}

/* Améliorer la transition pour éviter les saccades */
.nav-item .submenu {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Délai de fermeture pour éviter que le sous-menu disparaisse trop vite */
.nav-item:not(:hover):not(.submenu:hover) .submenu {
    transition-delay: 0.1s;
}

.submenu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(10, 10, 10, 0.98);
}

.submenu li {
    list-style: none;
    margin: 0.5rem 0;
}

.submenu a {
    color: var(--text-color);
    text-decoration: none;
    padding: 1rem 2rem;
    display: block;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

.submenu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-secondary);
    transition: var(--transition);
    z-index: -1;
}

.submenu a:hover::before {
    width: 100%;
}

.submenu a:hover {
    color: var(--text-color);
    border-left-color: var(--secondary-color);
    transform: translateX(10px);
}

/* Bouton hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 10;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section moderne */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.8) 0%, rgba(201, 42, 42, 0.8) 100%);
    overflow: hidden;
    color: white; /* Force le texte en blanc pour le hero */
}

/* Styles pour les sections qui s'adaptent au thème */
.stats-section,
.presentation,
.why-essential,
.server-features,
.cta-section,
.team {
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Sous-sections adaptatives */
.stats-section .container,
.presentation .container,
.why-essential .container,
.server-features .container,
.cta-section .container,
.team .container {
    background: transparent !important;
}

/* Cartes adaptatives au thème */
.feature-card,
.why-item,
.team-member,
.stat-item {
    background: var(--bg-card) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--card-shadow) !important;
    transition: all 0.3s ease;
}

.feature-card h3,
.why-item h3,
.team-member h3,
.stat-item .stat-label {
    color: var(--text-color) !important;
}

.feature-card p,
.why-item p,
.team-member p {
    color: var(--text-secondary) !important;
}

/* Titres de sections */
section h2,
section h3,
section h4 {
    color: var(--text-color) !important;
}

/* Paragraphes dans les sections */
section p,
section .hero-subtitle {
    color: var(--text-secondary) !important;
}

.feature-card:hover,
.why-item:hover,
.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy) !important;
}

/* Stats adaptatives */
.stat-number {
    color: var(--primary-color) !important;
}

.stat-label {
    color: var(--text-secondary) !important;
}

/* Inputs et formulaires adaptatifs */
input,
textarea,
select,
.form-input,
.form-textarea,
.form-select {
    background: var(--input-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--input-border) !important;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* Footer adaptatif */
.footer {
    background: var(--bg-secondary);
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

/* Alertes adaptatives */
.alert {
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1) !important;
    color: #28a745 !important;
    border: 1px solid rgba(40, 167, 69, 0.2) !important;
}

.alert-error,
.alert-danger {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
    border: 1px solid rgba(220, 53, 69, 0.2) !important;
}

/* Tableaux adaptatifs */
table {
    background: var(--bg-card);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

th,
td {
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
}

/* Scrollbar adaptative au thème */
[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #2a2a2a;
}

/* Animation de transition pour le changement de thème */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* Force l'adaptation de tous les éléments */
.container,
section,
div:not(.hero):not(.hero-background),
main,
article {
    background-color: transparent !important;
}

/* PAGE D'ACCUEIL - Force le thème sur toutes les sections */
.presentation,
.why-essential,
.server-features,
.stats-section {
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
}

/* Assurer que tous les conteneurs utilisent le thème */
.presentation .container,
.why-essential .container,
.server-features .container,
.stats-section .container {
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
}

/* Éléments spécifiques qui doivent s'adapter */
.stats-grid,
.features-grid,
.why-grid,
.team-grid,
.cta-buttons {
    background: transparent !important;
}

/* Tous les textes dans les sections */
.presentation h2,
.presentation p,
.why-essential h2,
.why-essential h3,
.why-essential p,
.server-features h2,
.server-features h3,
.server-features p,
.team h2,
.team p {
    color: var(--text-color) !important;
}

/* Descriptions et sous-titres */
.feature-card p,
.why-item p,
.server-features p {
    color: var(--text-secondary) !important;
    opacity: 0.9;
}

/* Icônes dans les cartes */
.feature-card i,
.why-item i {
    color: var(--primary-color) !important;
}

/* Boutons adaptatifs */
.btn,
.btn-primary,
.btn-secondary {
    transition: all 0.3s ease !important;
}

/* Liens dans le footer */
.footer ul li a {
    color: var(--text-secondary) !important;
}

.footer ul li a:hover {
    color: var(--primary-color) !important;
}

/* Rôles des membres de l'équipe */
.member-role {
    color: var(--text-muted) !important;
}

/* Titre principal et sous-titre dans les sections */
.hero-title {
    color: white !important; /* Force le blanc pour le hero */
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important; /* Force le blanc pour le hero */
}

/* FORCE MAXIMALE - Adaptation de TOUS les éléments au thème sombre */
[data-theme="dark"] .presentation,
[data-theme="dark"] .why-essential,
[data-theme="dark"] .server-features,
[data-theme="dark"] .stats-section,
[data-theme="dark"] .team,
[data-theme="dark"] .cta-section {
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .why-item,
[data-theme="dark"] .team-member,
[data-theme="dark"] .stat-item {
    background: var(--bg-card) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-color) !important;
}

[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] div:not(.hero) {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .feature-card p,
[data-theme="dark"] .why-item p,
[data-theme="dark"] .team-member p {
    color: var(--text-secondary) !important;
}

/* Thème clair - styles explicites */
[data-theme="light"] .presentation,
[data-theme="light"] .why-essential,
[data-theme="light"] .server-features,
[data-theme="light"] .stats-section,
[data-theme="light"] .team,
[data-theme="light"] .cta-section {
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
}

[data-theme="light"] .feature-card,
[data-theme="light"] .why-item,
[data-theme="light"] .team-member,
[data-theme="light"] .stat-item {
    background: var(--bg-card) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
    box-shadow: var(--card-shadow) !important;
}

/* Avatars et images d'équipe adaptatifs */
.member-avatar,
.member-avatar img {
    border: 3px solid var(--border-color) !important;
    transition: border-color 0.3s ease;
}

.team-member:hover .member-avatar,
.team-member:hover .member-avatar img {
    border-color: var(--primary-color) !important;
}

/* Styles pour les badges et étiquettes */
.badge,
.label,
.tag {
    background: var(--bg-secondary) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
}

/* Adaptation des listes et éléments de navigation */
ul, ol {
    color: var(--text-color) !important;
}

li {
    color: var(--text-color) !important;
}

/* Adaptation complète du footer */
.footer-section h3,
.footer-section h4 {
    color: var(--text-color) !important;
}

.footer-section p {
    color: var(--text-secondary) !important;
}

/* Boutons sociaux dans le footer */
.social-links a {
    background: var(--bg-secondary) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
}

.social-links a:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Pattern de grille supprimé pour mieux voir la photo home.jpg */
    opacity: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/home.jpg') center/cover;
    opacity: 0.4;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: fadeInUp 1.2s ease;
    background: linear-gradient(45deg, #ffffff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease 0.3s both;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease 0.6s both;
}

.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

/* Sections générales modernisées */
section {
    padding: 6rem 0;
    position: relative;
}

section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
    position: relative;
    font-weight: 700;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

section h2::before {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 1px;
    opacity: 0.5;
}

/* Présentation modernisée */
.presentation {
    background: var(--light-color);
    position: relative;
}

.presentation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(220,53,69,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.presentation .container {
    position: relative;
    z-index: 2;
}

.presentation p {
    text-align: center;
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--text-color);
    line-height: 1.8;
}

/* Grille des fonctionnalités modernisée */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-card i {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover i {
    transform: scale(1.1);
    color: var(--accent-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* Section "Pourquoi Essential" modernisée */
.why-essential {
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
}

.why-essential::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagons" width="50" height="43.4" patternUnits="userSpaceOnUse"><polygon points="25,0 50,14.4 50,28.9 25,43.3 0,28.9 0,14.4" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagons)"/></svg>');
}

.why-essential .container {
    position: relative;
    z-index: 2;
}

.why-essential h2 {
    color: var(--white);
}

.why-essential h2::after,
.why-essential h2::before {
    background: var(--secondary-color);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.why-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.why-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.why-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.why-item p {
    line-height: 1.7;
    opacity: 0.9;
}

/* Section Caractéristiques du Serveur */
.server-features {
    background: var(--light-color);
    position: relative;
}

.server-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circles" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="2" fill="rgba(220,53,69,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23circles)"/></svg>');
}

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

/* Section Statistiques */
.stats-section {
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    padding: 4rem 0;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--white);
    opacity: 0.9;
    font-weight: 500;
}

/* Section Call to Action */
.cta-section {
    background: var(--light-color);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="waves" width="100" height="20" patternUnits="userSpaceOnUse"><path d="M0,10 Q25,0 50,10 T100,10" fill="none" stroke="rgba(220,53,69,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23waves)"/></svg>');
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-color);
    line-height: 1.8;
}

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

/* Équipe */
.team {
    background: linear-gradient(135deg, #dc3545 0%, #c92a2a 100%);
    color: white;
}

.team h2::after {
    background: var(--text-color);
}

.team p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ff6b6b;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-role {
    color: #ff6b6b;
    font-weight: 500;
}

/* Footer modernisé */
.footer {
    background: var(--bg-secondary) !important;
    color: var(--text-color) !important;
    padding: 4rem 0 2rem;
    position: relative;
    border-top: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: var(--text-secondary) !important;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    position: relative;
    padding-left: 0;
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: var(--transition);
    color: var(--primary-color);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--primary-color) !important;
    padding-left: 15px;
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    opacity: 0.7;
    color: var(--text-secondary) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Responsive design */
@media (max-width: 768px) {
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-left: 0.5rem;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100%;
        flex-direction: column;
        background: var(--navbar-bg);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 2rem 0;
        backdrop-filter: blur(20px);
        transform: none;
        z-index: 1000;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    section h2 {
        font-size: 2.5rem;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--bg-secondary);
        margin-left: 1rem;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    
    .submenu::before {
        display: none;
    }
    
    .submenu a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .why-item {
        padding: 2rem 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Styles pour la page de détails des demandes de deban - MÊME THÈME QUE LE SITE */
.deban-details-container {
    background: var(--light-color);
    min-height: 100vh;
    padding-top: 120px;
}

.deban-header {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.deban-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="deban" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M0,25 L50,25 M25,0 L25,50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23deban)"/></svg>');
    opacity: 0.3;
}

.deban-header .container {
    position: relative;
    z-index: 2;
}

.deban-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.deban-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.deban-content {
    padding: 4rem 0;
}

.deban-section {
    background: var(--white);
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.deban-section-title {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 2rem;
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.deban-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 1rem;
}

.deban-detail-item {
    background: rgba(0,0,0,0.02);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.05);
}

.deban-detail-item.deban-detail-full {
    grid-column: 1 / -1;
    margin: 0 2.5rem 1.5rem 2.5rem;
}

.deban-detail-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.7;
}

.deban-detail-value {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

.player-pseudo {
    color: var(--primary-color);
    font-weight: 700;
}

.player-steam-id {
    color: var(--text-color);
    opacity: 0.7;
    font-family: monospace;
    font-size: 0.9rem;
}

.deban-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block;
}

.deban-status-badge.status-pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.deban-status-badge.status-approved {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.deban-status-badge.status-rejected {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.deban-status-badge.status-on_hold {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.deban-messages-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 2.5rem 2rem 2.5rem;
}

.deban-message-item {
    background: rgba(0,0,0,0.02);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

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

.deban-message-sender {
    font-weight: 600;
    color: var(--primary-color);
}

.staff-badge {
    display: inline-block;
    background: #ffc107;
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    margin-left: 0.5rem;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
    animation: staffPulse 2s infinite;
}

@keyframes staffPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(255, 193, 7, 0.5);
    }
}

.deban-message-date {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
}

.deban-message-content {
    color: var(--text-color);
    line-height: 1.5;
}

.deban-empty-messages {
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
    opacity: 0.7;
}

.deban-empty-messages i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.deban-message-form {
    margin-top: 2rem;
    padding: 0 2.5rem 2.5rem 2.5rem;
}

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

.deban-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.deban-form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.deban-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.deban-btn-primary {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.deban-btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.deban-admin-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 2.5rem 2.5rem 2.5rem;
}

.deban-btn-approve {
    padding: 1rem 2rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.deban-btn-approve:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.deban-btn-reject {
    padding: 1rem 2rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.deban-btn-reject:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.deban-back-button {
    text-align: center;
    margin-top: 3rem;
}

.deban-btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(0,0,0,0.1);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.deban-btn-secondary:hover {
    background: rgba(0,0,0,0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Responsive pour la page deban-details */
@media (max-width: 768px) {
    .deban-title {
        font-size: 2.5rem;
    }
    
    .deban-subtitle {
        font-size: 1.1rem;
    }
    
    .deban-details-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .deban-detail-item.deban-detail-full {
        margin: 0 1.5rem 1rem 1.5rem;
    }
    
    .deban-section-title {
        font-size: 1.5rem;
        padding: 1.5rem;
    }
    
    .deban-messages-container,
    .deban-message-form,
    .deban-admin-actions {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .deban-admin-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .deban-btn-approve,
    .deban-btn-reject {
        width: 100%;
        max-width: 300px;
    }
}