/* ===========================
   Variables et Configuration
   =========================== */
:root {
    --primary-color: #8B6F47;
    --secondary-color: #A0826D;
    --accent-color: #C9A87C;
    --light-bg: #F5F1E8;
    --cream: #FFF8E7;
    --dark-brown: #5D4E37;
    --text-dark: #3E3E3E;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    --shadow: rgba(139, 111, 71, 0.1);
    --shadow-hover: rgba(139, 111, 71, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-bg) 100%);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px var(--shadow);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(201, 168, 124, 0.1);
}

.mobile-menu-btn {
    color: var(--primary-color);
    cursor: pointer;
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 5px solid var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

/* ===========================
   Buttons
   =========================== */
.btn-primary {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: var(--cream);
}

.btn-secondary {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

/* ===========================
   Cards
   =========================== */
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.card-flash {
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px var(--shadow);
    border: 2px solid var(--accent-color);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===========================
   Quick Access Cards
   =========================== */
.quick-access-card {
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px var(--shadow);
}

.quick-access-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.quick-access-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* ===========================
   Sections
   =========================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--cream) 100%);
}

.bg-gradient-light {
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-bg) 50%, var(--cream) 100%);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.footer-link {
    color: var(--cream);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--white);
    padding-left: 5px;
}

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

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-delay-1 {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.fade-in-delay-3 {
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Alerts & Notices
   =========================== */
.alert {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 5px solid;
}

.alert-warning {
    background: #FFF3CD;
    border-color: #FFC107;
    color: #856404;
}

.alert-info {
    background: #D1ECF1;
    border-color: #17A2B8;
    color: #0C5460;
}

.alert-danger {
    background: #F8D7DA;
    border-color: #DC3545;
    color: #721C24;
}

.alert-success {
    background: #D4EDDA;
    border-color: #28A745;
    color: #155724;
}

/* ===========================
   Forms
   =========================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-bg);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===========================
   Tables
   =========================== */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--light-bg);
}

tbody tr:hover {
    background: var(--cream);
}

/* ===========================
   Download Links
   =========================== */
.download-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--white);
    border: 2px solid var(--light-bg);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.download-link:hover {
    border-color: var(--accent-color);
    background: var(--cream);
    transform: translateX(5px);
}

.download-icon {
    font-size: 2rem;
    margin-right: 15px;
    color: var(--accent-color);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-logo {
        width: 100px;
        height: 100px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .card-flash {
        padding: 25px;
    }
}

@media (max-width: 640px) {
    .hero-section {
        height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-accent {
    background-color: var(--accent-color);
}

.shadow-custom {
    box-shadow: 0 4px 20px var(--shadow);
}

.rounded-custom {
    border-radius: 16px;
}

/* ===========================
   Bouton Discord Flottant
   =========================== */
.discord-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
    cursor: pointer;
    z-index: 998;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 28px;
}

.discord-float-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.6);
}

.discord-float-btn::after {
    content: 'Rejoindre le Discord';
    position: absolute;
    right: 70px;
    background: var(--dark-brown);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.discord-float-btn:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .discord-float-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    
    .discord-float-btn::after {
        display: none;
    }
}

/* ===========================
   Print Styles
   =========================== */
@media print {
    .navbar,
    .footer,
    .btn-primary,
    .btn-secondary,
    .discord-float-btn {
        display: none;
    }
    
    body {
        color: #000;
    }
}

/* ===========================
   Global Security Alert Banner
   =========================== */
.global-alert {
    position: sticky;
    top: 0;
    z-index: 1100; /* Above navbar (1000) */
    width: 100%;
    /* Fresh back-to-school blue gradient with subtle gold accent */
    background: linear-gradient(135deg, #2F80ED 0%, #56CCF2 100%);
    color: #FFFFFF;
    font-weight: 700;
    text-align: center;
    padding: 14px 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15), 0 2px 0 rgba(201, 179, 126, 0.15);
    border-bottom: 2px solid #C9B37E;
    letter-spacing: 0.2px;
}

.global-alert .global-alert-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.global-alert p {
    margin: 4px 0;
    line-height: 1.4;
}

.global-alert .alert-title {
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .global-alert {
        padding: 12px 10px;
        font-weight: 700;
    }
    .global-alert .alert-title {
        font-size: 1rem;
    }
    .global-alert p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .global-alert {
        padding: 10px 8px;
    }
    .global-alert .alert-title {
        font-size: 0.95rem;
    }
    .global-alert p {
        font-size: 0.9rem;
    }
}

/* ===========================
   Maintenance Overlay
   =========================== */
.site-maintenance-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.site-maintenance-dialog {
    width: 100%;
    max-width: 760px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-bg) 100%);
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    padding: 28px;
    text-align: center;
}

.site-maintenance-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.site-maintenance-subtitle {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.site-maintenance-contacts {
    margin-top: 12px;
    color: var(--text-dark);
    line-height: 1.5;
}

.site-maintenance-contacts a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.maintenance-no-scroll {
    overflow: hidden !important;
}
