/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a1a;
    --secondary: #cc0000;
    --secondary-hover: #990000;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

img {
    max-width: 100%;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 40px; }

/* ==================== BOUTONS ==================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 0, 0, 0.3);
}

/* /!\ RESERVEE AUX FONDS SOMBRES.
   Texte et bordure sont blancs sur fond transparent : posee sur un fond clair
   (une .section par defaut, par exemple), cette classe devient litteralement
   INVISIBLE - le bouton occupe sa place mais rien ne s'y voit.
   Sur fond clair, utiliser .btn-primary, ou redefinir couleur et bordure
   localement comme le fait 404.php. */
.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-large {
    padding: 18px 50px;
    font-size: 20px;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.9);
}

.header.header-white {
    background: var(--white);
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo a {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.logo-ak {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
}

.logo-mk {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
}

.header-white .logo-mk {
    color: var(--primary);
}

.logo-sub {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-light);
    margin-left: 8px;
}

/* Navigation */
.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    transition: var(--transition);
    position: relative;
}

.header-white .nav-list a {
    color: var(--primary);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--secondary);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.header-cta .btn {
    font-size: 14px;
    padding: 10px 25px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 3px;
}

.header-white .hamburger span {
    background: var(--primary);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ==================== HERO ==================== */
/*
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    background-image: url('https://via.placeholder.com/1920x1080/1a1a1a/cc0000?text=AKMK+Image');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}
.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
}
*/
/* ==================== HERO AVEC VIDEO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 0;
}

/* Fallback si la vidéo ne charge pas */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    background-image: url('images/AKMK_KRAV_MAGA_a.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 0;
}



.hero-content {
    max-width: 700px;
    padding: 40px 0;
}

.hero-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 5px 20px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 80px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 10px;
}

.hero-title span {
    color: var(--secondary);
}

.hero-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 15px;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
/* ==================== RESPONSIVE HERO ==================== */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll; /* Désactive l'effet parallax sur mobile */
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}
/* ==================== SECTIONS ==================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

/* ==================== CHIFFRES ==================== */
.chiffres {
    background: var(--primary);
    padding: 60px 0;
}

.chiffres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.chiffre-item {
    text-align: center;
}

.chiffre-number {
    font-family: 'Oswald', sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}

.chiffre-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-top: 5px;
}

/* ==================== DISCIPLINES ==================== */
.disciplines {
    background: var(--light-bg);
}

.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.discipline-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.discipline-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.discipline-icon {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.discipline-title {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.discipline-desc {
    color: var(--text-light);
    margin-bottom: 15px;
}

.discipline-features {
    text-align: left;
    padding-left: 10px;
}

.discipline-features li {
    padding: 5px 0;
    color: var(--text-light);
    font-size: 14px
}
/* ==================== GALERIE ==================== */
.galerie {
    background: var(--light-bg);
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.galerie-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.galerie-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.galerie-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.galerie-item:hover img {
    transform: scale(1.05);
}

/* ==================== RESPONSIVE GALERIE ==================== */
@media (max-width: 992px) {
    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* .disciplines-grid n'avait AUCUN palier responsive : elle restait sur
       repeat(3, 1fr) jusqu'a 320px. Comme une piste 1fr ne peut pas descendre
       sous la taille min-content de son contenu, la grille refusait de se
       comprimer, elargissait le document, et provoquait la barre de defilement
       horizontale du site sur mobile (confirme par ablation le 10/08/2026 :
       son retrait faisait passer scrollWidth de 583 a 414).
       Paliers alignes sur ceux de .galerie-grid ci-dessus. */
    .disciplines-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* .chiffres-grid n'avait elle non plus aucun palier : 4 colonnes jusqu'a
       320px, soit moins de 60px par colonne, et des libelles comme
       "Annees d'experience" illisibles. Elle ne provoque PAS le debordement
       horizontal (ablation du 10/08/2026 : sans effet sur scrollWidth), c'est
       une correction de lisibilite.
       Pas de palier a 1 colonne : quatre statistiques courtes tiennent en
       2 colonnes jusqu'en bas (~222px de large sur un ecran de 320px). */
    .chiffres-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .galerie-grid {
        grid-template-columns: 1fr;
    }

    .disciplines-grid {
        grid-template-columns: 1fr;
    }

    .galerie-item img {
        height: 200px;
    }
}

/* Amélioration des cartes disciplines avec images */
.discipline-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.discipline-card:hover img {
    transform: scale(1.02);
}
.discipline-card, .galerie-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.discipline-card.fade-in, .galerie-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== STYLES POUR LES PAGES PROGRAMME ET STAGES ==================== */

/* Bannière de page */
.page-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.page-banner h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 52px;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.8;
}

/* Programme grid */
.programme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.programme-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-top: 4px solid var(--secondary);
}

.programme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.programme-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary);
}

.programme-card ul {
    list-style: none;
    padding: 0;
}

.programme-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.programme-card ul li:last-child {
    border-bottom: none;
}

.programme-card ul li i {
    color: var(--secondary);
    margin-right: 10px;
    width: 20px;
}

/* Stages */
.stages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stage-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.stage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stage-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.stage-card-content {
    padding: 25px;
}

.stage-card-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    margin-bottom: 10px;
}

.stage-card-content .stage-meta {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
}

.stage-card-content .stage-meta i {
    margin-right: 5px;
    color: var(--secondary);
}

.stage-card-content p {
    color: #555;
    margin-bottom: 15px;
}

.stage-card-content .btn {
    font-size: 14px;
    padding: 10px 25px;
}

/* Inscription */
.inscription-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.inscription-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.inscription-form .form-group {
    margin-bottom: 20px;
}

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

.inscription-form input,
.inscription-form select,
.inscription-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    font-family: 'Roboto', sans-serif;
}

.inscription-form input:focus,
.inscription-form select:focus,
.inscription-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.inscription-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.inscription-info {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.inscription-info h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
}

.inscription-info ul {
    list-style: none;
    padding: 0;
}

.inscription-info ul li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.inscription-info ul li i {
    color: var(--secondary);
    font-size: 20px;
    width: 30px;
}

/* Tarifs (dans la page inscription) */
.tarifs-mini {
    margin-top: 30px;
}

.tarifs-mini .tarif-item {
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tarifs-mini .tarif-item .price {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    color: var(--secondary);
}

/* Responsive */
@media (max-width: 992px) {
    .programme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stages-grid {
        grid-template-columns: 1fr;
    }
    
    .inscription-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .programme-grid {
        grid-template-columns: 1fr;
    }
    
    .inscription-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-banner h1 {
        font-size: 36px;
    }
}

/* ==================== ALIGNEMENT DES BANNIÈRES ==================== */
/* ==================== BANNIÈRE DES PAGES INTÉRIEURES ==================== */
.page-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: white;
    padding: 120px 0 60px;
}

.page-banner .banner-content {
    max-width: 800px;
    
    /* ============================================================ */
    /* 🔧 MODIFIEZ ICI POUR CHANGER L'ALIGNEMENT DE TOUTES LES PAGES */
    /* ============================================================ */
    
    /* OPTION 1 : Centré (par défaut) */
    /*text-align: center;*/
    /*margin: 0 auto;*/
    
    /* OPTION 2 : Aligné à gauche */
    text-align: left;
    margin: 0; 
    
    /* OPTION 3 : Aligné à droite */
    /* text-align: right; */
    /* margin-left: auto; */
    /* ============================================================ */
}

.page-banner h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 52px;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.8;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .page-banner {
        padding: 100px 0 40px;
    }
    
    .page-banner h1 {
        font-size: 36px;
    }
    
    /* Sur mobile, on force le centrage pour une meilleure lisibilité */
    .page-banner .banner-content {
        text-align: center !important;
        margin: 0 auto !important;
    }
}

/* ==================== STYLES POUR LES STAGES ==================== */

/* Badge "À venir" */
.stage-badge {
    display: inline-block;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.stage-available {
    background: #cc0000;
    color: white;
}

/* Badge "Passé" */
.stage-past-badge {
    background: #888;
    color: white;
}

/* Carte de stage passé */
.stage-past {
    opacity: 0.7;
    filter: grayscale(0.3);
    transition: var(--transition);
}

.stage-past:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

/* Message "Stage passé" */
.stage-past-message {
    background: #f4f4f4;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    border-left: 4px solid #888;
}

.stage-past-message i {
    color: #888;
    margin-right: 8px;
}

/* Supprimer le bouton d'inscription sur les stages passés */
.stage-past .btn {
    display: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .stage-past {
        opacity: 0.8;
        filter: grayscale(0.2);
    }
    
    .stage-past-message {
        font-size: 13px;
    }
}





/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.9);
}

.header.header-white {
    background: var(--white);
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==================== LOGO ==================== */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Empêche le logo de se réduire */
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    max-height: 36px;  /* Hauteur max = hauteur originale */
    width: auto;       /* Largeur automatique proportionnelle */
    display: block;
    transition: var(--transition);
}

/* Survol du logo */
.logo a:hover .logo-image {
    opacity: 0.85;
    transform: scale(1.02);
}

/* ==================== RESPONSIVE LOGO ==================== */
@media (max-width: 768px) {
    .logo-image {
        max-height: 30px;
    }
    
    .header {
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .logo-image {
        max-height: 26px;
    }
}



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

/* --- Header de base --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.header.header-white {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* --- Container --- */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    max-height: 36px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

.logo a:hover .logo-image {
    opacity: 0.85;
    transform: scale(1.02);
}

/* --- Navigation --- */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.header-white .nav-list a {
    color: var(--primary);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--secondary);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: all 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

/* --- Lien Facebook dans le menu --- */
.nav-social {
    margin-left: 5px;
}

.social-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
}

.header-white .social-nav-link {
    background: rgba(0, 0, 0, 0.06);
    color: var(--primary) !important;
}

.social-nav-link:hover {
    background: var(--secondary) !important;
    color: white !important;
    transform: translateY(-2px);
}

.social-nav-link::after {
    display: none !important;
}

.social-nav-link i {
    font-size: 16px;
}

/* --- Header right (CTA + Hamburger) --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-cta .btn {
    font-size: 13px;
    padding: 8px 20px;
}

/* --- Hamburger --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.header-white .hamburger span {
    background: var(--primary);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

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

/* --- Tablette (max 992px) --- */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        /* Panneau ancre au bord droit, sorti de l'ecran par transformation.
           ATTENTION : cela ne supprime PAS le debordement horizontal. Une
           boite transformee entre dans le calcul de la zone defilable, au
           meme titre qu'une boite decalee par right/left.
           Le debordement horizontal constate sur mobile vient de ce que
           .header (bloc conteneur de ce panneau, du fait de son
           backdrop-filter) mesure lui-meme plus que la largeur du viewport.
           Cause a identifier - voir le point ouvert dans README section 6bis. */
        right: 0;
        transform: translateX(105%);
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: var(--primary);
        padding: 80px 30px 30px;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        overflow-y: auto;
        box-shadow: -10px 0 40px rgba(0,0,0,0.2);
    }
    
    .header-white .nav {
        background: white;
    }
    
    .nav.open {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-list a {
        display: block;
        padding: 12px 15px;
        font-size: 18px;
        color: rgba(255, 255, 255, 0.9) !important;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .header-white .nav-list a {
        color: var(--primary) !important;
    }
    
    .nav-list a:hover,
    .nav-list a.active {
        background: rgba(204, 0, 0, 0.1);
        color: var(--secondary) !important;
    }
    
    .nav-list a::after {
        display: none;
    }
    
    .nav-social {
        margin: 10px 0 0 0;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .header-white .nav-social {
        border-top-color: rgba(0, 0, 0, 0.08);
    }
    
    .social-nav-link {
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.08) !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .header-white .social-nav-link {
        background: rgba(0, 0, 0, 0.06) !important;
        color: var(--primary) !important;
    }
    
    .social-nav-link:hover {
        background: var(--secondary) !important;
        color: white !important;
    }
    
    /* Overlay pour fermer le menu */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* --- Mobile (max 576px) --- */
@media (max-width: 576px) {
    .header {
        padding: 8px 0;
    }
    
    .logo-image {
        max-height: 30px;
    }
    
    .header-cta .btn {
        font-size: 11px;
        padding: 6px 14px;
    }
    
    .hamburger span {
        width: 24px;
        height: 2.5px;
    }
    
    .nav {
        width: 100%;
        max-width: 100%;
        padding: 70px 20px 20px;
    }
    
    .nav-list a {
        font-size: 16px;
        padding: 10px 12px;
    }
}

/* ==================================================================
   RESPONSIVE DES PAGES INTERIEURES   (lot du 10/08/2026)

   Ces zones etaient ecrites en style="..." inline dans le PHP, donc
   impossibles a surcharger par media query. Les declarations ont ete
   deplacees ici a l'identique et les elements portent une classe.
   Aucun changement d'apparence sur grand ecran.
   Paliers reutilises : 992 / 768 / 576, comme partout ailleurs.
   ================================================================== */

/* --- le-club.php : Notre Histoire (texte + image cote a cote) --- */
.club-histoire {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

/* --- le-club.php : Nos Valeurs (3 blocs) --- */
.club-valeurs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- le-club.php : L'Equipe (4 colonnes, 5 membres) --- */
.club-equipe {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* --- programme.php ET cours.php : Nos Specialites (4 blocs) --- */
.specialites-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* --- cours.php : Planning Hebdomadaire --- */
.planning-wrapper {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 60px;
}

/* Le defilement est porte par ce conteneur, qui n'enveloppe QUE le tableau :
   le titre et l'indication restent fixes, et la page ne defile jamais. */
.planning-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.planning-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.planning-hint {
    display: none;
}

@media (max-width: 992px) {
    .club-valeurs,
    .club-equipe,
    .specialites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .club-histoire {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .planning-wrapper {
        padding: 20px 15px;
    }

    /* Le conteneur portait deja overflow-x: auto, mais sans effet : un tableau
       en width:100% ne depasse jamais son conteneur, il se comprime jusqu'a
       l'illisible. C'est ce min-width qui le fait deborder et qui active enfin
       le defilement. */
    .planning-table {
        min-width: 620px;
        font-size: 14px;
    }

    .planning-hint {
        display: block;
        margin-top: 12px;
        font-size: 12px;
        font-style: italic;
        color: #888;
    }

    .planning-hint i {
        color: var(--secondary);
        margin-right: 5px;
    }
}

@media (max-width: 576px) {
    .club-valeurs,
    .club-equipe,
    .specialites-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================================================
   cours.php : TENUE ET EQUIPEMENT   (ajout du 12/08/2026)

   Bloc volontairement AUTONOME. Il reprend l'apparence des cartes de
   .specialites-grid (fond blanc, rayon 12px, meme ombre, icone 36px)
   mais sans toucher a cette regle, partagee avec programme.php.
   Tout est en classes : aucun style="..." inline, contrairement aux
   cartes Specialites de cours.php dont l'habillage inline avait
   bloque la responsivite.
   Paliers reutilises : 992 / 768 / 576, comme partout ailleurs.
   ================================================================== */
.equipement-wrapper { margin-top: 60px; }

.equipement-titre {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
}

/* 3 colonnes et non 4 comme .specialites-grid : ces cartes portent un
   paragraphe complet (ou une sous-liste), pas une ligne de legende. */
.equipement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.equipement-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.equipement-icone {
    display: block;
    text-align: center;
    font-size: 36px;
    color: var(--secondary);
}

.equipement-card h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    text-align: center;
    margin: 10px 0;
    color: var(--primary);
}

/* Titre et icone centres, corps de texte a gauche : un paragraphe long
   ou une liste a puces se lit mal centre. */
.equipement-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.equipement-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.equipement-liste li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.equipement-liste li:last-child { border-bottom: none; }

.equipement-liste li i {
    color: var(--secondary);
    margin-right: 8px;
}

@media (max-width: 992px) {
    .equipement-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .equipement-titre { font-size: 26px; }
}

@media (max-width: 576px) {
    .equipement-grid { grid-template-columns: 1fr; }
}

/* ==================================================================
   COMPOSANT MODALE  (partage)
   Deplace ici depuis includes/alert-modal.php le 11/08/2026.

   /!\ Ce composant est utilise par DEUX modules :
       - le dispositif d'information (includes/alert-modal.php)
       - les stages a inscription externe (stages.php)

   Il vivait auparavant dans un <style> place a l'interieur du bloc
   conditionnel de alert-modal.php : le CSS n'etait donc emis que s'il
   existait un message d'information actif. Toute autre modale se
   retrouvait sans style le reste du temps. D'ou ce deplacement.

   Le prefixe info- est conserve volontairement : le renommer imposerait
   de toucher au JS d'un module en production pour un gain cosmetique.
   ================================================================== */

/* ==================== PICTO PERMANENT ==================== */
/* Specifique au dispositif d'information ; non utilise par les stages. */
.info-picto {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: #CC0000;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}
.info-picto:hover { background: #990000; transform: scale(1.08); }
.info-picto:focus { outline: 3px solid rgba(204, 0, 0, 0.4); outline-offset: 2px; }

.info-picto-compteur {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

/* ==================== MODALE ==================== */
.info-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.info-modal-overlay.ouvert { display: flex; }

.info-modal-box {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.info-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    background: #1a1a1a;
    color: #fff;
}
.info-modal-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-modal-header h2 i { color: #CC0000; }
.info-modal-compteur {
    background: #CC0000;
    border-radius: 11px;
    padding: 2px 10px;
    font-size: 13px;
    font-weight: 700;
}
.info-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.info-modal-close:hover { color: #CC0000; }

.info-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
}

.info-item {
    border: 1px solid #eee;
    border-left: 4px solid #CC0000;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 14px;
}
.info-item:last-child { margin-bottom: 0; }
.info-item h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    margin: 0 0 6px;
    color: #1a1a1a;
}
.info-item-dates {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}
.info-item-dates i { color: #CC0000; margin-right: 4px; }
.info-item-message {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    /* Preserve les retours a la ligne saisis en admin sans passer par nl2br */
    white-space: pre-line;
}

.info-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    text-align: right;
}

@media (max-width: 600px) {
    .info-picto { bottom: 16px; left: 16px; width: 50px; height: 50px; font-size: 19px; }
    .info-modal-header h2 { font-size: 17px; }
    .info-item-message { font-size: 14px; }
}

/* --- Suppression du scroll quand le menu est ouvert --- */
body.menu-open {
    overflow: hidden;
}


/* ==================== MODALE D'ERREUR ==================== */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.error-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.error-modal-box {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    max-height: 90vh;
    overflow-y: auto;
}
.error-modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    border-radius: 16px 16px 0 0;
}
.error-modal-header h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    margin: 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.error-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: var(--transition);
    padding: 0 5px;
    line-height: 1;
}
.error-modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}
.error-modal-body {
    padding: 25px;
}
.error-modal-body p {
    margin: 0 0 10px;
    color: #555;
    font-size: 15px;
}
.error-modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.error-modal-body ul li {
    padding: 5px 0;
    color: #e74c3c;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.error-modal-body ul li::before {
    content: "✗";
    color: #e74c3c;
    font-weight: bold;
}
.error-modal-footer {
    padding: 15px 25px 25px;
    border-top: 2px solid #f0f0f0;
    text-align: right;
    background: #fafafa;
    border-radius: 0 0 16px 16px;
}
@media (max-width: 640px) {
    .error-modal-box {
        margin: 10px;
    }
}