/* --- Variables et Reset --- */
:root {
    --primary-color: #f4c542; /* Jaune du logo */
    --secondary-color: #1f4e79; /* Bleu du logo */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background: linear-gradient(180deg, #fdfdfd 0%, #f5f7fb 100%);
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.bg-light {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: var(--secondary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0 auto;
}

/* --- Navigation --- */
.navbar {
    background: linear-gradient(90deg, var(--secondary-color) 0%, #245a87 100%);
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 14px rgba(0,0,0,0.16);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-logo i {
    color: var(--primary-color);
}

.nav-logo-image {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--white);
    padding: 3px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 999px;
    font-weight: 700;
    padding: 0.6rem 1rem;
}

.nav-btn:hover {
    color: var(--secondary-color) !important;
    background: #e0b53a;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background: var(--white);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(31, 78, 121, 0.28), rgba(244, 197, 66, 0.2));
    background-color: #f2f2f2;
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 50px 30px;
    gap: 18px;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    flex: 1;
    max-width: 760px;
    min-height: 440px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.22);
    border: 3px solid rgba(255,255,255,0.75);
}

.carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(rgba(0,0,0,0.30), rgba(0,0,0,0.45));
    backdrop-filter: blur(2px);
}

.hero-side-logo {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 24px;
    background: rgba(255,255,255,0.96);
    padding: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
    flex-shrink: 0;
    align-self: center;
    border: 2px solid rgba(31, 78, 121, 0.15);
}

.hero-side-logo-left {
    margin-right: 18px;
}

.hero-side-logo-right {
    margin-left: 18px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-main {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-main:hover {
    background: #d35400;
}

/* --- Section Club --- */
.club-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.club-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.stat-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* --- Tableau Agenda & Circuits --- */
.agenda-table {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.agenda-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.agenda-row.header {
    background: var(--secondary-color);
    color: var(--white);
    font-weight: bold;
}

.circuits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.circuit-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.07);
}

.circuit-card h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.circuit-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.circuit-card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.sorties-editor-panel {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-left: 5px solid var(--secondary-color);
}

.sorties-editor-panel h4 {
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.sorties-editor-panel p {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.sorties-editor-panel textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.sorties-editor-panel button {
    margin-top: 10px;
    border: none;
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
}

.pdf-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    margin-top: 25px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-left: 5px solid var(--primary-color);
}

.pdf-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.pdf-card p {
    margin-bottom: 15px;
    color: #666;
}

.btn-pdf {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-pdf:hover {
    background: #d35400;
}

.btn-gps {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* --- Bloc Contact (Modifié - Sans formulaire) --- */
.contact-box {
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.contact-box h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-box p {
    color: #666;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 10px 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

a.contact-item:hover {
    transform: translateY(-3px);
    color: var(--primary-color);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* --- Footer --- */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1.3rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* --- Sorties exceptionnelles --- */
.sortie-card {
    margin-bottom: 20px;
}

.sortie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.sortie-date {
    color: var(--secondary-color);
    font-weight: 600;
}

.sortie-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 12px;
}

.sortie-photo-wrapper {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    background: #f2f2f2;
}

.sortie-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* --- Responsive tablette --- */
@media (max-width: 900px) {
    .container {
        width: 90%;
    }
    .club-grid {
        grid-template-columns: 1fr;
    }
    .club-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .club-stats .stat-card {
        flex: 1 1 160px;
    }
}

/* --- Responsive mobile --- */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    .container {
        width: 92%;
    }

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

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }

    /* Navigation */
    .navbar {
        height: 66px;
    }

    .nav-container {
        width: 92%;
    }

    .nav-logo-image {
        width: 34px;
        height: 34px;
    }

    .nav-logo {
        font-size: 1.05rem;
        gap: 6px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 66px;
        right: 0;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - 66px);
        background: var(--secondary-color);
        padding: 20px 0;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -4px 0 14px rgba(0,0,0,0.2);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1.05rem;
    }

    /* Hero */
    .hero-section {
        flex-direction: column;
        min-height: auto;
        padding: 30px 16px;
        gap: 14px;
    }

    .hero-side-logo {
        width: 78px;
        height: 78px;
        padding: 8px;
        order: 0;
    }

    .hero-side-logo-left,
    .hero-side-logo-right {
        margin: 0;
    }

    .hero-carousel {
        order: 1;
        width: 100%;
        min-height: 300px;
        border-radius: 16px;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 0;
    }

    /* Club */
    .club-grid {
        gap: 24px;
    }

    .club-stats {
        flex-direction: row;
        gap: 12px;
    }

    .stat-card {
        padding: 14px 10px;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    /* PDF / info cards */
    .pdf-card {
        padding: 18px;
        margin-top: 18px;
    }

    .btn-pdf {
        display: block;
        width: 100%;
        text-align: center;
        padding: 13px 20px;
    }

    /* Agenda table */
    .agenda-table {
        overflow-x: hidden;
    }

    .agenda-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 16px;
    }

    .agenda-row.header {
        display: none;
    }

    .agenda-row:not(.header) {
        border: 1px solid #e5e5e5;
        border-radius: 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid #e5e5e5;
    }

    /* Circuits */
    .circuits-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Tarifs list inside contact section */
    #inscriptions .pdf-card ul {
        margin-left: 16px !important;
    }

    /* Contact */
    .contact-box {
        padding: 26px 18px;
    }

    .contact-details {
        flex-direction: column;
        width: 100%;
    }

    .contact-item {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Sorties / événements / compétitions cards */
    .sortie-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .sortie-header h3 {
        font-size: 1.25rem !important;
    }

    .sortie-photos {
        grid-template-columns: 1fr;
    }

    .sortie-photo {
        height: 200px;
    }
}

@media (max-width: 420px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .stat-card i {
        font-size: 1.5rem;
    }

    .stat-card h3 {
        font-size: 1.3rem;
    }

    .nav-menu {
        width: 100%;
        max-width: none;
    }
}