/* Style Général */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

/* En-tête / Bannière principale */
header {
    background: linear-gradient(rgba(27, 77, 62, 0.82), rgba(27, 77, 62, 0.82)), url('arriere-plan.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 35px 20px 20px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.header-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.site-logo {
    width: auto;
    max-width: 260px;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    background-color: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.6));
}

header h1 {
    margin: 0;
    font-size: 2.2em;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

header p {
    margin: 5px 0;
    font-size: 1.1em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

header p.sub-title {
    font-size: 0.95em;
    opacity: 0.9;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 25px 0 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

header nav ul li a {
    color: #f4d03f;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    display: inline-block;
}

header nav ul li a:hover {
    background-color: #f4d03f;
    color: #1b4d3e;
    transform: translateY(-2px);
}

/* Sections du site */
section {
    max-width: 1000px;
    margin: 30px auto;
    background: #ffffff;
    padding: 25px 35px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

h2 {
    color: #1b4d3e;
    border-bottom: 3px solid #f4d03f;
    padding-bottom: 8px;
    margin-top: 0;
}

h3 {
    color: #2c3e50;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

/* Cartes d'Activités */
.activity-card {
    background-color: #ffffff;
    border-left: 4px solid #1b4d3e;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.activity-card h3 {
    margin-top: 0;
    color: #1b4d3e;
}

.activity-card h4 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1em;
}

/* IMAGE PRINCIPALE (Affiche/Une) - Compacte et propre */
.activity-image {
    width: 100%;
    max-width: 380px;
    max-height: 280px;
    object-fit: contain;
    border-radius: 8px;
    margin: 15px auto;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fafafa;
}

/* GALERIE PHOTO - Grille Moderne 4 colonnes (4x4) */
.activity-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Exactly 4 columns */
    gap: 10px;
    margin-top: 15px;
}

.activity-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.activity-gallery img:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Pied de page */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1b4d3e;
    color: #ffffff;
    margin-top: 40px;
}

/* Adaptation Mobile (Téléphones) */
@media (max-width: 600px) {
    section {
        padding: 15px;
        margin: 15px 10px;
    }

    .activity-gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur écran mobile */
        gap: 8px;
    }

    .activity-gallery img {
        height: 90px;
    }

    .activity-image {
        max-width: 100%;
        max-height: 220px;
    }
}
