/* --- 1. Variables & Reset (Thème Clair Océan) --- */
:root {
    /* Palette de couleurs */
    --primary-color: #0ea5e9;   /* Turquoise vif (boutons, accents) */
    --secondary-color: #0c4a6e; /* Bleu marine profond (titres, texte fort) */
    --text-color: #334155;      /* Gris foncé (texte courant) */
    --bg-light: #f8fafc;        /* Fond très clair (sections secondaires) */
    --bg-white: #ffffff;        /* Fond blanc pur (cartes, sections principales) */
    
    /* Ombres & Arrondis */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius-md: 12px;
}

/* Reset de base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-color);
    line-height: 1.7;
}

/* Typographie */
h1, h2, h3, .stat-number {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary-color);
    font-weight: 700;
}

h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

/* Petit trait turquoise sous les titres de section */
h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Boutons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: #0284c7; /* Un peu plus foncé au survol */
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* --- 2. Sections Spécifiques --- */

/* Hero Section (Bannière) */
.hero {
    height: 85vh; /* Un peu moins haut */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white; /* Texte blanc sur l'image */
}

/* Filtre bleu par-dessus l'image pour la lisibilité */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(12, 74, 110, 0.7), rgba(14, 165, 233, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

/* Section standard (padding) */
section {
    padding: 80px 0;
}

/* Section "À Propos" (Fond clair) */
.about {
    background-color: var(--bg-light);
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Section Activités (Cartes blanches propres) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.activity-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%; /* Pour que toutes les cartes aient la même hauteur */
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 30px;
    flex-grow: 1; /* Le contenu remplit l'espace restant */
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.card-content p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start; /* Aligne le lien à gauche */
    transition: color 0.2s;
}

.card-link:hover {
    color: var(--secondary-color);
}

/* Section Rétrospective 2026 (Bento Grid clair) */
.recap {
    background-color: var(--bg-light);
}

.recap-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes sur grand écran */
    gap: 25px;
}

.bento-item {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color); /* Bordure de couleur à gauche */
    transition: transform 0.3s ease;
}

.bento-item:hover {
    transform: scale(1.03);
}

.bento-item.large {
    grid-column: span 2; /* Prend 2 colonnes */
    background: linear-gradient(135deg, var(--bg-white), #e0f2fe); /* Léger dégradé bleu clair */
}

/* Section Statistiques (Bandeau bleu marine) */
.stats {
    background-color: var(--secondary-color); /* Fond bleu foncé */
    color: white;
    padding: 60px 0;
}

.stats-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.stat-item {
    flex: 1 1 200px; /* Responsive */
}

.stat-number {
    display: block;
    font-size: 4rem;
    color: var(--primary-color); /* Chiffres en turquoise */
    line-height: 1;
    margin-bottom: 10px;
}

.stat-number small {
    font-size: 2rem;
    font-weight: 600;
}

.stat-text {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive pour mobile */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr); /* Pass en 2 colonnes sur tablette */
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    h2.section-title { font-size: 2rem; }
    .bento-grid { grid-template-columns: 1fr; } /* 1 colonne sur mobile */
    .bento-item.large { grid-column: span 1; }
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    background-color: #082f49; /* Bleu marin très sombre (plus foncé que secondary-color) */
    color: #cbd5e1; /* Gris bleu clair pour le texte */
    padding-top: 70px;
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* La colonne logo prend plus de place */
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

/* Petit trait turquoise sous les titres du footer */
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Style du Logo dans le footer */
.footer-logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    line-height: 1;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

/* Le '&' en turquoise pour le style */
.footer-logo a::first-letter {
    color: white;
}
.footer-logo a {
    background: linear-gradient(to right, white 40%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-about p {
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Bouton Contact dans le footer */
.btn-outline-light {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--primary-color);
    color: #082f49;
}

address {
    font-style: normal;
    line-height: 1.8;
}

/* Liens des réseaux sociaux */
.social-links {
    list-style: none;
    padding: 0;
}

.social-links li {
    margin-bottom: 12px;
}

.social-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.social-links a::before {
    content: '→';
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    color: white;
}

.social-links a:hover::before {
    transform: translateX(5px); /* Petite animation de la flèche au survol */
}

/* Bas du footer (Copyright) */
.footer-bottom {
    background-color: #041e30; /* Encore plus foncé */
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 5px;
}

.ess-mention {
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 10px;
    color: #475569;
}

/* Responsive pour tablettes et mobiles */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .footer-about {
        grid-column: span 2; /* Le logo prend toute la largeur en haut sur tablette */
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-about {
        grid-column: span 1;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-col {
        text-align: center;
    }
    .social-links a {
        justify-content: center;
    }
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */

.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky; /* Fixe le menu en haut quand on scroll */
    top: 0;
    z-index: 1000; /* Toujours au-dessus du reste */
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Le Logo dans le header */
.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--secondary-color);
    text-decoration: none;
    letter-spacing: -1px;
}

/* Le petit point turquoise à la fin du logo */
.logo-dot {
    color: var(--primary-color);
}

/* Le Menu */
.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px; /* Espace entre les liens */
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: var(--secondary-color); /* Bleu marine */
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary-color); /* Devient turquoise au survol */
}

/* Bouton Contact dans le menu (On le met en valeur) */
.main-navigation a.btn-nav {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.main-navigation a.btn-nav:hover {
    background-color: #0284c7; /* Turquoise un peu plus foncé */
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white; /* Reste blanc au survol */
}

/* Adaptation pour les téléphones portables */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column; /* On empile le logo et le menu */
        gap: 15px;
    }
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* =========================================
   EXPLOITS & RÉTROSPECTIVE (Défi Kite)
   ========================================= */

.achievement-card {
    display: flex;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.achievement-image {
    flex: 1; /* Prend la moitié de l'espace */
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.achievement-content {
    flex: 1; /* Prend l'autre moitié de l'espace */
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge {
    display: inline-block;
    background-color: #e0f2fe; /* Bleu très clair */
    color: var(--secondary-color); /* Bleu marine */
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
    margin-bottom: 20px;
    border: 1px solid #bae6fd;
}

.achievement-content h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.achievement-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-color);
}

.achievement-content p strong {
    color: var(--secondary-color);
}

/* Responsive pour tablettes et téléphones */
@media (max-width: 992px) {
    .achievement-card {
        flex-direction: column; /* On empile la photo et le texte */
    }
    .achievement-image {
        min-height: 300px;
    }
    .achievement-content {
        padding: 30px;
    }
}
/* --- Variantes pour les Exploits --- */

/* Inverse le sens de la carte sur grand écran (Texte à gauche, Image à droite) */
.achievement-card.reverse {
    flex-direction: row-reverse;
}

/* Couleurs spécifiques pour le badge Voile (Bleu marine foncé) */
.badge-voile {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Sur mobile, on remet toujours l'image en haut pour la lisibilité, même pour la carte inversée */
@media (max-width: 992px) {
    .achievement-card.reverse {
        flex-direction: column-reverse; /* L'image repasse en haut sur mobile */
    }
}

/* Couleurs spécifiques pour le badge Parapente (Turquoise/Ciel) */
.badge-parapente {
    background-color: #ccfbf1; /* Vert d'eau très clair */
    color: #0f766e; /* Vert canard foncé */
    border-color: #99f6e4;
}

/* =========================================
   GALERIE SWIPER
   ========================================= */

.gallery {
    padding: 80px 0;
}

.swiper {
    width: 100%;
    padding-bottom: 50px !important; /* Laisse de la place pour les petits points */
}

.swiper-slide {
    height: 350px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Coupe l'image sans l'écraser pour remplir le cadre */
    transition: transform 0.5s ease;
}

.swiper-slide:hover img {
    transform: scale(1.05); /* Petit zoom sympa au survol */
}

/* On met les flèches et les points aux couleurs du thème */
.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}

/* Amélioration du texte Hero */
.hero-subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.hero h1 {
    line-height: 1.1;
    margin-bottom: 25px;
    font-size: 4.5rem; /* Encore plus grand */
}

.hero p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    opacity: 0.9;
}

/* Boutons côte à côte */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn-outline-white {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid white;
    color: white;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--secondary-color);
}

/* Effet Parallaxe léger */
.hero {
    background-attachment: fixed;
}

/* --- TABLEAU DES RÉSULTATS VOILE --- */

.results-table-wrapper {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
}

.results-table themed tr {
    background-color: var(--secondary-color);
    color: white;
}

.results-table th, .results-table td {
    padding: 12px 15px;
    text-align: left;
}

.results-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.results-table tbody tr:hover {
    background-color: #f8fafc;
}

.results-table td.rank {
    font-weight: 700;
    color: var(--primary-color);
}

/* Bouton spécifique FFVoile */
.btn-ffvoile {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-ffvoile:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Ajustement responsive pour le tableau */
@media (max-width: 480px) {
    .results-table th:nth-child(3), 
    .results-table td:nth-child(3) {
        display: none; /* Cache la colonne lieu sur très petit écran */
    }
}

/* Style spécifique pour le tableau Kite */
.kite-results .results-table thead tr {
    background-color: #92400e; /* Couleur terre/sable foncé */
}

.highlight-row {
    background-color: #fffbeb !important; /* Jaune très clair pour Rémi */
}

.highlight-row td {
    color: #92400e;
    border-top: 2px solid #fde68a;
    border-bottom: 2px solid #fde68a;
}

.small-info {
    font-size: 0.85rem;
    font-style: italic;
    color: #6b7280;
    margin-top: 10px;
}

/* Style pour le bouton Espace Membre dans le menu */
.main-navigation a.btn-member {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.main-navigation a.btn-member:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* On réduit un peu l'espace entre les liens pour que tout tienne bien sur une ligne */
.main-navigation ul {
    gap: 20px; 
}

@media (max-width: 1024px) {
    .main-navigation ul {
        gap: 10px;
        font-size: 0.85rem;
    }
}