/* --- CONFIGURATION GLOBALE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { 
    font-family: 'Oswald', sans-serif; 
    background-color: #0d0d0d !important; 
    color: white !important; 
    width: 100%; 
    min-height: 100vh;
}
.red { color: #ff0000; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- NAVBAR --- */
.navbar { background: #000; border-bottom: 3px solid #ff0000; padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo-text { font-size: 2rem; font-weight: bold; color: white; text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 25px; align-items: center; }
.nav-links a { color: #fff; text-decoration: none; font-weight: bold; text-transform: uppercase; }
.nav-links a.active { color: #ff0000; }

.btn-premium { 
    background: #ff0000; 
    padding: 10px 20px; 
    color: white !important; 
    text-decoration: none; 
    font-weight: bold;
    display: inline-block;
}

/* --- ACCUEIL (HERO) --- */
body.home-page { overflow: hidden; height: 100vh; display: flex; flex-direction: column; }
.hero-section { 
    flex: 1; 
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/bg-padel.jpg'); 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center;
}
.hero-section h1 { font-size: 5rem; text-transform: uppercase; font-weight: 700; color: white; }

/* --- HEADERS DES PAGES --- */
.page-header { padding: 60px 0; background: #1a1a1a; text-align: center; border-bottom: 1px solid #333; }

/* --- SYSTÈME DE CARTES (COMMUN FORMULES & ACADÉMIE) --- */
.flip-grid, .grid-wpt {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
    width: 100%;
    clear: both;
}

/* Fix pour la hauteur des cartes */
.flip-card, .flip-card-formule {
    height: 450px; /* Force la hauteur pour que la carte ne s'écrase pas */
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card:hover .flip-card-inner, 
.flip-card-formule:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back, 
.flip-card-front-formule, .flip-card-back-formule {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    overflow: hidden;
}

/* --- STYLES SPÉCIFIQUES ACADÉMIE --- */
.flip-card-front {
    background-size: cover;
    background-position: center;
}

.flip-card-front h2 {
    color: white;
    text-transform: uppercase;
    font-size: 2.2rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9); /* Améliore la lisibilité sur l'image */
}

.flip-card-back {
    background: #111;
    transform: rotateY(180deg);
    text-align: center;
}

/* --- STYLES SPÉCIFIQUES FORMULES --- */
.flip-card-formule.featured { transform: scale(1.05); }
.flip-card-front-formule { background: #151515; border-top: 4px solid #ff0000; }
.flip-card-back-formule { background: #111; transform: rotateY(180deg); }

.wpt-price { font-size: 2.5rem; font-weight: bold; color: #fff; margin-bottom: 10px; }
.wpt-price span { font-size: 1rem; color: #888; }

.flip-card-back-formule ul, .flip-card-back ul {
    list-style: none;
    margin-bottom: 25px;
    width: 100%;
    text-align: left;
}

.flip-card-back-formule ul li, .flip-card-back ul li {
    padding: 8px 0;
    color: #ccc;
    border-bottom: 1px solid #222;
    font-size: 0.95rem;
}

.flip-card-back-formule ul li::before, .flip-card-back ul li::before {
    content: "✓ ";
    color: #ff0000;
}

.btn-sub {
    display: block;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    text-align: center;
}

/* --- SECTION NOS COACHS --- */
.team-section { padding: 60px 0; text-align: center; background-color: #0d0d0d; width: 100%; }
.section-title { font-size: 2.5rem; color: #fff; margin-bottom: 40px; text-transform: uppercase; letter-spacing: 3px; }
.team-container { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.coach-card { flex: 1; max-width: 350px; padding: 20px; transition: 0.3s; }
.coach-card:hover { transform: translateY(-10px); }
.coach-img {
    width: 220px; height: 220px; margin: 0 auto 25px;
    border-radius: 50%; border: 3px solid #ff0000;
    overflow: hidden; box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}
.coach-img img { width: 100%; height: 100%; object-fit: cover; }
.coach-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; text-transform: uppercase; }
.coach-role { color: #ff0000; font-weight: bold; margin-bottom: 15px; }
.coach-desc { color: #bbb; font-size: 0.95rem; line-height: 1.6; font-style: italic; }

/* --- FORMULAIRES & CONTACT --- */
.contact-wrapper { display: grid; grid-template-columns: 0.8fr 2.2fr; gap: 40px; padding: 60px 0; align-items: center; }
.premium-form { background: #151515; padding: 40px 60px; border: 1px solid #222; width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.premium-form input, .premium-form select, .premium-form textarea { 
    width: 100%; padding: 15px; background: #0d0d0d; border: 1px solid #333; color: white; font-family: 'Oswald'; margin-bottom: 20px;
}
.btn-submit-premium { width: 100%; padding: 18px; background: #ff0000; color: white; border: none; font-weight: bold; cursor: pointer; }

/* --- BANDEAU DÉFILANT --- */
.news-bar { background: #111; border-top: 2px solid #ff0000; padding: 20px 0; overflow: hidden; width: 100%; }
.news-track { display: flex; gap: 80px; white-space: nowrap; animation: scroll 30s linear infinite; font-weight: bold; font-size: 1.8rem; letter-spacing: 2px; text-transform: uppercase; }

@keyframes scroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

footer { padding: 30px; background: #000; text-align: center; border-top: 1px solid #222; clear: both; }
/* --- ADAPTATION MOBILE (Écrans de moins de 768px) --- */
@media (max-width: 768px) {
    
    /* Navbar : on empile les liens ou on réduit l'espace */
    .nav-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .nav-links {
        gap: 10px;
        font-size: 0.9rem;
    }

    /* Titres des pages plus petits */
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Grilles : on force le passage à 1 seule colonne */
    .flip-grid, .grid-wpt, .team-container, .contact-wrapper {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }

    /* Ajustement des cartes pour mobile */
    .flip-card, .flip-card-formule {
        width: 100%;
        max-width: 320px;
        height: 400px; /* Un peu plus court sur mobile */
    }

    /* Coachs : images un peu plus petites */
    .coach-img {
        width: 180px;
        height: 180px;
    }

    /* Formulaire de contact : on empile les champs Nom et Email */
    .form-row {
        grid-template-columns: 1fr !important;
    }

    .premium-form {
        padding: 20px;
    }
}