/* ============================================
   THEME: Minecraft + Medieval Fantasy + SAO
   Palette de couleurs conservée avec textures
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette de couleurs chaudes inspirée de l'image - CONSERVÉE */
    --gold-orange: #FFB347;        /* Jaune-orange vif (top-left) */
    --bright-orange: #FF8C42;      /* Orange vif */
    --fiery-orange: #FF6B35;       /* Orange feu */
    --deep-red: #C41E3A;          /* Rouge profond */
    --warm-red: #A52A2A;           /* Rouge chaud */
    --dark-red: #8B0000;          /* Rouge foncé */
    --reddish-brown: #8B4513;     /* Rouge-brun */
    --dark-brown: #654321;         /* Brun foncé */
    --almost-black: #1A0000;      /* Presque noir */
    --deep-black: #0D0000;         /* Noir profond */
    
    /* Couleurs dérivées */
    --primary-color: var(--fiery-orange);
    --primary-dark: var(--deep-red);
    --secondary-color: var(--bright-orange);
    --accent-color: var(--gold-orange);
    --success-color: #10b981;
    --warning-color: var(--gold-orange);
    --danger-color: var(--deep-red);
    
    /* Backgrounds */
    --dark-bg: var(--almost-black);
    --dark-card: rgba(139, 69, 19, 0.3);
    --dark-text: #FFF5E6;
    --light-bg: #FFF8F0;
    --light-card: rgba(255, 255, 255, 0.98);
    --light-text: #2C1810;
    --border-color: rgba(255, 140, 66, 0.3);
    
    /* Shadows avec effets SAO/Minecraft */
    --shadow: 0 4px 20px rgba(196, 30, 58, 0.2), 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(196, 30, 58, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(255, 140, 66, 0.4);
    --shadow-glow-strong: 0 0 50px rgba(255, 140, 66, 0.6), 0 0 100px rgba(255, 179, 71, 0.3);
    
    /* Bordures blocky/pixel-art - Style Minecraft */
    --border-radius-small: 4px;      /* Légèrement arrondi pour style moderne */
    --border-radius-medium: 8px;      /* Style blocky modéré */
    --border-radius-large: 12px;      /* Style blocky avec coins arrondis */
    --border-width: 3px;              /* Bordures plus épaisses style Minecraft */
    
    /* Textures CSS (légères) */
    --texture-parchment: repeating-linear-gradient(
        0deg,
        rgba(139, 69, 19, 0.03) 0px,
        transparent 1px,
        transparent 2px,
        rgba(139, 69, 19, 0.03) 3px
    );
    --texture-stone: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.05) 0px,
        transparent 1px,
        transparent 2px,
        rgba(0, 0, 0, 0.05) 3px
    );
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: 
        linear-gradient(135deg, 
            rgba(255, 179, 71, 0.85) 0%, 
            rgba(255, 140, 66, 0.8) 25%, 
            rgba(255, 107, 53, 0.75) 50%, 
            rgba(196, 30, 58, 0.8) 75%, 
            rgba(139, 0, 0, 0.85) 100%),
        url('../img/background-city.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: var(--dark-text);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 179, 71, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(196, 30, 58, 0.25) 0%, transparent 50%),
        linear-gradient(180deg, rgba(26, 0, 0, 0.4) 0%, rgba(26, 0, 0, 0.2) 50%, rgba(26, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 0;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ============================================
   NAVIGATION - Style Blocky + Glow SAO
   ============================================ */
.navbar {
    background: rgba(26, 0, 0, 0.75);
    backdrop-filter: blur(25px) saturate(180%);
    padding: 1.25rem 0;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.6), 
        0 0 20px rgba(255, 140, 66, 0.25),
        inset 0 1px 0 rgba(255, 140, 66, 0.2); /* Ligne lumineuse style SAO */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: var(--border-width) solid rgba(255, 140, 66, 0.5);
    /* Texture légère style pierre */
    background-image: 
        var(--texture-stone),
        rgba(26, 0, 0, 0.75);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-text);
    text-decoration: none;
    background: linear-gradient(135deg, #FFB347 0%, #FF8C42 50%, #FF6B35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 179, 71, 0.5);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small); /* Style blocky */
    position: relative;
    display: block;
    white-space: nowrap;
    border: 2px solid transparent;
}

/* Barre de progression style SAO */
.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFB347 0%, #FF6B35 50%, #C41E3A 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.8); /* Glow style SAO */
    border-radius: 2px;
}

/* Effet glow au survol */
.nav-menu a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    border-radius: 50%;
    z-index: -1;
}

.nav-menu a:hover {
    color: #FFB347;
    background: rgba(255, 140, 66, 0.2);
    text-shadow: 0 0 15px rgba(255, 179, 71, 0.7);
    border-color: rgba(255, 140, 66, 0.4);
    transform: translateY(-2px);
}

.nav-menu a:hover::before {
    width: 85%;
}

.nav-menu a:hover::after {
    width: 120%;
    height: 120%;
    opacity: 1;
}

/* Menu déroulant */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: transform 0.3s;
    display: inline-block;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(26, 0, 0, 0.95);
    backdrop-filter: blur(25px) saturate(180%);
    border: var(--border-width) solid rgba(255, 140, 66, 0.5);
    border-radius: var(--border-radius-medium); /* Style blocky */
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.6), 
        0 0 30px rgba(255, 140, 66, 0.4),
        inset 0 1px 0 rgba(255, 140, 66, 0.2); /* Ligne lumineuse style SAO */
    list-style: none;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    /* Texture légère */
    background-image: 
        var(--texture-stone),
        rgba(26, 0, 0, 0.95);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu a {
    padding: 0.75rem 1.5rem;
    display: block;
    color: var(--dark-text);
    font-weight: 500;
    border-radius: 0;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 140, 66, 0.2);
    color: #FFB347;
}

.nav-dropdown-menu a::before {
    display: none;
}

/* Menu hamburger pour mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.3rem;
    z-index: 1002;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-text);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle:hover span {
    background: #FFB347;
}

/* Main content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 5rem 0;
    color: white;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 
        0 0 20px rgba(255, 179, 71, 0.8),
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 8px 40px rgba(196, 30, 58, 0.4);
    background: linear-gradient(135deg, #FFB347 0%, #FF8C42 30%, #FF6B35 60%, #C41E3A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.75rem;
    margin-bottom: 3rem;
    color: rgba(255, 245, 230, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS - Style Minecraft/SAO Blocky + Glow
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-medium); /* Style blocky modéré */
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: var(--border-width) solid;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    /* Texture légère style parchemin */
    background-image: var(--texture-parchment);
    /* Effet de bordure pixel-art subtil */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Effet ripple holographique style SAO */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
    opacity: 1;
}

/* Effet glow au survol style SAO */
.btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: var(--border-radius-medium);
    background: linear-gradient(45deg, transparent, rgba(255, 179, 71, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(8px);
}

.btn:hover::after {
    opacity: 1;
    animation: glowPulse 2s ease infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.btn-primary {
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 50%, #C41E3A 100%);
    color: white;
    box-shadow: 
        0 6px 20px rgba(255, 140, 66, 0.5),
        0 0 25px rgba(196, 30, 58, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2); /* Ombre interne style blocky */
    border-color: rgba(255, 179, 71, 0.6);
    position: relative;
    z-index: 1;
    /* Texture légère */
    background-image: 
        var(--texture-parchment),
        linear-gradient(135deg, #FF8C42 0%, #FF6B35 50%, #C41E3A 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFB347 0%, #FF8C42 50%, #FF6B35 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 10px 35px rgba(255, 140, 66, 0.7),
        0 0 60px rgba(255, 179, 71, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 179, 71, 0.9);
    /* Glow fort style SAO */
    filter: drop-shadow(0 0 15px rgba(255, 140, 66, 0.8));
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.95) 0%, rgba(255, 245, 230, 0.95) 100%);
    color: #2C1810;
    backdrop-filter: blur(10px);
    border: var(--border-width) solid rgba(255, 140, 66, 0.6);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    font-weight: 600;
    background-image: 
        var(--texture-parchment),
        linear-gradient(135deg, rgba(255, 248, 240, 0.95) 0%, rgba(255, 245, 230, 0.95) 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 248, 240, 1) 100%);
    border-color: rgba(255, 140, 66, 0.9);
    color: #1A0000;
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(255, 140, 66, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.05);
    filter: drop-shadow(0 0 10px rgba(255, 140, 66, 0.5));
}

.btn-danger {
    background: linear-gradient(135deg, #C41E3A 0%, #8B0000 100%);
    color: white;
    box-shadow: 
        0 4px 15px rgba(196, 30, 58, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    border-color: rgba(196, 30, 58, 0.7);
    background-image: 
        var(--texture-parchment),
        linear-gradient(135deg, #C41E3A 0%, #8B0000 100%);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #8B0000 0%, #C41E3A 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(196, 30, 58, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    border-color: rgba(196, 30, 58, 0.9);
    filter: drop-shadow(0 0 15px rgba(196, 30, 58, 0.7));
}

.btn-warning {
    background: linear-gradient(135deg, #FFB347 0%, #FF8C42 100%);
    color: #1A0000;
    box-shadow: 
        0 4px 15px rgba(255, 179, 71, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 179, 71, 0.7);
    background-image: 
        var(--texture-parchment),
        linear-gradient(135deg, #FFB347 0%, #FF8C42 100%);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #FF8C42 0%, #FFB347 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(255, 179, 71, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 179, 71, 0.9);
    filter: drop-shadow(0 0 15px rgba(255, 179, 71, 0.7));
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Cards */
.info-section, .news-preview, .stats-section {
    margin: 4rem 0;
}

.info-grid, .news-grid, .stats-grid, .members-grid, .admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.admin-grid {
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* ============================================
   CARDS - Style Parchemin Médiéval + Blocky
   ============================================ */
.info-card, .news-card, .stat-card, .member-card, .admin-card {
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.98) 0%, rgba(255, 245, 230, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: var(--border-radius-large); /* Style blocky avec coins arrondis */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 0 25px rgba(255, 140, 66, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(139, 69, 19, 0.1); /* Ombre interne style gravé */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: var(--border-width) solid rgba(255, 140, 66, 0.5);
    position: relative;
    overflow: hidden;
    color: #2C1810;
    /* Texture parchemin subtile */
    background-image: 
        var(--texture-parchment),
        linear-gradient(135deg, rgba(255, 248, 240, 0.98) 0%, rgba(255, 245, 230, 0.95) 100%);
    /* Bordure gravée style médiéval */
    border-style: solid;
    border-image: linear-gradient(135deg, rgba(255, 179, 71, 0.6), rgba(196, 30, 58, 0.4)) 1;
}

/* Barre de progression style SAO au survol */
.info-card::before, .news-card::before, .admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFB347 0%, #FF8C42 50%, #FF6B35 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.6); /* Glow style SAO */
    z-index: 1;
}

.info-card:hover::before, .news-card:hover::before, .admin-card:hover::before {
    transform: scaleX(1);
}

/* Effet holographique au survol style SAO */
.info-card::after, .news-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 179, 71, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.info-card:hover::after, .news-card:hover::after {
    opacity: 1;
    animation: holographicRipple 2s ease infinite;
}

@keyframes holographicRipple {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.6; }
}

.info-card:hover, .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.25),
        0 0 50px rgba(255, 140, 66, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.6),
        inset 0 -2px 4px rgba(139, 69, 19, 0.15);
    border-color: rgba(255, 140, 66, 0.7);
    /* Glow subtil style SAO */
    filter: drop-shadow(0 0 20px rgba(255, 140, 66, 0.4));
}

.admin-card {
    text-align: center;
    text-decoration: none;
    color: #2C1810;
    display: block;
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.98) 0%, rgba(255, 245, 230, 0.95) 100%);
}

.admin-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 179, 71, 0.2), transparent);
    transition: left 0.6s;
}

.admin-card:hover::after {
    left: 100%;
}

.admin-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.25),
        0 0 50px rgba(255, 140, 66, 0.3);
    border-color: rgba(255, 140, 66, 0.5);
}

.admin-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.4s;
    filter: drop-shadow(0 4px 8px rgba(255, 140, 66, 0.3));
}

.admin-card:hover .admin-icon {
    transform: scale(1.15) rotate(8deg);
}

.admin-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 50%, #C41E3A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.admin-card p {
    color: #3D2817;
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 500;
}

.info-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(255, 140, 66, 0.3));
}

.info-card p, .news-card p {
    color: #3D2817;
    line-height: 1.8;
    font-weight: 500;
}

.info-card h3, .news-card h3 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #C41E3A 0%, #8B0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.5rem;
}

.stat-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.98) 0%, rgba(255, 245, 230, 0.95) 100%);
    position: relative;
    overflow: hidden;
    color: #2C1810;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #FFB347 0%, #FF8C42 33%, #FF6B35 66%, #C41E3A 100%);
    box-shadow: 0 0 20px rgba(255, 140, 66, 0.5);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.06);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(255, 140, 66, 0.25);
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 50%, #C41E3A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 140, 66, 0.3);
}

.stat-label {
    color: #5C2E0E;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 
        0 0 30px rgba(255, 179, 71, 0.6),
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 8px 40px rgba(196, 30, 58, 0.3);
    background: linear-gradient(135deg, #FFB347 0%, #FF8C42 30%, #FF6B35 60%, #C41E3A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    letter-spacing: -1px;
}

/* Forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

/* ============================================
   AUTH CARDS - Style Parchemin Médiéval
   ============================================ */
.auth-card, .form-card {
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.98) 0%, rgba(255, 245, 230, 0.95) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    padding: 3rem;
    border-radius: var(--border-radius-large); /* Style blocky */
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 140, 66, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(139, 69, 19, 0.1); /* Ombre interne style gravé */
    width: 100%;
    max-width: 500px;
    border: var(--border-width) solid rgba(255, 140, 66, 0.5);
    color: #2C1810;
    /* Texture parchemin */
    background-image: 
        var(--texture-parchment),
        linear-gradient(135deg, rgba(255, 248, 240, 0.98) 0%, rgba(255, 245, 230, 0.95) 100%);
    position: relative;
}

/* Effet de bordure gravée */
.auth-card::before, .form-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: var(--border-radius-large);
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.4), rgba(196, 30, 58, 0.3));
    z-index: -1;
    opacity: 0.5;
    filter: blur(4px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #2C1810;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: var(--border-width) solid rgba(196, 30, 58, 0.5);
    border-radius: var(--border-radius-small); /* Style blocky */
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #FFFFFF;
    color: #1A0000;
    font-weight: 600;
    /* Texture légère parchemin */
    background-image: 
        var(--texture-parchment),
        #FFFFFF;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.05),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8B4513;
    opacity: 0.7;
    font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #C41E3A;
    box-shadow: 
        0 0 0 3px rgba(196, 30, 58, 0.2),
        0 0 25px rgba(196, 30, 58, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.8); /* Glow style SAO */
    background: #FFFFFF;
    color: #000000;
    transform: translateY(-1px); /* Légère élévation */
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    color: #5C2E0E;
    font-weight: 600;
    margin-top: 0.5rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Amélioration du contraste pour les selects */
.form-group select {
    background-color: #FFFFFF;
    color: #1A0000;
    cursor: pointer;
}

.form-group select option {
    background-color: #FFFFFF;
    color: #1A0000;
    padding: 0.5rem;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #5C2E0E;
    font-weight: 600;
}

.auth-link a {
    color: var(--deep-red);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.auth-link a:hover {
    color: var(--fiery-orange);
    text-shadow: 0 0 10px rgba(255, 140, 66, 0.5);
}

/* Alerts */
.alert {
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: 2px solid;
    font-weight: 600;
}

.alert-error {
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.95) 0%, rgba(254, 202, 202, 0.95) 100%);
    color: #8B0000;
    border-color: #C41E3A;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.2);
}

.alert-success {
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.95) 0%, rgba(167, 243, 208, 0.95) 100%);
    color: #065f46;
    border-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

/* News */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.news-item {
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.98) 0%, rgba(255, 245, 230, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(255, 140, 66, 0.15);
    border: 2px solid rgba(255, 140, 66, 0.4);
    transition: all 0.4s;
    color: #2C1810;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(255, 140, 66, 0.2);
    border-color: rgba(255, 140, 66, 0.4);
}

.news-header h2 {
    background: linear-gradient(135deg, #FF8C42 0%, #C41E3A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    font-weight: 800;
    font-size: 1.75rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    color: #8B4513;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.news-content {
    color: #2C1810;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.news-excerpt {
    color: #5C2E0E;
    margin-bottom: 1.5rem;
    font-style: italic;
    font-weight: 500;
}

.news-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Members */
.member-card {
    background: rgba(255, 255, 255, 0.98);
}

.member-header {
    margin-bottom: 1.5rem;
}

.member-header h3 {
    background: linear-gradient(135deg, #FF8C42 0%, #C41E3A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
}

.member-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.role-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 50%, #C41E3A 100%);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-info {
    color: #3D2817;
    font-weight: 600;
}

.member-info p {
    color: #2C1810;
    margin-bottom: 0.5rem;
}

.member-notes {
    margin-top: 0.75rem;
    font-style: italic;
    color: #5C2E0E;
    font-weight: 500;
}

/* Profile */
.profile-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

.profile-card {
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.98) 0%, rgba(255, 245, 230, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(255, 140, 66, 0.15);
    border: 2px solid rgba(255, 140, 66, 0.4);
    color: #2C1810;
}

.profile-card h2 {
    background: linear-gradient(135deg, #FF8C42 0%, #C41E3A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-weight: 800;
    font-size: 2rem;
}

/* Admin */
.admin-dashboard {
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.98) 0%, rgba(255, 245, 230, 0.95) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    padding: 3.5rem;
    border-radius: 2rem;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(255, 140, 66, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 140, 66, 0.4);
    margin-bottom: 2rem;
    color: #2C1810;
}

.admin-stats {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 3px solid rgba(255, 140, 66, 0.3);
}

.admin-stats h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 50%, #C41E3A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -1px;
}

.admin-section {
    margin-bottom: 3.5rem;
}

.admin-section h2 {
    background: linear-gradient(135deg, #FF8C42 0%, #C41E3A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-weight: 800;
    font-size: 2rem;
}

.roles-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.role-item {
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid rgba(255, 140, 66, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    color: #2C1810;
}

.role-item:hover {
    transform: translateX(5px);
    border-color: rgba(255, 140, 66, 0.4);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.2);
}

.role-info {
    flex: 1;
}

.role-description {
    margin-top: 0.75rem;
    color: #3D2817;
    font-weight: 500;
}

.role-actions {
    display: flex;
    gap: 0.75rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.98) 0%, rgba(255, 245, 230, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-medium); /* Style blocky */
    overflow: hidden;
    color: #2C1810;
    border: var(--border-width) solid rgba(255, 140, 66, 0.3);
    /* Texture parchemin */
    background-image: 
        var(--texture-parchment),
        linear-gradient(135deg, rgba(255, 248, 240, 0.98) 0%, rgba(255, 245, 230, 0.95) 100%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.data-table thead {
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 50%, #C41E3A 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.data-table th,
.data-table td {
    padding: 1.25rem;
    text-align: left;
}

.data-table th {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.data-table tbody tr {
    border-bottom: 2px solid rgba(255, 140, 66, 0.1);
    transition: all 0.3s;
}

.data-table tbody tr {
    color: #2C1810;
}

.data-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(255, 248, 240, 0.8) 0%, rgba(255, 255, 255, 0.95) 100%);
    transform: scale(1.01);
    color: #1A0000;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.status-inactive {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.status-retired {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

/* No content */
.no-content {
    text-align: center;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.98) 0%, rgba(255, 245, 230, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 1.5rem;
    color: #5C2E0E;
    border: 2px solid rgba(255, 140, 66, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.text-center {
    text-align: center;
    margin-top: 2.5rem;
}

/* Footer */
.footer {
    background: rgba(26, 0, 0, 0.8);
    backdrop-filter: blur(25px) saturate(180%);
    padding: 3rem 0;
    margin-top: 5rem;
    text-align: center;
    color: var(--dark-text);
    border-top: 2px solid rgba(255, 140, 66, 0.4);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
}

.footer a {
    color: #FFB347;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.footer a:hover {
    color: #FF8C42;
    text-shadow: 0 0 10px rgba(255, 179, 71, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: rgba(26, 0, 0, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        gap: 0;
        padding: 4rem 1.5rem 2rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1001;
        border-left: 2px solid rgba(255, 140, 66, 0.4);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        backdrop-filter: blur(5px);
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 140, 66, 0.1);
    }
    
    .nav-menu a {
        padding: 1rem;
        width: 100%;
        border-radius: 0;
    }
    
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, 0.3);
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        padding: 0;
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        max-height: 500px;
    }
    
    .nav-dropdown-menu a {
        padding-left: 2rem;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-grid, .news-grid, .stats-grid, .members-grid, .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .admin-dashboard {
        padding: 2rem;
    }
}
