/*
Theme Name: LAVB Nature
Theme URI: https://lavb.ca
Author: Loisirs-Action Val-Bélair
Description: Thème clair aux couleurs de Loisirs-Action Val-Bélair : diaporama, carrousel d'activités, grille bento, assistant de questions rapides.
Version: 1.13.9
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: lavb
*/
:root {
    /* Couleurs officielles du logo LAVB */
    --lavb-blue: #0078c1;
    --lavb-green: #19b272;
    --lavb-red: #ee2d24;
    --lavb-orange: #f89828;
    --lavb-ink: #231f20;

    /* Variantes foncées pour le texte (contraste suffisant sur blanc) */
    --blue-ink: #00669f;
    --green-ink: #0b7a4b;
    --orange-ink: #a85a00;
    --red-ink: #c81e16;

    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f5f7fa;
    --surface-border: #e4e8ee;
    --surface-hover: #eef2f7;
    --text-main: var(--lavb-ink);
    --text-muted: #5c6470;
    --shadow: 0 1px 2px rgba(35, 31, 32, 0.04), 0 8px 24px rgba(35, 31, 32, 0.06);
    /* Nunito partout : ronde et chaleureuse ; les étiquettes en majuscules grasses */
    --font-main: 'Nunito', -apple-system, 'Segoe UI', sans-serif;
    --font-mono: var(--font-main);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 110px; }

body {
    background:
        radial-gradient(900px 500px at 15% -5%, rgba(0, 120, 193, 0.08), transparent 60%),
        radial-gradient(800px 500px at 90% 0%, rgba(25, 178, 114, 0.08), transparent 60%),
        radial-gradient(700px 400px at 50% 20%, rgba(248, 152, 40, 0.05), transparent 60%),
        var(--bg);
    background-repeat: no-repeat;
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

a { color: inherit; }

/* Navigation type "Floating Pill" */
.site-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 8px 8px 8px 20px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: 9999px;
    box-shadow: 0 12px 32px rgba(35, 31, 32, 0.08);
    white-space: nowrap;
}

.logo {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: var(--lavb-ink);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Lettres du nom en noir; seules les pastilles gardent les couleurs du logo */
.logo b { color: inherit; font-weight: inherit; }

.logo-short { display: none; }

/* Quatre « personnages » du logo */
.logo-mark {
    display: grid;
    grid-template-columns: repeat(2, 7px);
    gap: 3px;
}

.logo-mark i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.logo-mark i:nth-child(1) { background: var(--lavb-red); }
.logo-mark i:nth-child(2) { background: var(--lavb-blue); }
.logo-mark i:nth-child(3) { background: var(--lavb-orange); }
.logo-mark i:nth-child(4) { background: var(--lavb-green); }

.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 40px; width: auto; display: block; }

.nav-links {
    display: flex;
    gap: 1.4rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--blue-ink); }

.btn-header {
    background: var(--lavb-blue);
    color: #fff;
    padding: 9px 18px;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s;
}

.btn-header:hover { background: var(--blue-ink); }

/* Conteneur principal */
main {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 160px 24px 60px;
}

/* Hero */
.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 90px;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(248, 152, 40, 0.1);
    border: 1px solid rgba(248, 152, 40, 0.35);
    color: var(--orange-ink);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-decoration: none;
    animation: pulse-border 3s infinite;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    max-width: 900px;
    margin-bottom: 24px;
}

.gradient {
    background: linear-gradient(100deg, var(--lavb-blue) 10%, var(--lavb-green) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 640px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--lavb-blue);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary:hover {
    background: var(--blue-ink);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 120, 193, 0.28);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--lavb-ink);
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow);
    transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    border-color: var(--lavb-green);
    color: var(--green-ink);
}

/* Couleur par catégorie (texte blanc lisible) */
.cat-loisir { background: var(--green-ink); }
.cat-sport { background: var(--lavb-blue); }
.cat-culture { background: var(--orange-ink); }
.cat-evenement { background: var(--red-ink); }

/* Diaporama (slider) */
.slider {
    position: relative;
    aspect-ratio: 16 / 7;
    border-radius: 28px;
    overflow: hidden;
    margin: -40px 0 90px;
    background: var(--surface-soft);
    box-shadow: 0 24px 60px rgba(35, 31, 32, 0.16);
    touch-action: pan-y;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.08);
    transition: transform 7s ease-out;
}

.slide.active img { transform: scale(1); }

/* Voile pour la lisibilité du texte */
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 18, 19, 0.72) 0%, rgba(20, 18, 19, 0.38) 45%, transparent 75%);
}

.slide-caption {
    position: absolute;
    left: 56px;
    bottom: 64px;
    max-width: 520px;
    color: #fff;
    z-index: 2;
    opacity: 0;
    translate: 0 20px;
    transition: opacity 0.7s ease 0.3s, translate 0.7s ease 0.3s;
}

.slide.active .slide-caption {
    opacity: 1;
    translate: 0 0;
}

.slide-tag {
    display: inline-block;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.slide-caption h2 {
    font-size: clamp(1.7rem, 4vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.slide-caption p {
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 24px;
}

.btn-light {
    display: inline-flex;
    gap: 8px;
    background: #fff;
    color: var(--lavb-ink);
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.slider-controls {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-dots {
    display: flex;
    gap: 6px;
    margin-right: 8px;
}

.slider-dots button {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: width 0.3s, background 0.3s;
}

.slider-dots button.active {
    width: 26px;
    background: #fff;
}

.slider-arrow,
.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.slider-arrow:hover {
    background: #fff;
    color: var(--lavb-ink);
}

.slider-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.2);
}

.slider-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--lavb-blue);
}

.slider[data-cat="loisir"] .slider-progress span { background: var(--lavb-green); }
.slider[data-cat="culture"] .slider-progress span { background: var(--lavb-orange); }
.slider[data-cat="evenement"] .slider-progress span { background: var(--lavb-red); }

/* Carrousel d'activités */
.carousel-nav {
    display: flex;
    gap: 10px;
}

.carousel-btn {
    border-color: var(--surface-border);
    background: #fff;
    color: var(--lavb-ink);
    box-shadow: var(--shadow);
}

.carousel-btn:hover:not(:disabled) {
    background: var(--lavb-blue);
    border-color: var(--lavb-blue);
    color: #fff;
}

.carousel-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 6px;
    scroll-behavior: smooth;
    padding: 6px 6px 28px;
    margin: -6px -6px 0;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.activity-card {
    flex: 0 0 calc((100% - 60px) / 4);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.activity-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 120, 193, 0.3);
}

.activity-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface-soft);
}

.activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.activity-card:hover .activity-img img { transform: scale(1.06); }

.activity-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 999px;
}

.activity-body { padding: 18px 20px 22px; }

.activity-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.activity-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 1000px) {
    .activity-card { flex-basis: calc((100% - 40px) / 3); }
}

@media (max-width: 760px) {
    .slider { aspect-ratio: 4 / 5; margin-top: -20px; }
    .slide::after {
        background: linear-gradient(0deg, rgba(20, 18, 19, 0.82) 0%, rgba(20, 18, 19, 0.4) 50%, transparent 80%);
    }
    .slide-caption { left: 22px; right: 22px; bottom: 84px; }
    .slider-controls { left: 22px; right: 22px; bottom: 22px; }
    .slider-dots { margin-right: auto; }
    .activity-card { flex-basis: 75%; }
}

/* Assistant, juste avant « On est là pour vous » */
#assistant { margin-top: 100px; }

/* Titres de section */
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 100px 0 28px;
    flex-wrap: wrap;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-head .card-tag { margin-bottom: 8px; }

.link-more {
    color: var(--blue-ink);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

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

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bento-card:hover { border-color: rgba(0, 120, 193, 0.3); }

.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-full { grid-column: 1 / -1; }

/* Petites étiquettes : un peu plus grasses avec Nunito */
.fact, .slide-tag, .activity-cat, .chip, .open-status, .mini-list li b { font-weight: 700; }

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--green-ink);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.card-tag.sun { color: var(--orange-ink); }
.card-tag.teal { color: var(--blue-ink); }
.card-tag.red { color: var(--red-ink); }

.bento-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.card-link {
    margin-top: auto;
    padding-top: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--blue-ink);
    text-decoration: none;
    display: inline-flex;
    gap: 6px;
}

.card-link span { transition: transform 0.2s; }
.card-link:hover span { transform: translateX(4px); }

/* Faits rapides */
.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.fact {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(0, 120, 193, 0.07);
    color: var(--blue-ink);
}

/* Console : assistant rapide */
.interactive-console {
    margin-top: 24px;
    background: var(--surface-soft);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.console-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-prompt { color: var(--lavb-blue); font-weight: 700; }

.console-input {
    background: transparent;
    border: none;
    color: var(--lavb-ink);
    outline: none;
    width: 100%;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.console-response {
    margin-top: 12px;
    color: var(--green-ink);
    min-height: 40px;
    line-height: 1.55;
}

.console-response a { color: var(--blue-ink); font-weight: 500; }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.chip {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    background: #fff;
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    color: #fff;
    background: var(--lavb-blue);
    border-color: var(--lavb-blue);
}

.metric-value {
    font-size: 3rem;
    font-weight: 800;
    margin: 14px 0 4px;
    color: var(--red-ink);
    font-family: var(--font-mono);
}

/* Barre de progression (saison) */
.telemetry-bar {
    width: 100%;
    height: 6px;
    background: var(--surface-hover);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 16px;
}

.telemetry-progress {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--lavb-green), var(--lavb-blue));
    border-radius: 999px;
    transition: width 1.2s ease;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Liste programmation relâche */
.mini-list {
    list-style: none;
    margin-top: 16px;
    display: grid;
    gap: 8px;
}

.mini-list li {
    display: flex;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--lavb-ink);
    line-height: 1.4;
}

.mini-list li b {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--blue-ink);
    min-width: 54px;
}

/* Sous-liens (loisirs, Bel air) */
.sub-links {
    display: grid;
    gap: 6px;
    margin-top: 18px;
}

.sub-links a {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--surface-soft);
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.sub-links a:hover {
    background: rgba(25, 178, 114, 0.08);
    border-color: rgba(25, 178, 114, 0.35);
    color: var(--green-ink);
}

.sub-links.cols {
    grid-template-columns: repeat(2, 1fr);
}

.festive {
    background:
        radial-gradient(circle at 92% 8%, rgba(248, 152, 40, 0.16), transparent 42%),
        radial-gradient(circle at 5% 100%, rgba(238, 45, 36, 0.08), transparent 45%),
        var(--surface);
}

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

.news-card {
    padding: 24px;
    text-decoration: none;
    border-top: 4px solid var(--lavb-blue);
}

.news-card:nth-child(4n+2) { border-top-color: var(--lavb-green); }
.news-card:nth-child(4n+3) { border-top-color: var(--lavb-orange); }
.news-card:nth-child(4n+4) { border-top-color: var(--lavb-red); }

.news-card time {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: block;
}

.news-card h3 {
    font-size: 1.05rem;
    line-height: 1.35;
}

/* Installations */
.sites {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site {
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--lavb-ink);
    text-decoration: none;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}

.site small {
    display: block;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 400;
    margin-top: 2px;
}

.site:hover {
    border-color: rgba(25, 178, 114, 0.45);
    background: rgba(25, 178, 114, 0.05);
}

/* Page Loisirs : badge qui ouvre la programmation en livre virtuel (dFlip) */
.flipbook-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 8px 0 24px;
    text-align: center;
}

.flipbook-cta p { color: var(--text-muted); font-size: 0.9rem; }

.flipbook-cta ._df_button,
.flipbook-cta .pill-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 12px 22px !important;
    border-radius: 9999px !important;
    background: rgba(248, 152, 40, 0.1) !important;
    border: 1px solid rgba(248, 152, 40, 0.45) !important;
    color: var(--orange-ink) !important;
    font: 800 1rem var(--font-main) !important;
    text-decoration: none;
    text-transform: none !important;
    box-shadow: none !important;
    cursor: pointer;
    animation: pulse-border 3s infinite;
    transition: background 0.2s, color 0.2s;
}

.flipbook-cta ._df_button:hover,
.flipbook-cta .pill-badge:hover {
    background: var(--lavb-orange) !important;
    color: #fff !important;
}

/* Page Installations : une carte géographique par lieu */
.installations .subnav { margin-bottom: 24px; }

.place-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.place-card {
    background: #fff;
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 110px;
}

.place-card:target { border-color: var(--lavb-blue); box-shadow: 0 0 0 3px rgba(0, 120, 193, 0.25); }

.place-map {
    aspect-ratio: 16 / 10;
    background: var(--surface-soft);
}

.place-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.place-info {
    position: relative;
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
}

.place-info .activity-cat { position: static; }
.place-info h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.place-info p { color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.place-info .btn-primary { margin-top: auto; padding: 10px 18px; font-size: 0.9rem; }

@media (max-width: 560px) {
    .place-cards { grid-template-columns: 1fr; }
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.bento-card .contact-line {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--lavb-ink);
}

.contact-line a { text-decoration: none; color: var(--blue-ink); font-weight: 600; }

.open-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-top: 16px;
    color: var(--text-muted);
}

.open-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lavb-red);
}

.open-status.open { color: var(--green-ink); }

.open-status.open i {
    background: var(--lavb-green);
    box-shadow: 0 0 0 4px rgba(25, 178, 114, 0.18);
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.socials a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--surface-border);
    color: var(--lavb-ink);
    transition: all 0.2s;
}

.socials a:hover {
    background: var(--lavb-blue);
    border-color: var(--lavb-blue);
    color: #fff;
}

.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* Footer */
footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--surface-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
}

/* Liseré quatre couleurs */
footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 160px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg,
        var(--lavb-red) 0 25%, var(--lavb-blue) 25% 50%,
        var(--lavb-orange) 50% 75%, var(--lavb-green) 75% 100%);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

ul.footer-links { list-style: none; }

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
}

.footer-links a:hover { color: var(--blue-ink); }

/* Médias sociaux, à droite du bas de page */
.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--surface-border);
    color: var(--lavb-ink);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer-social a:hover {
    background: var(--lavb-blue);
    border-color: var(--lavb-blue);
    color: #fff;
}

.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

/* Apparition au défilement */
.reveal {
    opacity: 0;
    translate: 0 24px;
    transition: opacity 0.7s ease, translate 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    translate: 0 0;
}

@keyframes pulse-border {
    0%, 100% { border-color: rgba(248, 152, 40, 0.3); }
    50% { border-color: rgba(248, 152, 40, 0.8); }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; translate: 0 0; }
}

/* Responsive */
/* 9 liens dans la barre : menu ☰ sous 1360 px pour éviter que la barre déborde */
@media (max-width: 1360px) {
    .nav-links { display: none; }
}

@media (max-width: 1000px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .bento-grid, .contact-grid { grid-template-columns: 1fr; }
    .bento-card.span-2 { grid-column: span 1; }
    .site-nav {
        width: calc(100% - 32px);
        justify-content: space-between;
    }
}

@media (max-width: 560px) {
    main { padding: 130px 16px 48px; }
    .bento-card { padding: 24px; }
    .news-grid, .sub-links.cols { grid-template-columns: 1fr; }
    .logo-full { display: none; }
    .logo-short { display: inline; }
}

/* ===== Compatibilité WordPress ===== */
.admin-bar .site-nav { top: 56px; }
@media (max-width: 782px) { .admin-bar .site-nav { top: 70px; } }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--blue-ink); font-weight: 700; }

/* Pages et articles */
.page-hero {
    text-align: center;
    margin-bottom: 48px;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.page-hero time {
    display: block;
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* En-tête des pages intérieures (photo de section, comme le diaporama) */
.page-banner {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    padding: 64px 56px 124px;
    margin-top: -24px;
    background:
        radial-gradient(600px 300px at 10% 0%, rgba(0, 120, 193, 0.10), transparent 60%),
        radial-gradient(500px 300px at 95% 20%, rgba(25, 178, 114, 0.10), transparent 60%),
        var(--surface-soft);
    border: 1px solid var(--surface-border);
}

.page-banner.has-photo {
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    border: none;
    color: #fff;
    box-shadow: 0 24px 60px rgba(35, 31, 32, 0.16);
}

.page-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-banner.has-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(20deg, rgba(20, 18, 19, 0.78) 0%, rgba(20, 18, 19, 0.35) 55%, rgba(20, 18, 19, 0.1) 100%);
}

.page-banner-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

/* En-tête avec logo (ex. Accès-Loisirs Québec) : titre à gauche, logo à droite dans une carte blanche.
   L'image ALQ.png contient le logo dans son quart gauche : on n'affiche que cette partie. */
.page-banner.has-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 320px;
}

.page-banner-logo {
    order: 2;
    flex: 0 0 auto;
    width: 220px;
    aspect-ratio: 230 / 200;
    padding: 14px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-origin: content-box;
    background-size: 443.5% auto;
    background-position: 0 50%;
    border: 1px solid var(--surface-border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

/* Logo sur une photo : la carte passe devant le voile foncé, et l'en-tête a la même hauteur
   que les autres pages avec photo (les pastilles restent au même endroit d'un onglet à l'autre). */
.page-banner.has-photo .page-banner-logo { position: relative; z-index: 1; }

@media (min-width: 761px) {
    .page-banner.has-photo.has-logo { min-height: 400px; align-items: flex-end; }
}

@media (max-width: 760px) {
    .page-banner.has-logo { flex-direction: column; align-items: flex-start; gap: 20px; }
    .page-banner-logo { order: 0; width: 140px; }
}

/* En-tête clair (sans photo) : il se termine au bas des pastilles, sans rebord dessous.
   (Avec une photo, ce rebord fait partie de la photo et ne se voit pas.) */
@media (min-width: 1000px) {
    .page-banner:not(.has-photo):has(+ .subnav) { padding-bottom: 96px; }
    .page-banner:not(.has-photo) + .subnav { margin-top: -68px; }
}

/* Page Loisirs : mosaïque des 4 saisons (automne, hiver, printemps, été) */
.page-banner-mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.page-banner .page-banner-mosaic img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 760px) {
    .page-banner-mosaic { grid-template-columns: repeat(2, 1fr); }
}

.page-banner h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.page-banner p,
.page-banner time {
    display: block;
    margin-top: 14px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.page-banner.has-photo p,
.page-banner.has-photo time { color: rgba(255, 255, 255, 0.88); }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--surface-border);
    color: var(--lavb-ink);
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: background 0.2s, color 0.2s;
}

.back-link:hover {
    background: var(--lavb-blue);
    border-color: var(--lavb-blue);
    color: #fff;
}

.page-banner.has-photo .back-link {
    background: rgba(255, 255, 255, 0.92);
    border-color: transparent;
}

.page-banner.has-photo .back-link:hover { background: #fff; color: var(--blue-ink); }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.breadcrumb a { color: var(--blue-ink); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-banner.has-photo .breadcrumb,
.page-banner.has-photo .breadcrumb a { color: rgba(255, 255, 255, 0.9); }

/* Carte de contenu qui chevauche l'en-tête */
.entry-card {
    max-width: 940px;
    margin: -72px auto 0;
    padding: 48px 56px;
    z-index: 2;
}

.entry-card:hover { border-color: var(--surface-border); }

/* ===== Pages intérieures réorganisées en sections (main.js : layoutPage) ===== */

/* Menu des sous-pages, sous l'en-tête */
.subnav {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 1100px;
    margin: -96px auto 24px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow);
}

.subnav a {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--surface-border);
    color: var(--lavb-ink);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.subnav a:hover,
.subnav a.is-current {
    background: var(--lavb-blue);
    border-color: var(--lavb-blue);
    color: #fff;
}

.subnav + .entry-card { margin-top: 0; }

/* La carte unique devient une pile de cartes, une par section */
.entry-card.is-sectioned {
    max-width: 1100px;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    overflow: visible;
}

.entry-card.is-sectioned .entry-content {
    display: grid;
    gap: 20px;
}

.entry-card.is-sectioned .entry-content > * + * { margin-top: 0; }

.auto-section {
    background: #fff;
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 36px 40px;
    display: grid;
    grid-template-columns: minmax(180px, 280px) 1fr;
    gap: 12px 40px;
    align-items: start;
}

.auto-section.is-intro { grid-template-columns: 1fr; }

.entry-content .auto-group-title {
    margin: 24px 4px 0 !important;
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.entry-content .auto-group-title:first-child { margin-top: 0 !important; }

.auto-section > h2 {
    margin: 0 !important;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    position: sticky;
    top: 110px;
}

.auto-section > h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg,
        var(--lavb-red) 0 25%, var(--lavb-blue) 25% 50%,
        var(--lavb-orange) 50% 75%, var(--lavb-green) 75% 100%);
}

.auto-section-body > * + * { margin-top: 0.9em; }
.auto-section-body > :first-child { margin-top: 0; }
.auto-section-body h3 { font-size: 1.1rem; margin-top: 1.4em; }
.auto-section-body .check-list { margin: 0.6em 0; padding: 0; }

.entry-content .callout {
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(238, 45, 36, 0.07);
    border-left: 4px solid var(--lavb-red);
    color: var(--red-ink) !important;
    font-weight: 800;
}

/* Tuiles de lieux (adresses) */
.place-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.place-tile {
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--surface-border);
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.place-tile strong {
    display: block;
    color: var(--lavb-ink);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.place-tile > * { margin: 0 !important; }

/* Tuiles « Libellé : valeur » */
.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}

.fact-cell {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--surface-border);
    border-left: 4px solid var(--lavb-blue);
    line-height: 1.35;
}

.fact-cell:nth-child(4n+2) { border-left-color: var(--lavb-green); }
.fact-cell:nth-child(4n+3) { border-left-color: var(--lavb-orange); }
.fact-cell:nth-child(4n+4) { border-left-color: var(--lavb-red); }

.fact-cell span {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.fact-cell b { font-size: 1rem; color: var(--lavb-ink); }

/* Lignes icône + texte */
.entry-content .icon-row {
    gap: 14px !important;
    align-items: flex-start !important;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface-soft);
}

.entry-content .icon-row > p { margin: 0; }

/* Documents à télécharger */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.entry-content .doc-row {
    background: #fff;
    border: 1px solid var(--surface-border);
    align-items: center !important;
    transition: border-color 0.2s;
}

.entry-content .doc-row:hover,
.entry-content .link-row:hover { border-color: var(--lavb-blue); }

.entry-content .link-row {
    background: #fff;
    border: 1px solid var(--surface-border);
    align-items: center !important;
    transition: border-color 0.2s;
}

.entry-content .link-row a {
    font-weight: 700;
    text-decoration: none;
    color: var(--lavb-ink);
}

.entry-content .link-row a::after { content: ' →'; color: var(--lavb-blue); }
.entry-content .doc-row a { font-weight: 700; text-decoration: none; }
.entry-content .doc-row.is-soon { opacity: 0.6; border-style: dashed; }

.file-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    vertical-align: 2px;
    color: #fff;
    background: var(--red-ink);
}

.file-badge.file-word { background: var(--lavb-blue); }
.file-badge.file-excel { background: var(--green-ink); }
.file-badge.file-powerpoint { background: var(--orange-ink); }

/* Listes de liens → pastilles */
.entry-content .link-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.entry-content .link-grid li { margin: 0; }

.entry-content .link-grid a {
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--surface-border);
    color: var(--lavb-ink);
    font-weight: 700;
    text-decoration: none;
}

.entry-content .link-grid a::after { content: '→'; color: var(--lavb-blue); }
.entry-content .link-grid a:hover { border-color: var(--lavb-blue); color: var(--blue-ink); }

/* Sous-pages de la section (singular.php) */
.child-pages { margin-top: 8px; }
.child-pages.is-main { margin-top: -36px; position: relative; z-index: 2; }
.child-pages.is-main .section-head { display: none; }

.child-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.child-grid a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 22px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--surface-border);
    border-top: 4px solid var(--lavb-blue);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--lavb-ink);
    transition: transform 0.2s, border-color 0.2s;
}

.child-grid li:nth-child(4n+2) a { border-top-color: var(--lavb-green); }
.child-grid li:nth-child(4n+3) a { border-top-color: var(--lavb-orange); }
.child-grid li:nth-child(4n+4) a { border-top-color: var(--lavb-red); }
.child-grid a:hover { transform: translateY(-3px); }
.child-grid strong { font-size: 1.1rem; font-weight: 800; line-height: 1.3; }
.child-grid span { margin-top: auto; color: var(--blue-ink); font-weight: 700; font-size: 0.9rem; }

@media (max-width: 860px) {
    .auto-section { grid-template-columns: 1fr; padding: 26px 22px; }
    .auto-section > h2 { position: static; }
    .subnav {
        margin-top: -76px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 10px;
    }
    .subnav::-webkit-scrollbar { display: none; }
    .subnav a { white-space: nowrap; flex-shrink: 0; }
}

/* ===== Page À propos ===== */
.about-mission {
    margin-top: -72px;
    position: relative;
    z-index: 2;
}

.mission-card blockquote {
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.mission-card blockquote::before {
    content: '« ';
    color: var(--lavb-green);
}

.mission-card blockquote::after {
    content: ' »';
    color: var(--lavb-green);
}

.about-facts {
    display: grid;
    gap: 12px;
}

.fact-tile {
    background: #fff;
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 18px 22px;
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.fact-tile b {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--blue-ink);
    min-width: 84px;
}

.fact-tile:nth-child(2) b { color: var(--green-ink); }
.fact-tile:nth-child(3) b { color: var(--orange-ink); }
.fact-tile span { color: var(--text-muted); font-weight: 600; }

.objectives {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.objective {
    background: #fff;
    border: 1px solid var(--surface-border);
    border-top: 4px solid var(--lavb-blue);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 22px 20px;
}

.objective.accent-green { border-top-color: var(--lavb-green); }
.objective.accent-orange { border-top-color: var(--lavb-orange); }
.objective.accent-red { border-top-color: var(--lavb-red); }

.objective-num {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-soft);
    font-weight: 900;
    margin-bottom: 12px;
}

.objective h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.objective p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* Cartes de personnes (CA et équipe) */
.people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.person {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--lavb-ink);
}

.avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    margin-bottom: 10px;
    background: var(--lavb-blue);
}

.avatar.bg-green { background: var(--green-ink); }
.avatar.bg-orange { background: var(--orange-ink); }
.avatar.bg-red { background: var(--red-ink); }

.person-role {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.person strong { font-size: 1.1rem; font-weight: 800; }

.person.vacant {
    background: var(--surface-soft);
    border: 2px dashed var(--surface-border);
    box-shadow: none;
    transition: border-color 0.2s;
}

.person.vacant .avatar {
    background: #fff;
    color: var(--lavb-blue);
    border: 2px dashed rgba(0, 120, 193, 0.4);
}

.person.vacant strong { color: var(--text-muted); }
.person.vacant small { color: var(--blue-ink); font-weight: 700; }
.person.vacant:hover { border-color: var(--lavb-blue); }

/* Devenir administrateur */
.join {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.join h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 14px; }

.check-list,
.cross-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.check-list li,
.cross-list li {
    position: relative;
    padding-left: 30px;
    line-height: 1.5;
}

.check-list li::before,
.cross-list li::before {
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: #fff;
}

.check-list li::before { content: '✓'; background: var(--green-ink); }
.cross-list li::before { content: '✕'; background: var(--red-ink); }
.cross-list li { color: var(--text-muted); }

.join-note { margin: 18px 0 10px; font-size: 0.92rem; }
.join-profile .chips { margin: 4px 0 18px; }
.join-profile .chip { cursor: default; }
.join-profile .chip:hover { background: #fff; color: var(--text-muted); border-color: var(--surface-border); }

.join-highlight {
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(25, 178, 114, 0.08);
    color: var(--green-ink) !important;
    font-weight: 700;
    margin-bottom: 20px;
}

.join-profile .hero-actions { justify-content: flex-start; }

@media (max-width: 1000px) {
    .objectives { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .about-mission { margin-top: -60px; }
    .join, .objectives { grid-template-columns: 1fr; }
}

/* Bandeau contact au bas des pages */
.contact-band {
    margin-top: 80px;
    padding: 40px 48px;
    border-radius: 28px;
    background:
        radial-gradient(500px 260px at 100% 0%, rgba(248, 152, 40, 0.14), transparent 60%),
        radial-gradient(500px 260px at 0% 100%, rgba(0, 120, 193, 0.10), transparent 60%),
        #fff;
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.contact-band h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.contact-band p { color: var(--text-muted); }

.contact-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===== Contenu existant (blocs de l'ancien thème Extendable) ===== */

/* Espaceurs : moins de vide */
.entry-content .wp-block-spacer { height: 20px !important; }

/* Bandeaux dégradés « CAMP DE JOUR », « HORAIRE »… → titres de section comme l'accueil */
.entry-content .has-diagonal-primary-to-foreground-gradient-background {
    background: none !important;
    color: var(--lavb-ink) !important;
    text-align: left !important;
    padding: 0 !important;
    margin-top: 1.8em;
    font-size: clamp(1.4rem, 2.6vw, 1.75rem) !important;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.entry-content .has-diagonal-primary-to-foreground-gradient-background::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 10px;
    border-radius: 4px;
    background: linear-gradient(90deg,
        var(--lavb-red) 0 25%, var(--lavb-blue) 25% 50%,
        var(--lavb-orange) 50% 75%, var(--lavb-green) 75% 100%);
}

.entry-content > .has-diagonal-primary-to-foreground-gradient-background:first-child,
.entry-content > .wp-block-group:first-child > .has-diagonal-primary-to-foreground-gradient-background:first-child {
    margin-top: 0;
}

/* Autres blocs avec fond : panneaux arrondis */
.entry-content .has-background:not(.has-diagonal-primary-to-foreground-gradient-background) {
    border-radius: 16px;
    padding: 20px 24px;
}

/* Boutons de navigation Ultimate Blocks → pastilles blanches */
.entry-content .ub-buttons {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px !important;
}

.entry-content .ub-buttons + .ub-buttons,
.entry-content .wp-block-group:has(> .ub-buttons) > .ub-buttons + .ub-buttons { margin-top: 10px; }

.entry-content .ub-button-container { margin: 0 !important; width: auto !important; }

.entry-content .ub-button-block-main {
    width: 100% !important;
    background: var(--surface-soft) !important;
    color: var(--lavb-ink) !important;
    border: 1px solid var(--surface-border) !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.entry-content .ub-button-block-main .ub-button-content-holder { justify-content: flex-start !important; gap: 10px; }
.entry-content .ub-button-block-main svg { width: 20px; height: 20px; color: var(--lavb-blue); }

.entry-content .ub-button-block-main:hover,
.entry-content .ub-button-block-main.is-current {
    background: var(--lavb-blue) !important;
    border-color: var(--lavb-blue) !important;
    color: #fff !important;
}

.entry-content .ub-button-block-main:hover { transform: translateY(-2px); }
.entry-content .ub-button-block-main:hover svg,
.entry-content .ub-button-block-main.is-current svg { color: #fff; }

/* Icônes Ultimate Blocks : couleur LAVB */
.entry-content .wp-block-ub-icon svg {
    color: var(--lavb-blue) !important;
    fill: var(--lavb-blue) !important;
}

/* Fichiers à télécharger */
.entry-content .wp-block-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--surface-border);
    font-weight: 700;
}

.entry-content .wp-block-file .wp-block-file__button {
    background: var(--lavb-blue);
    color: #fff;
    border-radius: 10px;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 0.9rem;
}

.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-embed iframe { width: 100%; }

@media (max-width: 760px) {
    .page-banner { padding: 40px 22px 96px; border-radius: 22px; margin-top: -10px; }
    .page-banner.has-photo { min-height: 320px; }
    .entry-card { padding: 28px 20px; margin-top: -60px; }
    .contact-band { padding: 28px 22px; }
    .entry-content .ub-buttons { grid-template-columns: 1fr; }
}

.entry-content {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #3a3536;
}

.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 {
    color: var(--lavb-ink);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-top: 1.8em;
}
.entry-content h2 { font-size: 1.7rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content a { color: var(--blue-ink); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.35em; }
.entry-content img { max-width: 100%; height: auto; border-radius: 16px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content blockquote {
    border-left: 3px solid var(--lavb-green);
    padding-left: 1em;
    color: var(--text-muted);
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.entry-content th, .entry-content td {
    border: 1px solid var(--surface-border);
    padding: 10px 12px;
    text-align: left;
}
.entry-content th { background: var(--surface-soft); color: var(--lavb-ink); }
.entry-content iframe { max-width: 100%; border-radius: 12px; }
.entry-content .wp-block-button__link,
.entry-content .wp-element-button {
    background: var(--lavb-blue);
    color: #fff;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 700;
    text-decoration: none;
}
.alignwide { max-width: 1100px; }
.alignfull { width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.wp-caption-text, .wp-element-caption, figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* Liste d'articles */
.post-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.post-thumb {
    margin: -24px -24px 16px;
    aspect-ratio: 2 / 1;
    overflow: hidden;
}

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

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination .page-numbers {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--surface-border);
    background: #fff;
    text-decoration: none;
    color: var(--text-muted);
}

.pagination .current {
    background: var(--lavb-blue);
    border-color: var(--lavb-blue);
    color: #fff;
}

@media (max-width: 900px) {
    .post-list { grid-template-columns: 1fr; }
}

/* Menu mobile */
.menu-toggle {
    display: none;
    width: 38px;
    height: 36px;
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    margin-right: -1.4rem;
}

.menu-toggle span {
    width: 16px;
    height: 2px;
    background: var(--lavb-ink);
    border-radius: 2px;
    transition: transform 0.2s;
}

.site-nav.open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-nav.open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1360px) {
    .menu-toggle { display: flex; }
    .site-nav.open .nav-links {
        display: flex;
        flex-direction: column;
        gap: 4px;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        padding: 12px;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--surface-border);
        border-radius: 20px;
        box-shadow: 0 18px 40px rgba(35, 31, 32, 0.12);
    }
    .site-nav.open .nav-links a {
        display: block;
        padding: 10px 14px;
        font-size: 1rem;
        color: var(--lavb-ink);
    }
}
