/*
 * Yetim Eli France — mise en page des pages intérieures.
 * Chargée après les styles de la façade. Ce fichier n'est inclus que dans
 * front/layouts/app.blade.php : aucune règle d'administration n'est ciblée.
 */

:root {
    --ye-front-ink: #17362d;
    --ye-front-heading: #263f49;
    --ye-front-green: #315f46;
    --ye-front-green-dark: #244a36;
    --ye-front-gold: #dfb957;
    --ye-front-paper: #f7f7f2;
    --ye-front-muted: #5f6e66;
    --ye-front-line: #e1e7df;
    --ye-action-primary: #c84453;
    --ye-action-primary-hover: #a92f3e;
    --ye-action-secondary: #315f46;
    --ye-action-secondary-hover: #244a36;
    --ye-amount-bg: #f7f9f6;
    --ye-amount-border: #cbd8cc;
    --ye-card-surface: #eef2eb;
    --ye-card-border: #cbd8cc;
    --ye-front-shadow: 0 18px 48px rgba(22, 49, 39, .09);
    --ye-front-shadow-hover: 0 22px 54px rgba(22, 49, 39, .14);
}

body.ye-v4 {
    color: var(--ye-front-ink);
}

body.ye-v4 main > :not(.ph):not(.y5-hero) {
    scroll-margin-top: 104px;
}

/* Hero partagé sur les pages intérieures : photo visible, texte direct,
   panneau d'informations lisible et hauteur maîtrisée. */
body.ye-v4 .ph {
    min-height: 330px;
    background: #203a37;
    isolation: isolate;
}
body.ye-v4 .ph-image { background-position: center 44%; }
body.ye-v4 .ph-voile {
    opacity: 1;
    background: linear-gradient(90deg, rgba(19, 48, 39, .91) 0%, rgba(27, 53, 52, .76) 49%, rgba(26, 47, 54, .58) 100%);
}
body.ye-v4 .ph-inner {
    max-width: 1320px;
    padding: 35px 32px 62px;
}
body.ye-v4 .ph-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    align-items: center;
    gap: clamp(28px, 5vw, 74px);
}
body.ye-v4 .ph-gauche,
body.ye-v4 .ph-droite { width: auto; margin: 0; padding: 0; }
/* Sous 768 px le panneau de droite est caché : sa colonne ne doit plus
   réserver de place, sinon le titre se retrouve sans largeur. */
@media (max-width: 767px) {
    body.ye-v4 .ph-cols { grid-template-columns: minmax(0, 1fr); }
}
body.ye-v4 .ph-fil {
    margin: 0 0 20px;
    padding: 9px 15px;
    gap: 9px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.14);
    font-size: 13px;
}
body.ye-v4 .ph-fil li + li::before { margin-right: 9px; }
body.ye-v4 .ph-fil a { color: #f1cf82; }
body.ye-v4 .ph h1.ph-titre {
    display: block;
    max-width: 680px;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    color: #fff;
    font-size: clamp(34px, 4.5vw, 58px);
    line-height: 1.07;
    letter-spacing: -.045em;
    text-shadow: 0 2px 16px rgba(0,0,0,.16);
}
body.ye-v4 .ph-accroche {
    max-width: 650px;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    color: rgba(255,255,255,.9);
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.65;
}
body.ye-v4 .ph-boutons { flex-direction: row; flex-wrap: wrap; gap: 10px; }
body.ye-v4 .ph-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 19px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}
body.ye-v4 .ph-btn:hover { transform: translateY(-2px); }
body.ye-v4 .ph-btn-plein { color: #18382d; background: #e6bd62; border: 1px solid #e6bd62; }
body.ye-v4 .ph-btn-plein:hover { color: #17362d; background: #f0cf82; }
body.ye-v4 .ph-btn-vide { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.62); }
body.ye-v4 .ph-btn-vide:hover { color: #fff; background: rgba(255,255,255,.18); }
body.ye-v4 .ph-panneau {
    padding: clamp(20px, 2.3vw, 30px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    background: rgba(255,255,255,.11);
    box-shadow: 0 18px 48px rgba(0,0,0,.13);
    backdrop-filter: blur(12px);
}
body.ye-v4 .ph h2.ph-panneau-titre {
    margin: 0 0 17px;
    color: #fff;
    font-size: clamp(19px, 2vw, 25px);
    line-height: 1.3;
    letter-spacing: -.025em;
}
body.ye-v4 .ph-liste { display: grid; gap: 12px; }
body.ye-v4 .ph-liste li { align-items: flex-start; gap: 12px; color: rgba(255,255,255,.94); font-size: 14px; line-height: 1.55; }
body.ye-v4 .ph-liste li + li { margin: 0; }
body.ye-v4 .ph-liste i,
body.ye-v4 .ph-liste svg { width: 19px; height: 19px; margin: 2px 0 0; color: var(--ye-front-gold); font-size: 17px; }
body.ye-v4 .ph-liste li:nth-child(3n+1) i,
body.ye-v4 .ph-liste li:nth-child(3n+2) i,
body.ye-v4 .ph-liste li:nth-child(3n+3) i { color: var(--ye-front-gold); }
body.ye-v4 .ph-avec-vague .ph-inner { padding-bottom: 70px; }
body.ye-v4 .ph-vague svg { max-height: 96px; }

/* Rythme commun et conteneurs de contenu. */
body.ye-v4 .ye-section { padding-block: clamp(54px, 7vw, 94px); }
body.ye-v4 .ye-section--sauge { background: #f5f6f1; }
body.ye-v4 .ye-wrap,
body.ye-v4 .dl-in,
body.ye-v4 .dc-in,
body.ye-v4 .fq-in,
body.ye-v4 .bl-in,
body.ye-v4 .gc-in {
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
}
body.ye-v4 :where(.ye-h1,.ye-h2,.ye-h3,.dc-titre,.fq-groupe-titre,.bl-article-titre) {
    color: var(--ye-front-heading);
    letter-spacing: -.04em;
}
body.ye-v4 .ye-lead { max-width: 64ch; color: var(--ye-front-muted); }
body.ye-v4 .ye-entete { max-width: 780px; margin-bottom: 30px; }
body.ye-v4 .ye-entete .ye-h2 { margin-bottom: 12px; }

/* Cartes de dons : même surface, mêmes proportions et même hiérarchie
   sur le catalogue, les catégories et les actions mises en avant. */
body.ye-v4 .donation-list-page,
body.ye-v4 .dc-section { padding-block: clamp(38px, 5vw, 70px); }
body.ye-v4 .donation-list-page .dc-grid,
body.ye-v4 .dc-section .dc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 20px;
}
@media (max-width: 980px) {
    body.ye-v4 .donation-list-page .dc-grid,
    body.ye-v4 .dc-section .dc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    body.ye-v4 .donation-list-page .dc-grid,
    body.ye-v4 .dc-section .dc-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
body.ye-v4 .donation-list-page .dc-card,
body.ye-v4 .dc-section .dc-carte,
body.ye-v4 .ye-cat {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-self: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--ye-card-border);
    border-radius: 16px;
    background: var(--ye-card-surface);
    box-shadow: 0 10px 28px rgba(25, 53, 40, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}
body.ye-v4 .donation-list-page .dc-card:hover,
body.ye-v4 .dc-section .dc-carte:hover,
body.ye-v4 .ye-cat:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(25, 53, 40, .14);
}
body.ye-v4 .donation-list-page .dc-media,
body.ye-v4 .dc-section .dc-media,
body.ye-v4 .ye-cat-photo {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1.85 / 1;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background: #e4eae3;
    box-shadow: none;
}
body.ye-v4 .donation-list-page .dc-media img,
body.ye-v4 .dc-section .dc-media img,
body.ye-v4 .ye-cat-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}
body.ye-v4 .donation-list-page .dc-card:hover .dc-media img,
body.ye-v4 .dc-section .dc-carte:hover .dc-media img,
body.ye-v4 .ye-cat:hover .ye-cat-photo img { transform: scale(1.025); }
body.ye-v4 .donation-list-page .dc-body,
body.ye-v4 .dc-section .dc-corps,
body.ye-v4 .ye-cat-corps {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    padding: 19px 20px 20px;
}
body.ye-v4 .donation-list-page .dc-title,
body.ye-v4 .dc-section .dc-carte h3,
body.ye-v4 .ye-cat-corps .ye-h3 {
    min-height: 2.5em;
    margin: 0;
    color: var(--ye-front-heading);
    font-size: clamp(19px, 1.6vw, 21px);
    line-height: 1.25;
    letter-spacing: -.025em;
}
body.ye-v4 .donation-list-page .dc-title a { color: inherit; }
body.ye-v4 .donation-list-page .dc-extrait,
body.ye-v4 .dc-section .dc-carte .dc-texte,
body.ye-v4 .ye-cat-corps p {
    min-height: 3.1em;
    margin: 0;
    color: var(--ye-front-muted);
    font-size: 14px;
    line-height: 1.55;
}
body.ye-v4 .donation-list-page .dc-voile {
    background: linear-gradient(0deg, rgba(18, 39, 34, .55), transparent 58%);
}
body.ye-v4 .donation-list-page .dc-badge {
    bottom: 14px;
    left: 14px;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(29, 62, 47, .94);
    color: #fff;
    font-size: 12px;
}
body.ye-v4 .donation-list-page .dc-star {
    top: 13px;
    right: 13px;
    border-radius: 8px;
    background: #e6bd62;
    color: #263f49;
}
body.ye-v4 .donation-list-page .dc-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #d5dfd5;
}
body.ye-v4 .donation-list-page .dc-controls-label {
    color: var(--ye-front-muted);
    font-size: 13px;
    font-weight: 700;
}
body.ye-v4 .donation-list-page .dc-amount-row,
body.ye-v4 .donation-list-page .dc-controls .donation-price-options,
body.ye-v4 .donation-list-page .dc-controls .donation-quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
body.ye-v4 .donation-list-page .dc-controls .donation-price-pill {
    flex: 1 1 64px;
    padding-inline: 10px;
}
body.ye-v4 .donation-list-page .dc-price {
    color: var(--ye-action-secondary-hover);
    font-size: 23px;
    line-height: 1;
    letter-spacing: -.035em;
}
body.ye-v4 .donation-list-page .dc-price--vide { color: #697970; font-size: 18px; }
body.ye-v4 .donation-list-page .dc-action {
    display: grid;
    grid-template-columns: minmax(70px, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}
body.ye-v4 .donation-list-page .dc-submit,
body.ye-v4 .dc-section .btn-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    padding: 10px 15px;
    border: 1px solid var(--ye-action-secondary);
    border-radius: 8px;
    background: var(--ye-action-secondary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    box-shadow: none;
    text-align: center;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
body.ye-v4 .donation-list-page .dc-submit:hover,
body.ye-v4 .dc-section .btn-add-to-cart:hover {
    border-color: var(--ye-action-secondary-hover);
    background: var(--ye-action-secondary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: none;
}
body.ye-v4 .donation-list-page .dc-submit .hero-btn-sheen,
body.ye-v4 .donation-list-page .dc-submit .hero-btn-glow { display: none; }
body.ye-v4 .donation-list-page .dc-submit .hero-btn-inner { justify-content: center; gap: 8px; }
body.ye-v4 .donation-list-page .dc-submit .hero-btn-icon {
    width: 19px;
    height: 19px;
    border-radius: 0;
    background: transparent;
    color: currentColor;
    font-size: 14px;
}
body.ye-v4 .donation-list-page .dc-submit .hero-btn-title { color: currentColor; font-size: 14px; white-space: nowrap; }
body.ye-v4 .donation-list-page .dc-submit--fiche { grid-column: 1 / -1; justify-self: end; }
body.ye-v4 .donation-list-page .dc-empty { grid-column: 1 / -1; }
body.ye-v4 .dc-section .dc-panier { margin-top: auto; border-top-color: var(--ye-front-line); }
body.ye-v4 .dc-section .dc-lien {
    min-height: 44px;
    border: 1px solid var(--ye-action-secondary);
    border-radius: 8px;
    color: var(--ye-action-secondary);
    font-size: 14px;
}
body.ye-v4 .dc-section .dc-lien:hover { background: var(--ye-action-secondary); color: #fff; }
body.ye-v4 .ye-cartes-cat { grid-auto-rows: 1fr; align-items: stretch; gap: 20px; }
body.ye-v4 .ye-cat-corps .ye-btn { margin-top: auto; }
body.ye-v4 .ye-cat-corps p { margin-bottom: 10px; }
body.ye-v4 .donation-filter-track { gap: 9px; padding-bottom: 6px; }
body.ye-v4 .donation-filter-btn { min-height: 44px; border-radius: 999px; font-size: 14px; }

/* Fiche projet : description et preuves d'impact d'un côté, don de l'autre. */
body.ye-v4 .don-page { padding-block: clamp(34px, 5vw, 68px); }
body.ye-v4 .don-page-in { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
body.ye-v4 .don-bloc,
body.ye-v4 .don-give,
body.ye-v4 .don-form,
body.ye-v4 .don-faq,
body.ye-v4 .don-recents {
    border-color: var(--ye-front-line);
    border-radius: 14px;
}
body.ye-v4 .don-form { box-shadow: var(--ye-front-shadow); }
body.ye-v4 .don-give { overflow: hidden; }
/* Les bandeaux pleine largeur (100vw) dépassent de la largeur de la barre de
   défilement : le contenu principal ne doit jamais provoquer un défilement
   horizontal. « clip » et non « hidden » pour ne pas casser les éléments collants. */
body.ye-v4 main#contenu { overflow-x: clip; }
body.ye-v4 .don-total { border-radius: 10px; }
body.ye-v4 .don-actions .btn,
body.ye-v4 .don-actions button { min-height: 48px; border-radius: 6px; font-size: 14px; }
body.ye-v4 .donation-cart-controls :where(button,select,input) { font-size: 14px; }

/* FAQ, actualités et événements : grilles aérées, cartes cohérentes. */
body.ye-v4 .fq-section,
body.ye-v4 .bl-section { padding-block: clamp(40px, 6vw, 78px); }
body.ye-v4 .fq-in,
body.ye-v4 .bl-in { max-width: 1240px; }
body.ye-v4 .fq-bloc,
body.ye-v4 .fq-carte,
body.ye-v4 .bl-carte,
body.ye-v4 .bl-bloc,
body.ye-v4 .event-card,
body.ye-v4 .event-info-card,
body.ye-v4 .event-share-card {
    border: 1px solid var(--ye-front-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(24, 52, 39, .055);
}
body.ye-v4 .fq-groupe { margin-bottom: 38px; }
body.ye-v4 .fq-groupe-titre { margin-bottom: 17px; font-size: clamp(21px, 2.3vw, 28px); }
body.ye-v4 .fq-bouton { min-height: 62px; padding: 17px 19px; font-size: 15px; }
body.ye-v4 .fq-reponse { color: var(--ye-front-muted); font-size: 15px; line-height: 1.75; }
body.ye-v4 .bl-carte { overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
body.ye-v4 .bl-carte:hover,
body.ye-v4 .event-card:hover { transform: translateY(-4px); box-shadow: var(--ye-front-shadow-hover); }
body.ye-v4 .event-listing { padding-block: clamp(38px, 5vw, 70px); }
body.ye-v4 .event-card-img img { width: 100%; object-fit: cover; }
body.ye-v4 .event-card-body { padding: 22px; }
body.ye-v4 .event-card-title { line-height: 1.3; }
body.ye-v4 .event-card-desc { color: var(--ye-front-muted); line-height: 1.65; }
body.ye-v4 .event-meta-bar,
body.ye-v4 .event-info-card { border-radius: 12px; }

/* Galerie : la photo reste prioritaire, les filtres restent accessibles. */
body.ye-v4 .gc { padding-block: 22px clamp(44px, 6vw, 76px); }
body.ye-v4 .gc-in { max-width: 1240px; }
body.ye-v4 .gc-tete { margin-bottom: 18px; }
body.ye-v4 .gc-filtres { display: flex; flex-wrap: wrap; gap: 8px; }
body.ye-v4 .gc-filtre { min-height: 42px; border-radius: 999px; padding: 8px 15px; }
body.ye-v4 .gc-scene { height: clamp(360px, 55vw, 620px); border-radius: 16px; overflow: hidden; background: #1d302f; }
body.ye-v4 .gc-img { object-fit: contain; }
body.ye-v4 .gc-pied { padding-top: 14px; }
body.ye-v4 .gc-minis { gap: 9px; }
body.ye-v4 .gc-mini { border-radius: 8px; overflow: hidden; }

/* Articles et pages d'information : largeur de lecture, marges et contraste. */
body.ye-v4 .bl-article { max-width: 860px; }
body.ye-v4 .bl-article-photo { overflow: hidden; border-radius: 14px; }
body.ye-v4 .bl-contenu,
body.ye-v4 .page-content,
body.ye-v4 .tracking-section {
    color: var(--ye-front-muted);
    font-size: 16px;
    line-height: 1.8;
}
body.ye-v4 .page-content .container { max-width: 960px; }
body.ye-v4 .page-content .row > [class*="col"] > .video-gallery-heading { margin-top: 0; }
body.ye-v4 .video-gallery-item { overflow: hidden; border-radius: 12px; box-shadow: 0 8px 26px rgba(24,52,39,.08); }
body.ye-v4 .tracking-section .card { border: 1px solid var(--ye-front-line); border-radius: 12px; box-shadow: 0 8px 26px rgba(24,52,39,.055); }
body.ye-v4 .tracking-section .table-responsive { overflow-x: auto; border: 1px solid var(--ye-front-line); border-radius: 12px; }

/* Etapes panier : même bannière compacte, tout en gardant les formulaires et
   états de paiement dans leur ordre et leurs routes actuels. */
body.ye-v4 .y5-page { padding-top: 24px; padding-bottom: 64px; }
body.ye-v4 .y5-page-heading--photo {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 8px 0 25px;
    padding: clamp(25px, 4vw, 42px);
    border-radius: 14px;
    color: #fff;
    background-color: #213a3b;
    background-image: linear-gradient(90deg, rgba(19,48,39,.92), rgba(26,48,54,.68)), var(--y5-hero-image, url('/uploads/slider_1780856115.jpg'));
    background-position: center 43%;
    background-size: cover;
    box-shadow: var(--ye-front-shadow);
}
body.ye-v4 .y5-page-heading--photo h1,
body.ye-v4 .y5-page-heading--photo p { color: #fff; }
body.ye-v4 .y5-page-heading--photo .y5-pill {
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.12);
    color: #fff;
    backdrop-filter: blur(8px);
}
body.ye-v4 .y5-page-heading--photo .y5-eyebrow { color: #f1cf82; }
body.ye-v4 .y5-footer-col > p { white-space: normal; overflow-wrap: anywhere; text-transform: none; }
body.ye-v4 .ye-coord > li > span:last-child { min-width: 0; overflow-wrap: anywhere; text-transform: none; }
@media (max-width: 760px) {
    body.ye-v4 .y5-page-heading--photo { flex-direction: column; align-items: flex-start; gap: 12px; }
    body.ye-v4 .y5-page-heading--photo .y5-pill {
        align-self: flex-start;
        max-width: 100%;
        /* Sur une ligne quand ça tient, sinon un retour propre : jamais
           coupée par le bord, jamais empilée mot par mot. */
        white-space: normal;
        line-height: 1.3;
        text-align: left;
        font-size: 12px;
        padding: 8px 11px;
    }
}
body.ye-v4 .y5-panel,
body.ye-v4 .y5-summary-card { border-color: var(--ye-front-line); border-radius: 14px; box-shadow: 0 10px 30px rgba(24,52,39,.055); }

/* Formulaires : taille de texte confortable, champs cohérents et focus net. */
body.ye-v4 main :where(input:not([type=checkbox]):not([type=radio]), select, textarea) {
    min-height: 46px;
    border-radius: 7px;
    border-color: #bdc9c0;
    font-size: 16px;
}
body.ye-v4 main textarea { min-height: 130px; }
body.ye-v4 main :where(input, select, textarea):focus {
    border-color: #315f46;
    box-shadow: 0 0 0 3px rgba(49,95,70,.13);
}
body.ye-v4 main :where(.btn, .ye-btn, .y5-button, .button, button[type=submit]) {
    font-size: 14px;
    font-weight: 700;
}

/* Accueil : libellés plus faciles à lire sans agrandir les boutons. */
body.ye-v4 .y5-hero-copy .y5-button {
    min-height: 46px;
    padding: 10px 16px;
    gap: 8px;
    font-size: 16px;
    line-height: 1.2;
}
body.ye-v4 .y5-hero-copy .y5-button svg { width: 16px; height: 16px; }
body.ye-v4 .y5-quick .qd-actions { align-items: center; gap: 9px; }
body.ye-v4 .y5-quick .qd-actions .qd-btn.y5-button {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    min-height: 46px;
    padding: 10px 15px;
    border-radius: 9px;
    font-size: 16px;
    line-height: 1.2;
    white-space: normal;
}
body.ye-v4 .y5-quick .qd-actions .qd-btn.y5-button svg { width: 17px; height: 17px; }

@media (max-width: 680px) {
    body.ye-v4 .y5-hero-copy .y5-button {
        min-height: 44px;
        padding: 9px 14px;
        font-size: 15px;
    }
    body.ye-v4 .y5-quick .qd-actions { align-items: stretch; }
    body.ye-v4 .y5-quick .qd-actions .qd-btn.y5-button {
        flex: 0 1 auto;
        min-height: 44px;
        padding: 9px 13px;
        font-size: 15px;
    }
}

/* Assistant : fenêtre compacte de conversation, avec une vraie identité et
   des réponses faciles à parcourir. Les réglages de couleur de l'admin restent actifs. */
body.ye-v4 .cb {
    right: 22px;
    bottom: 22px;
    gap: 12px;
}
body.ye-v4 .cb-accroche {
    max-width: 290px;
    padding: 12px 38px 12px 15px;
    border: 1px solid #e2e9e1;
    border-radius: 13px 13px 4px 13px;
    color: #244a36;
    font-size: 14px;
    box-shadow: 0 12px 30px rgba(20, 45, 34, .16);
}
body.ye-v4 .cb-bulle {
    width: 58px;
    height: 58px;
    border: 3px solid #fff;
    background: linear-gradient(145deg, var(--cb-fond, #315f46), #17362d);
    color: var(--cb-encre, #fff);
    font-size: 22px;
    box-shadow: 0 8px 22px rgba(20, 45, 34, .3), 0 0 0 1px rgba(23,54,45,.12);
}
body.ye-v4 .cb-bulle:hover { transform: translateY(-2px) scale(1.03); }
body.ye-v4 .cb-panneau {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: min(410px, calc(100vw - 32px));
    height: min(620px, calc(100dvh - 112px));
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 112px);
    border: 1px solid #dce5dc;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(14, 35, 26, .25);
}
body.ye-v4 .cb-tete {
    min-height: 76px;
    gap: 11px;
    padding: 13px 15px;
    background: linear-gradient(135deg, var(--cb-fond, #315f46), #17362d);
}
body.ye-v4 .cb-marque {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.55);
    border-radius: 13px;
    background: #fff;
    color: #315f46;
    font-size: 19px;
}
body.ye-v4 .cb-marque img { display: block; width: 100%; height: 100%; padding: 4px; object-fit: contain; }
body.ye-v4 .cb-tete-txt { gap: 3px; }
body.ye-v4 .cb-tete-txt strong { font-size: 16px; }
body.ye-v4 .cb-tete-txt span { font-size: 12px; }
body.ye-v4 .cb-icone { width: 36px; height: 36px; font-size: 15px; }
body.ye-v4 .cb-fil { padding: 17px 15px; background: #f2f5f1; }
body.ye-v4 .cb-msg { max-width: 88%; margin-bottom: 9px; padding: 11px 14px; font-size: 14px; line-height: 1.5; }
body.ye-v4 .cb-msg--bot { border: 1px solid #e2e9e1; border-radius: 14px 14px 14px 4px; color: #263f49; box-shadow: 0 3px 10px rgba(25,54,40,.06); }
body.ye-v4 .cb-msg--moi { border-radius: 14px 14px 4px 14px; }
body.ye-v4 .cb-choix {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    max-height: 178px;
    padding: 11px 13px;
    border-top-color: #e8ede6;
    background: #fff;
}
body.ye-v4 .cb-choix-b {
    width: 100%;
    min-height: 43px;
    justify-content: space-between;
    padding: 10px 12px;
    border-color: #d8e2d8;
    border-radius: 10px;
    color: #315a42;
    font-size: 13px;
    line-height: 1.35;
}
body.ye-v4 .cb-choix-b:hover,
body.ye-v4 .cb-choix-b:focus-visible { border-color: #315f46; background: #f1f6f0; color: #244a36; }
body.ye-v4 .cb-saisie { gap: 8px; padding: 12px; border-top-color: #e8ede6; background: #fff; }
body.ye-v4 .cb-saisie input { min-height: 44px; padding-inline: 14px; border-color: #cbd7cc; font-size: 14px; }
body.ye-v4 .cb-saisie button { flex: 0 0 44px; width: 44px; height: 44px; background: var(--cb-fond, #315f46); font-size: 15px; }
body.ye-v4 .cb-saisie button:hover { filter: brightness(.92); }

@media (max-width: 575px) {
    body.ye-v4 .cb { right: 14px; bottom: 14px; }
    body.ye-v4 .cb-panneau {
        position: absolute;
        inset: auto 0 68px auto;
        width: min(410px, calc(100vw - 28px));
        max-width: calc(100vw - 28px);
        height: min(72dvh, 600px);
        max-height: calc(100dvh - 100px);
        border-radius: 18px;
    }
    body.ye-v4 .cb-choix { max-height: min(25dvh, 178px); }
}

@media (prefers-reduced-motion: reduce) {
    body.ye-v4 .cb-bulle { transition: none; }
    body.ye-v4 .cb-bulle:hover { transform: none; }
}

/* ============================ PIED DE PAGE ============================
   Le footer reprend le noir du logo, avec son liseré ocre de marque. */
body.ye-v4 .y5-footer {
    position: relative;
    overflow: hidden;
    border-top: 3px solid #d9b765;
    background:
        radial-gradient(ellipse at 18% 0%, rgba(255, 255, 255, .08), transparent 48%),
        linear-gradient(115deg, #16233A 0%, #1B2E4A 42%, #142139 74%, #203652 100%);
    color: #f5f7f5;
}
body.ye-v4 .y5-footer-main {
    padding-block: 56px 46px;
    gap: clamp(28px, 4vw, 64px);
}
body.ye-v4 .y5-footer-brand img {
    display: block;
    width: 150px;
    max-height: 54px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}
body.ye-v4 .y5-footer-brand p {
    max-width: 300px;
    margin-top: 16px;
    color: #d0d9df;
    line-height: 1.75;
}
body.ye-v4 .y5-footer-col h2 {
    position: relative;
    margin: 6px 0 18px;
    padding-bottom: 11px;
    color: #fff;
    font-size: 12px;
    letter-spacing: .12em;
}
body.ye-v4 .y5-footer-col h2::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    border-radius: 2px;
    background: #d9b765;
    content: "";
}
body.ye-v4 .y5-footer-col a,
body.ye-v4 .y5-footer-col p {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 6px;
    padding: 4px 0;
    color: #d0d9df;
    line-height: 1.6;
    overflow-wrap: anywhere;
    transition: color .18s ease, transform .18s ease;
}
body.ye-v4 .y5-footer-col a:hover {
    color: #f0cf7c;
    transform: translateX(3px);
}
body.ye-v4 .y5-footer-bottom {
    min-height: 64px;
    padding-block: 13px 17px;
    border-top: 1px solid rgba(226, 235, 240, .18);
    color: #c4cfd6;
}
body.ye-v4 .y5-socials { gap: 9px; }
body.ye-v4 .y5-socials a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(226, 235, 240, .25);
    background: rgba(255, 255, 255, .07);
    color: #f1d17e;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
body.ye-v4 .y5-socials a:hover {
    transform: translateY(-2px);
    border-color: #d9b765;
    background: #d9b765;
    color: #000000;
}

@media (max-width: 680px) {
    body.ye-v4 .y5-footer-main { padding-block: 38px 30px; }
    body.ye-v4 .y5-footer-brand p { max-width: 42ch; }
    body.ye-v4 .y5-footer-col h2 { margin-bottom: 12px; }
    body.ye-v4 .y5-footer-bottom { gap: 12px; }
    body.ye-v4 .y5-socials { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    body.ye-v4 .y5-footer-col a,
    body.ye-v4 .y5-socials a { transition: none; }
}


/* Encart d'appel à l'action : une carte posée sur le fond du pied de page,
   pour ne former qu'un seul bloc avec lui. */
body.ye-v4 .y5-footer .cta-band {
    width: min(1200px, calc(100% - 48px));
    margin: 34px auto 0;
    padding: 26px 30px;
    border: 1px solid rgba(226, 235, 240, .18);
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
}
body.ye-v4 .y5-footer .cta-band-in {
    max-width: none;
    padding: 0;
}
@media (max-width: 760px) {
    body.ye-v4 .y5-footer .cta-band {
        width: calc(100% - 32px);
        padding: 22px 18px;
    }
}

/* ================= VARIANTES DE BOUTONS ET MONTANTS =================
   Primaire = donner (rouge de marque), secondaire = poursuivre / panier
   (vert), montant = puce neutre avec état sélectionné vert. */
body.ye-v4 .y5-button:not(.y5-button--ghost),
body.ye-v4 .ye-btn--don,
body.ye-v4 .ph-btn-plein,
body.ye-v4 .don-go:not(.don-go-second),
body.ye-v4 .don-barre-go,
body.ye-v4 .btn-ui--primary {
    border-color: var(--ye-action-primary);
    background: var(--ye-action-primary);
    color: #fff;
    box-shadow: 0 5px 14px rgba(200, 68, 83, .18);
}
body.ye-v4 .y5-button:not(.y5-button--ghost):hover,
body.ye-v4 .ye-btn--don:hover,
body.ye-v4 .ph-btn-plein:hover,
body.ye-v4 .don-go:not(.don-go-second):hover,
body.ye-v4 .don-barre-go:hover,
body.ye-v4 .btn-ui--primary:hover {
    border-color: var(--ye-action-primary-hover);
    background: var(--ye-action-primary-hover);
    color: #fff;
    box-shadow: 0 8px 18px rgba(169, 47, 62, .24);
}
body.ye-v4 .y5-button--ghost,
body.ye-v4 .ye-btn--contour,
body.ye-v4 .don-go-second,
body.ye-v4 .btn-ui--outline,
body.ye-v4 .btn-ui--ghost {
    border-color: var(--ye-action-secondary);
    background: #fff;
    color: var(--ye-action-secondary);
}
body.ye-v4 .y5-button--ghost:hover,
body.ye-v4 .ye-btn--contour:hover,
body.ye-v4 .don-go-second:hover,
body.ye-v4 .btn-ui--outline:hover,
body.ye-v4 .btn-ui--ghost:hover {
    border-color: var(--ye-action-secondary-hover);
    background: #edf4ee;
    color: var(--ye-action-secondary-hover);
}
body.ye-v4 .btn-ui--secondary {
    border-color: var(--ye-action-secondary);
    background: var(--ye-action-secondary);
    color: #fff;
}
body.ye-v4 .btn-ui--secondary:hover {
    border-color: var(--ye-action-secondary-hover);
    background: var(--ye-action-secondary-hover);
    color: #fff;
}
body.ye-v4 main :where(.y5-button, .ye-btn, .ph-btn, .don-go, .dc-submit, .btn-add-to-cart, .btn-ui) {
    min-height: 46px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}
body.ye-v4 .y5-hero-copy .y5-button,
body.ye-v4 .y5-quick .qd-actions .qd-btn.y5-button { font-size: 16px; }
body.ye-v4 .donation-price-pill,
body.ye-v4 .quick-amount,
body.ye-v4 .don-chip,
body.ye-v4 .don-frequency-btn {
    min-height: 44px;
    padding: 9px 15px;
    border: 1px solid var(--ye-amount-border);
    border-radius: 999px;
    background: var(--ye-amount-bg);
    color: var(--ye-front-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: none;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}
body.ye-v4 .donation-price-pill:hover,
body.ye-v4 .quick-amount:hover,
body.ye-v4 .don-chip:hover,
body.ye-v4 .don-frequency-btn:hover {
    border-color: var(--ye-action-secondary);
    background: #edf4ee;
    color: var(--ye-action-secondary-hover);
}
body.ye-v4 .donation-price-pill.active,
body.ye-v4 .quick-amount.active,
body.ye-v4 .don-chip.is-on,
body.ye-v4 .don-frequency-btn.active {
    border-color: var(--ye-action-secondary);
    background: var(--ye-action-secondary);
    color: #fff;
    box-shadow: none;
}
body.ye-v4 :where(.donation-price-pill, .quick-amount, .don-chip, .don-frequency-btn):focus-visible {
    outline: 3px solid rgba(49, 95, 70, .24);
    outline-offset: 2px;
}

@media (max-width: 680px) {
    body.ye-v4 main :where(.y5-button, .ye-btn, .ph-btn, .don-go, .dc-submit, .btn-add-to-cart, .btn-ui) {
        min-height: 44px;
        border-radius: 8px;
        font-size: 14px;
    }
    body.ye-v4 .y5-hero-copy .y5-button,
    body.ye-v4 .y5-quick .qd-actions .qd-btn.y5-button { font-size: 15px; }
    body.ye-v4 .donation-price-pill,
    body.ye-v4 .quick-amount,
    body.ye-v4 .don-chip,
    body.ye-v4 .don-frequency-btn { font-size: 14px; }
}

/* Galerie photo TGL-10 : grille sombre compacte, images ouvrables en plein écran. */
body.ye-v4 .gc.tgl-10 {
    --color-tgl10-bg: #ffffff;
    --color-tgl10-bg: oklch(1 0 0);
    --color-tgl10-cell: #f2f4f7;
    --color-tgl10-cell: oklch(0.97 0.005 265);
    --color-tgl10-acc: #5b8cf0;
    --color-tgl10-acc: oklch(0.65 0.16 258);
    --font-tgl10-sans: 'Space Grotesk', system-ui, sans-serif;
    width: 100%;
    min-height: 100svh;
    padding: clamp(28px, 5vw, 64px) 20px;
    background: var(--color-tgl10-bg);
    color: #26343b;
    font-family: var(--font-tgl10-sans);
}
body.ye-v4 .gc.tgl-10 ::selection { background: var(--color-tgl10-acc); color: #fff; }
body.ye-v4 .gc-in { width: min(100%, 760px); margin-inline: auto; }
body.ye-v4 .gc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.ye-v4 .gc-cell {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(29,49,61,.08);
    border-radius: 10px;
    background: var(--color-tgl10-cell);
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
}
body.ye-v4 .gc-cell img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms cubic-bezier(.2,.7,.2,1), filter 400ms ease; }
body.ye-v4 .gc-cell:hover img { transform: scale(1.07); }
body.ye-v4 .gc-cell:focus-visible { outline: 3px solid var(--color-tgl10-acc); outline-offset: 3px; z-index: 1; }
body.ye-v4 .gc-vide { margin: 0; padding: 64px 20px; border: 1px solid rgba(29,49,61,.08); border-radius: 12px; background: var(--color-tgl10-cell); color: #64737b; text-align: center; }
body.ye-v4 .gc-lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 20px;
    border: 0;
    background: transparent;
    color: #fff;
    overflow: hidden;
}
body.ye-v4 .gc-lightbox[open] { display: grid; place-items: center; }
body.ye-v4 .gc-lightbox::backdrop { background: oklch(0.12 0.01 265 / .92); backdrop-filter: blur(8px); }
body.ye-v4 .gc-lightbox-panel { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: 16px; width: min(100%, 1100px); height: min(86dvh, 900px); margin: auto; }
body.ye-v4 .gc-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 100%; min-width: 0; margin: 0; }
body.ye-v4 .gc-full { display: block; max-width: 100%; max-height: calc(100% - 48px); object-fit: contain; border-radius: 8px; box-shadow: 0 22px 70px rgba(0,0,0,.4); }
body.ye-v4 .gc-caption { display: flex; justify-content: space-between; gap: 20px; width: 100%; min-height: 24px; color: #e5e8ee; font-size: 14px; line-height: 1.5; }
body.ye-v4 .gc-count { flex: 0 0 auto; color: #aeb6c5; font-variant-numeric: tabular-nums; }
body.ye-v4 .gc-close, body.ye-v4 .gc-nav { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.09); color: #fff; cursor: pointer; transition: background .18s ease, transform .18s ease; }
body.ye-v4 .gc-close:hover, body.ye-v4 .gc-nav:hover { background: var(--color-tgl10-acc); }
body.ye-v4 .gc-close:focus-visible, body.ye-v4 .gc-nav:focus-visible { outline: 3px solid var(--color-tgl10-acc); outline-offset: 3px; }
body.ye-v4 .gc-close { position: absolute; z-index: 2; top: 4px; right: 4px; width: 44px; height: 44px; border-radius: 50%; font: 300 31px/1 var(--font-tgl10-sans); }
body.ye-v4 .gc-nav { width: 52px; height: 52px; border-radius: 50%; font: 400 38px/1 var(--font-tgl10-sans); }
@media (max-width: 680px) {
    body.ye-v4 .gc.tgl-10 { min-height: 65svh; padding: 22px 14px 38px; }
    body.ye-v4 .gc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    body.ye-v4 .gc-lightbox { padding: 12px; }
    body.ye-v4 .gc-lightbox-panel { display: block; width: 100%; height: 100%; }
    body.ye-v4 .gc-figure { height: 100%; padding: 48px 0 38px; }
    body.ye-v4 .gc-full { max-width: 100%; max-height: calc(100% - 48px); }
    body.ye-v4 .gc-caption { font-size: 13px; }
    body.ye-v4 .gc-close { top: 6px; right: 4px; }
    body.ye-v4 .gc-nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; transform: translateY(-50%); background: rgba(15,17,22,.72); font-size: 32px; }
    body.ye-v4 .gc-prev { left: 4px; }
    body.ye-v4 .gc-next { right: 4px; }
}
@media (max-width: 360px) {
    body.ye-v4 .gc.tgl-10 { padding-inline: 10px; }
    body.ye-v4 .gc-grid { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    body.ye-v4 .gc-cell img, body.ye-v4 .gc-close, body.ye-v4 .gc-nav { transition: none; }
}

/* Cartes de choix du don */
body.ye-v4 .y5-quick .y5-gift-type.qd-tuile {
    min-height: 100px;
    padding: 14px 12px;
    border: 1px solid #c6d2c8;
    background: #fff;
    color: #263b42;
}

body.ye-v4 .y5-quick .y5-gift-type.qd-tuile:hover {
    border-color: #37654d;
    background: #f7faf7;
}

body.ye-v4 .y5-quick .y5-gift-type.qd-tuile[aria-pressed="true"] {
    border: 2px solid #37654d;
    background: #edf4ee;
    color: #214b37;
    box-shadow: inset 0 0 0 1px #37654d;
}

body.ye-v4 .y5-quick .y5-gift-type .qd-tuile-nom {
    color: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

body.ye-v4 .y5-quick .y5-gift-type .qd-tuile-prix {
    color: #52665a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

body.ye-v4 .y5-quick .y5-gift-type[aria-pressed="true"] .qd-tuile-prix {
    color: #315a40;
}

/* Libellés des groupes : montant, pays, quantité */
body.ye-v4 .y5-quick .qd-groupe .qd-field-label {
    margin-bottom: 10px;
    color: #263b42;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

/* Options de montant et de pays */
body.ye-v4 .y5-quick .qd-rang {
    gap: 10px;
}

body.ye-v4 .y5-quick .qd-pill {
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid #bdcbbf;
    border-radius: 999px;
    background: #fff;
    color: #263b42;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

body.ye-v4 .y5-quick .qd-pill:hover:not(:disabled) {
    border-color: #37654d;
    background: #f1f6f1;
    color: #214b37;
}

body.ye-v4 .y5-quick .qd-pill.is-on {
    border-color: #315a40;
    background: #315a40;
    color: #fff;
    box-shadow: 0 3px 8px rgba(35, 74, 53, .18);
}

body.ye-v4 .y5-quick .qd-pill.is-off,
body.ye-v4 .y5-quick .qd-pill:disabled {
    border-color: #d9dfda;
    background: #f2f4f2;
    color: #737d76;
    opacity: 1;
    cursor: not-allowed;
}

/* Quantité : chiffres et commandes plus faciles à lire et à toucher */
body.ye-v4 .y5-quick .qd-qte {
    min-height: 48px;
    padding: 3px;
}

body.ye-v4 .y5-quick .qd-qte-b {
    width: 42px;
    height: 42px;
    color: #263b42;
    font-size: 21px;
    font-weight: 700;
}

body.ye-v4 .y5-quick .qd-qte-v {
    min-width: 38px;
    color: #263b42;
    font-size: 17px;
    font-weight: 700;
}

/* Clavier et accessibilité */
body.ye-v4 .y5-quick :where(.qd-tuile, .qd-pill, .qd-qte-b):focus-visible {
    outline: 3px solid #d8b45c;
    outline-offset: 3px;
}

@media (max-width: 640px) {
    body.ye-v4 .y5-quick .y5-gift-type.qd-tuile {
        min-height: 92px;
        padding: 12px 9px;
    }

    body.ye-v4 .y5-quick .y5-gift-type .qd-tuile-nom {
        font-size: 15px;
    }

    body.ye-v4 .y5-quick .y5-gift-type .qd-tuile-prix {
        font-size: 13px;
    }

    body.ye-v4 .y5-quick .qd-pill {
        min-height: 46px;
        padding-inline: 15px;
        font-size: 15px;
    }
}

/* Lien entier dans les panneaux : conserver le texte blanc au survol. */
body.ye-v4 .y5-photo-panel-trigger,
body.ye-v4 .y5-photo-panel-trigger:hover,
body.ye-v4 .y5-photo-panel-trigger:focus,
body.ye-v4 .y5-photo-panel-trigger:active { color: #fff; }

/* Titre des pages de projets : les lettres serrées à -0,04 em se touchaient
   sur un titre long. Graisse et interlettrage rendus lisibles. */
body.ye-v4 .dc-section h2.dc-titre {
    margin: 0;
    font-family: var(--ye-titres);
    font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
}
/* Cartes des pages de catégories : une seule ligne de prix, puis la fiche. */
body.ye-v4 .dc-section .dc-des {
    margin: 0;
    color: #5f6e66;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
body.ye-v4 .dc-section .dc-des strong {
    color: #263b42;
    font-size: 20px;
    font-weight: 800;
}
body.ye-v4 .dc-section .dc-carte a.dc-lien--cta {
    min-height: 46px;
    border-color: #315a40;
    background: #315a40;
    color: #fff;
    font-weight: 700;
}
body.ye-v4 .dc-section .dc-carte a.dc-lien--cta:hover {
    border-color: #264a34;
    background: #264a34;
    color: #fff;
}
