/* Extrait de resources/views/front/home.blade.php */

/* =====================================================================
   HERO — slider d'accueil
   =====================================================================
   Tout est en CSS dédié (et non en classes Tailwind générées depuis le JS) :
   hero-slider.js injecte ce balisage dynamiquement, et une classe Tailwind
   absente du build passe silencieusement à la trappe. Ici, ce qui est écrit
   est ce qui s'applique.

   CONTRASTES (vérifiés, norme WCAG AA = 4,5:1 pour du texte courant) :
     blanc         sur #1a2a3a  â†’ 14,6:1
     #C9D4E0       sur #1a2a3a  â†’  9,7:1
     #FBBF77       sur #1a2a3a  â†’  8,8:1
     #8FA3B8       sur #1a2a3a  â†’  5,6:1
     #12202F       sur #F58220  â†’  5,6:1   â† texte du bouton
   Le blanc sur l'orange #F58220 ne donnait que 2,6:1 : illisible, d'où le
   texte bleu nuit sur le bouton orange.
   -------------------------------------------------------------------- */

.hero-slider {
    position: relative;
    overflow: hidden;
    background: #1a2a3a;
}

/* Fond : dégradé repris à l'identique de la barre supérieure du site
   (.top-bar dans css/pages/front/layouts/nav.css), plus un halo discret
   qui donne de la profondeur sans salir l'image. Découpe en biais nette. */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 500px at 10% 0%, rgba(255, 255, 255, 0.06), transparent 62%),
        linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 72px), 0 100%);
}

.hero-inner {
    position: relative;
    max-width: 1520px;
    margin: 0 auto;
    padding: 72px 24px 104px;
}

.hero-grid {
    display: grid;
    align-items: center;
    gap: 56px;
}

@media (min-width: 1024px) {
    /* La colonne photo est volontairement plus large que la colonne texte.
       Le ratio et l'écart ci-dessous sont les deux seuls réglages à toucher
       pour agrandir ou réduire la photo : elle suit sa colonne, et son ratio
       3:2 en déduit la hauteur. */
    .hero-grid {
        grid-template-columns: 1fr 1.4fr;
        gap: 64px;
    }
}

/* ---------- Colonne texte ---------- */

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #FBBF77;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.hero-eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: #F58220;
}

.hero-title {
    margin: 22px 0 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-text {
    max-width: 34rem;
    margin: 20px 0 0;
    color: #C9D4E0;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.hero-actions {
    margin-top: 34px;
}

/* ---------- BOUTON ----------
   Déplacé dans css/shared/hero-button.css : ce bouton sert aussi sur la page
   /donations, qui ne charge pas cette feuille. Une seule définition,
   chargée globalement — modifier le bouton du hero met à jour les trois
   endroits qui l'utilisent (hero, don rapide, cartes de don).
   -------------------------------------------------------------------- */


/* ---------- Colonne photo ----------
   Ratio 3:2 natif : vos visuels sont en 1200x800 / 1600x1066 / 1440x960.
   Ce sont des photos de groupe, les visages occupent toute la largeur —
   aucun recadrage en bandeau. */
/* Enveloppe : c'est elle qui porte le cadre. Sans overflow, pour que les
   cadres qui débordent (filet décalé, équerres) ne soient pas rognés. */
.hero-media {
    position: relative;
}

.hero-photo {
    position: relative;
    z-index: 1; /* au-dessus des cadres dessinés en arrière-plan */
    aspect-ratio: 3 / 2;
    /* overflow conservé : il cadre le léger zoom au survol d'une photo
       cliquable, même sans coins arrondis. */
    overflow: hidden;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
}

/* Une diapositive est empilée soit en <img> nue, soit — quand elle a une URL —
   en <a> contenant l'<img>. Les deux occupent tout l'encart et se fondent de
   la même façon : c'est l'élément de premier niveau qui porte l'opacité. */
.hero-photo > img,
.hero-photo > .hero-photo-link {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.7s ease-out;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Photo cliquable : léger zoom et voile qui s'éclaircit au survol, pour
   signaler que c'est un lien (le pointeur seul ne suffit pas). */
.hero-photo-link {
    display: block;
    overflow: hidden;
    cursor: pointer;
}

.hero-photo-link img {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.hero-photo-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 32, 47, 0.28), transparent 46%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-photo-link:hover img,
.hero-photo-link:focus-visible img {
    transform: scale(1.045);
}

.hero-photo-link:hover::after,
.hero-photo-link:focus-visible::after {
    opacity: 1;
}

/* ---------- CADRES DE LA PHOTO ----------
   Choisis par diapositive depuis l'admin (colonne sliders.image_frame).
   La liste fait autorité dans App\Models\Slider::IMAGE_FRAMES ; le JS pose
   la classe .frame-<clé> sur l'enveloppe .hero-media.

   Les trois derniers amputent la photo — c'est signalé dans l'admin.
   -------------------------------------------------------------------- */

/* --- Cadre décalé : filet orange en retrait derrière la photo --- */
.hero-media.frame-offset::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 26px;
    right: -26px;
    bottom: -26px;
    border: 2px solid rgba(245, 130, 32, 0.55);
    pointer-events: none;
}

/* --- Équerres aux angles opposés --- */
.hero-media.frame-brackets::before,
.hero-media.frame-brackets::after {
    content: "";
    position: absolute;
    z-index: 2;
    width: 78px;
    height: 78px;
    border: 3px solid #F58220;
    pointer-events: none;
}

.hero-media.frame-brackets::before {
    top: -16px;
    left: -16px;
    border-right: 0;
    border-bottom: 0;
}

.hero-media.frame-brackets::after {
    right: -16px;
    bottom: -16px;
    border-left: 0;
    border-top: 0;
}

/* --- Équerres : animations coordonnées avec l'effet de la photo ---
   Le JS pose aussi la classe .fx-<effet> sur .hero-media, ce qui permet
   d'accorder le mouvement des équerres à celui de l'image. Chaque durée et
   chaque courbe reprennent EXACTEMENT celles de l'effet correspondant, sans
   quoi le cadre et la photo se désynchroniseraient à l'Å“il.
   ::before = équerre haut-gauche, ::after = équerre bas-droite. */

/* Netteté progressive â†’ les équerres se révèlent en fondu */
@keyframes heroBracketFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hero-media.frame-brackets.fx-blur::before,
.hero-media.frame-brackets.fx-blur::after {
    animation: heroBracketFade 1.1s ease-out both;
}

/* Glissement latéral â†’ les équerres glissent dans le même sens que la photo */
@keyframes heroBracketSlide {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-media.frame-brackets.fx-slide::before,
.hero-media.frame-brackets.fx-slide::after {
    animation: heroBracketSlide 0.9s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

/* Apparition en zoom â†’ la photo se rétracte vers sa taille normale, les
   équerres s'écartent vers l'extérieur : les deux mouvements s'ouvrent
   ensemble, chacun depuis son coin. */
@keyframes heroBracketOpenTopLeft {
    from { opacity: 0; transform: translate(20px, 20px); }
    to   { opacity: 1; transform: translate(0, 0); }
}

@keyframes heroBracketOpenBottomRight {
    from { opacity: 0; transform: translate(-20px, -20px); }
    to   { opacity: 1; transform: translate(0, 0); }
}

.hero-media.frame-brackets.fx-zoom-in::before {
    animation: heroBracketOpenTopLeft 1.5s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.hero-media.frame-brackets.fx-zoom-in::after {
    animation: heroBracketOpenBottomRight 1.5s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

/* Zoom lent continu â†’ dérive lente des équerres vers l'extérieur, à la même
   cadence que le zoom (la photo grandit, le cadre s'ouvre) */
@keyframes heroBracketDriftTopLeft {
    from { transform: translate(0, 0); }
    to   { transform: translate(-7px, -7px); }
}

@keyframes heroBracketDriftBottomRight {
    from { transform: translate(0, 0); }
    to   { transform: translate(7px, 7px); }
}

.hero-media.frame-brackets.fx-kenburns::before {
    animation: heroBracketDriftTopLeft 9s ease-out both;
}

.hero-media.frame-brackets.fx-kenburns::after {
    animation: heroBracketDriftBottomRight 9s ease-out both;
}

/* Panoramique â†’ les équerres accompagnent le déplacement horizontal */
@keyframes heroBracketPan {
    from { transform: translateX(-6px); }
    to   { transform: translateX(6px); }
}

.hero-media.frame-brackets.fx-pan::before,
.hero-media.frame-brackets.fx-pan::after {
    animation: heroBracketPan 10s ease-in-out both;
}

/* --- Filet fin longeant deux côtés --- */
.hero-media.frame-line::before {
    content: "";
    position: absolute;
    top: 18px;
    left: -18px;
    width: 2px;
    height: calc(100% - 18px);
    background: linear-gradient(to bottom, #F58220, rgba(245, 130, 32, 0));
    pointer-events: none;
}

.hero-media.frame-line::after {
    content: "";
    position: absolute;
    left: -18px;
    bottom: -18px;
    width: calc(100% - 18px);
    height: 2px;
    background: linear-gradient(to right, #F58220, rgba(245, 130, 32, 0));
    pointer-events: none;
}

/* --- Coin haut droit biseauté (AMPUTE la photo) --- */
.hero-media.frame-notch .hero-photo {
    clip-path: polygon(0 0, calc(100% - 68px) 0, 100% 68px, 100% 100%, 0 100%);
}

/* --- Haut en arche (ARRONDIT donc ampute les coins hauts) --- */
.hero-media.frame-arch .hero-photo {
    border-radius: 50% 50% 0 0 / 32% 32% 0 0;
}

/* --- Fondu sur les bords (AMPUTE une bande sur les quatre côtés) ---
   Deux dégradés croisés dont on ne garde que l'INTERSECTION : d'où un
   rectangle aux bords estompés, et non le halo ovale que donnerait un
   simple dégradé radial. --hero-fade règle la largeur estompée.
   Pas d'ombre portée : elle redessinerait le bord net que ce masque efface. */
.hero-media.frame-fade .hero-photo {
    --hero-fade: 6%;
    box-shadow: none;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0, #000 var(--hero-fade), #000 calc(100% - var(--hero-fade)), transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 var(--hero-fade), #000 calc(100% - var(--hero-fade)), transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0, #000 var(--hero-fade), #000 calc(100% - var(--hero-fade)), transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 var(--hero-fade), #000 calc(100% - var(--hero-fade)), transparent 100%);
    mask-composite: intersect;
}

/* Sur écran étroit, les cadres qui débordent sont resserrés pour ne pas
   sortir de la page. */
@media (max-width: 767px) {
    .hero-media.frame-offset::before {
        top: 14px;
        left: 14px;
        right: -14px;
        bottom: -14px;
    }

    .hero-media.frame-brackets::before,
    .hero-media.frame-brackets::after {
        width: 48px;
        height: 48px;
        border-width: 2px;
    }

    .hero-media.frame-brackets::before {
        top: -9px;
        left: -9px;
    }

    .hero-media.frame-brackets::after {
        right: -9px;
        bottom: -9px;
    }

    .hero-media.frame-notch .hero-photo {
        clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
    }
}

/* ---------- EFFETS SUR LA PHOTO ----------
   Choisis par diapositive depuis l'admin (colonne sliders.image_effect).
   La liste fait autorité dans App\Models\Slider::IMAGE_EFFECTS ; le JS pose
   ici la classe .fx-<clé> sur l'élément de premier niveau de l'encart
   (l'<img>, ou le <a> qui l'enveloppe quand la photo est cliquable).
   D'où les deux sélecteurs de chaque règle : l'un pour le cas enveloppé,
   l'autre pour l'image nue.

   « rogne » ci-dessous = l'effet agrandit la photo au-delà de son cadre et
   en coupe donc les bords. Vos visuels sont des photos de groupe : les
   visages proches des bords disparaissent. C'est signalé dans l'admin.
   -------------------------------------------------------------------- */

/* Netteté progressive — ne rogne pas */
@keyframes heroFxBlur {
    from { filter: blur(16px); }
    to   { filter: blur(0); }
}

.hero-photo > .fx-blur {
    animation: heroFxBlur 1.1s ease-out both;
}

/* Glissement latéral — ne rogne pas */
@keyframes heroFxSlide {
    from { transform: translateX(4%); }
    to   { transform: translateX(0); }
}

.hero-photo > .fx-slide {
    animation: heroFxSlide 0.9s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

/* Apparition en zoom — rognage transitoire seulement : l'animation se
   termine sur la photo entière (scale 1) */
@keyframes heroFxZoomIn {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}

.hero-photo > .fx-zoom-in img,
.hero-photo > img.fx-zoom-in {
    animation: heroFxZoomIn 1.5s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

/* Zoom lent continu (Ken Burns) — ROGNE en permanence */
@keyframes heroFxKenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.12); }
}

.hero-photo > .fx-kenburns img,
.hero-photo > img.fx-kenburns {
    animation: heroFxKenburns 9s ease-out both;
}

/* Panoramique lent — ROGNE en permanence (l'agrandissement est ce qui
   dégage la marge nécessaire au déplacement) */
@keyframes heroFxPan {
    from { transform: scale(1.12) translateX(-2.4%); }
    to   { transform: scale(1.12) translateX(2.4%); }
}

.hero-photo > .fx-pan img,
.hero-photo > img.fx-pan {
    animation: heroFxPan 10s ease-in-out both;
}

/* Accessibilité : on n'impose aucun mouvement aux personnes qui ont demandé
   à leur système de le réduire (troubles vestibulaires, migraines). */
@media (prefers-reduced-motion: reduce) {
    .hero-photo > [class*="fx-"],
    .hero-photo > [class*="fx-"] img,
    .hero-media[class*="fx-"]::before,
    .hero-media[class*="fx-"]::after {
        animation: none;
    }
}

/* Accordéon photographique entre la citation et les projets. */
.y5-photo-accordion { padding: 22px 24px 62px; background: #fff; }
.y5-photo-accordion-in {
    display: flex;
    width: min(1200px, 100%);
    height: clamp(290px, 37vw, 430px);
    gap: 10px;
    margin-inline: auto;
}
.y5-photo-panel {
    position: relative;
    min-width: 0;
    flex: 1 1 0;
    overflow: hidden;
    border-radius: 12px;
    background: #203a37;
    transition: flex-grow .55s cubic-bezier(.22,.68,0,1), border-radius .25s ease;
}
.y5-photo-panel.is-active { flex-grow: 4.5; }
.y5-photo-panel-trigger {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--y5-panel-image) center 42% / cover no-repeat;
    color: #fff;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.y5-photo-panel-trigger::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,29,25,.06) 25%, rgba(13,29,25,.78) 100%);
    content: "";
    transition: background .25s ease;
}
.y5-photo-panel-trigger:hover::before,
.y5-photo-panel.is-active .y5-photo-panel-trigger::before { background: linear-gradient(180deg, rgba(13,29,25,.02) 12%, rgba(13,29,25,.76) 100%); }
.y5-photo-panel-trigger:focus-visible { outline: 3px solid #e6bd62; outline-offset: -5px; }
.y5-photo-panel-index {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: rgba(18,42,34,.36);
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transition: opacity .2s ease;
}
.y5-photo-panel.is-active .y5-photo-panel-index { opacity: 1; }
.y5-photo-panel-copy { position: absolute; z-index: 1; right: 22px; bottom: 22px; left: 22px; display: grid; gap: 8px; opacity: 0; transform: translateY(10px); transition: opacity .24s ease .1s, transform .3s ease .1s; }
.y5-photo-panel.is-active .y5-photo-panel-copy { opacity: 1; transform: translateY(0); }
.y5-photo-panel-closed-title { display: none; }
.y5-photo-panel:not(.is-active) .y5-photo-panel-closed-title {
    position: absolute;
    z-index: 2;
    bottom: 17px;
    left: 50%;
    display: block;
    max-height: calc(100% - 28px);
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: translateX(-50%) rotate(180deg);
    pointer-events: none;
}
.y5-photo-panel-copy .y5-photo-panel-eyebrow { color: #f0cf82; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.y5-photo-panel-copy strong { max-width: 22ch; font: 800 clamp(23px, 3vw, 36px)/1.1 var(--y5-titres); letter-spacing: -.035em; }
.y5-photo-panel-copy .y5-photo-panel-quote { max-width: 34ch; font-size: clamp(19px, 2.2vw, 27px); line-height: 1.35; letter-spacing: -.02em; }
/* Texte sous le titre : trois lignes au plus, lisible sur la photo. */
.y5-photo-panel-copy .y5-photo-panel-text { max-width: 46ch; color: rgba(255, 255, 255, .9); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 700px) {
    .y5-photo-accordion { padding: 10px 18px 42px; }
    .y5-photo-accordion-in { height: auto; flex-direction: column; gap: 8px; }
    .y5-photo-panel { border-radius: 8px; }
    .y5-photo-panel,
    .y5-photo-panel.is-active { min-height: 0; flex: none; height: 190px; }
    .y5-photo-panel:not(.is-active) .y5-photo-panel-index,
    .y5-photo-panel:not(.is-active) .y5-photo-panel-copy { opacity: 1; transform: none; }
    .y5-photo-panel-index { top: 10px; left: 8px; width: 32px; height: 32px; font-size: 11px; }
    .y5-photo-panel-copy { right: 12px; bottom: 14px; left: 12px; }
    .y5-photo-panel-copy strong { font-size: 24px; }
    .y5-photo-panel-copy .y5-photo-panel-quote { font-size: 20px; line-height: 1.35; }
    .y5-photo-panel-closed-title { display: none !important; }
    /* Un panneau avec texte a besoin d'un peu plus de hauteur sur téléphone. */
    .y5-photo-panel:has(.y5-photo-panel-text),
    .y5-photo-panel.is-active:has(.y5-photo-panel-text) { height: 250px; }
    .y5-photo-panel-copy .y5-photo-panel-text { font-size: 14px; }
}
@media (max-width: 420px) {
    .y5-photo-panel,
    .y5-photo-panel.is-active { height: 175px; }
    .y5-photo-panel-copy strong { font-size: 20px; }
    .y5-photo-panel-copy .y5-photo-panel-quote { font-size: 18px; }
    .y5-photo-panel-index { left: 6px; width: 28px; height: 28px; }
    .y5-photo-panel:has(.y5-photo-panel-text),
    .y5-photo-panel.is-active:has(.y5-photo-panel-text) { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
    .y5-photo-panel, .y5-photo-panel-trigger::before, .y5-photo-panel-index,
    .y5-photo-panel-copy { transition: none; }
}

/* ---------- Pagination ---------- */

.hero-pagination {
    display: flex;
    gap: 28px;
    margin-top: 56px;
}

.hero-pagination:empty {
    display: none;
}

.hero-tab {
    flex: 1;
    max-width: 190px;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
}

.hero-tab-track {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.22);
    transition: background-color 0.3s ease;
}

.hero-tab-label {
    display: block;
    margin-top: 12px;
    overflow: hidden;
    color: #8FA3B8;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.hero-tab:hover .hero-tab-track {
    background: rgba(255, 255, 255, 0.45);
}

.hero-tab:hover .hero-tab-label {
    color: #C9D4E0;
}

.hero-tab.is-active .hero-tab-track {
    background: #F58220;
}

.hero-tab.is-active .hero-tab-label {
    color: #fff;
}

.hero-tab:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 6px;
    border-radius: 3px;
}

/* ---------- Écrans étroits ---------- */

@media (max-width: 1023px) {
    .hero-inner {
        padding: 52px 20px 88px;
    }

    .hero-bg {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 0 100%);
    }

    .hero-pagination {
        gap: 18px;
        margin-top: 40px;
    }
}

@media (max-width: 575px) {
    .hero-inner {
        padding: 40px 18px 76px;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-tab-label {
        letter-spacing: 0.08em;
    }
}

/* =====================================================================
   DON RAPIDE — bande claire sous le slider
   =====================================================================

   Le bloc ne chevauche plus le slider. Il occupe sa propre bande, sur la
   crème de la charte (#FBF8F2), entre le hero sombre et la section
   « Qui sommes-nous » qui est blanche.

   C'est ce changement de pose qui règle le problème : la version précédente
   remontait le bloc de 40 px (56 sur grand écran) PAR-DESSUS le slider, dont
   le fond va de #1a2a3a à #2c3e50. Le panneau de gauche y était écrit en
   texte sombre, sans fond :

       titre       #16233A  ->  1,43:1
       description #3D4A5C  ->  1,22:1
       surtitre    #B0491F  ->  2,00:1

   Il en faut 4,5:1. Le texte était quasiment invisible. Posé sur la crème,
   il n'a plus aucune couleur qui dépende de ce qu'il y a derrière.

   La carte du formulaire passe du dégradé sombre au blanc, pour la même
   raison : une carte sombre sur une bande claire rappellerait le hero qu'on
   vient justement de quitter.

   Contrastes, tous vérifiés :
     sur la crème #FBF8F2   surtitre 5,19:1 · titre 14,83:1 · texte 8,49:1
                            bouton 7,65:1
     sur le blanc #FFFFFF   encre 15,72:1 · gris 6,00:1 · vert 8,11:1
                            #12202F sur l'orange 6,36:1 · cadenas 5,50:1
     contour de pastille    6,00:1  (seuil de 3:1 pour un élément d'interface)
   ===================================================================== */

.quick-donate {
    position: relative;
    z-index: 1;
    padding: 56px 0 64px;
    background: #FBF8F2;
}

@media (min-width: 1024px) {
    .quick-donate {
        padding: 72px 0 80px;
    }
}

.quick-donate-inner {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Deux colonnes ----------
   Le panneau ne fait pas que présenter : en occupant la moitié gauche, il
   borne la largeur du formulaire. Pleine largeur, celui-ci dépassait
   1 470 px sur un écran de 1 520, et les options d'un don — jusqu'à neuf
   pastilles pour « Sıcak Yemek » — s'étalaient sur une seule ligne
   interminable. */
.qd-duo {
    display: grid;
    gap: 32px;
}

/* Deux colonnes à partir de 1200 px, et non 1024.
   À 1024 la colonne de gauche ne faisait que 414 px : bien trop peu pour un
   titre qui monte à 3 rem, qui s'y repliait sur quatre lignes. En dessous de
   1200, les deux blocs restent donc empilés sur toute la largeur. */
@media (min-width: 1200px) {
    .qd-duo {
        /* minmax(0, 1fr) et non 1fr.
​
           « 1fr » vaut en réalité « minmax(auto, 1fr) », et ce minimum
           automatique est la largeur MAXIMALE du contenu. Or la colonne de
           droite contient le carrousel, un conteneur flex de cinq tuiles à
           220 px : son contenu mesure environ 1 148 px, et la colonne
           s'élargissait jusque-là en volant la place à la présentation —
           qui se retrouvait à un quart de la largeur, titre replié sur trois
           lignes.

           minmax(0, 1fr) autorise la colonne à descendre sous la taille de
           son contenu. Le carrousel reprend alors son rôle : il défile. */
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 56px;
    }

    /* Panneau masqué en administration : la carte reprend toute la largeur. */
    .qd-duo--seul {
        grid-template-columns: minmax(0, 1fr);
        max-width: 900px;
        margin: 0 auto;
    }
}

/* ---------- Panneau de présentation ---------- */

.qd-presentation-surtitre {
    margin: 0 0 12px;
    color: #B0491F;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.qd-presentation-titre {
    margin: 0 0 16px;
    color: #16233A;
    font-size: clamp(2rem, 1.2rem + 2.4vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

/* 60ch et non 46 : à 46, le paragraphe était bridé à environ 386 px et
   n'occupait que 61 % de sa colonne — c'est ce qui donnait au panneau son
   air étriqué, bien avant la largeur de la colonne elle-même. 60ch reste
   dans la fourchette de 45 à 75 caractères qui se lit sans effort. */
.qd-presentation-texte {
    max-width: 60ch;
    margin: 0 0 28px;
    color: #3D4A5C;
    font-size: 1.05rem;
    line-height: 1.65;
}

.qd-arguments {
    display: grid;
    gap: 18px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.qd-arguments li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #16233A;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
}

/* Le rond est décoratif — l'argument est écrit juste à côté, d'où le
   aria-hidden posé dessus dans le gabarit. */
.qd-coche {
    display: grid;
    flex: none;
    width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    border-radius: 50%;
    background: #0E7A43;
    color: #fff;
    font-size: 0.82rem;
}

.qd-presentation-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: 1px solid rgba(22, 35, 58, 0.14);
    border-radius: 999px;
    background: #fff;
    color: #0A5C32;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.07);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.qd-presentation-btn:hover {
    border-color: #0E7A43;
    color: #0A5C32;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.13);
}

.qd-presentation-btn:focus-visible {
    outline: 3px solid #0E7A43;
    outline-offset: 3px;
}

.qd-presentation-fl {
    font-size: 0.85rem;
}

/* ---------- La carte du formulaire ---------- */

.qd-card {
    display: flex;
    flex-direction: column;
    /* Indispensable en complément de minmax(0, 1fr) sur la grille : sans
       lui, cette carte — elle-même conteneur flex — refuserait de descendre
       sous la largeur de son contenu, et le carrousel la ferait déborder
       malgré la contrainte posée sur la colonne. */
    min-width: 0;
    padding: 24px;
    /* Le contour est décoratif : c'est le blanc sur la crème, et l'ombre,
       qui détachent la carte. */
    border: 1px solid rgba(22, 35, 58, 0.08);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(16, 24, 40, 0.10);
}

@media (min-width: 1024px) {
    .qd-card {
        padding: 30px 32px;
    }
}

/* Repris dans la carte uniquement quand le panneau est masqué. */
.qd-label {
    display: block;
    color: #B0491F;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.qd-title {
    display: block;
    margin: 8px 0 20px;
    color: #16233A;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
}

/* ---------- Étapes ---------- */

/* min-width: 0 par précaution sur toute la chaîne qui mène au carrousel.
   Il suffit qu'un seul maillon refuse de rétrécir pour que le contenu large
   repousse la colonne entière — c'est précisément ce qui s'était produit. */
.qd-etape {
    min-width: 0;
}

.qd-etape[hidden] {
    display: none;
}

.qd-tete {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.qd-field-label {
    display: flex;
    align-items: center;
    color: #5A6472;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Numéro d'étape : il dit au visiteur qu'il y en a une seconde, ce qu'une
   simple étiquette ne faisait pas. */
.qd-num {
    display: inline-grid;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.55rem;
    place-items: center;
    border-radius: 50%;
    background: #F1ECE3;
    color: #16233A;
    font-size: 0.74rem;
    font-weight: 800;
}

.qd-fleches {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.qd-fleche {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid #5A6472;
    border-radius: 50%;
    background: #fff;
    color: #16233A;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.qd-fleche:hover {
    border-color: #0E7A43;
    background: #F1ECE3;
}

.qd-fleche:focus-visible {
    outline: 3px solid #0E7A43;
    outline-offset: 2px;
}

/* ---------- Carrousel des dons ---------- */

.qd-piste {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #C9C2B6 transparent;
}

.qd-piste::-webkit-scrollbar {
    height: 8px;
}

.qd-piste::-webkit-scrollbar-thumb {
    background: #C9C2B6;
    border-radius: 4px;
}

/* Sur téléphone, une tuile large plutôt que deux étroites : à deux colonnes
   il ne reste qu'une centaine de pixels pour le titre, et la tuile suivante
   qui dépasse indique qu'on peut faire défiler. */
.qd-tuile {
    position: relative;
    display: block;
    flex: 0 0 78%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 12px;
    background: #0F2438;
    scroll-snap-align: start;
    text-decoration: none;
}

@media (min-width: 640px) {
    .qd-tuile {
        flex-basis: 220px;
    }
}

.qd-tuile-photo,
.qd-tuile-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qd-tuile-photo img {
    transition: transform 0.4s ease;
}

.qd-tuile:hover .qd-tuile-photo img {
    transform: scale(1.06);
}

.qd-tuile-sans {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 2rem;
}

/* Le voile porte le texte : même sur une photo entièrement blanche, le blanc
   ressort à 9,29:1 à l'endroit du nom. */
.qd-tuile-voile {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(9, 20, 33, 0.94) 0%,
        rgba(9, 20, 33, 0.78) 34%,
        rgba(9, 20, 33, 0.20) 64%,
        rgba(9, 20, 33, 0) 100%);
}

.qd-tuile-texte {
    position: absolute;
    right: 12px;
    bottom: 10px;
    left: 12px;
    z-index: 2;
    padding-right: 44px;
}

.qd-tuile-nom {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.qd-tuile-prix {
    display: block;
    margin-top: 2px;
    color: #A7E3C0;                 /* 6,37:1 sur le voile */
    font-size: 12.5px;
    font-weight: 800;
}

/* Visible au repos, et non au survol : le bloc est très utilisé sur mobile,
   où le survol n'existe pas. */
.qd-tuile-rond {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #0E7A43;
    color: #fff;                    /* 5,41:1 */
    font-size: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}

.qd-tuile:hover .qd-tuile-rond {
    background: #0A5C32;
    transform: scale(1.12);
}

.qd-tuile:focus-visible {
    outline: 3px solid #0E7A43;
    outline-offset: 3px;
}

/* ---------- Étape 2 : les options ---------- */

.qd-retour {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #5A6472;
    border-radius: 999px;
    background: #fff;
    color: #16233A;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.qd-retour:hover {
    border-color: #0E7A43;
    background: #F1ECE3;
}

.qd-retour:focus-visible {
    outline: 3px solid #0E7A43;
    outline-offset: 2px;
}

.qd-choisi {
    display: flex;
    align-items: center;
    color: #16233A;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.qd-options {
    display: grid;
    min-width: 0;
    gap: 16px;
}

.qd-rang {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qd-pill {
    padding: 10px 14px;
    border: 1px solid #5A6472;      /* 6,00:1 sur blanc */
    border-radius: 10px;
    background: #fff;
    color: #16233A;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.qd-pill:hover:not(:disabled) {
    border-color: #0E7A43;
    background: #F1ECE3;
}

.qd-pill.is-on {
    border-color: transparent;
    background: #F58220;
    color: #12202F;                 /* 6,36:1 */
}

.qd-pill:focus-visible {
    outline: 3px solid #0E7A43;
    outline-offset: 2px;
}

/* Combinaison qui n'existe nulle part dans la grille : grisée plutôt que
   masquée, pour que le donateur voie ce qui se fait ailleurs. */
.qd-pill.is-off {
    opacity: 0.45;
    cursor: not-allowed;
}

.qd-select,
.qd-input {
    padding: 10px 14px;
    border: 1px solid #5A6472;
    border-radius: 10px;
    background: #fff;
    color: #16233A;
    font-family: inherit;
    font-size: 15px;
}

.qd-select {
    min-width: 220px;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23B0491F' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 1.15em 1.15em;
    -webkit-appearance: none;
    appearance: none;
}

.qd-input {
    width: 140px;
}

.qd-select:focus,
.qd-input:focus {
    outline: none;
    border-color: #0E7A43;
    box-shadow: 0 0 0 3px rgba(14, 122, 67, 0.18);
}

.qd-input::placeholder {
    color: #5A6472;
}

/* ---------- Quantité ---------- */

.qd-qte {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid #5A6472;
    border-radius: 10px;
    background: #fff;
}

.qd-qte-b {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #F1ECE3;
    color: #16233A;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.qd-qte-b:hover:not(:disabled) {
    background: #F58220;
    color: #12202F;
}

.qd-qte-b:disabled {
    opacity: 0.35;
    cursor: default;
}

.qd-qte-v {
    min-width: 36px;
    color: #16233A;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

/* ---------- Total et actions ---------- */

.qd-pied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(22, 35, 58, 0.10);
}

.qd-total {
    display: grid;
    gap: 2px;
}

.qd-total-l {
    color: #5A6472;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.qd-total-v {
    color: #16233A;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.qd-total-d {
    color: #0A5C32;                 /* 8,11:1 */
    font-size: 13px;
    font-weight: 700;
}

.qd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
}

.qd-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.qd-btn-1 {
    border: 0;
    background: #F58220;
    color: #12202F;
}

.qd-btn-1:hover:not(:disabled) {
    background: #E0760F;
}

.qd-btn-2 {
    border: 1px solid #5A6472;
    background: #fff;
    color: #16233A;
}

.qd-btn-2:hover:not(:disabled) {
    border-color: #0E7A43;
    background: #F1ECE3;
}

.qd-btn:focus-visible {
    outline: 3px solid #0E7A43;
    outline-offset: 2px;
}

.qd-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

/* ---------- Réassurance ---------- */

.qd-note {
    margin: 18px 0 0;
    color: #5A6472;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

.qd-note i {
    margin-right: 0.3rem;
    color: #B0491F;
}

@media (max-width: 639px) {
    .qd-actions {
        width: 100%;
        margin-left: 0;
    }

    .qd-btn {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qd-pill,
    .qd-btn,
    .qd-fleche,
    .qd-presentation-btn,
    .qd-tuile-photo img,
    .qd-tuile-rond {
        transition: none;
    }

    .qd-presentation-btn:hover {
        transform: none;
    }

    .qd-tuile:hover .qd-tuile-photo img {
        transform: none;
    }
}

/* =====================================================================
   QUI SOMMES-NOUS
   =====================================================================
   Mise en page reprise du modèle fourni : média d'un côté, panneau de texte
   gris de l'autre, et deux coins décoratifs en biais qui débordent en haut à
   gauche et en bas à droite.

   Le procédé des coins est celui du modèle, à l'identique : deux
   pseudo-éléments carrés placés derrière la carte (translateZ + preserve-3d),
   découpés en triangle par un masque en dégradé à 45°.

   Trois écarts assumés :
   • Le média reste la VIDÉO existante. Le modèle étirait une image en
     object-cover sur toute la hauteur ; un iframe ne se recadre pas, il
     conserve donc son ratio 16:9.
   • Le teal #00857d du modèle est remplacé par le vert du logo.
   • Écrit en CSS simple : le projet utilise Tailwind avec le préfixe tw- et
     sans les couleurs du modèle, les @apply fournis ne s'y transposent pas.
   -------------------------------------------------------------------- */

.about-section {
    /* Padding généreux : les coins débordent d'environ 33px de la carte et
       seraient rognés par une section trop serrée. */
    padding: 80px 0;
    background: #FFFFFF;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .about-section {
        padding: 112px 0;
    }
}

.about-wrap {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ---------- Coins en biais (procédé du modèle) ---------- */

.fancy-corners {
    position: relative;
    background-color: #fff;
    transform-style: preserve-3d;
}

.fancy-corners::before,
.fancy-corners::after {
    position: absolute;
    width: 8em;
    height: 8em;
    background-color: #0E7A43;
    background-size: 100% 100%;
    background-position: 0 0;
    /* Passe derrière le fond blanc de la carte sans sortir de son contexte */
    transform: translateZ(-1px);
    z-index: -1;
}

.fancy-corners--top-left::before {
    content: "";
    top: -1.17647em;
    left: -1.17647em;
    -webkit-mask-image: linear-gradient(-45deg, #fff 85.5%, transparent 0);
    mask-image: linear-gradient(-45deg, #fff 85.5%, transparent 0);
}

.fancy-corners--bottom-right::after {
    content: "";
    bottom: -1.17647em;
    right: -1.17647em;
    -webkit-mask-image: linear-gradient(-45deg, transparent 14.5%, #fff 0);
    mask-image: linear-gradient(-45deg, transparent 14.5%, #fff 0);
}

.fancy-corners--large.fancy-corners--top-left::before {
    top: -2.05882em;
    left: -2.05882em;
}

.fancy-corners--large.fancy-corners--bottom-right::after {
    bottom: -2.05882em;
    right: -2.05882em;
}

@media (min-width: 1024px) {
    .fancy-corners--large::before,
    .fancy-corners--large::after {
        width: 14em;
        height: 14em;
    }
}

/* ---------- Carte ---------- */

.about-card {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .about-card {
        flex-direction: row;
        align-items: center;
    }
}

.about-media {
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .about-media {
        flex-basis: 55%;
    }
}

.about-video {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.about-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Panneau de texte ---------- */

.about-content {
    padding: 28px 24px;
    background: #FFFFFF;
    line-height: 1.7;
}

@media (min-width: 1024px) {
    .about-content {
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px 36px;
    }
}

.about-eyebrow {
    display: block;
    color: #0A5C32;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.about-title {
    margin: 12px 0 0;
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 800;

    background: linear-gradient(
        to right,
        #065f3a,
        #097949,
        #12a867
    );

    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.about-text {
    color: #4B5563;
    font-size: 1rem;
}

.about-text p {
    margin-top: 16px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Bouton du modèle : fond plein bordé, qui s'inverse au survol. */
.about-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    margin-top: 24px;
    padding: 10px 22px;
    border: 2px solid #0E7A43;
    background: #0E7A43;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.about-button:hover,
.about-button:focus {
    background: #fff;
    color: #0A5C32;
    border-color: #0A5C32;
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    .about-button {
        transition: none;
    }
}

/* =====================================================================
   POURQUOI NOUS CHOISIR
   =====================================================================
   Variante « Relief accentué » retenue après comparaison.

   Matière du modèle fourni : gris rgb(236,236,236) et ombre à trois
   niveaux, dont l'ombre intérieure du bas — épaissie ici de 3 à 6px pour
   marquer le relief, et qui passe au vert de la marque au survol.

   Les classes sont préfixées wc- : `.card` seul entrerait en collision
   avec la classe du même nom de Bootstrap, chargé sur tout le site.
   -------------------------------------------------------------------- */

.wc-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.wc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 254px;
    padding: 32px 26px;
    text-align: center;
    background: rgb(236, 236, 236);
    box-shadow:
        rgba(0, 0, 0, 0.4) 0px 2px 4px,
        rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
        rgba(0, 0, 0, 0.2) 0px -6px 0px inset;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wc-card:hover {
    transform: translateY(-6px);
    box-shadow:
        rgba(0, 0, 0, 0.45) 0px 4px 8px,
        rgba(0, 0, 0, 0.35) 0px 16px 26px -6px,
        rgba(14, 122, 67, 0.9) 0px -6px 0px inset;
}

.wc-card > i {
    margin-bottom: 16px;
    color: #0E7A43; /* 4,58:1 sur le gris de la carte */
    font-size: 2.2rem;
    transition: transform 0.25s ease;
}

.wc-card:hover > i {
    transform: scale(1.12);
}

/* Couleur et marge posées sur le h3 lui-même : custom-fonts.css impose
   « h1..h6 { color:#1a202c; margin-bottom:1rem } », et une couleur déclarée
   sur l'élément l'emporte sur celle héritée du parent. */
.wc-card h3 {
    margin: 0;
    color: #14202C;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.wc-card-text {
    margin-top: 8px;
    color: #4B5563;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Le texte vient d'un champ riche : il peut contenir ses propres <p>. */
.wc-card-text p {
    margin: 0;
}

.wc-card-text p + p {
    margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .wc-card,
    .wc-card > i {
        transition: none;
    }

    .wc-card:hover {
        transform: none;
    }

    .wc-card:hover > i {
        transform: none;
    }
}

/* ========== SPECIAL SECTION PREMIUM ========== */
.special-section {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(16,185,129,0.08), transparent 30%),
        radial-gradient(circle at bottom right, rgba(16,185,129,0.08), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #f3f6f4 100%);
    overflow: hidden;
}

.special-card {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 10px 30px rgba(15,23,42,0.06),
        0 30px 80px rgba(15,23,42,0.10);
    border: 1px solid rgba(255,255,255,0.65);
}

/* ===== LEFT CONTENT ===== */
.special-content {
    height: 100%;
    padding: 72px 60px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 100%);
    position: relative;
}

.special-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 60px;
    width: 80px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981, rgba(16,185,129,0.12));
}

.special-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(16,185,129,0.10);
    color: #059669;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin-bottom: 20px;
}

.special-title {
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.05;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -1.3px;
    margin-bottom: 24px;
    max-width: 640px;
}

.special-text {
    color: #475569;
    font-size: 16px;
    line-height: 1.9;
}

.special-text p:last-child {
    margin-bottom: 0;
}

.special-text ul,
.special-text ol {
    padding-left: 1.2rem;
}

.special-actions {
    margin-top: 34px;
}

.special-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 58px;
    padding: 16px 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
    box-shadow: 0 14px 34px rgba(16,185,129,0.24);
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.special-btn-primary:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(16,185,129,0.34);
    filter: brightness(1.03);
}

.special-btn-primary i {
    transition: transform 0.3s ease;
}

.special-btn-primary:hover i {
    transform: translateX(6px);
}

/* ===== RIGHT MEDIA ===== */
.special-media {
    position: relative;
    min-height: 560px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.special-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(2,6,23,0.08), rgba(2,6,23,0.34));
    z-index: 1;
}

.special-media::after {
    content: "";
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 140px;
    height: 140px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.03));
    backdrop-filter: blur(8px);
    transform: rotate(10deg);
    z-index: 1;
}

.special-media-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.05), transparent 55%);
    z-index: 1;
}

.special-play-btn {
    position: relative;
    z-index: 3;
    width: 108px;
    height: 108px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.22),
        0 0 0 14px rgba(255,255,255,0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.special-play-btn:hover {
    transform: scale(1.08);
    box-shadow:
        0 24px 52px rgba(0,0,0,0.28),
        0 0 0 18px rgba(255,255,255,0.14);
}

.special-play-btn::before,
.special-play-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.42);
    animation: playPulse 2.6s ease-out infinite;
}

.special-play-btn::after {
    animation-delay: 1.3s;
}

.special-play-icon {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-style: solid;
    border-width: 14px 0 14px 22px;
    border-color: transparent transparent transparent #10b981;
}

@keyframes playPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.65);
        opacity: 0;
    }
}

/* ===== VIDEO MODAL ===== */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(2,6,23,0.88);
    backdrop-filter: blur(6px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 980px;
    margin: 70px auto;
}

.video-modal-content iframe {
    width: 100%;
    height: 560px;
    border: 0;
    border-radius: 18px;
    background: #000;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.close-video {
    position: absolute;
    top: -46px;
    right: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    transition: transform 0.25s ease;
}

.close-video:hover {
    transform: scale(1.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .special-content {
        padding: 52px 36px;
    }

    .special-content::before {
        left: 36px;
    }

    .special-media {
        min-height: 420px;
    }

    .video-modal-content iframe {
        height: 420px;
    }
}

@media (max-width: 767px) {
    .special-section {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .special-card {
        border-radius: 24px;
    }

    .special-content {
        padding: 36px 24px;
    }

    .special-content::before {
        left: 24px;
        width: 60px;
    }

    .special-badge {
        font-size: 12px;
        letter-spacing: 1.2px;
        margin-bottom: 14px;
    }

    .special-title {
        font-size: 30px;
        line-height: 1.1;
        margin-bottom: 18px;
    }

    .special-text {
        font-size: 15px;
        line-height: 1.8;
    }

    .special-btn-primary {
        width: 100%;
        padding: 15px 20px;
    }

    .special-media {
        min-height: 320px;
    }

    .special-media::after {
        width: 90px;
        height: 90px;
        right: 16px;
        bottom: 16px;
        border-radius: 18px;
    }

    .special-play-btn {
        width: 84px;
        height: 84px;
        box-shadow:
            0 16px 32px rgba(0,0,0,0.2),
            0 0 0 10px rgba(255,255,255,0.12);
    }

    .special-play-icon {
        border-width: 11px 0 11px 18px;
    }

    .video-modal-content {
        width: 95%;
        margin: 90px auto 0;
    }

    .video-modal-content iframe {
        height: 240px;
        border-radius: 14px;
    }

    .close-video {
        top: -42px;
        width: 34px;
        height: 34px;
        font-size: 22px;
    }
}

/* ========== DONATION CATEGORIES ========== */
/* ========== DONATION CATEGORIES MODERNE ========== */

/* âœ… FEATURED DONATIONS TAGS - VERSION COMPACTE ET ÉLÉGANTE */
.featured-donations-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    min-height: 40px;
}

.featured-tag {
    display: inline-flex; /* âœ… Changé de inline-block à inline-flex */
    align-items: center; /* âœ… Centrage vertical du texte */
    justify-content: center; /* âœ… Centrage horizontal du texte */
    background: rgba(16, 185, 129, 0.08);
    color: #f4791f;
    padding: 5px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(16, 185, 129, 0.15);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2; /* âœ… Hauteur de ligne uniforme */

}

.featured-tag:hover {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

/* Si pas de featured donations, masquer complètement */
.featured-donations-tags:empty {
    display: none;
    min-height: 0;
    margin-bottom: 0;
}


.donation-categories {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.donation-categories::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.donation-categories .heading {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.donation-categories .heading::before {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #10b981, transparent);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.donation-categories .heading h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: #1a202c;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.donation-categories .heading p {
    font-size: 18px;
    color: #718096;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.donation-categories .category-item {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: calc(100% - 70px);
    position: relative;
    border: 2px solid transparent;
}

.donation-categories .category-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.2);
}

.donation-categories .photo {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #10b981, #059669);
}

.donation-categories .photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.donation-categories .category-item:hover .photo::before {
    opacity: 1;
}

.donation-categories .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.donation-categories .category-item:hover .photo img {
    transform: scale(1.15) rotate(2deg);
}

.donation-categories .placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.donation-categories .placeholder-img::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse-rotate 8s linear infinite;
}

@keyframes pulse-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.donation-categories .placeholder-img i {
    position: relative;
    z-index: 2;
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(0.95); }
}

.donation-categories .text {
    padding: 35px 30px 30px;
    position: relative;
}

.donation-categories .text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #10b981, transparent);
    border-radius: 2px;
}

.donation-categories .text h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
    margin-top: 10px;
}

.donation-categories .text h2 a {
    color: #1a202c;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(to right, #10b981 0%, #059669 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
}

.donation-categories .text h2 a:hover {
    color: #10b981;
    background-size: 100% 2px;
}

.donation-categories .short-des {
    min-height: 60px;
    margin-bottom: 20px;
}

.donation-categories .short-des p {
    color: #718096;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

.donation-categories .button-style-2 a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.25);
    position: relative;
    overflow: hidden;
}

.donation-categories .button-style-2 a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.donation-categories .button-style-2 a:hover::before {
    left: 100%;
}

.donation-categories .button-style-2 a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(16, 185, 129, 0.35);
}

.donation-categories .button-style-2 a i {
    transition: transform 0.3s ease;
    font-size: 16px;
}

.donation-categories .button-style-2 a:hover i {
    transform: translateX(5px);
}

/* View All Button */
.donation-categories .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.donation-categories .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.donation-categories .btn-primary:hover::before {
    left: 100%;
}

.donation-categories .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
}

.donation-categories .btn-primary i {
    transition: transform 0.3s ease;
}

.donation-categories .btn-primary:hover i {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 767px) {
    .donation-categories .photo {
        height: 220px;
    }

    .donation-categories .text {
        padding: 25px 20px 20px;
    }

    .donation-categories .text h2 {
        font-size: 20px;
    }

    .donation-categories .short-des {
        min-height: auto;
    }

    .donation-categories .button-style-2 a {
        padding: 12px 25px;
        font-size: 13px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .donation-categories .photo {
        height: 250px;
    }
}

/* ========== WHY CHOOSE ========== */
.why-choose {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.why-choose-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.9));
}

.why-choose .heading h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.why-choose .heading p {
    font-size: 18px;
    opacity: 0.95;
}

.why-choose .inner {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 45px 35px;
    text-align: center;
    transition: all 0.4s ease;
}

.why-choose .inner:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-10px);
}

.why-choose .icon {
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 20px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #10b981;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.why-choose .text h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.why-choose .text p {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    line-height: 1.7;
}

/* ========== EVENTS ========== */
.event {
    background: #f8f9fa;
}

.event .heading h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: #1a202c;
    margin-bottom: 15px;
}

.event .heading p {
    font-size: 18px;
    color: #718096;
    max-width: 700px;
    margin: 0 auto 50px;
}

.event .item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.event .item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.event .photo {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.event .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event .item:hover .photo img {
    transform: scale(1.1);
}

.event .text {
    padding: 30px;
}

.event .text h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.event .text h2 a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event .text h2 a:hover {
    color: #10b981;
}

.event .date-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e6f7f0;
    color: #10b981;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.event .short-des p {
    color: #718096;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.event .button-style-2 a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.event .button-style-2 a:hover {
    gap: 15px;
}

/* ========== TESTIMONIALS ========== */
.testimonial {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.testimonial .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.9));
}

.testimonial .main-header {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: #fff;
    text-align: center;
    margin-bottom: 60px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.testimonial-carousel .item {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    margin: 0 15px;
}

.testimonial-carousel .photo {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.testimonial-carousel .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-carousel .text h4 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.testimonial-carousel .text p {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.testimonial-carousel .description p {
    font-size: 16px;
    color: rgba(255,255,255,0.95);
    line-height: 1.8;
    font-style: italic;
}

/* ========== BLOG ========== */
/* ========== BLOG MODERNE ========== */
.blog {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.blog::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.blog .heading {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.blog .heading::before {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #10b981, transparent);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.blog .heading h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: #1a202c;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.blog .heading p {
    font-size: 18px;
    color: #718096;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.blog .item {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: calc(100% - 70px);
    position: relative;
    border: 2px solid transparent;
}

.blog .item:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.2);
}

.blog .photo {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
}

.blog .photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog .item:hover .photo::after {
    opacity: 1;
}

.blog .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog .item:hover .photo img {
    transform: scale(1.15) rotate(-2deg);
}

/* Date Badge */
.blog .photo::before {
    content: attr(data-date);
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
}

.blog .item:hover .photo::before {
    transform: scale(1.1) translateY(-3px);
}

.blog .text {
    padding: 35px 30px 30px;
    position: relative;
}

.blog .text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #10b981, transparent);
    border-radius: 2px;
}

/* Category Badge */
.blog .text::after {
    content: 'Blog';
    position: absolute;
    top: 15px;
    right: 30px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog .text h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
    margin-top: 10px;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.blog .text h2 a {
    color: #1a202c;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(to right, #10b981 0%, #059669 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    display: inline;
}

.blog .text h2 a:hover {
    color: #10b981;
    background-size: 100% 2px;
}

.blog .short-des {
    min-height: 75px;
    margin-bottom: 25px;
}

.blog .short-des p {
    color: #718096;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

.blog .button-style-2 a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.25);
    position: relative;
    overflow: hidden;
}

.blog .button-style-2 a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.blog .button-style-2 a:hover::before {
    left: 100%;
}

.blog .button-style-2 a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(16, 185, 129, 0.35);
}

.blog .button-style-2 a i {
    transition: transform 0.3s ease;
    font-size: 16px;
}

.blog .button-style-2 a:hover i {
    transform: translateX(5px);
}

/* Meta Info (Author, Date, Comments) */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #718096;
    font-weight: 600;
}

.blog-meta-item i {
    color: #10b981;
    font-size: 14px;
}

/* Read Time Badge */
.blog .read-time {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #10b981;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog .read-time i {
    font-size: 14px;
}

/* Hover Overlay */
.blog .hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.blog .item:hover .hover-overlay {
    opacity: 1;
}

.blog .hover-overlay a {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 24px;
    text-decoration: none;
    transform: scale(0);
    transition: transform 0.3s ease 0.1s;
}

.blog .item:hover .hover-overlay a {
    transform: scale(1);
}

/* Skeleton Loading Effect */
.blog .item.loading {
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 767px) {
    .blog .photo {
        height: 220px;
    }

    .blog .text {
        padding: 25px 20px 20px;
    }

    .blog .text h2 {
        font-size: 20px;
        min-height: auto;
    }

    .blog .short-des {
        min-height: auto;
    }

    .blog .button-style-2 a {
        padding: 12px 25px;
        font-size: 13px;
    }

    .blog .photo::before {
        top: 15px;
        right: 15px;
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .blog .photo {
        height: 250px;
    }

    .blog .text h2 {
        min-height: auto;
    }
}

/* Animation on Scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog .item {
    animation: fadeInUp 0.6s ease-out;
}

.blog .item:nth-child(1) { animation-delay: 0.1s; }
.blog .item:nth-child(2) { animation-delay: 0.2s; }
.blog .item:nth-child(3) { animation-delay: 0.3s; }
.blog .item:nth-child(4) { animation-delay: 0.4s; }
.blog .item:nth-child(5) { animation-delay: 0.5s; }
.blog .item:nth-child(6) { animation-delay: 0.6s; }

/* Accent Line */
.blog .item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #10b981, #059669);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog .item:hover::after {
    opacity: 1;
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 60px auto;
}

.video-modal-content iframe {
    width: 100%;
    height: 500px;
    border: 0;
    border-radius: 10px;
}

.close-video {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        margin: 80px auto;
    }

    .video-modal-content iframe {
        height: 260px;
    }
}/* ===== QUICK DONATION BUTTONS ===== */
  /* ===== QUICK DONATION BUTTONS – v3 ===== */
  .quick-donation-buttons { padding: 2rem 0; }
  .quick-donation-buttons .container { max-width: 1200px; margin: 0 auto; }

  /* 3 colonnes sur desktop, 2 sur mobile */
  .quick-donation-buttons .row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    padding: 28px 16px 22px;
    background: #0a8e52;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow:
      0 1px 0 0 rgba(255,255,255,0.14) inset,
      0 10px 30px rgba(6, 80, 42, 0.35);
    transition: transform 0.35s cubic-bezier(.2,.85,.3,1), box-shadow 0.35s ease;
  }

  .quick-btn::before {
    content: "";
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    border-radius: 100%;
  }

  .quick-btn::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% -10%, rgba(255,255,255,0.10) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .quick-btn:hover {
    transform: translateY(-6px);
    box-shadow:
      0 1px 0 0 rgba(255,255,255,0.18) inset,
      0 20px 44px rgba(6, 80, 42, 0.45),
      0 0 0 1px rgba(255,255,255,0.22);
  }
  .quick-btn:hover::after { opacity: 1; }

  .quick-icon {
    width: 54px; height: 54px;
    border-radius: 50%; overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
    margin-bottom: 14px;
    background: rgba(255,255,255,0.10);
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: transform 0.3s ease;
  }
  .quick-btn:hover .quick-icon { transform: scale(1.08); }

  .quick-flag { width: 100%; height: 100%; object-fit: cover; display: block; }

  .quick-title {
    font-size: 23px; font-weight: 700; color: #ffffff;
    letter-spacing: 0.01em; line-height: 1.2;
    margin-bottom: 8px; position: relative; z-index: 1;
  }

  .quick-price {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.30);
    color: #ffffff; font-size: 20px; font-weight: 800;
    letter-spacing: -0.01em;
    padding: 4px 16px; border-radius: 100px;
    margin-bottom: 10px; position: relative; z-index: 1;
    transition: background 0.3s ease, border-color 0.3s ease;
  }
  .quick-btn:hover .quick-price {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.45);
  }

  .quick-sub {
    font-size: 13px; color: rgba(255,255,255,0.85);
    line-height: 1.5; position: relative; z-index: 1;

  }

  @media (max-width: 767px) {
    .quick-donation-buttons .row { grid-template-columns: repeat(2, 1fr); }
    .quick-btn { padding: 20px 10px 16px; border-radius: 16px; }
    .quick-icon { width: 44px; height: 44px; margin-bottom: 10px; }
    .quick-title { font-size: 14px; }
    .quick-price { font-size: 16px; padding: 3px 12px; }
    .quick-sub { font-size: 10.5px; }
  }

/* ==========================================================
   CARROUSEL DES ACTUALITES (Swiper)
   Swiper fournit sa propre feuille ; on ne regle ici que ce qui doit
   s'accorder aux couleurs du site.
   ========================================================== */
.blog-swiper {
    /* Juste la place des puces de pagination (10 px) et un peu d'air. */
    padding: 0 0 1.75rem;
    margin-top: 0;
}

/* Swiper ajoute 1rem sous le dernier element du wrapper sur certains
   navigateurs : on le neutralise pour que le carrousel ne « flotte » pas. */
.blog-swiper .swiper-wrapper { margin-bottom: 0; }

/* Cartes de meme hauteur, sans vide interieur.
   La solution n'est pas d'etirer la carte (cela creusait un trou apres les
   descriptions courtes) ni de la laisser libre (les hauteurs devenaient
   inegales) : c'est le TEXTE qui est calibre. Titre sur 2 lignes au plus,
   description sur 3, donc un bloc de texte de hauteur identique partout. */
/* Aucun etirement : Swiper aligne par defaut toutes les diapositives sur la
   plus haute (align-items: stretch), ce qui creusait plusieurs centaines de
   pixels de vide entre la description et le pied de carte. Ce n'est plus
   necessaire — l'image a un rapport fixe, le titre et la description ont une
   hauteur reservee, le pied est constant : les cartes sont donc deja de meme
   hauteur sans qu'on ait a les tirer. */
.blog-swiper .swiper-wrapper { align-items: flex-start; }

.blog-swiper .swiper-slide { height: auto; }
.blog-swiper .swiper-slide > .post-card { width: 100%; }

.post-card-titre,
.post-card-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-titre {
    -webkit-line-clamp: 2;
    /* Hauteur reservee meme sur un titre d'une seule ligne, sinon les cartes
       se decalent d'une ligne les unes par rapport aux autres. */
    min-height: 3.5rem;
}

.post-card-desc {
    -webkit-line-clamp: 3;
    /* 3 lignes exactement : 0,875rem (text-sm) x 1,625 (leading-relaxed) x 3.
       Les 4,1rem precedents reservaient un peu moins de trois lignes, donc une
       description courte laissait la carte plus basse que les autres. */
    min-height: 4.27rem;
}

.blog-swiper .swiper-button-prev,
.blog-swiper .swiper-button-next {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(22, 35, 58, 0.20);
    border-radius: 50%;
    background: #fff;
    color: #16233A;
    transition: background 0.2s ease, color 0.2s ease;
}

.blog-swiper .swiper-button-prev:hover,
.blog-swiper .swiper-button-next:hover {
    background: #F58220;
    border-color: #B45F0C;
    color: #12202F;
}

/* Les fleches de Swiper sont dessinees avec une police interne, en 44px par
   defaut : bien trop grand dans un bouton de 42px. */
.blog-swiper .swiper-button-prev::after,
.blog-swiper .swiper-button-next::after { font-size: 15px; font-weight: 700; }

.blog-swiper .swiper-pagination { bottom: 0; }

.blog-swiper .swiper-pagination-bullet {
    background: #16233A;
    opacity: 0.25;
}

.blog-swiper .swiper-pagination-bullet-active {
    background: #F58220;
    opacity: 1;
}

/* Swiper n'a pas pu etre charge : les cartes restent lisibles en grille. */
.blog-swiper.swiper-hors-service .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-swiper.swiper-hors-service .swiper-button-prev,
.blog-swiper.swiper-hors-service .swiper-button-next,
.blog-swiper.swiper-hors-service .swiper-pagination { display: none; }

/* ==========================================================
   MOSAIQUE DES DONS (accueil)
   Les utilitaires Tailwind qui decrivaient cette section etaient ecrits en
   dur dans le gabarit ; ils sont repris ici sous des noms parlants.
   Valeurs reprises telles quelles de la palette du projet :
     indigo-deep #0F2438   ink #16233A   paper #F7F3EC   amber #C98A2C
   ========================================================== */
.home-mosaic {
    background: #0F2438;
    padding: 5rem 0;
}

@media (min-width: 1024px) {
    .home-mosaic { padding: 7rem 0; }
}

.home-mosaic-in {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.home-mosaic-grid {
    display: grid;
    grid-auto-rows: 160px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .home-mosaic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Deux cellules sortent du rythme pour casser la regularite de la grille */
.home-mosaic-cell--wide { grid-column: span 2 / span 2; grid-row: span 2 / span 2; }
.home-mosaic-cell--tall { grid-row: span 2 / span 2; }

.home-mosaic-cell {
    position: relative;
    display: block;
    overflow: hidden;
    background-color: rgba(22, 35, 58, 0.4);
    background-size: cover;
    background-position: center;
}

/* Degrade permanent : sans lui, un titre blanc sur une photo claire devient
   illisible. */
.home-mosaic-veil {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to top,
        rgba(15, 36, 56, 0.90) 0%,
        rgba(15, 36, 56, 0.10) 50%,
        transparent 100%);
}

/* Voile qui apparait au survol, sous l'appel au don */
.home-mosaic-hover {
    position: absolute;
    inset: 0;
    background: rgba(15, 36, 56, 0);
    opacity: 0;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.home-mosaic-cell:hover .home-mosaic-hover {
    background: rgba(15, 36, 56, 0.8);
    opacity: 1;
}

.home-mosaic-legende {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.home-mosaic-cell:hover .home-mosaic-legende { opacity: 0; }

/* La couleur est posee sur le <h3> lui-meme : custom-fonts.css impose
   « h1..h6 { color: #1a202c } », et une couleur declaree sur l'element
   l'emporte sur une couleur heritee. La marge basse de 1rem de cette meme
   regle est annulee ici. */
.home-mosaic h3.home-mosaic-titre {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.35));
}

@media (min-width: 1024px) {
    .home-mosaic h3.home-mosaic-titre { font-size: 1.5rem; }
}

.home-mosaic-appel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #F7F3EC;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-mosaic-cell:hover .home-mosaic-appel { opacity: 1; }

.home-mosaic-appel i {
    margin-bottom: 0.5rem;
    color: #C98A2C;
    font-size: 1.5rem;
}

.home-mosaic-appel span {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.home-mosaic-pied {
    margin-top: 3.5rem;
    text-align: center;
}

/* Le survol n'existe pas au doigt : sans cette regle, l'appel au don reste
   invisible sur mobile. On l'y affiche en permanence. */
@media (hover: none) {
    .home-mosaic-appel { opacity: 0; }
    .home-mosaic-legende { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .home-mosaic-hover,
    .home-mosaic-legende,
    .home-mosaic-appel { transition: none; }
}

/* ==========================================================
   TEMOIGNAGES (accueil)
   Utilitaires Tailwind du gabarit repris sous des noms parlants.
   ========================================================== */
.home-temoins {
    position: relative;
    padding: 5rem 0;
    background-size: cover;
    background-position: center;
}

@media (min-width: 1024px) {
    .home-temoins { padding: 7rem 0; }
}

/* Voile a 90 % : le texte clair passe sur n'importe quelle photo de fond. */
.home-temoins-voile {
    position: absolute;
    inset: 0;
    background: rgba(15, 36, 56, 0.9);
}

.home-temoins-in {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.home-temoins-item { text-align: center; }

.home-temoins-photo {
    width: 5rem;
    height: 5rem;
    margin: 0 auto;
    object-fit: cover;
    /* ring-4 ring-paper/20 */
    box-shadow: 0 0 0 4px rgba(247, 243, 236, 0.2);
}

.home-temoins-texte {
    margin: 1.5rem 0 0;
    color: rgba(247, 243, 236, 0.9);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.625;
}

/* Couleur posee sur le <h4> : custom-fonts.css impose une couleur sombre a
   tous les titres, et une couleur declaree l'emporte sur l'heritage. */
.home-temoins h4.home-temoins-nom {
    margin: 1.5rem 0 0;
    color: #F7F3EC;
    font-size: 1rem;
    font-weight: 600;
}

.home-temoins-role {
    margin: 0;
    color: #C98A2C;
    font-size: 0.875rem;
}

/* ==========================================================
   ACTUALITES (accueil) — enveloppe de la section
   ========================================================== */
.home-actus {
    background: #fff;
    padding: 2.5rem 0;
}

@media (min-width: 1024px) {
    .home-actus { padding: 3.5rem 0; }
}

.home-actus-in {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.home-actus-tete {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(22, 35, 58, 0.1);
}

/* Le libelle est souligne d'un trait plein qui chevauche celui de l'en-tete */
.home-actus-libelle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: -1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #1B3A5C;
}

.home-actus-libelle i { color: #1B3A5C; font-size: 1.125rem; }

.home-actus-libelle span {
    color: #1B3A5C;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.home-actus-tout {
    color: rgba(22, 35, 58, 0.5);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-actus-tout:hover { color: #C98A2C; }

.home-actus-soustitre {
    margin: 0 0 1rem;
    color: rgba(22, 35, 58, 0.6);
    font-size: 0.875rem;
}

/* ==========================================================
   POURQUOI NOUS CHOISIR — enveloppe de la section
   Les cartes elles-memes sont plus haut, rubrique « wc- ».
   ========================================================== */
.home-why {
    position: relative;
    padding: 5rem 0;
    background-size: cover;
    background-position: center;
}

@media (min-width: 1024px) {
    .home-why { padding: 7rem 0; }
}

/* Voile a 85 % : le texte clair reste lisible sur n'importe quelle photo. */
.home-why-voile {
    position: absolute;
    inset: 0;
    background: rgba(15, 36, 56, 0.85);
}

.home-why-in {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================
   EVENEMENTS (accueil)
   ========================================================== */
.home-events {
    background: #fff;
    padding: 5rem 0;
}

@media (min-width: 1024px) {
    .home-events { padding: 7rem 0; }
}

.home-events-in {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.home-events-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 640px) {
    .home-events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .home-events-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.home-event {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* ring-1 ring-ink/10 */
    outline: 1px solid rgba(22, 35, 58, 0.1);
    outline-offset: -1px;
    transition: box-shadow 0.2s ease;
}

.home-event:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }

.home-event-media { position: relative; }

.home-event-lien {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.home-event-lien img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-event:hover .home-event-lien img { transform: scale(1.05); }

/* Voile bleute au survol de la carte */
.home-event-lien::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 36, 56, 0);
    transition: background 0.3s ease;
}

.home-event:hover .home-event-lien::after { background: rgba(15, 36, 56, 0.2); }

/* Pastille de date, en haut a droite de la photo */
.home-event-date {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: #C98A2C;
    color: #0F2438;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.home-event-jour { font-size: 1.125rem; font-weight: 700; line-height: 1; }
.home-event-mois { font-size: 10px; font-weight: 600; text-transform: uppercase; }

.home-event-corps {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1.5rem;
}

/* Couleur posee sur le <h3> : custom-fonts.css impose une couleur sombre a
   tous les titres, et une couleur declaree l'emporte sur l'heritage. */
.home-events h3.home-event-titre {
    margin: 0;
    color: #16233A;
    font-size: 1.125rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.home-event:hover h3.home-event-titre { color: #1B3A5C; }

.home-event-texte {
    flex: 1 1 auto;
    margin: 0.75rem 0 0;
    color: rgba(22, 35, 58, 0.6);
    font-size: 0.875rem;
    line-height: 1.625;
}

.home-event-pied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(22, 35, 58, 0.1);
}

.home-event-heure {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(22, 35, 58, 0.5);
    font-size: 0.75rem;
    font-weight: 600;
}

.home-event-plus {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #C98A2C;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.home-event-plus i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.home-event:hover .home-event-plus i { transform: translateX(0.25rem); }

@media (prefers-reduced-motion: reduce) {
    .home-event,
    .home-event-lien img,
    .home-event-lien::after,
    .home-event-plus i { transition: none; }
    .home-event:hover .home-event-lien img { transform: none; }
    .home-event:hover .home-event-plus i { transform: none; }
}
