/* =================================================================== *
 * Vélizy Villacoublay Plongée — Feuille de style principale
 * =================================================================== */

/* ---------- Variables ---------- */
:root {
    --c-primary: #1976d2;
    --c-primary-dark: #1565c0;
    --c-primary-light: #e3f2fd;
    --c-navy: #0d2f5c;
    --c-navy-dark: #08234a;
    --c-navy-light: #1a4a8a;
    --c-text: #1a2540;
    --c-text-muted: #5a6a82;
    --c-bg: #ffffff;
    --c-bg-soft: #f5f9ff;
    --c-bg-card: #ffffff;
    --c-border: #e5edf7;
    --c-border-light: #eef3fa;
    --c-success: #2ec4a1;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 3px rgba(13, 47, 92, 0.06);
    --shadow: 0 4px 16px rgba(13, 47, 92, 0.08);
    --shadow-lg: 0 12px 32px rgba(13, 47, 92, 0.12);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Poppins', var(--font-sans);

    --container-max: 1200px;
    --container-pad: 24px;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--c-navy);
    line-height: 1.25;
    margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px,1px,1px,1px); height: 1px; width: 1px;
    overflow: hidden; word-wrap: normal !important;
}
.skip-link {
    position: absolute; left: -9999px; top: 8px;
    background: var(--c-navy); color: #fff; padding: 10px 16px;
    border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { left: 16px; color: #fff; }

/* ---------- Icônes ---------- */
.cp-icon {
    width: 1.2em; height: 1.2em;
    display: inline-block; vertical-align: middle;
    flex-shrink: 0;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-weight: 600; font-size: 15px;
    transition: all .2s ease;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn .cp-icon { width: 18px; height: 18px; }

.btn--primary {
    background: var(--c-primary); color: #fff;
    box-shadow: 0 2px 8px rgba(25,118,210,.25);
}
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(25,118,210,.35); }

.btn--ghost {
    background: transparent; color: #fff; border-color: rgba(255,255,255,.9);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn--outline {
    background: transparent; color: var(--c-primary); border-color: var(--c-primary);
}
.btn--outline:hover { background: var(--c-primary); color: #fff; }

.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--block { display: flex; justify-content: center; width: 100%; }

.btn--adherent {
    background: var(--c-primary); color: #fff; padding: 10px 18px; font-size: 14px;
    box-shadow: 0 2px 8px rgba(25,118,210,.25);
}
.btn--adherent:hover { background: var(--c-primary-dark); color: #fff; }
.btn--adherent .cp-icon { width: 16px; height: 16px; }


/* =================================================================== *
 * HEADER
 * =================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled,
body.has-inner-header .site-header {
    background: var(--c-navy);
}
/* L'ombre n'apparaît qu'une fois scrollé (sur toutes les pages) */
.site-header.is-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.site-branding .custom-logo { max-height: 50px; width: auto; }

.site-logo-text {
    display: inline-flex; align-items: center; gap: 10px;
    color: #fff; font-family: var(--font-display);
    font-weight: 700; font-size: 17px; line-height: 1.1;
    text-decoration: none;
}
.site-logo-text:hover { color: #fff; }
.site-logo-icon { color: var(--c-primary); width: 38px; height: 38px; display: flex; }
.site-logo-icon .cp-icon { width: 100%; height: 100%; }
.site-logo-name { display: inline-block; max-width: 110px; }

/* Navigation */
.main-navigation { flex: 1; }
.primary-menu {
    display: flex; align-items: center; justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}
.primary-menu li a {
    display: inline-block;
    padding: 8px 14px;
    color: rgba(255,255,255,.92);
    font-weight: 500; font-size: 14.5px;
    border-radius: var(--radius-pill);
    transition: all .2s;
}
.primary-menu li a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    color: #fff;
    background: rgba(255,255,255,.12);
}

/* Toggle mobile */
.menu-toggle {
    display: none;
    background: transparent; border: 0;
    width: 40px; height: 40px;
    flex-direction: column; gap: 5px;
    align-items: center; justify-content: center;
}
.menu-toggle span {
    display: block; width: 22px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: transform .3s, opacity .3s;
}


/* =================================================================== *
 * HERO
 * =================================================================== */
.hero {
    position: relative;
    min-height: 600px;
    margin-top: -86px; /* glissée sous le header */
    padding: 200px 0 140px; /* top: 86 (header) + 114 de respiration */
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(13,47,92,.55) 0%, rgba(13,47,92,.25) 50%, rgba(13,47,92,.6) 100%),
        var(--hero-image, linear-gradient(135deg, #0d2f5c 0%, #1976d2 50%, #4fa3e3 100%));
    background-size: cover;
    background-position: center;
}
.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 620px; }
.hero__title {
    color: #fff;
    font-size: clamp(36px, 5.5vw, 60px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    text-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.hero__subtitle {
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.55;
    color: rgba(255,255,255,.95);
    margin-bottom: 32px;
    max-width: 480px;
}
.hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__wave {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 80px; z-index: 2;
}
.hero__wave svg { width: 100%; height: 100%; display: block; }
.hero__wave-icon {
    position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 36px; height: 36px;
    background: var(--c-bg); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-primary); padding: 7px;
    box-shadow: 0 2px 8px rgba(13,47,92,.1);
}


/* =================================================================== *
 * SECTIONS GÉNÉRIQUES
 * =================================================================== */
.section { padding: 14px 0; position: relative; background: var(--c-bg-soft); }

/* Chaque section apparaît comme une card distincte */
.section > .container {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 48px 40px;
}

/* Section "Les horaires" : image seule, centrée */
.horaires__image { text-align: center; }
.horaires__image img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius);
}

.section-title { margin-bottom: 40px; }
.section-title h2 {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: clamp(24px, 2.5vw, 30px);
    color: var(--c-navy);
}
.section-title h2 .cp-icon { color: var(--c-primary); width: 28px; height: 28px; }
.section-title h2 .section-title__icon { width: 28px; height: 28px; object-fit: contain; }
.section-title--center { text-align: center; }
.section-title--center h2 { justify-content: center; }

.section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    margin-bottom: 24px;
}
.section-head__title {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 22px; margin: 0; color: var(--c-navy);
}
.section-head__title .cp-icon { color: var(--c-primary); width: 24px; height: 24px; }
.section-head__title .section-title__icon { width: 24px; height: 24px; object-fit: contain; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--c-primary); font-weight: 600; font-size: 14.5px;
}
.link-arrow .cp-icon { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .cp-icon { transform: translateX(3px); }
.link-arrow--sm { font-size: 14px; }

.cp-empty {
    text-align: center; padding: 30px;
    color: var(--c-text-muted); font-style: italic;
    background: var(--c-bg-soft);
    border-radius: var(--radius);
}


/* =================================================================== *
 * ACTUALITÉS + ÉVÉNEMENTS
 * =================================================================== */
.news-events-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Actualités */
.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    background: var(--c-bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.news-card__image-link { display: block; aspect-ratio: 16/11; overflow: hidden; border-radius: var(--radius); }
.news-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card__image { transform: scale(1.04); }
.news-card__image--placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--c-primary-light), #b3d9f7);
}

.news-card__body { padding: 16px 4px 4px; }
.news-card__date {
    font-size: 13px; color: var(--c-text-muted);
    display: block; margin-bottom: 6px;
}
.news-card__title {
    font-size: 17px; font-weight: 700;
    margin: 0 0 8px; line-height: 1.3;
}
.news-card__title a { color: var(--c-navy); }
.news-card__title a:hover { color: var(--c-primary); }
.news-card__excerpt {
    font-size: 14px; color: var(--c-text-muted);
    margin-bottom: 12px; line-height: 1.5;
}
.news-card__excerpt p { margin: 0; }

/* Événements */
.events {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 26px;
}
.events__list {
    display: flex; flex-direction: column; gap: 12px;
    margin-bottom: 18px;
}

.event-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: var(--c-bg);
    border: 1px solid var(--c-border-light);
    border-radius: var(--radius);
    transition: all .2s;
    text-decoration: none; color: inherit;
}
.event-item:hover {
    border-color: var(--c-primary);
    box-shadow: var(--shadow-sm);
    transform: translateX(2px);
}

.event-item__date {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--c-success);
    color: #fff;
    border-radius: var(--radius);
    padding: 8px 12px;
    min-width: 58px;
    line-height: 1;
}
.event-item__day {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 700;
}
.event-item__month {
    font-size: 11px; font-weight: 600;
    margin-top: 4px; letter-spacing: .04em;
}

.event-item__title {
    font-size: 15.5px; font-weight: 700;
    color: var(--c-navy); margin: 0 0 2px;
}
.event-item__subtitle {
    font-size: 13.5px; color: var(--c-text-muted);
    margin: 0 0 4px;
}
.event-item__lieu {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12.5px; color: var(--c-text-muted);
    margin: 0;
}
.event-item__lieu .cp-icon { width: 13px; height: 13px; color: var(--c-primary); }

.event-item__chevron { color: var(--c-text-muted); }
.event-item__chevron .cp-icon { width: 18px; height: 18px; }


/* =================================================================== *
 * NIVEAUX
 * =================================================================== */
.niveaux__grid {
    display: grid;
    grid-template-columns: repeat(var(--niveaux-cols, 5), 1fr);
    gap: 18px;
}
.niveau-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 28px 18px 22px;
    text-align: center;
    transition: all .25s;
}
.niveau-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--c-primary);
}
.niveau-card__icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    color: var(--c-primary);
    display: flex; align-items: center; justify-content: center;
}
.niveau-card__icon .cp-icon { width: 100%; height: 100%; stroke-width: 1.5; }
.niveau-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.niveau-card__title {
    font-size: 17px; margin-bottom: 8px;
    color: var(--c-navy);
}
.niveau-card__desc {
    font-size: 13.5px; line-height: 1.55;
    color: var(--c-text-muted);
    margin: 0;
}

/* Card cliquable (ouvre une modale) */
button.niveau-card--clickable {
    font: inherit;
    cursor: pointer;
    width: 100%;
    display: block;
}
.niveau-card__more {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px; font-weight: 600;
    color: var(--c-primary);
}
.niveau-card--clickable:hover .niveau-card__more { text-decoration: underline; }

/* Modale d'activité */
.activite-modal {
    position: fixed; inset: 0; z-index: 200;
    display: none;
}
.activite-modal.is-open { display: block; }
.activite-modal__overlay {
    position: absolute; inset: 0;
    background: rgba(13, 47, 92, 0.6);
}
.activite-modal__dialog {
    position: relative;
    max-width: 680px; width: calc(100% - 40px);
    max-height: 86vh; overflow-y: auto;
    margin: 7vh auto 0;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
}
.activite-modal__close {
    position: absolute; top: 10px; right: 16px;
    background: transparent; border: 0;
    font-size: 30px; line-height: 1;
    color: var(--c-text-muted); cursor: pointer;
}
.activite-modal__close:hover { color: var(--c-navy); }
.activite-modal__title { color: var(--c-navy); margin: 0 0 18px; }


/* =================================================================== *
 * GALERIE (template Galerie)
 * =================================================================== */
/* On garde la galerie native du bloc telle quelle ; on indique juste que
   les images sont cliquables (lightbox). */
.galerie img { cursor: zoom-in; }

/* Lightbox */
.vvp-lightbox {
    position: fixed; inset: 0; z-index: 300;
    display: none;
    background: rgba(8, 23, 46, 0.92);
}
.vvp-lightbox.is-open { display: flex; align-items: center; justify-content: center; }
.vvp-lightbox__img {
    max-width: 92vw; max-height: 86vh;
    width: auto; height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.vvp-lightbox__btn {
    position: absolute;
    background: rgba(255,255,255,.12);
    color: #fff; border: 0;
    width: 48px; height: 48px;
    border-radius: 50%;
    font-size: 24px; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease;
}
.vvp-lightbox__btn:hover { background: rgba(255,255,255,.25); }
.vvp-lightbox__close { top: 20px; right: 20px; }
.vvp-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.vvp-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 480px) {
    .vvp-lightbox__prev { left: 10px; }
    .vvp-lightbox__next { right: 10px; }
    .vvp-lightbox__btn { width: 42px; height: 42px; }
}


/* =================================================================== *
 * ÉQUIPE
 * =================================================================== */

/* --- Accueil : photo mise en valeur + bouton --- */
.equipe__showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.equipe__photo {
    position: relative;
    margin: 0;
    max-width: 720px;
    width: 100%;
}
.equipe__photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}
/* Bloc d'accent décalé derrière la photo */
.equipe__photo::before {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    background: var(--c-primary-light);
    border-radius: var(--radius-lg);
    z-index: 0;
}
/* Petit liseré coloré en haut à gauche */
.equipe__photo::after {
    content: "";
    position: absolute;
    top: -10px; left: -10px;
    width: 64px; height: 64px;
    border-top: 4px solid var(--c-primary);
    border-left: 4px solid var(--c-primary);
    border-top-left-radius: var(--radius-lg);
    z-index: 2;
}
.equipe__btn { align-self: center; }
.entry-content--lead { max-width: 720px; margin: 0 auto 32px; text-align: center; }

.equipe__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.membre-card {
    text-align: center;
    padding: 8px;
}
.membre-card__photo {
    width: 110px; height: 110px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--c-primary-light);
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}
.membre-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.membre-card__photo-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-primary);
}
.membre-card__photo-placeholder .cp-icon { width: 50%; height: 50%; }

.membre-card__name {
    font-size: 16px; margin-bottom: 4px;
    color: var(--c-navy);
}
.membre-card__role {
    font-size: 13.5px; color: var(--c-text-muted);
    margin: 0 0 10px;
}
.membre-card__mail {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    background: var(--c-bg);
    color: var(--c-primary);
    border: 1px solid var(--c-border);
    border-radius: 50%;
    transition: all .2s;
}
.membre-card__mail .cp-icon { width: 16px; height: 16px; }
.membre-card__mail:hover {
    background: var(--c-primary); color: #fff;
    border-color: var(--c-primary);
}


/* =================================================================== *
 * INFOS PRATIQUES
 * =================================================================== */
.infos__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 32px;
    align-items: start;
}

.info-item {
    display: flex; gap: 14px; margin-bottom: 22px;
}
.info-item__icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: var(--c-primary-light);
    color: var(--c-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.info-item__icon .cp-icon { width: 18px; height: 18px; }
.info-item h4 {
    font-size: 15px; margin-bottom: 4px;
    color: var(--c-navy);
}
.info-item p { font-size: 14px; color: var(--c-text); margin: 0; }
.info-item a { color: var(--c-text); }
.info-item a:hover { color: var(--c-primary); }

.infos__col--map iframe { width: 100%; min-height: 320px; border: 0; border-radius: var(--radius); }

.infos__col--social h4 {
    font-size: 15px; color: var(--c-navy);
    margin-bottom: 14px;
}

.social-links {
    display: flex; gap: 10px;
    margin-bottom: 22px;
}
.social-link {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: transform .2s, box-shadow .2s;
}
.social-link .cp-icon { width: 18px; height: 18px; }
.social-link:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.social-link--facebook { background: #1877f2; }
.social-link--instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-link--youtube { background: #ff0000; }
.social-link--tiktok { background: #000; }

.cta-card {
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: left;
}
.cta-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: var(--c-primary-light);
    color: var(--c-primary);
    border-radius: 50%;
    margin-bottom: 10px;
}
.cta-card__icon .cp-icon { width: 18px; height: 18px; }
.cta-card h4 { font-size: 16px; margin-bottom: 4px; color: var(--c-navy); }
.cta-card p { font-size: 14px; color: var(--c-text-muted); margin: 0 0 14px; }


/* =================================================================== *
 * FOOTER
 * =================================================================== */
.site-footer {
    background: var(--c-navy-dark);
    color: rgba(255,255,255,.85);
    padding: 60px 0 24px;
    position: relative;
    margin-top: 80px;
}
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 60px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'><path d='M0,30 C240,60 480,0 720,30 C960,60 1200,0 1440,30 L1440,0 L0,0 Z' fill='%23ffffff'/></svg>") no-repeat top center / 100% 100%;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start; /* tout aligné en haut... */
}

/* Colonne gauche : image (centrée verticalement, exception) */
.site-footer__col--image { display: flex; align-self: center; }
.site-footer__image {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: block;
}

/* Colonne milieu : titre + grille de liens (2 colonnes × 4 lignes max) */
.site-footer__links-title {
    color: #fff; font-weight: 600; font-size: 16px; margin: 0 0 14px;
}
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu a { color: rgba(255,255,255,.8); font-size: 15px; }
.footer-menu a:hover { color: #fff; }
.footer-menu--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column; /* remplit par colonne : 1–4 à gauche, 5–8 à droite */
    gap: 10px 28px;
}
.footer-menu--grid li { margin-bottom: 0; }

/* Colonne droite : titre + email + téléphone, aligné à droite */
.site-footer__col--contact { text-align: right; }
.site-footer__col--contact p { font-size: 14px; margin: 0 0 8px; }
.site-footer__col--contact .site-footer__contact-title {
    color: #fff; font-weight: 600; font-size: 16px; margin: 0 0 10px;
}
.site-footer__col--contact a { color: rgba(255,255,255,.85); }
.site-footer__col--contact a:hover { color: var(--c-primary); }

/* Barre du bas : copyright + liens légaux */
.site-footer__bottom {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.1);
    flex-wrap: wrap; gap: 14px;
}
.site-footer__copyright { font-size: 13px; color: rgba(255,255,255,.6); margin: 0; }
.site-footer__legal { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-footer__legal a { font-size: 13px; color: rgba(255,255,255,.7); }
.site-footer__legal a:hover { color: #fff; }


/* =================================================================== *
 * PAGES INTERNES (single, archive, page)
 * =================================================================== */
.inner-header {
    background: var(--c-navy);
    color: #fff;
    padding: 104px 0 28px; /* ~86px sous le header fixe + petit espace */
    text-align: center;
}
.inner-header h1 { color: #fff; margin: 0; font-size: clamp(24px, 3vw, 32px); }
.inner-header .crumb { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 10px; }

.entry-wrapper { max-width: 760px; margin: 0 auto; padding: 60px 0; }
.entry-content { font-size: 16px; line-height: 1.75; }
.entry-content img { border-radius: var(--radius); margin: 20px 0; }
.entry-content h2, .entry-content h3 { margin-top: 1.8em; }
.entry-content blockquote {
    border-left: 4px solid var(--c-primary);
    padding-left: 18px; margin-left: 0;
    color: var(--c-text-muted); font-style: italic;
}

.entry-meta {
    font-size: 14px; color: var(--c-text-muted);
    margin-bottom: 30px;
    display: flex; gap: 14px; flex-wrap: wrap;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 50px 0;
}

.pagination {
    text-align: center; margin: 40px 0;
}
.pagination .page-numbers {
    display: inline-block; padding: 8px 14px; margin: 0 3px;
    border-radius: var(--radius-sm);
    background: var(--c-bg-soft); color: var(--c-text);
    text-decoration: none;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--c-primary); color: #fff;
}

/* Événement single — détails */
.event-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    background: var(--c-bg-soft);
    padding: 22px;
    border-radius: var(--radius);
    margin-bottom: 32px;
}
.event-meta-item h4 {
    font-size: 13px; color: var(--c-text-muted);
    font-weight: 600; margin: 0 0 4px;
    text-transform: uppercase; letter-spacing: .05em;
}
.event-meta-item p { font-size: 16px; margin: 0; color: var(--c-navy); font-weight: 600; }


/* =================================================================== *
 * RESPONSIVE
 * =================================================================== */
@media (max-width: 1024px) {
    .news-events-grid { grid-template-columns: 1fr; }
    .niveaux__grid { grid-template-columns: repeat(3, 1fr); }
    .infos__grid { grid-template-columns: 1fr 1fr; }
    .infos__col--social { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .site-header__inner { padding: 12px 0; }
    /* Mobile : on ne garde que le bouton menu (3 traits) */
    .site-branding { display: none; }
    .btn--adherent { display: none; }
    .main-navigation { flex: 0 0 auto; margin-left: auto; }

    .menu-toggle { display: flex; }
    /* Menu en superposition : n'agrandit pas la hauteur du header */
    .primary-menu {
        display: none; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--c-navy); border-radius: 0 0 var(--radius) var(--radius);
        padding: 10px; gap: 2px; margin: 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }
    .primary-menu.is-open { display: flex; }
    .primary-menu li { width: 100%; }
    .primary-menu li a { display: block; }

    .hero { margin-top: 0; padding: 80px 0 120px; min-height: auto; }
    .hero__buttons .btn { flex: 1; justify-content: center; }

    .news__grid { grid-template-columns: 1fr; }
    .niveaux__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .equipe__grid { grid-template-columns: repeat(2, 1fr); }
    .infos__grid { grid-template-columns: 1fr; }

    .site-footer__grid { grid-template-columns: 1fr; gap: 30px; justify-items: center; text-align: center; }
    .site-footer__col--links,
    .site-footer__col--image { justify-content: center; }
    .site-footer__col--contact { text-align: center; }
    .archive-grid { grid-template-columns: 1fr; }
    .section { padding: 8px 0; }
    .section > .container { padding: 32px 20px; }
    .inner-header { padding: 80px 0 22px; }
}

@media (max-width: 480px) {
    .niveaux__grid { grid-template-columns: 1fr; }
    .equipe__grid { grid-template-columns: 1fr 1fr; }
    .hero__title { font-size: 36px; }
    .hero__buttons { flex-direction: column; }
    .hero__buttons .btn { width: 100%; }
}
