/* ==========================================================================
   VARIABLES ET RÉGLAGES GLOBAUX
   ========================================================================== */
:root {
    --primary-color: #d90429; /* Rouge sportif, à changer selon vos couleurs */
    --primary-hover: #ef233c;
    --dark-color: #2b2d42;
    --light-bg: #edf2f4;
    --text-color: #4a4e69;
    --border-radius: 8px;
    --transition: all 0.3s ease-in-out;
}

body {
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.section-padding {
    padding: 80px 0;
}

@media (max-width: 1024px) {
    .section-padding {
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
}

.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-color); }
.text-white { color: #ffffff; }
.text-center { text-align: center; }

/* Utilitaires Flexbox */
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.mt-4 { margin-top: 2rem; }

/* Grille réactive (3 colonnes sur PC, 1 sur mobile) */
.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* ==========================================================================
   BOUTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.btn-outline-light:hover {
    background-color: #ffffff;
    color: var(--dark-color);
}

.link-arrow {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.link-arrow:hover { text-decoration: underline; }

/* ==========================================================================
   1. SECTION HERO (BANNIÈRE)
   ========================================================================== */
.hero-banner {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Effet parallaxe léger */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(43, 45, 66, 0.9), rgba(43, 45, 66, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 700px;
}

.hero-badge {
    background-color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 20px 0;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   2. SECTION DISCIPLINES / INFRASTRUCTURES
   ========================================================================== */
.section-heading h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.section-heading .subtitle {
    font-size: 1.1rem;
    color: #777;
}

.discipline-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.discipline-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.discipline-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

/* ==========================================================================
   3. SECTION ACTUALITÉS
   ========================================================================== */
.post-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.post-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-content { padding: 25px; }

.post-content time {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.post-content h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.post-content h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-content h3 a:hover { color: var(--primary-color); }

/* ==========================================================================
   4. SECTION INFOS PRATIQUES & CARTE
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% / 50% sur PC */
}

.contact-info { padding: 80px 10%; }

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.info-block h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hours-list li:last-child { border-bottom: none; }

.contact-map {
    width: 100%;
    height: 100%;
    min-height: 400px; /* Assure une hauteur minimale sur mobile */
}

/* ==========================================================================
   MEDIA QUERIES (Smartphones et Tablettes)
   ========================================================================== */
@media (max-width: 991px) {
    .hero-title { font-size: 2.8rem; }
    .contact-grid { grid-template-columns: 1fr; /* Passe à 1 colonne */ }
    .contact-info { padding: 60px 20px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .section-heading.d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
    background-color: var(--dark-color); /* Fond sombre pour le contraste */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* --- Logo / Titre --- */
.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.site-title:hover {
    color: var(--primary-color);
}

/* --- Menu de navigation --- */
.site-navigation {
    display: flex;
    gap: 20px;
    align-items: center;
}

.site-navigation a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

/* Effet de soulignement animé au survol */
.site-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.site-navigation a:hover {
    color: var(--primary-color);
}

.site-navigation a:hover::after {
    width: 100%;
}

/* ==========================================================================
   HEADER : VERSION MOBILE
   ========================================================================== */
/* Comme il n'y a pas de menu "hamburger" en HTML, on adapte la disposition */
@media (max-width: 991px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .site-navigation {
        justify-content: center;
        flex-wrap: wrap; /* Permet aux liens de passer à la ligne */
        gap: 12px 20px;
    }
}

/* ==========================================================================
   STYLE DU CALENDRIER (EVENT ORGANISER)
   ========================================================================== */
.calendrier-container {
    background: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: 30px;
}

/* Changer la couleur des événements dans le calendrier */
.fc-event, .fc-event-dot {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Mettre en valeur la date du jour d'une couleur douce */
.fc-unthemed td.fc-today {
    background: #fdf2f4; /* Fond légèrement rouge/rosé */
}

/* ==========================================================================
   FORMULAIRES (CONTACT FORM 7)
   ========================================================================== */

/* Structure générale et labels */
.wpcf7-form {
    max-width: 100%;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--dark-color);
    width: 100%;
}

/* Champs de saisie (texte, email, téléphone, et zone de texte) */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-top: 8px;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    background-color: #f9fafb;
    transition: var(--transition);
    box-sizing: border-box;
}

/* Hauteur spécifique pour la zone de message */
.wpcf7-form textarea {
    min-height: 150px;
    resize: vertical; /* Permet d'agrandir seulement vers le bas */
}

/* État au clic (focus) : bordure aux couleurs du club */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.1);
    background-color: #ffffff;
}

/* Bouton d'envoi (basé sur le style .btn-primary) */
.wpcf7-form input[type="submit"] {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px 35px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    display: inline-block;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(217, 4, 41, 0.3);
}

/* ==========================================================================
   MESSAGES D'ERREUR ET DE SUCCÈS CF7
   ========================================================================== */

/* Boîte de message globale en bas du formulaire */
.wpcf7 form .wpcf7-response-output {
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 20px;
    font-size: 0.95rem;
    border: 2px solid transparent;
}

/* Erreur (ex: un champ obligatoire est vide) */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    border-color: #ffb3c1;
    background-color: #fff0f3;
    color: #c9184a;
}

/* Succès (Message bien envoyé) */
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #a3b18a;
    background-color: #e9edc9;
    color: #344e41;
}

/* Petit texte rouge sous un champ mal rempli */
.wpcf7-not-valid-tip {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}