/* =========================================== */
/* 1. VARIABLES ET RÉINITIALISATION DE BASE */
/* =========================================== */
:root {
    /* --- PALETTE PREMIUM GUNMETAL (MÉTAL SOMBRE) --- */
    
    /* Fond profond (Base du dégradé) */
    --metal-dark: #050505;  
    /* Reflet métallique (Lumière) */
    --metal-light: #1c1f24; 
    
    /* Accent inchangé (Rouge Corail) - Il tranche parfaitement sur le noir */
    --accent: #FF5A5F;        
    
    /* Textes */
    --light: #FFFFFF;           /* Titres (Blanc Pur) */
    --text-silver: #d1d5db;     /* Texte courant (Gris Argenté - Haute lisibilité) */
    --text-muted: #9ca3af;      /* Texte secondaire */
    
    /* Typographie */
    --font-title: 'Oswald', sans-serif; 
    --font-body: 'Poppins', sans-serif;
    
    /* Effets de Brillance & Glassmorphism */
    --shine-color: rgba(255, 90, 95, 0.7);
    --hover-shine: rgba(255, 255, 255, 0.2);
    
    /* Ombres Premium */
    --shadow-metallic: 0 10px 30px rgba(0, 0, 0, 0.8); /* Ombre profonde et diffuse */
    --text-glow: 0 2px 10px rgba(0,0,0,0.8); /* Pour détacher le texte du fond */
    
    /* Bordures de verre */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(20, 20, 20, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-silver);
    line-height: 1.6;
    overflow-x: hidden;

    /* --- FOND MÉTALLIQUE GLOBAL --- */
    background-color: var(--metal-dark);
    /* Dégradé Radial Fixe : Simule un éclairage type "Studio" au centre */
    background-image: radial-gradient(circle at 50% 0%, var(--metal-light) 0%, var(--metal-dark) 85%);
    background-attachment: fixed; /* L'effet reste en place au scroll */
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--light);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* --- TITRES HAUTE LISIBILITÉ --- */
h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--light);
    text-transform: uppercase;
    margin-bottom: 20px;
    /* Ombre portée pour lisibilité sur fond brillant */
    text-shadow: var(--text-glow); 
    letter-spacing: 0.5px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

/* Utilitaires */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    color: var(--text-silver);
    font-weight: 300;
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
    object-fit: contain;
    /* Filtre optionnel si le logo est noir : filter: invert(1); */
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
}


/* =========================================== */
/* 2. NAVIGATION (HEADER & MENU BURGER) */
/* =========================================== */
header {
    /* Glassmorphism Sombre pour le Header */
    background-color: rgba(10, 10, 10, 0.85); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border-bottom: var(--glass-border);

    color: var(--light);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    transition: background-color 0.3s;
}

.logo a {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    position: relative;
    display: inline-block;
    padding: 5px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,1);
}

.logo .accent-color {
    color: var(--accent);
}

.logo a:hover .logo-shine {
    animation: shine 1.5s infinite;
}
.logo-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--shine-color), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--text-silver); /* Gris clair par défaut */
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 0;
    display: block;
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.main-nav a:hover {
    color: var(--light);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Bouton navigation actif ou spécial */
.btn-nav {
    background-color: var(--accent);
    color: #111 !important; /* Texte sombre sur bouton clair */
    padding: 8px 18px;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.1s, box-shadow 0.3s;
    font-weight: 700;
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px rgba(255, 90, 95, 0.3);
}

.btn-nav:hover {
    background-color: transparent;
    color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 90, 95, 0.6);
}

.burger-menu {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
}

.burger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.burger-menu.active .bar:nth-child(2) {
    opacity: 0;
}
.burger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================== */
/* 3. BOUTONS GÉNÉRAUX (STYLE NÉON/MÉTAL) */
/* =========================================== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--accent);
    color: #000; /* Contraste fort */
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none; /* Pas de bordure pour le style 'plein' */
    box-shadow: 0 0 15px rgba(255, 90, 95, 0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #fff; /* Devient blanc au survol */
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 90, 95, 0.6);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    transition: transform 0.5s;
    transform: skewX(-20deg);
}
.btn:hover::before {
    transform: translate(200%, 0) skewX(-20deg);
}


/* =========================================== */
/* 4. SECTIONS GÉNÉRALES (STRUCTURE) */
/* =========================================== */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

/* Séparation visuelle subtile entre les sections */
.services-section, 
.kontakt-section,
.team-section {
    /* Fond légèrement plus sombre pour créer de la profondeur */
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.8), rgba(0,0,0,0.4));
}

.text-section {
    /* Texture subtile "Métal Brossé" sombre */
    background-color: transparent;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.01) 0px,
        rgba(255,255,255,0.01) 1px,
        transparent 1px,
        transparent 10px
    );
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.text-section h1 {
    color: var(--accent);
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(255, 90, 95, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

.text-section h2 {
    color: var(--light);
    margin-top: 30px;
    font-size: 1.8rem;
}

.text-section p, .text-section li {
    font-size: 1.05rem;
    color: var(--text-silver);
}


/* =========================================== */
/* 5. HERO SLIDER FULLSCREEN */
/* =========================================== */
.hero-slider {
    position: relative;
    height: 90vh;
    min-height: 520px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 50px rgba(0,0,0,0.8); /* Ombre sous le slider */
}

.hero-slider-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.9s ease, transform 1.4s ease;
    will-change: opacity, transform;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    /* Dégradé plus dramatique pour le Hero */
    background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 800px; /* Plus large pour l'impact */
    margin-left: 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.hero-kicker {
    font-family: var(--font-body);
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--accent); /* Kicker en accent rouge */
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 90, 95, 0.4);
}

.hero-slide-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8); /* Ombre forte pour lisibilité max */
}

.hero-slide-content .hero-subtitle {
    font-size: 1.1rem;
    max-width: 550px;
    color: #e0e0e0; /* Très clair */
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.hero-cta {
    align-self: flex-start;
}

/* Flèches */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.6);
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    font-size: 1.8rem;
    color: #fff;
    z-index: 3;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.hero-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

/* Points */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.is-active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--accent);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-slider {
        height: 80vh;
        min-height: 480px;
    }
    .hero-slide-content {
        margin-left: 5%;
        margin-right: 5%;
    }
    .hero-arrow {
        display: none; /* Cacher les flèches sur mobile pour laisser la place */
    }
}


/* =========================================== */
/* 6. CARTES (SERVICES, PRIX, ÉQUIPE) - GLASSMORPHISM */
/* =========================================== */

.services-grid, .pricing-grid, .team-grid, .article-grid, .werte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* STYLE UNIFIÉ "CARTE FLOTTANTE" */
.service-item, 
.price-card, 
.member-card, 
.article-card,
.wert-card,
.wert-item {
    /* Le secret du look Premium : Fond sombre translucide + flou */
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    
    border: var(--glass-border);
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: var(--shadow-metallic);
    position: relative;
    overflow: hidden;
}

/* Effet de survol brillant */
.service-item:hover, 
.price-card:hover, 
.member-card:hover,
.article-card:hover,
.wert-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent); /* Bordure s'allume en rouge */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 90, 95, 0.2); /* Lueur rouge subtile */
    background-color: rgba(30, 30, 30, 0.7); /* S'éclaircit légèrement */
}

/* Typographie dans les cartes */
.service-item h3, .price-card h3, .member-card h3, .article-card h3 {
    color: var(--light);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-item p, .price-card p, .member-role, .card-content p, .wert-card p {
    color: var(--text-silver);
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-item a {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 15px;
}

/* ==========================================================
   GLOBAL HERO & COURSE PAGES (Lauftraining / Ernährung / Mobilität / Über uns)
   ========================================================== */

/* HERO pour pages avec image de fond (cours + über uns) */
.kurs-hero,
.page-hero,
.ueberuns-hero {
    height: 80vh;                 /* Desktop: hero immersif */
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.kurs-hero::before,
.page-hero::before,
.ueberuns-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55); /* overlay sombre pour lisibilité */
    z-index: 1;
}

.kurs-hero .hero-content,
.page-hero .container,
.ueberuns-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* SECTION DETAILS DES COURS */
.kurs-details {
    background-color: transparent;
}

/* GRID LAYOUT pour sections de cours */
.kurs-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 0;
    color: var(--text-silver);
}

/* CONTENU PRINCIPAL (texte) */
.content-main h2 {
    color: var(--accent);
    margin-top: 30px;
}

.content-main p {
    margin-bottom: 15px;
}

/* SIDEBAR (à droite dans les pages cours) */
.content-sidebar {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid var(--accent);
}

.content-sidebar h3 {
    color: var(--light);
    margin-bottom: 15px;
}

/* LISTE USP dans la sidebar */
.usp-list {
    list-style: none;
    padding-left: 0;
}

.usp-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.usp-list li::before {
    content: '✓';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
    text-shadow: 0 0 10px var(--accent);
}

/* Petit texte note dans la sidebar (Ernährung, Lauftraining, Mobilität) */
.sidebar-note {
    margin-top: 20px;
    font-style: italic;
    font-size: 0.9rem;
    color: #ccc;
}

/* BLOC ENTRAINEUR (Lauftraining) */
.trainer-block {
    background-color: #242424;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 90, 95, 0.2);
}

.trainer-block img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px rgba(255, 90, 95, 0.4);
    margin-bottom: 20px;
}

.trainer-expertise {
    font-style: italic;
    color: var(--accent);
    margin-bottom: 10px;
}

/* ===============================
   HERO GLOBAL – Mobile
   =============================== */
@media (max-width: 768px) {

    .kurs-hero,
    .page-hero,
    .ueberuns-hero {
        height: 60vh;
        min-height: 380px;
        padding: 0 !important;
        background-position: center top;
    }

    .kurs-hero::before,
    .page-hero::before,
    .ueberuns-hero::before {
        background: rgba(0,0,0,0.45);
    }

    .hero-content h1,
    .ueberuns-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-content p,
    .ueberuns-hero .intro-text {
        font-size: 1rem;
        margin-top: 10px;
        padding: 0 15px;
    }

    .hero-content .btn {
        padding: 10px 22px;
        font-size: 0.9rem;
        margin-top: 20px;
    }

    .kurs-content-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================== */
/* 7. SPÉCIFIQUE : PRIX (FEATURED) */
/* =========================================== */

/* Carte "Mise en avant" (Featured) */
.featured-card {
    background: linear-gradient(145deg, var(--accent), #e0484d) !important;
    color: #111 !important;
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 90, 95, 0.5) !important;
    border: none !important;
    z-index: 2;
}

.featured-card:hover {
    transform: scale(1.08) translateY(-10px);
}

.featured-card h3, .featured-card .price {
    color: #000 !important;
    text-shadow: none !important;
}

.featured-card .price small {
    color: #333 !important;
}

.featured-card p, .featured-card li {
    color: #222 !important;
    font-weight: 500;
}

.featured-card .btn {
    background-color: #000;
    color: var(--accent);
    box-shadow: none;
}
.featured-card .btn:hover {
    background-color: #fff;
    color: #000;
}

.price {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 700;
    margin: 20px 0;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(255, 90, 95, 0.4);
}

.price small {
    font-size: 1rem;
    font-weight: 400;
    color: #999;
    display: block;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--text-silver);
}
.featured-card .features-list li {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.pricing-note {
    margin-top: 60px;
    text-align: center;
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.85;
}


/* =========================================== */
/* 8. SPÉCIFIQUE : WISSEN (ARTICLES) */
/* =========================================== */
.wissen-hero {
    text-align: center;
    padding-top: 140px;
    padding-bottom: 60px;
    /* Fond dégradé spécifique */
    background: radial-gradient(circle at center, #222 0%, #050505 100%);
}

.article-card {
    padding: 0; /* Pas de padding global car image en haut */
    text-align: left;
    display: flex; 
    flex-direction: column;
    min-height: 500px; 
}

.article-card img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.5s ease;
}

.article-card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content .meta {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.card-content h3 {
    font-size: 1.4rem;
    line-height: 1.3;
}

/* ==========================================================
   ARTICLE PAGE (wissen/artikel3.php, artikel1.php, artikel2.php)
   ========================================================== */

.article-hero {
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.article-hero h1 {
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 0;
}

.category-tag {
    display: inline-block;
    background: var(--accent);
    color: #111;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.article-content {
    padding: 40px 0;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    color: var(--accent);
    margin-top: 30px;
}

.article-content p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}



/* =========================================== */
/* 9. SPÉCIFIQUE : CONTACT */
/* =========================================== */
.kontakt-section {
    padding-top: 100px;
}

.kontakt-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-top: 50px;
    
    /* Carte de contact géante */
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow-metallic);
    border: var(--glass-border);
}

.form-contact label {
    color: var(--light);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.form-contact input, 
.form-contact textarea {
    width: 100%;
    padding: 16px;
    background-color: rgba(0,0,0,0.4); 
    border: 1px solid #444; 
    border-radius: 4px;
    color: #fff; 
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease; 
    margin-bottom: 20px;
}

.form-contact input:focus, 
.form-contact textarea:focus {
    outline: none;
    border-color: var(--accent); 
    background-color: rgba(0,0,0,0.8); 
    box-shadow: 0 0 15px rgba(255, 90, 95, 0.2); 
}

/* Zone Info Contact */
.info-area h3 {
    color: var(--accent);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    margin-top: 0;
}
.info-area strong { color: var(--light); }
.info-area p, .info-area li { color: var(--text-silver); }

.form-success {
    background: #1d4025;
    padding: 15px;
    color: #7dffb3;
    border-left: 4px solid #28a745;
    border-radius: 6px;
    margin-bottom: 20px;
}

.form-error {
    background: #842029;
    color: #f8d7da;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 5px solid #dc3545;
    border-radius: 5px;
}




/* =========================================== */
/* 11. FOOTER */
/* =========================================== */
footer {
    background-color: #020202; /* Noir quasi absolu */
    color: #888;
    text-align: center;
    padding: 50px 20px;
    border-top: 1px solid #222;
    position: relative;
    z-index: 5;
}

footer a {
    color: var(--text-silver);
}
footer a:hover {
    color: var(--accent);
}


/* =========================================== */
/* MOBILE & TABLETTE (RESPONSIVE)              */
/* =========================================== */

@media (max-width: 768px) {
    
    /* 1. Header et Navigation */
    header {
        padding: 10px 15px !important;
    }
    
    .burger-menu {
        display: block !important; /* Force l'affichage du bouton burger */
    }

    /* Le menu se cache sur le côté */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Caché à droite */
        width: 80% !important;
        max-width: 320px;
        height: 100vh;
        background-color: #000; /* Fond noir opaque pour lisibilité */
        z-index: 999;
        transition: right 0.4s ease-in-out;
        padding-top: 80px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.8);
        display: block !important; /* S'assurer qu'il n'est pas display:none */
    }
    
    /* Quand le JS ajoute la classe .active, le menu sort */
    .main-nav.active {
        right: 0;
    }

    /* Liste des liens en colonne */
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 30px;
    }

    .main-nav li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #222;
        padding: 15px 0;
    }
    
    .main-nav a {
        font-size: 1.1rem;
        display: block;
    }
    
    /* Bouton CTA dans le menu */
    .btn-nav {
        margin-top: 20px;
        display: inline-block;
        width: 100%;
        text-align: center;
    }

    /* 2. Ajustements Sections pour Mobile */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    /* Réduit la taille des images équipe sur mobile */
    .member-img {
        width: 120px !important;
        height: 120px !important;
    }
    
    .team-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
}

/* --- CARTES MEMBRES DE L'ÉQUIPE (STYLE CORRIGÉ: IMAGE RECTANGULAIRE & HAUTEUR FIXE) --- */

.team-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap; 
}

.member-card {
    background-color: var(--metal-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    border: var(--glass-border);
    border-radius: 12px;
    
    padding: 0; 
    
    /* NOUVEAU: FORCER UNE HAUTEUR FIXE ET UTILISER FLEX POUR JUSTIFIER LE CONTENU */
    display: flex; 
    flex-direction: column;
    justify-content: space-between; /* Aide à pousser le contenu */
    height: 450px; /* <--- HAUTEUR FIXE pour l'uniformité */
    
    box-shadow: var(--shadow-metallic);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden; /* Assure que l'image respecte les coins et que rien ne dépasse */
    width: 300px; 
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--accent), 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--accent);
}

/* NOUVELLE CLASSE D'IMAGE */
.member-img {
    width: 100% !important; 
    height: 250px !important; /* Hauteur fixe pour l'image (250px + texte = 450px) */
    
    object-fit: cover; 
    
    border-radius: 12px 12px 0 0; 
    border: none;
    box-shadow: none;
    margin-bottom: 0; 
    flex-shrink: 0; /* Empêche l'image de rétrécir */
}

/* NOUVELLE CLASSE POUR LE CONTENU TEXTE (Nom & Description) */
.member-card-content {
    padding: 25px 20px; 
    text-align: center; 
    /* IMPORTANT: Si le texte est trop long, il sera coupé ou défilé selon le navigateur. */
    /* Pour couper le texte, on peut ajouter : */
    /* flex-grow: 1; min-height: 0; */
}

.member-card h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--light);
    font-size: 1.6rem;
}

.member-card .member-role {
    color: var(--text-silver);
    font-weight: 300;
}

