/*
Theme Name: OGFA 2026
Theme URI: https://www.ogfa.net
Author: OGFA
Description: Thème officiel OGFA conforme à la charte graphique (Montserrat, bleu #008ECF, barre des 5 pôles, signature Toi Pour Demain). Sans dépendance payante, éditeur Gutenberg natif.
Version: 1.13.6
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ogfa2026
*/

/* ==========================================================================
   Base — tout le texte en Montserrat (Caveat réservé à la signature footer)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    color: #1A1A1A;
    background: #fff;
}

img { max-width: 100%; height: auto; }

a { color: var(--ogfa-brand); text-decoration: none; }
a:hover { color: var(--ogfa-brand-700); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #1A1A1A;
    margin: 1.4em 0 .6em;
}
h1 { font-size: 2.25rem; margin-top: 0; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

/* ==========================================================================
   Layout
   ========================================================================== */
.ogfa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.ogfa-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.25rem;
}

.ogfa-card {
    background: var(--ogfa-card);
    border: 1px solid var(--ogfa-border);
    border-radius: 6px;
    box-shadow: var(--ogfa-shadow-card);
    padding: 2.5rem;
}

@media (max-width: 720px) {
    .ogfa-card { padding: 1.5rem 1.25rem; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.ogfa-header {
    background: #fff;
    box-shadow: var(--ogfa-shadow-nav);
    position: sticky;
    top: 0;
    z-index: 500;
}

.ogfa-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: .75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.ogfa-logo img { height: 40px; width: auto; display: block; }

/* Navigation */
.ogfa-nav ul { list-style: none; margin: 0; padding: 0; }
.ogfa-nav > ul { display: flex; gap: .25rem; align-items: center; }
.ogfa-nav a {
    display: block;
    padding: .55rem .8rem;
    font-weight: 600;
    font-size: .9rem;
    color: #1A1A1A;
    border-radius: 4px;
}
.ogfa-nav a:hover { color: var(--ogfa-brand-700); background: var(--ogfa-brand-50); }
.ogfa-nav .ogfa-menu-heading > a { cursor: default; }
.ogfa-nav .current-menu-item > a,
.ogfa-nav .current-menu-ancestor > a { color: var(--ogfa-brand-700); }

/* Sous-menus (desktop) */
.ogfa-nav li { position: relative; }
.ogfa-nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #fff;
    border: 1px solid var(--ogfa-border);
    border-radius: 6px;
    box-shadow: var(--ogfa-shadow-elevated);
    padding: .4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    z-index: 600;
}
.ogfa-nav ul ul ul { top: -.4rem; left: 100%; }
.ogfa-nav li:hover > ul,
.ogfa-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.ogfa-nav ul ul a { font-weight: 400; font-size: .85rem; padding: .5rem .7rem; }

/* Burger mobile */
.ogfa-burger {
    display: none;
    background: none;
    border: 1px solid var(--ogfa-border);
    border-radius: 4px;
    padding: .5rem .6rem;
    cursor: pointer;
    color: #1A1A1A;
}
.ogfa-burger svg { display: block; }

@media (max-width: 1024px) {
    .ogfa-burger { display: block; }
    .ogfa-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid var(--ogfa-border);
        box-shadow: var(--ogfa-shadow-elevated);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        padding: .75rem 1.25rem 1.25rem;
    }
    .ogfa-nav.is-open { display: block; }
    .ogfa-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
    .ogfa-nav ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0 1rem;
        min-width: 0;
        display: none;
    }
    .ogfa-nav li.is-sub-open > ul { display: block; }
    .ogfa-nav li { position: static; }
    .ogfa-nav .menu-item-has-children > a { padding-right: 2.6rem; }
    .ogfa-nav__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
        margin-top: -2.35rem;
        width: 2.2rem;
        height: 2.2rem;
        background: none;
        border: none;
        color: var(--ogfa-text-sub);
        cursor: pointer;
    }
    .ogfa-nav__toggle svg { width: 16px; height: 16px; transition: transform .15s ease; }
    .is-sub-open > .ogfa-nav__toggle svg { transform: rotate(180deg); }
    .ogfa-nav .menu-item-has-children { position: relative; }
}

/* Le bouton d'accordéon n'existe qu'en mobile */
@media (min-width: 1025px) {
    .ogfa-nav__toggle { display: none; }
}

/* Scroll verrouillé quand le menu mobile est ouvert */
body.ogfa-nav-open { overflow: hidden; }

/* ==========================================================================
   Contenu / éditeur — styles des blocs natifs
   ========================================================================== */
.ogfa-content > *:first-child { margin-top: 0; }

.ogfa-content .wp-block-columns { gap: 2rem; }

/* Les blocs « Row » (flex nowrap) hérités de l'ancien site écrasent les
   paragraphes en colonnes illisibles : on les empile verticalement. */
.ogfa-content .wp-block-group.is-nowrap.is-layout-flex {
    display: block;
}
.ogfa-content .wp-block-group.is-nowrap.is-layout-flex > * {
    margin-bottom: 1rem;
}

/* Au-delà de 4 colonnes, on laisse passer à la ligne pour rester lisible */
.ogfa-content .wp-block-columns:has(> .wp-block-column:nth-child(5)) {
    flex-wrap: wrap !important;
}
.ogfa-content .wp-block-columns:has(> .wp-block-column:nth-child(5)) > .wp-block-column {
    flex-basis: calc(33.33% - 1.5rem) !important;
    min-width: 230px;
}

.ogfa-content .wp-block-image img,
.ogfa-content .wp-block-gallery img {
    border-radius: 6px;
}

.wp-block-button__link,
.ogfa-btn {
    display: inline-block;
    background: var(--ogfa-brand);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    padding: .7rem 1.4rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}
.wp-block-button__link:hover,
.ogfa-btn:hover { background: var(--ogfa-brand-700); color: #fff; }

.ogfa-content blockquote {
    border-left: 4px solid var(--ogfa-brand);
    background: var(--ogfa-brand-50);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 6px 6px 0;
}

.ogfa-content .has-ogfa-brand-color { color: var(--ogfa-brand); }
.ogfa-content .has-ogfa-brand-background-color { background-color: var(--ogfa-brand); }

/* Encadré mis en avant (remplace les blocs bleus WPBakery) */
.ogfa-highlight {
    background: var(--ogfa-brand);
    color: #fff;
    border-radius: 6px;
    padding: 1.75rem 2rem;
}
.ogfa-highlight a { color: #fff; text-decoration: underline; }
.ogfa-highlight h1, .ogfa-highlight h2, .ogfa-highlight h3,
.ogfa-highlight h4, .ogfa-highlight strong { color: #fff; }

/* ==========================================================================
   Héro d'accueil (remplace le slider Revolution)
   ========================================================================== */
.ogfa-hero {
    background: linear-gradient(135deg, var(--ogfa-navy-800) 0%, var(--ogfa-navy-600) 55%, var(--ogfa-brand) 100%);
    border-radius: 6px;
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
}
.ogfa-hero h1 {
    color: #fff;
    font-size: 2.4rem;
    margin: 0 0 .75rem;
}
.ogfa-hero p {
    color: rgb(255 255 255/.85);
    max-width: 720px;
    margin: 0 auto 1.5rem;
    font-size: 1.05rem;
}
.ogfa-hero .wp-block-buttons { justify-content: center; }
.ogfa-hero .wp-block-button__link {
    background: #fff;
    color: var(--ogfa-brand-700);
    min-width: 210px;
    text-align: center;
}
.ogfa-hero .wp-block-button__link:hover { background: var(--ogfa-brand-50); color: var(--ogfa-brand-700); }
.ogfa-hero .is-style-outline .wp-block-button__link {
    background: transparent;
    color: #fff;
    border: 2px solid rgb(255 255 255/.7);
    padding: calc(.7rem - 2px) calc(1.4rem - 2px);
}
.ogfa-hero .is-style-outline .wp-block-button__link:hover { border-color: #fff; background: rgb(255 255 255/.1); }
@media (max-width: 720px) {
    .ogfa-hero { padding: 2.5rem 1.25rem; }
    .ogfa-hero h1 { font-size: 1.7rem; }
}

/* ==========================================================================
   Pages intérieures — mini-héro dégradé + contenu sur blanc
   ========================================================================== */
.ogfa-page { margin: 0; }
.ogfa-page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ogfa-navy-800) 0%, var(--ogfa-navy-600) 55%, var(--ogfa-brand) 100%);
    padding: 3.25rem 1.25rem 3.5rem;
    text-align: center;
}
.ogfa-page-hero::after {
    content: "";
    position: absolute;
    bottom: -9rem;
    right: -5rem;
    width: 22rem;
    height: 22rem;
    border-radius: 9999px;
    background: rgb(94 184 221/.22);
    filter: blur(56px);
    pointer-events: none;
}
.ogfa-page-hero__inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.ogfa-page-hero h1 {
    color: #fff;
    font-size: 2.1rem;
    margin: 0;
    letter-spacing: -.01em;
}
.ogfa-page-hero__meta {
    color: rgb(255 255 255/.75);
    font-size: .875rem;
    margin: .6rem 0 0;
}
.ogfa-page-hero__chip {
    display: inline-block;
    background: rgb(255 255 255/.95);
    color: var(--ogfa-brand-700);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .7rem;
    border-radius: 4px;
    margin-bottom: .9rem;
}
.ogfa-page-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.75rem 1.25rem 4rem;
}
.ogfa-content--article { max-width: 860px; margin: 0 auto; }
@media (max-width: 720px) {
    .ogfa-page-hero { padding: 2.25rem 1.25rem; }
    .ogfa-page-hero h1 { font-size: 1.5rem; }
    .ogfa-page-body { padding: 2rem 1.25rem 3rem; }
}

/* ==========================================================================
   Titre de page
   ========================================================================== */
.ogfa-page-title {
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--ogfa-brand);
    display: inline-block;
}

/* ==========================================================================
   Listes d'articles (actualités)
   ========================================================================== */
.ogfa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.ogfa-post-card {
    background: var(--ogfa-card);
    border: 1px solid var(--ogfa-border);
    border-radius: 6px;
    box-shadow: var(--ogfa-shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease, transform .15s ease;
}
.ogfa-post-card:hover {
    box-shadow: var(--ogfa-shadow-elevated);
    transform: translateY(-2px);
}
.ogfa-post-card__thumb { aspect-ratio: 16/9; object-fit: cover; width: 100%; display: block; border-radius: 0; }
.ogfa-post-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.ogfa-post-card__date { font-size: .75rem; color: var(--ogfa-text-sub); text-transform: uppercase; letter-spacing: .04em; }
.ogfa-post-card__title { font-size: 1.05rem; font-weight: 700; margin: 0; }
.ogfa-post-card__title a { color: #1A1A1A; }
.ogfa-post-card__title a:hover { color: var(--ogfa-brand); }
.ogfa-post-card__excerpt { font-size: .875rem; color: var(--ogfa-text-sub); margin: 0; }

/* Lien média des cartes : zoom doux au survol + badge de catégorie */
.ogfa-post-card__media { display: block; position: relative; overflow: hidden; }
.ogfa-post-card .ogfa-post-card__thumb { transition: transform .35s ease; }
.ogfa-post-card:hover .ogfa-post-card__thumb { transform: scale(1.045); }
.ogfa-post-card__chip {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: rgb(255 255 255/.95);
    color: var(--ogfa-brand-700);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .28rem .6rem;
    border-radius: 4px;
    box-shadow: var(--ogfa-shadow-card);
}
.ogfa-post-card__thumb--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    width: 100%;
    background: linear-gradient(135deg, var(--ogfa-brand-50) 0%, #fff 100%);
}
.ogfa-post-card__thumb--fallback img {
    height: 44%;
    width: auto;
    opacity: .5;
    filter: grayscale(1);
}

/* ==========================================================================
   Slider d'actualités (scroll-snap natif, sans dépendance)
   ========================================================================== */
.ogfa-slider { position: relative; }
.ogfa-slider__track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: .25rem .25rem 1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.ogfa-slider__track::-webkit-scrollbar { display: none; }
.ogfa-slider__track:focus-visible { outline: 2px solid var(--ogfa-brand); outline-offset: 4px; }
.ogfa-slider__item {
    flex: 0 0 30%; /* 3 cartes + un bord de la 4e visible : invite au défilement */
    scroll-snap-align: start;
}
@media (max-width: 1024px) {
    .ogfa-slider__item { flex-basis: 44%; }
}
@media (max-width: 720px) {
    .ogfa-slider__item { flex-basis: 78%; }
}
.ogfa-slider__dots {
    display: flex;
    justify-content: center;
    gap: .45rem;
    margin-top: .5rem;
}
.ogfa-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #c6cbd2;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}
.ogfa-slider__dot.is-active {
    width: 24px;
    background: var(--ogfa-brand);
}
.ogfa-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    border: 1px solid var(--ogfa-border);
    background: #fff;
    color: var(--ogfa-brand);
    box-shadow: var(--ogfa-shadow-elevated);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.ogfa-slider__btn svg { width: 20px; height: 20px; }
.ogfa-slider__btn:hover { background: var(--ogfa-brand); color: #fff; }
.ogfa-slider__btn--prev { left: -12px; }
.ogfa-slider__btn--next { right: -12px; }
.ogfa-slider__btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 720px) {
    .ogfa-slider__btn { display: none; }
}

/* ==========================================================================
   Cartes des pôles
   ========================================================================== */
.ogfa-poles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.ogfa-pole {
    display: flex;
    flex-direction: column;
    background: var(--ogfa-card);
    border: 1px solid var(--ogfa-border);
    border-radius: 6px;
    border-top: 3px solid var(--pole, var(--ogfa-brand));
    box-shadow: var(--ogfa-shadow-card);
    padding: 1.75rem 1.75rem 1.5rem;
    color: #1A1A1A;
    transition: box-shadow .18s ease, transform .18s ease;
}
.ogfa-pole:hover {
    color: #1A1A1A;
    box-shadow: var(--ogfa-shadow-elevated);
    transform: translateY(-3px);
}
.ogfa-pole__icon {
    width: 84px;
    height: 84px;
    margin-bottom: 1.1rem;
    transition: transform .18s ease;
}
.ogfa-pole:hover .ogfa-pole__icon { transform: scale(1.06); }
.ogfa-pole__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .5rem; }
.ogfa-pole__text {
    font-size: .875rem;
    color: var(--ogfa-text-sub);
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.ogfa-pole__more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--ogfa-brand-700);
}
.ogfa-pole__more svg { width: 15px; height: 15px; transition: transform .18s ease; }
.ogfa-pole:hover .ogfa-pole__more svg { transform: translateX(4px); }

/* Cartes de même hauteur dans une rangée de colonnes */
.wp-block-column > .ogfa-card { height: 100%; }

/* ==========================================================================
   Chiffres clés
   ========================================================================== */
.ogfa-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.ogfa-stat {
    background: var(--ogfa-card);
    border: 1px solid var(--ogfa-border);
    border-radius: 6px;
    box-shadow: var(--ogfa-shadow-card);
    padding: 1.5rem 1.75rem;
    text-align: center;
}
.ogfa-stat__value {
    display: block;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--ogfa-brand);
    line-height: 1.15;
}
.ogfa-stat__label {
    display: block;
    margin-top: .35rem;
    font-size: .85rem;
    color: var(--ogfa-text-sub);
}

/* Page don : chiffres et FAQ accessibles. */
.ogfa-don-stats { margin: 1.5rem 0 2.5rem; }
.ogfa-faq { display: grid; gap: .75rem; margin: 1rem 0 2.5rem; }
.ogfa-faq details {
    border: 1px solid var(--ogfa-border);
    border-radius: 6px;
    background: var(--ogfa-card);
    box-shadow: var(--ogfa-shadow-card);
    padding: 0 1.25rem;
}
.ogfa-faq summary {
    cursor: pointer;
    color: var(--ogfa-brand-700);
    font-weight: 700;
    padding: 1rem 2rem 1rem 0;
}
.ogfa-faq details[open] summary { border-bottom: 1px solid var(--ogfa-border); }
.ogfa-faq details p { margin: 1rem 0 1.25rem; }

/* ==========================================================================
   Missions & valeurs
   ========================================================================== */
.ogfa-list-check { list-style: none; margin: .5rem 0 0; padding: 0; }
.ogfa-list-check li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: .55rem;
}
.ogfa-list-check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3rem;
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    background: var(--ogfa-brand) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/62% no-repeat;
}

/* ==========================================================================
   Bandeau partenaires
   ========================================================================== */
.ogfa-partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 3rem;
    background: var(--ogfa-card);
    border-radius: 6px;
    box-shadow: var(--ogfa-shadow-card);
    padding: 2rem 2.5rem;
}
.ogfa-partners img {
    max-width: 150px;
    max-height: 52px;
    width: auto;
    filter: grayscale(1);
    opacity: .65;
    transition: filter .18s ease, opacity .18s ease;
}
.ogfa-partners img:hover { filter: none; opacity: 1; }

/* ==========================================================================
   Page d'accueil — bandes immersives pleine largeur sur fond blanc
   ========================================================================== */
.ogfa-front { margin: 0; }

.ogfa-band { padding: 4.5rem 1.25rem; background: #fff; }
.ogfa-band__inner { max-width: 1200px; margin: 0 auto; }
.ogfa-band--tint { background: var(--ogfa-brand-50); }
.ogfa-band--gray { background: #F4F5F7; }

/* Héro immersif : dégradé bord à bord + halos lumineux (échos du splash) */
.ogfa-band--hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ogfa-navy-800) 0%, var(--ogfa-navy-600) 55%, var(--ogfa-brand) 100%);
    padding: 6rem 1.25rem 8.5rem;
}
.ogfa-band--hero::before,
.ogfa-band--hero::after {
    content: "";
    position: absolute;
    border-radius: 9999px;
    filter: blur(64px);
    pointer-events: none;
}
.ogfa-band--hero::before { top: -8rem; left: -6rem; width: 24rem; height: 24rem; background: rgb(255 255 255/.10); }
.ogfa-band--hero::after { bottom: -10rem; right: -6rem; width: 28rem; height: 28rem; background: rgb(94 184 221/.22); }

.ogfa-hero-content { position: relative; z-index: 1; text-align: center; color: #fff; }
.ogfa-hero-content h1 {
    color: #fff;
    font-size: 3rem;
    letter-spacing: -.01em;
    margin: 0 0 1rem;
}
.ogfa-hero-content p {
    color: rgb(255 255 255/.85);
    max-width: 760px;
    margin: 0 auto 2rem;
    font-size: 1.15rem;
}
.ogfa-hero-content .wp-block-buttons { justify-content: center; }
.ogfa-hero-content .wp-block-button__link {
    background: #fff;
    color: var(--ogfa-brand-700);
    min-width: 210px;
    text-align: center;
}
.ogfa-hero-content .wp-block-button__link:hover { background: var(--ogfa-brand-50); color: var(--ogfa-brand-700); }
.ogfa-hero-content .is-style-outline .wp-block-button__link {
    background: transparent;
    color: #fff;
    border: 2px solid rgb(255 255 255/.7);
    padding: calc(.7rem - 2px) calc(1.4rem - 2px);
}
.ogfa-hero-content .is-style-outline .wp-block-button__link:hover { border-color: #fff; background: rgb(255 255 255/.1); }

/* Les chiffres clés flottent sur le bas du héro */
.ogfa-band--overlap { padding-top: 0; }
.ogfa-band--overlap .ogfa-stats {
    position: relative;
    z-index: 2;
    margin-top: -4.5rem;
    margin-bottom: 3.5rem;
}
.ogfa-band--overlap .ogfa-stat { box-shadow: var(--ogfa-shadow-elevated); }

/* Sur bande blanche, les cartes prennent un liseré */
.ogfa-band .ogfa-card,
.ogfa-band .ogfa-stat,
.ogfa-band .ogfa-pole { border: 1px solid var(--ogfa-border); }
.ogfa-band .ogfa-pole { border-top: 3px solid var(--pole, var(--ogfa-brand)); }

/* Héro vidéo (accueil) — la vidéo se superpose au dégradé (qui reste le repli) */
.ogfa-band--video { position: relative; }
.ogfa-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity .9s ease;
}
.ogfa-band--video.has-video .ogfa-hero-video { opacity: 1; }
.ogfa-band--video.has-video::before,
.ogfa-band--video.has-video::after { display: none; }
.ogfa-band--video.has-video {
    padding: 0 1.25rem 6.5rem;
    overflow: visible;
    background: #fff;
}
.ogfa-band--video.has-video .ogfa-hero-video {
    position: relative;
    width: calc(100% + 2.5rem);
    max-width: none;
    height: clamp(17rem, 27vw, 23rem);
    margin-left: -1.25rem;
    display: block;
}
.ogfa-band--video.has-video .ogfa-band__inner {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin-top: 0;
    padding: 4.5rem 0 0;
}
.ogfa-band--video.has-video .ogfa-hero-content {
    padding: 0;
    color: var(--ogfa-navy-800);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.ogfa-band--video.has-video .ogfa-hero-content h1 {
    color: var(--ogfa-navy-800);
    font-size: 2.5rem;
}
.ogfa-band--video.has-video .ogfa-hero-content p {
    color: #1A1A1A;
}
.ogfa-band--video.has-video .ogfa-hero-content .wp-block-button__link {
    color: #fff;
    background: var(--ogfa-brand-700);
}
.ogfa-band--video.has-video .ogfa-hero-content .wp-block-button__link:hover {
    color: #fff;
    background: var(--ogfa-navy-800);
}
.ogfa-band--video.has-video .ogfa-hero-content .is-style-outline .wp-block-button__link {
    color: var(--ogfa-brand-700);
    background: #fff;
    border-color: var(--ogfa-brand-700);
}
.ogfa-band--video.has-video .ogfa-hero-content .is-style-outline .wp-block-button__link:hover {
    color: var(--ogfa-navy-800);
    background: var(--ogfa-brand-50);
    border-color: var(--ogfa-navy-800);
}

/* Pictogrammes missions / valeurs (accueil) */
.ogfa-pictos { list-style: none; margin: .5rem 0 0; padding: 0; }
.ogfa-pictos li {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .7rem;
    font-weight: 600;
    font-size: .95rem;
}
.ogfa-pictos__ico {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    border: 2px solid var(--p, var(--ogfa-brand));
    color: var(--p, var(--ogfa-brand));
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ogfa-pictos__ico svg { width: 20px; height: 20px; }

/* ==========================================================================
   Encadré « indicateurs d'activité » (fiches services — chiffres du RA)
   ========================================================================== */
.ogfa-indics {
    border: 1px solid var(--ogfa-border);
    border-left: 4px solid var(--ogfa-brand);
    border-radius: 6px;
    background: var(--ogfa-brand-50);
    padding: 1.5rem 1.75rem;
    margin: 0 0 2rem;
}
.ogfa-indics__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1.1rem;
}
.ogfa-indics__title svg { width: 20px; height: 20px; flex: none; color: var(--ogfa-brand); }
.ogfa-indics__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.1rem;
}
.ogfa-indic {
    background: #fff;
    border: 1px solid var(--ogfa-border);
    border-radius: 6px;
    padding: 1rem 1.1rem;
    text-align: center;
}
.ogfa-indic__value { display: block; font-size: 1.6rem; font-weight: 700; color: var(--ogfa-brand); line-height: 1.15; }
.ogfa-indic__label { display: block; margin-top: .3rem; font-size: .8rem; color: var(--ogfa-text-sub); }

/* Titres de sections : centrés, soulignés charte */
.ogfa-front h2.wp-block-heading {
    text-align: center;
    font-size: 1.85rem;
    margin: 0 0 2.25rem;
    padding-bottom: .75rem;
    position: relative;
}
.ogfa-front h2.wp-block-heading::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 56px;
    height: 3px;
    background: var(--ogfa-brand);
    border-radius: 2px;
}

/* Apparition au scroll (classe posée par JS : sans JS, tout reste visible) */
.ogfa-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.ogfa-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .ogfa-reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 720px) {
    .ogfa-band { padding: 2.75rem 1.25rem; }
    .ogfa-band--hero { padding: 3.5rem 1.25rem 6rem; }
    .ogfa-hero-content h1 { font-size: 1.9rem; }
    .ogfa-hero-content p { font-size: 1rem; }
    .ogfa-band--overlap .ogfa-stats { margin-top: -3.5rem; margin-bottom: 2.5rem; }
    .ogfa-front h2.wp-block-heading { font-size: 1.45rem; }
}

@media (max-width: 900px) and (min-width: 721px) {
    .ogfa-band--video.has-video .ogfa-band__inner { padding-top: 3.5rem; }
    .ogfa-band--video.has-video .ogfa-hero-content { padding: 0 1.5rem; }
    .ogfa-band--video.has-video .ogfa-hero-content h1 { font-size: 2rem; }
}

/* Pagination */
.ogfa-pagination { display: flex; gap: .4rem; justify-content: center; margin: 2.5rem 0 0; }
.ogfa-pagination .page-numbers {
    display: inline-block;
    padding: .5rem .9rem;
    background: #fff;
    border: 1px solid var(--ogfa-border);
    border-radius: 4px;
    font-weight: 600;
    font-size: .875rem;
    color: #1A1A1A;
}
.ogfa-pagination .page-numbers.current,
.ogfa-pagination .page-numbers:hover { background: var(--ogfa-brand); border-color: var(--ogfa-brand); color: #fff; }

/* Métadonnées d'article */
.ogfa-post-meta { color: var(--ogfa-text-sub); font-size: .875rem; margin-bottom: 1.5rem; }

/* ==========================================================================
   Icônes inline (masques SVG, couleur héritée du contexte)
   ========================================================================== */
.ogfa-ico {
    display: inline-block;
    width: 15px;
    height: 15px;
    vertical-align: -2px;
    margin-right: .4rem;
    background: var(--ogfa-brand-700);
    -webkit-mask: var(--i) center / contain no-repeat;
    mask: var(--i) center / contain no-repeat;
}
.ogfa-ico--pin  { --i: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/%3E%3Ccircle cx="12" cy="10" r="3"/%3E%3C/svg%3E'); }
.ogfa-ico--tel  { --i: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z"/%3E%3C/svg%3E'); }
.ogfa-ico--mail { --i: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="2" y="4" width="20" height="16" rx="2"/%3E%3Cpath d="m22 7-10 5L2 7"/%3E%3C/svg%3E'); }

/* ==========================================================================
   Page contacts — cartes par pôle
   ========================================================================== */
.ogfa-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.ogfa-cc {
    border: 1px solid var(--ogfa-border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--ogfa-shadow-card);
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease;
}
.ogfa-cc:hover { box-shadow: var(--ogfa-shadow-elevated); }
.ogfa-cc--wide { grid-column: 1 / -1; }
.ogfa-cc__bar { height: 4px; width: 100%; }
.ogfa-cc__body { padding: 1.4rem 1.5rem 1.5rem; }
.ogfa-cc__pole {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #1A1A1A;
}
.ogfa-cc__dot { width: 10px; height: 10px; border-radius: 9999px; flex: none; }
.ogfa-cc__site { padding: .9rem 0; border-top: 1px solid var(--ogfa-border); }
.ogfa-cc__site:first-of-type { border-top: none; padding-top: 0; }
.ogfa-cc__site h3 { font-size: .95rem; font-weight: 700; margin: 0 0 .45rem; }
.ogfa-cc__line {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .875rem;
    color: var(--ogfa-text-sub);
    margin: .3rem 0;
    line-height: 1.45;
}
.ogfa-cc__line svg { width: 15px; height: 15px; flex: none; margin-top: .15rem; color: var(--ogfa-brand); }
.ogfa-cc__line a { color: inherit; }
.ogfa-cc__line a:hover { color: var(--ogfa-brand); }

/* ==========================================================================
   Champs d'action (familles d'activités, pictos cerclés couleur charte)
   ========================================================================== */
.ogfa-activites__group { margin-bottom: 2.25rem; }
.ogfa-activites__title {
    display: inline-block;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 1.1rem;
    padding-bottom: .4rem;
    border-bottom: 3px solid var(--g, var(--ogfa-brand));
}
.ogfa-activites ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem 1.5rem;
}
.ogfa-activites li {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: .95rem;
    font-weight: 600;
}
.ogfa-act-ico {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 9999px;
    border: 2px solid var(--g, var(--ogfa-brand));
    color: var(--g, var(--ogfa-brand));
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.ogfa-act-ico svg { width: 22px; height: 22px; }

/* ==========================================================================
   Fiches services / pôles (page Nos services)
   ========================================================================== */
.ogfa-services { display: flex; flex-direction: column; gap: 1.5rem; }
.ogfa-svc {
    display: flex;
    gap: 2rem;
    background: #fff;
    border: 1px solid var(--ogfa-border);
    border-top: 3px solid var(--pole, var(--ogfa-brand));
    border-radius: 6px;
    padding: 2rem 2.25rem;
    box-shadow: var(--ogfa-shadow-card);
}
.ogfa-svc__icon { flex: none; width: 88px; height: 88px; }
.ogfa-svc__ring {
    flex: none;
    width: 88px;
    height: 88px;
    border-radius: 9999px;
    border: 2px solid var(--pole, var(--ogfa-brand));
    color: var(--pole, var(--ogfa-brand));
    display: flex;
    align-items: center;
    justify-content: center;
}
.ogfa-svc__ring svg { width: 38px; height: 38px; }
.ogfa-svc__title { margin: 0 0 .6rem; font-size: 1.15rem; }
.ogfa-svc__body { flex: 1; }
.ogfa-svc__body p { margin: .55rem 0; font-size: .95rem; }
.ogfa-svc__more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .9rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ogfa-brand-700);
}
.ogfa-svc__more svg { width: 15px; height: 15px; transition: transform .18s ease; }
.ogfa-svc:hover .ogfa-svc__more svg { transform: translateX(4px); }
@media (max-width: 720px) {
    .ogfa-svc { flex-direction: column; gap: 1rem; padding: 1.5rem 1.25rem; }
    .ogfa-svc__icon, .ogfa-svc__ring { width: 64px; height: 64px; }
}

/* ==========================================================================
   Colonne documentaire des fiches service
   ========================================================================== */
.ogfa-service-aside .wp-block-gallery.has-nested-images,
.ogfa-service-layout > .wp-block-column:last-child .wp-block-gallery.has-nested-images {
    gap: .75rem;
}
.ogfa-service-aside .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image),
.ogfa-service-layout > .wp-block-column:last-child .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
    width: calc(50% - .375rem);
    flex-grow: 0;
}

/* ==========================================================================
   Page historique : sections, projet associatif et lecture du logo
   ========================================================================== */
.ogfa-history { max-width: 920px; margin: 0 auto; }
.ogfa-history-section + .ogfa-history-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--ogfa-border);
}
.ogfa-history-section h2 {
    margin: 0 0 1.25rem;
    color: var(--ogfa-navy-800);
}
.ogfa-history-section p:last-child { margin-bottom: 0; }
.ogfa-history-project {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    gap: 3rem;
    align-items: center;
}
.ogfa-history-project .ogfa-docs { grid-template-columns: 1fr; }
.ogfa-logo-story {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
}
.ogfa-logo-story__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 2.25rem;
    background: #fff;
    border: 1px solid var(--ogfa-border);
    border-radius: 6px;
}
.ogfa-logo-story__visual img {
    display: block;
    width: 100%;
    max-width: 210px;
    height: auto;
}
.ogfa-logo-story__content .ogfa-list-check { margin-top: 1.5rem; }
.ogfa-logo-story__content .ogfa-list-check li { margin-bottom: .85rem; }

@media (max-width: 720px) {
    .ogfa-history-section + .ogfa-history-section { margin-top: 2.75rem; padding-top: 2.75rem; }
    .ogfa-history-project, .ogfa-logo-story { grid-template-columns: 1fr; gap: 1.75rem; }
    .ogfa-logo-story__visual { min-height: 210px; padding: 1.75rem; }
    .ogfa-logo-story__visual img { max-width: 180px; }
}

/* ==========================================================================
   Cartes de documents à télécharger
   ========================================================================== */
.ogfa-docs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.ogfa-doc {
    display: flex;
    align-items: center;
    gap: .9rem;
    border: 1px solid var(--ogfa-border);
    border-radius: 6px;
    background: #fff;
    padding: 1rem 1.1rem;
    color: #1A1A1A;
    box-shadow: var(--ogfa-shadow-card);
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.ogfa-doc:hover {
    color: #1A1A1A;
    border-color: var(--ogfa-brand);
    box-shadow: var(--ogfa-shadow-elevated);
    transform: translateY(-2px);
}
.ogfa-doc__ico {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: var(--ogfa-brand-50);
    color: var(--ogfa-brand-700);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ogfa-doc__ico svg { width: 20px; height: 20px; }
.ogfa-doc__body { display: flex; flex-direction: column; gap: .1rem; }
.ogfa-doc__body strong { font-size: .9rem; line-height: 1.3; }
.ogfa-doc__body em {
    font-style: normal;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ogfa-text-sub);
}

/* ==========================================================================
   Témoignages (paroles de bénévoles) + appel à contact
   ========================================================================== */
.ogfa-quotes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.ogfa-quote {
    position: relative;
    background: var(--ogfa-brand-50);
    border-radius: 6px;
    padding: 2.4rem 1.6rem 1.4rem;
    font-style: italic;
    font-size: .95rem;
}
.ogfa-quote::before {
    content: "\201C";
    position: absolute;
    top: .2rem;
    left: 1.1rem;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--ogfa-brand);
    font-style: normal;
    font-weight: 700;
}
.ogfa-quote p { margin: 0; }
.ogfa-quote cite {
    display: block;
    margin-top: .8rem;
    font-style: normal;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ogfa-text-sub);
}

.ogfa-cta {
    background: linear-gradient(135deg, var(--ogfa-navy-800) 0%, var(--ogfa-navy-600) 55%, var(--ogfa-brand) 100%);
    border-radius: 6px;
    color: #fff;
    text-align: center;
    padding: 2.75rem 2rem;
}
.ogfa-cta h2, .ogfa-cta h3 { color: #fff; margin: 0 0 .6rem; }
.ogfa-cta p { color: rgb(255 255 255/.85); max-width: 640px; margin: 0 auto 1.5rem; }
.ogfa-cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.ogfa-cta__actions .ogfa-btn { background: #fff; color: var(--ogfa-brand-700); }
.ogfa-cta__actions .ogfa-btn:hover { background: var(--ogfa-brand-50); color: var(--ogfa-brand-700); }
.ogfa-cta__actions .ogfa-btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgb(255 255 255/.7);
    padding: calc(.7rem - 2px) calc(1.4rem - 2px);
}
.ogfa-cta__actions .ogfa-btn--ghost:hover { background: rgb(255 255 255/.1); border-color: #fff; color: #fff; }

/* ==========================================================================
   Divers
   ========================================================================== */
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; width: 1px; margin: -1px; overflow: hidden;
    padding: 0; position: absolute;
}

.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.alignwide { margin-left: -2.5rem; margin-right: -2.5rem; max-width: none; }
@media (max-width: 720px) { .alignwide { margin-left: -1.25rem; margin-right: -1.25rem; } }

/* ==========================================================================
   Recrutement Nibelis
   ========================================================================== */
.ogfa-recruitment-lead {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
    font-size: 1.05rem;
}
.ogfa-nibelis-shell {
    width: 100%;
    min-height: 28rem;
    padding: 2rem;
    background: #F4F5F7;
    border: 1px solid var(--ogfa-border);
    border-radius: 6px;
}
#nibe-app-recr-offres {
    width: 100%;
    max-width: 1200px;
    min-height: 22rem;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: var(--ogfa-shadow-card);
}
.ogfa-nibelis-loading,
.ogfa-nibelis-message {
    min-height: 18rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.ogfa-nibelis-spinner {
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1rem;
    border: 4px solid var(--ogfa-brand-50);
    border-top-color: var(--ogfa-brand);
    border-radius: 50%;
    animation: ogfa-nibelis-spin .8s linear infinite;
}
@keyframes ogfa-nibelis-spin { to { transform: rotate(360deg); } }
.ogfa-nibelis-message--error h2 { color: var(--ogfa-navy-800); }

@media (max-width: 720px) {
    .ogfa-nibelis-shell { padding: .75rem; }
    #nibe-app-recr-offres { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ogfa-nibelis-spinner { animation: none; }
}

/* ==========================================================================
   Page « Espace don » — appel au don, paliers, réassurance, formulaire HelloAsso
   ========================================================================== */
.ogfa-don-lead { font-size: 1.08rem; }

/* Bouton de don proéminent (sur le CTA dégradé) */
.ogfa-btn--don {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 2.6rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}
.ogfa-btn--don svg { width: 20px; height: 20px; }

/* Ligne de réassurance sous le bouton du CTA */
.ogfa-cta__note {
    margin: 1.2rem 0 0;
    font-size: .82rem;
    color: rgb(255 255 255/.85);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    justify-content: center;
}
.ogfa-cta__note span { display: inline-flex; align-items: center; gap: .4rem; }
.ogfa-cta__note svg { width: 15px; height: 15px; flex: none; }

/* Paliers de dons : montant + coût réel après déduction fiscale */
.ogfa-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}
.ogfa-tier {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid var(--ogfa-border);
    border-top: 3px solid var(--ogfa-brand);
    border-radius: 6px;
    box-shadow: var(--ogfa-shadow-card);
    padding: 1.7rem 1.25rem 1.5rem;
    color: #1A1A1A;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.ogfa-tier:hover {
    color: #1A1A1A;
    box-shadow: var(--ogfa-shadow-elevated);
    transform: translateY(-3px);
}
.ogfa-tier--featured { border-color: var(--ogfa-rose); border-top-color: var(--ogfa-rose); }
.ogfa-tier__badge {
    position: absolute;
    top: -.7rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ogfa-rose);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25rem .6rem;
    border-radius: 4px;
    white-space: nowrap;
}
.ogfa-tier__amount { font-size: 2.1rem; font-weight: 700; color: var(--ogfa-brand); line-height: 1; }
.ogfa-tier--featured .ogfa-tier__amount { color: var(--ogfa-rose); }
.ogfa-tier__net { font-size: .82rem; color: var(--ogfa-text-sub); margin: .6rem 0 0; line-height: 1.4; }
.ogfa-tier__net strong { color: #1A1A1A; font-size: .95rem; }
.ogfa-tier__go {
    margin-top: 1rem;
    font-weight: 600;
    font-size: .85rem;
    color: var(--ogfa-brand-700);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.ogfa-tier--featured .ogfa-tier__go { color: var(--ogfa-rose); }
.ogfa-tier__go svg { width: 14px; height: 14px; transition: transform .18s ease; }
.ogfa-tier:hover .ogfa-tier__go svg { transform: translateX(4px); }

/* Réassurance : paiement sécurisé, reçu fiscal, don intégral */
.ogfa-reassure {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.ogfa-reassure__item { display: flex; gap: .9rem; align-items: flex-start; }
.ogfa-reassure__ico {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: var(--ogfa-brand-50);
    color: var(--ogfa-brand-700);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ogfa-reassure__ico svg { width: 22px; height: 22px; }
.ogfa-reassure h3 { font-size: .95rem; margin: .15rem 0 .25rem; }
.ogfa-reassure p { font-size: .85rem; color: var(--ogfa-text-sub); margin: 0; }

/* Formulaire HelloAsso intégré */
.ogfa-donform {
    border: 1px solid var(--ogfa-border);
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--ogfa-shadow-card);
    overflow: hidden;
}
.ogfa-donform__head {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--ogfa-border);
}
.ogfa-donform__head svg { width: 20px; height: 20px; color: var(--ogfa-brand); flex: none; }
.ogfa-donform__head strong { font-size: 1rem; }
.ogfa-donform iframe { display: block; width: 100%; max-width: 460px; margin: 1.5rem auto; border: 0; min-height: 720px; }
.ogfa-donform__powered { text-align: center; font-size: .72rem; color: var(--ogfa-text-sub); padding: .7rem; }
.ogfa-donform__powered a { color: var(--ogfa-text-sub); text-decoration: underline; }

/* À quoi servent vos dons : 3 piliers (pictos cerclés couleur charte) */
.ogfa-uses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.ogfa-use {
    background: #fff;
    border: 1px solid var(--ogfa-border);
    border-radius: 6px;
    box-shadow: var(--ogfa-shadow-card);
    padding: 1.9rem 1.6rem;
    text-align: center;
    transition: box-shadow .15s ease, transform .15s ease;
}
.ogfa-use:hover { box-shadow: var(--ogfa-shadow-elevated); transform: translateY(-3px); }
.ogfa-use__ico {
    width: 66px;
    height: 66px;
    margin: 0 auto 1.1rem;
    border-radius: 9999px;
    border: 2px solid var(--u, var(--ogfa-brand));
    color: var(--u, var(--ogfa-brand));
    display: flex;
    align-items: center;
    justify-content: center;
}
.ogfa-use__ico svg { width: 30px; height: 30px; }
.ogfa-use h3 { font-size: 1.05rem; margin: 0 0 .55rem; }
.ogfa-use p { font-size: .9rem; color: var(--ogfa-text-sub); margin: 0; }

/* Encart don mensuel */
.ogfa-monthly {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    background: var(--ogfa-brand-50);
    border: 1px solid var(--ogfa-border);
    border-left: 4px solid var(--ogfa-brand);
    border-radius: 6px;
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
}
.ogfa-monthly__txt { flex: 1; min-width: 240px; }
.ogfa-monthly__txt h3 { margin: 0 0 .35rem; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.ogfa-monthly__txt h3 svg { width: 20px; height: 20px; flex: none; color: var(--ogfa-brand); }
.ogfa-monthly__txt p { margin: 0; font-size: .9rem; color: var(--ogfa-text-sub); }
.ogfa-monthly .ogfa-btn { flex: none; }

/* ==========================================================================
   Don — bouton dans le menu desktop, flottant sur affichage réduit
   ========================================================================== */
.ogfa-fab {
    position: static;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--ogfa-rose);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    padding: .8rem 1.35rem;
    border: none;
    border-radius: 9999px;
    box-shadow: var(--ogfa-shadow-elevated);
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.ogfa-fab:hover { background: #C60057; color: #fff; transform: translateY(-2px); }
.ogfa-fab:focus-visible { outline: 3px solid var(--ogfa-brand-50); outline-offset: 2px; }
.ogfa-fab svg { width: 18px; height: 18px; }
@media (max-width: 1024px) {
    .ogfa-fab {
        position: fixed;
        right: .9rem;
        bottom: .9rem;
        z-index: 900;
        font-size: .85rem;
        padding: .7rem 1.1rem;
    }
}

.ogfa-modal[hidden] { display: none; }
.ogfa-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}
.ogfa-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(6 26 44 / .55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.ogfa-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 3rem);
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--ogfa-shadow-elevated);
    overflow: hidden;
    animation: ogfa-modal-in .2s ease;
}
@keyframes ogfa-modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ogfa-modal__dialog { animation: none; } }
.ogfa-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .9rem 1.2rem;
    border-bottom: 1px solid var(--ogfa-border);
    flex: none;
}
.ogfa-modal__head strong { font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.ogfa-modal__head svg { width: 20px; height: 20px; color: var(--ogfa-rose); }
.ogfa-modal__close {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    border: 1px solid var(--ogfa-border);
    background: #fff;
    color: var(--ogfa-text-sub);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ogfa-modal__close:hover { background: var(--ogfa-brand-50); color: var(--ogfa-brand-700); }
.ogfa-modal__body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ogfa-modal__body iframe { display: block; width: 100%; border: 0; min-height: 640px; }
.ogfa-modal__powered { text-align: center; font-size: .72rem; color: var(--ogfa-text-sub); padding: .55rem; border-top: 1px solid var(--ogfa-border); }
.ogfa-modal__powered a { color: var(--ogfa-text-sub); text-decoration: underline; }
body.ogfa-modal-open { overflow: hidden; }

/* Photos du contenu : zoom discret et visionneuse plein écran. */
.ogfa-photo-zoom {
    cursor: zoom-in;
    transition: transform .28s ease, box-shadow .28s ease;
}
.ogfa-photo-zoom:hover {
    position: relative;
    z-index: 2;
    transform: scale(1.5);
    box-shadow: 0 14px 34px rgb(6 26 44 / .24);
}
.ogfa-photo-zoom:focus-visible { outline: 3px solid var(--ogfa-brand); outline-offset: 3px; }
.ogfa-lightbox[hidden] { display: none; }
.ogfa-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.25rem 1.25rem;
    background: rgb(5 15 25 / .94);
    cursor: zoom-out;
}
.ogfa-lightbox__image {
    display: block;
    max-width: 96vw;
    max-height: calc(100vh - 5.5rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgb(0 0 0 / .45);
    animation: ogfa-lightbox-in .2s ease;
    cursor: default;
}
.ogfa-lightbox__close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: 1px solid rgb(255 255 255 / .55);
    border-radius: 9999px;
    background: rgb(0 0 0 / .25);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}
.ogfa-lightbox__close:hover { background: #fff; color: #1a1a1a; }
body.ogfa-lightbox-open { overflow: hidden; }
@keyframes ogfa-lightbox-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .ogfa-photo-zoom, .ogfa-lightbox__image { transition: none; animation: none; }
    .ogfa-photo-zoom:hover { transform: none; }
}
