:root {
    --forest: #2A1F17;
    --amber: #F0A83D;
    --cream: #FBF3E7;
    --cream-2: #FFFFFF;
    --forest-2: #6E5A48;
    --amber-2: #F6BC5C;
    --red: #D6553F;
    --red-2: #E97F6B;
    --mint: #F3E8DA;
    --text-soft: #5C6754;
    --badge-green: #8FB3D9;
    --badge-orange: #F0C24E;
    --badge-red: #E68A78;
    
    --bg-primary: #FBF3E7;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F5E6D3;
    --text-primary: #2A1F17;
    --text-secondary: #5A4A3A;
    --text-light: #FBF3E7;
    --forest-light: #3D2E22;
    --forest-dark: #1A1310;
    --amber-light: #F5BC5F;
    --amber-dark: #D8922E;
    --success: #4CAF50;
    --error: #E74C3C;
    --warning: #FF9800;
    --white: #FFFFFF;
    --black: #000000;
    --gray-light: #E8E8E8;
    --gray: #999999;
    --gray-dark: #666666;
    
    --ease: cubic-bezier(.16, .9, .28, 1);
    --edge-pad: clamp(16px, 2.5vw, 32px);
    --content-max: calc(100vw - (var(--edge-pad) * 2));
    
    --shadow-sm: 0 2px 4px rgba(42, 31, 23, 0.1);
    --shadow-md: 0 4px 8px rgba(42, 31, 23, 0.15);
    --shadow-lg: 0 8px 16px rgba(42, 31, 23, 0.2);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: clamp(16px, .6vw + 9px, 18.5px); scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; width: 100%; overscroll-behavior-x: none; touch-action: pan-y pinch-zoom; }
/* empêche tout défilement horizontal de la page (mobile : plus de « sortie » par la marge droite) */
body { overflow-x: hidden; overflow-x: clip; max-width: 100%; }

body {
    background: var(--cream);
    color: var(--forest);
    font-family: 'Fredoka', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    width: 100%;
    max-width: 100%;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--forest);
}

p, .body-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-soft);
    margin-bottom: 1.2rem;
}
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 clamp(8px, 1vw, 14px); }

/* ---------- EYEBROW ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .7em;
    font-size: .85rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .07em;
    color: var(--forest-2);
    margin-bottom: 1.1rem;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.eyebrow.in-view { opacity: 1; transform: translateY(0); }
.eyebrow-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; flex-shrink: 0;
    border-radius: 7px;
    background: var(--red);
    box-shadow: 0 3px 8px rgba(214,85,63,.18);
    transform: scale(.35) rotate(-30deg);
    opacity: 0;
    transition: transform .6s var(--ease) .12s, opacity .5s ease .12s;
}
.eyebrow.in-view .eyebrow-icon { transform: scale(1) rotate(0deg); opacity: 1; }
.eyebrow-icon svg { width: 14px; height: 14px; }
.eyebrow-label {
    display: inline-block; opacity: 0; transform: translateX(-8px);
    transition: opacity .6s var(--ease) .22s, transform .6s var(--ease) .22s;
}
.eyebrow.in-view .eyebrow-label { opacity: 1; transform: translateX(0); }

/* ---------- ANIMATIONS REVEAL ---------- */
.reveal {
    opacity: 0; transform: translateY(50px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.hero-reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.hero-reveal.in-view { opacity: 1; transform: translateY(0); }

.split-reveal .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.split-reveal .word-inner {
    display: inline-block; transform: translateY(115%); opacity: 0;
    transition: transform .75s var(--ease), opacity .6s var(--ease);
    transition-delay: var(--wd, 0ms);
}
.split-reveal.in-view .word-inner { transform: translateY(0); opacity: 1; }

.split-reveal.split-chars .word { padding-bottom: .16em; margin-bottom: -.16em; }
.split-reveal .char { display: inline-block; overflow: hidden; vertical-align: top; }
.split-reveal .char-inner {
    display: inline-block; transform: translateY(115%); opacity: 0;
    transition: transform .7s var(--ease), opacity .45s ease;
    transition-delay: var(--wd, 0ms);
}
.split-reveal.in-view .char-inner { transform: translateY(0); opacity: 1; }

/* ---------- NAVBAR ---------- */
.site-nav {
    position: absolute; top: 0; left: 0; right: 0; z-index: 200;
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px var(--edge-pad);
}
.nav-logo { display: flex; align-items: center; gap: 8px; z-index: 501; position: relative; }
.nav-logo .clover { width: 84px; height: 84px; }
.nav-logo .word { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo .word b { font-size: 1.25rem; font-weight: 500; font-family: 'Poppins', sans-serif; color: var(--cream); text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.nav-logo .word span { font-size: .65rem; letter-spacing: .04em; color: var(--cream); opacity: .9; font-weight: 400; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }

.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-menu a {
    display: flex; align-items: center; gap: 4px; padding: .6em 1em;
    font-size: 1rem; font-weight: 500; color: var(--cream); border-radius: 6px;
    transition: background .3s var(--ease); text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.nav-menu a:hover { background: rgba(255,255,255,.14); }

.nav-contact {
    background: var(--amber); color: var(--forest); border: none;
    padding: .6em 1.5em; border-radius: 6px; font-family: 'Fredoka', sans-serif;
    font-size: .95rem; font-weight: 500;
    transition: background .3s var(--ease), transform .3s var(--ease); box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.nav-contact:hover { background: var(--amber-2); transform: translateX(2px); }

.nav-burger {
    display: none; width: 44px; height: 44px;
    align-items: center; justify-content: center;
    background: var(--amber); border-radius: 8px; color: var(--forest);
    flex-shrink: 0; transition: background .3s var(--ease); z-index: 501; position: relative;
}
.nav-burger:hover { background: var(--amber-2); }
.nav-burger svg { width: 20px; height: 20px; }

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
    position: fixed; inset: 0; z-index: 500;
    background: var(--forest); display: flex; flex-direction: column;
    padding: 110px 30px 40px;
    /* fermé : masqué par clip-path (et non translateX(100%)) pour ne plus déborder à droite de la page */
    clip-path: inset(0 0 0 100%); visibility: hidden;
    transition: clip-path .45s var(--ease), visibility 0s linear .45s;
}
.mobile-menu.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease), visibility 0s; }

.mobile-close {
    position: absolute; top: 24px; right: 24px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    color: var(--cream);
    background: transparent;
    border: 1.5px solid rgba(251,243,231,0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.mobile-close:hover {
    background: rgba(251,243,231,0.1);
    border-color: var(--cream);
}
.mobile-close svg { width: 22px; height: 22px; }

.mobile-menu a {
    color: var(--cream); font-family: 'Poppins', sans-serif;
    font-size: 1.35rem; font-weight: 600; padding: 16px 0;
    border-bottom: 1px solid rgba(251,243,231,.15);
    display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu .nav-contact {
    display: inline-flex; align-self: flex-start; justify-content: center;
    border-bottom: none; margin-top: 28px; background: var(--amber);
    color: var(--forest); font-family: 'Fredoka', sans-serif;
    font-size: 1rem; font-weight: 600; padding: .7em 1.7em; border-radius: 8px;
}

@media(max-width: 1200px) and (min-width: 901px) {
    .site-nav { padding: 18px 22px; }
    .nav-logo .clover { width: 72px; height: 72px; }
    .nav-logo .word b { font-size: 1.1rem; }
    .nav-menu a { padding: .5em .7em; font-size: .87rem; }
}
@media (max-width: 900px), (max-aspect-ratio: 4/3) {
    .nav-menu, .nav-contact:not(.mobile-menu .nav-contact) { display: none; }
    .nav-burger { display: flex; }
    .site-nav { padding: 16px 20px; }
    .nav-logo .clover { width: 54px; height: 54px; }
    .nav-logo .word b { font-size: 1rem; }
}

/* ---------- HERO ---------- */
/* Style repris du hero VIRDYAN : image plein écran + titre centré en bas +
   carte blanche qui chevauche l'image. Couleurs = palette du site. */
.hero { position: relative; padding-top: 0; }
.hero-image {
    position: relative; height: 100vh; min-height: 560px; max-height: 900px;
    background:
        radial-gradient(circle at 20% 30%, rgba(240,168,61,.45), transparent 40%),
        radial-gradient(circle at 75% 20%, rgba(255,240,215,.45), transparent 45%),
        linear-gradient(180deg, #C9B48E 0%, #86816F 50%, #2A1F17 100%);
    overflow: hidden;
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: clamp(260px, 32vh, 380px);
    text-align: center;
}
.hero-slides { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0; opacity: 0;
    animation: hero-zoom 22s ease-in-out infinite alternate;
    transition: opacity 1.6s ease-in-out;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
@keyframes hero-zoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero-image::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        /* filtre sombre léger : l'image reste bien visible, le bas est un peu plus foncé pour lire le titre */
        linear-gradient(180deg, rgba(18,16,14,.28) 0%, rgba(18,16,14,.34) 45%, rgba(18,16,14,.55) 100%);
}
.hero-image::before {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.07) 0 40px, transparent 40px),
        radial-gradient(circle at 82% 30%, rgba(255,255,255,.07) 0 50px, transparent 50px),
        radial-gradient(circle at 60% 85%, rgba(255,255,255,.07) 0 30px, transparent 30px);
}
.hero-title {
    position: relative; z-index: 5;
    font-family: 'Fredoka', sans-serif;
    /* taille adaptative : --hero-scale est calculé en JS d'après la longueur du titre */
    font-size: max(1.5rem, calc(clamp(2.2rem, 7vw, 5rem) * var(--hero-scale, 1)));
    font-weight: 600; color: #fff;
    line-height: 1.1; letter-spacing: -0.01em;
    text-shadow: 0 8px 30px rgba(30,20,10,.35);
    padding: 0 20px; max-width: 22ch; text-wrap: balance;
}
.hero-card {
    position: relative; z-index: 6; background: var(--cream-2);
    max-width: 920px; margin: clamp(-230px, -26vh, -140px) auto 0;
    border-radius: 22px 22px 0 0; padding: 50px 50px 45px; text-align: center;
    box-shadow: 0 -20px 60px rgba(42,31,23,.08);
}
/* illustration = logo, sous le bouton : sans conteneur, sans ombre, sans recadrage */
.hero-illustration-wrap { margin: 1.6rem auto 0; width: fit-content; max-width: 100%; }
.hero-illustration { width: min(100%, 230px); height: 155px; object-fit: contain; display: block; margin: 0 auto; }
.hero-card p {
    font-size: clamp(1.12rem, 2.2vw, 1.4rem); color: var(--forest);
    max-width: 52ch; margin: 0 auto; line-height: 1.65;
}
.hero-cta {
    background: var(--amber); color: var(--forest);
    font-weight: 500; font-size: .98rem; font-family: 'Fredoka', sans-serif;
    padding: .8em 1.8em; border-radius: 60px; margin-top: 1.6rem;
    transition: background .3s var(--ease), transform .3s var(--ease);
    display: inline-block;
}
.hero-cta:hover { background: var(--amber-2); transform: translateX(4px); }

@media (max-width: 1024px) { .hero-card { margin-top: clamp(-190px, -22vh, -120px); } }
@media (max-width: 760px)  { .hero-card { padding: 45px 28px 40px; border-radius: 16px 16px 0 0; margin-top: clamp(-160px, -18vh, -100px); } }
@media (max-width: 480px)  {
    .hero-title { font-size: max(1.5rem, calc(clamp(1.9rem, 8vw, 2.6rem) * var(--hero-scale, 1))); }
    .hero-card { padding: 36px 22px 32px; margin-top: clamp(-130px, -15vh, -75px); }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { animation: none; } }

/* ---------- BUTTON PILL ---------- */
.btn-pill {
    background: var(--amber); color: var(--forest);
    font-weight: 500; font-size: .98rem;
    padding: .75em 1.7em; border-radius: 100px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: background .3s var(--ease), transform .3s var(--ease);
}
.btn-pill:hover { background: var(--amber-2); transform: translateX(4px); }
.cta-row { display: flex; align-items: center; gap: 10px; margin-top: 1.4rem; }

/* ---------- CONTENT CARD (Shared) ---------- */
.content-card {
    background: #FBEAD1; border-radius: 14px; padding: 40px 36px;
    box-shadow: 0 3px 10px rgba(42,31,23,.05);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.content-card.reveal.in-view:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(42,31,23,.08); }
.content-card h2, .content-card h3 { color: var(--forest); font-weight: 700; margin-bottom: 1rem; }
.content-card p, .content-card .statement { color: var(--forest-2) !important; }
@media(max-width: 760px) { .content-card { padding: 30px 24px; border-radius: 12px; } }

/* ---------- TEXTE D'INTRODUCTION CENTRÉ ---------- */
.intro-section {
    padding: 70px 0 20px;
    text-align: center;
    background: var(--cream);
}
.intro-statement {
    max-width: 900px;
    margin: 0 auto;
}
.intro-statement h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--forest);
}
/* ================= QUI SOMMES-NOUS ================= */
.about-section { margin-top: 80px; padding: 0 var(--edge-pad); }
.about-card {
    position: relative; overflow: hidden; isolation: isolate;
    max-width: 960px; margin: 0 auto;
    background: var(--cream-2); border-radius: 28px;
    padding: clamp(32px, 5vw, 60px);
    box-shadow: 0 24px 60px -20px rgba(42,31,23,.16), 0 4px 14px rgba(42,31,23,.05);
}
/* décor : deux halos aux couleurs du site */
.about-card::before, .about-card::after {
    content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
}
.about-card::before { width: 340px; height: 340px; top: -140px; left: -110px; background: radial-gradient(circle, rgba(240,168,61,.22), transparent 70%); }
.about-card::after  { width: 300px; height: 300px; bottom: -120px; right: -90px; background: radial-gradient(circle, rgba(214,85,63,.14), transparent 70%); }

.about-card .eyebrow { margin-bottom: 1.6rem; }

/* tous les paragraphes : même style */
.about-body { border-left: 5px solid var(--amber); padding-left: clamp(18px, 3vw, 32px); }
.about-body p {
    font-size: clamp(1.1rem, 1.7vw, 1.35rem); font-weight: 400; line-height: 1.75;
    color: var(--forest); margin: 0 0 1.2rem; text-wrap: pretty;
}
.about-body p:last-child { margin-bottom: 0; }
/* nom de l'association surligné façon feutre */
.about-body .hl {
    background: linear-gradient(transparent 62%, rgba(240,168,61,.45) 62%);
    font-weight: 600; padding: 0 .12em; border-radius: 3px;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

@media (max-width: 860px) {
    .about-section { margin-top: 56px; }
    .about-card { border-radius: 22px; }
}

/* ================= ACTUALITES ================= */
.news-section {
    padding: 90px 0;
    background: var(--cream);
    overflow: hidden;
    position: relative;
}
.news-header { text-align: center; margin-bottom: 60px; }
.news-header h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }

.carousel-container {
    width: 100%; cursor: grab; outline: none; user-select: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--edge-pad), #000 calc(100% - var(--edge-pad)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--edge-pad), #000 calc(100% - var(--edge-pad)), transparent 100%);
}
.carousel-container:active { cursor: grabbing; }
.carousel-container:focus-visible { outline: 2px solid var(--amber); }

.carousel-track {
    display: flex; gap: 32px; width: max-content; will-change: transform; padding: 30px var(--edge-pad);
}

.news-card {
    width: 440px; background: var(--cream-2); border-radius: 22px; overflow: hidden;
    box-shadow: 0 12px 32px rgba(42,31,23,0.08); 
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
    flex-shrink: 0; display: flex; flex-direction: column;
}
.news-card:hover {
    transform: translateY(-10px) scale(1.02); 
    box-shadow: 0 24px 48px rgba(240,168,61,0.22);
}

/* CORRECTION APPLIQUÉE ICI : Gestion du "cover" pour les iframes */
.news-img { width: 100%; overflow: hidden; position: relative; aspect-ratio: 4/3; cursor: pointer; }
.news-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); pointer-events: none; }

/* Miniatures vidéo (YouTube/Facebook) issues de renderMediaThumbnail() :
   une iframe ne supporte pas object-fit, on simule donc un "cover" 4:3
   en surdimensionnant l'iframe (source généralement en 16:9) puis en la centrant. */
.news-img .media-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}
.news-img .media-video iframe {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 178%; /* 16/9 ÷ 4/3 ≈ 1.78 : couvre le cadre 4:3 sans bandes noires */
    border: none;
    transform: translateX(-50%);
}

.news-content { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.news-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.9rem; font-weight: 500; color: var(--text-soft); margin-bottom: 16px;
}
.news-cat { background: var(--mint); padding: 5px 12px; border-radius: 6px; color: var(--forest); font-size: 0.85rem; }
.news-title { font-size: 1.55rem; line-height: 1.3; margin-bottom: 14px; }
.news-excerpt {
    font-size: 1.08rem; color: var(--text-soft); line-height: 1.65; margin-bottom: 26px;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}

.news-btn {
    color: var(--amber); font-weight: 600; font-size: 1rem;
    display: inline-flex; align-items: center; gap: 6px; transition: color 0.3s;
}
.news-btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.news-btn:hover { color: var(--amber-2); }
.news-btn:hover svg { transform: translateX(4px); }
.news-footer { text-align: center; margin-top: 60px; }

@media (max-width: 1200px) { 
    .news-card { width: calc(33.33vw - 40px); } 
    .news-img { height: 260px; }
}
@media (max-width: 900px) { 
    .news-card { width: calc(50vw - 40px); } 
    .news-img { height: 240px; }
    .news-title { font-size: 1.35rem; }
}
@media (max-width: 600px) { 
    .news-card { width: calc(88vw - 16px); } 
    .news-img { height: 260px; }
    .carousel-track { gap: 18px; padding: 15px var(--edge-pad); } 
    .news-content { padding: 24px; }
}

/* ================= PARTENAIRES ================= */
.partners-section {
    padding: 60px 0;
    background: var(--cream);
    overflow: hidden;
    position: relative;
}
.partners-header { text-align: center; margin-bottom: 40px; }
.partners-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

.partners-carousel-container {
    width: 100%; cursor: grab; outline: none; user-select: none;
    display: flex; justify-content: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--edge-pad), #000 calc(100% - var(--edge-pad)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--edge-pad), #000 calc(100% - var(--edge-pad)), transparent 100%);
}
.partners-carousel-container:active { cursor: grabbing; }
.partners-carousel-container:focus-visible { outline: 2px solid var(--amber); }

.partners-track {
    display: flex; align-items: center; justify-content: center; gap: 56px; width: max-content; will-change: transform; padding: 10px var(--edge-pad);
}

/* Juste le logo : pas de fond, pas de cadre, pas de nom, taille contenue */
.partner-logo {
    flex-shrink: 0;
    width: 320px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s var(--ease), opacity .3s ease;
    opacity: .85;
}
.partner-logo:hover { transform: translateY(-4px); opacity: 1; }
.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

@media (max-width: 600px) {
    .partners-track { gap: 36px; }
    .partner-logo { width: 220px; height: 110px; }
}

/* Mode "vitrine" : utilisé quand il y a trop peu de logos pour un
   défilement fluide sans doublon visible à l'écran. Chaque logo
   apparaît tour à tour dans une carte, avec un léger glissement. */
.partners-track.fade-mode {
    position: relative;
    width: 100%;
    height: 220px;
    padding: 0;
}
.fade-mode .partner-logo {
    position: absolute;
    top: 0;
    left: 50%;
    width: 300px;
    height: 220px;
    padding: 30px 36px;
    background: #FFFFFF;
    border-radius: 26px;
    box-shadow: 0 20px 45px -16px rgba(42,31,23,0.18);
    border: 1px solid rgba(240,168,61,0.14);
    opacity: 0;
    transform: translate(-50%, 0) translateX(48px) scale(0.92);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
    pointer-events: none;
}
.fade-mode .partner-logo.is-leaving {
    opacity: 0;
    transform: translate(-50%, 0) translateX(-48px) scale(0.92);
}
.fade-mode .partner-logo.is-active {
    opacity: 1;
    transform: translate(-50%, 0) translateX(0) scale(1);
}
.fade-mode .partner-logo img {
    filter: none;
}

.partners-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}
.partners-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(42,31,23,0.18);
    transition: background 0.4s var(--ease), transform 0.4s var(--ease), width 0.4s var(--ease);
}
.partners-dots .dot.is-active {
    background: var(--amber);
    width: 26px;
    border-radius: 100px;
}

@media (max-width: 600px) {
    .partners-track.fade-mode { height: 170px; }
    .fade-mode .partner-logo { width: 220px; height: 170px; padding: 20px 24px; }
}

/* ---------- WORKING TOGETHER ---------- */
.working {
    padding: 50px 0 40px; position: relative; z-index: 2;
    background: var(--cream);
}
.working-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; margin-bottom: 50px; }
.working-photo {
    border-radius: 24px; aspect-ratio: 4/3; overflow: hidden;
    transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
    transition: transform .6s var(--ease); box-shadow: 0 34px 68px rgba(33,47,27,.16);
}
.working-photo:hover { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg); }
.working-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media(max-width: 820px) { .working-row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; } }

/* ---------- EVERYDAY ITEMS ---------- */
.everyday { padding: 70px 0 50px; }
.everyday-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.everyday-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.2rem; }
.everyday-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 460px; }
.everyday-img-wrap {
    width: 100%; max-width: 520px; aspect-ratio: 4/3.5; border-radius: 24px; overflow: hidden;
    box-shadow: 0 34px 68px rgba(33,47,27,.16);
    transform: perspective(1400px) rotateY(8deg) rotateX(3deg) translateY(var(--pyE,0px));
    transition: transform .6s var(--ease);
}
.everyday-img-wrap:hover { transform: perspective(1400px) rotateY(4deg) rotateX(1deg) translateY(var(--pyE,0px)); }
.everyday-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
@media(max-width: 900px) {
    .everyday-inner { grid-template-columns: 1fr; gap: 36px; }
    .everyday-visual { min-height: 360px; }
    .everyday-img-wrap { transform: translateY(var(--pyE,0px)); }
    .everyday-img-wrap:hover { transform: translateY(var(--pyE,0px)); }
}

/* =========================================================
   SECTION NOS ACTIONS
   ========================================================= */
.home-actions-section {
    background: linear-gradient(135deg, #FBF3E7 0%, #FBEAD1 45%, #FBF3E7 100%);
    position: relative;
    padding: 0;
    color: var(--forest);
    overflow: hidden;
    margin: 30px 0;
}

.ha-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.ha-shape {
    position: absolute;
    opacity: 0.35;
    filter: blur(0.5px);
}

.ha-shape-1 {
    top: -15%;
    right: -8%;
    width: 520px;
    height: 520px;
    opacity: 0.25;
    animation: floatShape 18s ease-in-out infinite;
}

.ha-shape-2 {
    bottom: -20%;
    left: -12%;
    width: 620px;
    height: 620px;
    opacity: 0.18;
    animation: floatShape 22s ease-in-out infinite reverse;
}

.ha-shape-3 {
    top: 35%;
    left: 45%;
    width: 280px;
    height: 280px;
    opacity: 0.15;
    animation: floatShape 15s ease-in-out infinite;
}

.ha-shape-4 {
    top: 10%;
    left: 8%;
    width: 180px;
    height: 180px;
    opacity: 0.2;
    animation: floatShape 20s ease-in-out infinite reverse;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -30px) rotate(8deg); }
    66% { transform: translate(-15px, 20px) rotate(-6deg); }
}

.ha-container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 100px var(--edge-pad) 120px;
    position: relative;
    z-index: 2;
}

.ha-header { 
    text-align: center; 
    margin-bottom: 4rem; 
    position: relative;
}
.ha-header .eyebrow {
    justify-content: center;
    width: 100%;
    display: inline-flex;
}
.ha-header .eyebrow-icon {
    background: var(--red);
    box-shadow: 0 4px 12px rgba(214,85,63,.3);
}
.ha-header .eyebrow-icon svg path { fill: #FBF3E7; }
.ha-header .eyebrow-label { color: var(--forest-2); }
.ha-header h2 {
    color: var(--forest);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    margin-top: 0.5rem;
    letter-spacing: -0.02em;
}

.ha-top-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.ha-hero-text h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.2rem);
    font-weight: 700;
    color: var(--forest);
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 0 0 1.2rem 0;
}
.ha-hero-text p {
    font-size: 1.1rem;
    color: var(--forest-2);
    line-height: 1.7;
    max-width: 48ch;
    margin: 0;
}

.ha-hero-image {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 
        0 30px 60px -15px rgba(42,31,23,0.28),
        0 15px 30px -10px rgba(42,31,23,0.18),
        inset 0 0 0 1px rgba(255,255,255,0.3);
    transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
    transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
    position: relative;
}
.ha-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 24px;
}
.ha-hero-image:hover {
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) scale(1.02);
    box-shadow: 
        0 40px 80px -15px rgba(42,31,23,0.35),
        0 20px 40px -10px rgba(42,31,23,0.22);
}
.ha-hero-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease);
}
.ha-hero-image:hover img {
    transform: scale(1.05);
}

.ha-middle-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
}

/* Carte principale renommée en ha-green-card */
.ha-green-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 48px 46px;
    height: 100%;
    box-shadow: 
        0 20px 50px -15px rgba(42,31,23,0.15),
        0 8px 20px -8px rgba(42,31,23,0.1);
    color: var(--forest);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(240,168,61,0.2);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.ha-green-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 30px 60px -15px rgba(42,31,23,0.2),
        0 12px 24px -8px rgba(42,31,23,0.12);
}
.ha-green-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--amber) 0%, var(--red) 100%);
}
.ha-green-card::after {
    content: "";
    position: absolute;
    right: -80px; bottom: -80px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240,168,61,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Label renommé en ha-plantbased-label */
.ha-plantbased-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--red);
    background: rgba(214,85,63,0.08);
    padding: 6px 14px;
    border-radius: 100px;
}
.ha-plantbased-label svg { width: 14px; height: 14px; stroke: currentColor; }

.ha-green-card h2 {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 700;
    color: var(--forest);
    line-height: 1.25;
    margin-bottom: 20px;
}

.ha-green-card p {
    font-size: 1.05rem;
    color: var(--forest-2);
    line-height: 1.75;
    max-width: 100%;
    margin: 0;
}

.ha-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.ha-girl-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 25px 55px -12px rgba(42,31,23,0.3),
        0 12px 25px -8px rgba(42,31,23,0.2);
    transform: perspective(1200px) rotateY(7deg) rotateX(3deg);
    transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
    position: relative;
}
.ha-girl-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 24px;
}
.ha-girl-image:hover {
    transform: perspective(1200px) rotateY(2deg) rotateX(1deg) scale(1.02);
    box-shadow: 
        0 35px 70px -12px rgba(42,31,23,0.38),
        0 18px 35px -8px rgba(42,31,23,0.25);
}
.ha-girl-image img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.ha-girl-image:hover img {
    transform: scale(1.05);
}

/* Carte statistique renommée en ha-yellow-card */
.ha-yellow-card {
    background: linear-gradient(135deg, #F0A83D 0%, #F6BC5C 100%);
    border-radius: 24px;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
    box-shadow: 
        0 25px 55px -12px rgba(240,168,61,0.45),
        0 12px 25px -8px rgba(240,168,61,0.3);
    color: var(--forest);
    position: relative;
    overflow: hidden;
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.ha-yellow-card::before {
    content: "";
    position: absolute;
    left: -50px; top: -50px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    pointer-events: none;
}
.ha-yellow-card::after {
    content: "";
    position: absolute;
    right: -30px; bottom: -30px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(214,85,63,0.12);
    pointer-events: none;
}
.ha-yellow-card:hover {
    transform: perspective(1200px) rotateY(-1deg) rotateX(1deg) scale(1.02);
    box-shadow: 
        0 35px 70px -12px rgba(240,168,61,0.55),
        0 18px 35px -8px rgba(240,168,61,0.38);
}

.ha-yellow-card .percentage {
    font-size: clamp(3.2rem, 5.5vw, 4.8rem);
    font-weight: 800;
    color: var(--forest);
    line-height: 1;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(42,31,23,0.1);
}
.ha-yellow-card .percentage .unit {
    color: var(--red);
    font-size: 0.55em;
    vertical-align: super;
    margin-left: 4px;
}

.ha-yellow-card .label {
    font-size: clamp(1.15rem, 1.5vw, 1.45rem);
    font-weight: 600;
    color: var(--forest);
    line-height: 1.4;
    position: relative;
    z-index: 2;
}
.ha-yellow-card .label .highlight {
    color: var(--red);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .ha-top-row, .ha-middle-row { grid-template-columns: 1fr; }
    .ha-shape-1, .ha-shape-2 { width: 350px; height: 350px; }
    .ha-shape-3, .ha-shape-4 { display: none; }
}

@media (max-width: 768px) {
    .ha-container { padding: 70px var(--edge-pad) 80px; }
    .ha-header h2 { font-size: 2rem; }
    .ha-green-card { padding: 34px 26px; }
    .ha-stats-row { grid-template-columns: 1fr; }
    .ha-girl-image img { min-height: 260px; }
    .ha-yellow-card { padding: 32px 28px; min-height: auto; }
    .ha-hero-image, .ha-girl-image, .ha-yellow-card {
        transform: none !important;
    }
    .ha-hero-image:hover, .ha-girl-image:hover, .ha-yellow-card:hover {
        transform: translateY(-4px) !important;
    }
}

/* ---------- COLLABORATIONS ---------- */
.collabs { background: var(--mint); border-radius: 14px; margin: 30px 12px 50px; padding: 70px 0 80px; }
.collabs-head { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.collabs-head .eyebrow { justify-content: center; width: 100%; }
.collabs-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.collab-grid { column-count: 3; column-gap: 24px; }
.collab-grid .card { break-inside: avoid; -webkit-column-break-inside: avoid; margin-bottom: 24px; display: inline-block; width: 100%; }

.card { background: var(--cream-2); border-radius: 10px; padding: 12px 14px 22px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 18px rgba(42,31,23,.06); }
.card-photo {
    border-radius: 16px; margin-bottom: 18px; position: relative; overflow: hidden;
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg); transition: transform .5s var(--ease);
    box-shadow: 0 18px 34px rgba(33,47,27,.12);
}
.card:hover .card-photo { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-photo img { transform: scale(1.05); }
.card h3 { font-size: 1.6rem; font-weight: 500; margin-bottom: 10px; line-height: 1.2; }
.badge {
    display: inline-block; padding: .4em 1.05em; border-radius: 100px;
    font-size: .78rem; font-weight: 500; color: var(--forest); margin-bottom: 12px;
}
.card p.desc { color: var(--text-soft); font-size: 1.1rem; line-height: 1.6; }

@media(max-width: 900px) { .collab-grid { column-count: 2; } }
@media(max-width: 600px) { .collab-grid { column-count: 1; } .collabs { margin: 16px 8px; padding: 50px 0 60px; } }

/* ---------- SUSTAINABILITY ---------- */
.sustain { padding: 80px 0; background: var(--cream); position: relative; }
.sustain-inner { position: relative; min-height: 620px; display: flex; align-items: center; justify-content: center; }
.sustain-photo { position: absolute; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px rgba(33,47,27,.15); }
.sustain-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sustain-photo.p1 {
    width: 40%; aspect-ratio: 4/3; left: 2%; top: 5%; z-index: 1;
    transform: perspective(1400px) rotateY(8deg) rotateX(-3deg) translateY(var(--py1,0px)); transition: transform .6s var(--ease);
}
.sustain-photo.p1:hover { transform: perspective(1400px) rotateY(4deg) rotateX(-1deg) translateY(var(--py1,0px)); }
.sustain-photo.p2 {
    width: 40%; aspect-ratio: 4/3; right: 2%; bottom: 5%; z-index: 1;
    transform: perspective(1400px) rotateY(-8deg) rotateX(3deg) translateY(var(--py2,0px)); transition: transform .6s var(--ease);
}
.sustain-photo.p2:hover { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg) translateY(var(--py2,0px)); }

.sustain-card {
    position: relative; z-index: 3; background: var(--cream-2); max-width: 460px;
    border-radius: 12px; padding: 32px 28px; box-shadow: 0 6px 18px rgba(42,31,23,.06); text-align: left;
}
.sustain-card h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 1rem; line-height: 1.1; }

@media(max-width: 900px) {
    .sustain-inner { min-height: 960px; }
    .sustain-photo.p1 { width: 85% !important; top: 0% !important; transform: translateY(var(--py1,0px)) !important; }
    .sustain-photo.p2 { width: 85% !important; bottom: 0% !important; transform: translateY(var(--py2,0px)) !important; }
}

/* ---------- NOS 5 PROJETS — carrousel "manège" (dynamique, admin) ---------- */
.pw-wheel {
    position: relative;
    margin-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pw-ring { display: none; }
.pw-stage {
    position: relative;
    width: min(1140px, 92vw);
    height: 540px;
    perspective: 1500px;
    z-index: 1;
}
.pw-card {
    position: absolute;
    top: 0; left: 50%;
    width: 360px;
    margin-left: -180px;
    transition: transform .6s var(--ease), opacity .6s var(--ease);
    cursor: pointer;
    will-change: transform, opacity;
}
.pw-card.is-active { cursor: default; }
.pw-card-inner {
    background: var(--cream-2);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(42,31,23,.16);
    display: flex;
    flex-direction: column;
}
.pw-card:not(.is-active) .pw-card-inner { box-shadow: 0 12px 26px rgba(42,31,23,.12); }
.pw-card-img { position: relative; width: 100%; aspect-ratio: 4/3.1; overflow: hidden; }
.pw-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pw-tag {
    position: absolute; top: 14px; left: 14px;
    background: var(--amber); color: var(--forest);
    font-size: .72rem; font-weight: 700; letter-spacing: .02em;
    padding: 6px 14px; border-radius: 999px;
    box-shadow: 0 4px 10px rgba(240,168,61,.4);
}
.pw-card-body { padding: 26px 28px 30px; text-align: left; position: relative; }
.pw-card-body h3 { font-size: 1.32rem; line-height: 1.3; margin: 0 0 12px; }
.pw-card-body p {
    font-size: .98rem; line-height: 1.58; color: var(--text-secondary); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pw-card:not(.is-active) .pw-card-body p { opacity: .85; }

.pw-dots {
    position: absolute;
    bottom: -6px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 2;
}
.pw-dot {
    width: 9px; height: 9px; border-radius: 50%;
    border: none; background: rgba(42,31,23,.2); cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}
.pw-dot.is-active { background: var(--amber); transform: scale(1.35); }

/* ---------- VARIANTES "MANÈGE" RÉUTILISABLES (valeurs / démarche / domaines / chiffres / partenaires) ---------- */
.mini-wheel { margin-top: 40px; }
.mini-wheel .pw-stage { height: 380px; }
.mini-wheel .pw-card { width: 300px; margin-left: -150px; height: 320px; }
.mini-wheel .pw-card-inner { height: 100%; }
.pw-card-plain { padding: 0; height: 100%; }
.pw-card-plain .pw-card-body {
    padding: 34px 30px; text-align: center; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.pw-card-plain .pw-card-body i,
.pw-card-plain .pw-card-body .pw-num,
.pw-card-plain .pw-card-body .pw-stat-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(240,168,61,.16);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--forest); margin: 0 auto 16px;
}
.pw-card-plain .pw-card-body .pw-stat-icon svg { width: 20px; height: 20px; color: var(--red); }
.pw-card-plain .pw-card-body .pw-num { font-family:'Fredoka',sans-serif; font-weight: 700; background: var(--forest); color: var(--cream); }
.pw-card-plain .pw-card-body h3 { font-family:'Fredoka',sans-serif; font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
.pw-card-plain .pw-card-body p { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; -webkit-line-clamp: 4; }
.pw-card-plain .pw-card-body .pw-stat-num { font-family:'Fredoka',sans-serif; font-size: 2.3rem; font-weight: 700; color: var(--forest); margin-bottom: 8px; -webkit-line-clamp: 1; }
.pw-card-pill .pw-card-body { padding: 26px 24px; }
.pw-card-pill .pw-card-body h3 { margin-bottom: 0; font-size: 1.1rem; }
.pw-card-logo .pw-card-body { padding: 18px; }
.pw-card-logo .pw-card-body img { max-width: 90%; max-height: 220px; width: auto; height: auto; object-fit: contain; }
.pw-card-logo .pw-card-body a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.pw-card-logo .pw-card-body a img { max-width: 90%; max-height: 220px; width: auto; height: auto; object-fit: contain; }

@media(max-width: 900px) {
    .mini-wheel .pw-stage { height: 340px; }
    .mini-wheel .pw-card { width: 240px; margin-left: -120px; height: 290px; }
}
@media(max-width: 700px) {
    .mini-wheel { margin-top: 26px; }
    .mini-wheel .pw-stage { height: 300px; }
    .mini-wheel .pw-card { width: 200px; margin-left: -100px; height: 260px; }
}

@media(max-width: 900px) {
    .pw-stage { height: 480px; }
    .pw-card { width: 280px; margin-left: -140px; }
    .pw-ring { display: none; }
}
@media(max-width: 700px) {
    .pw-wheel { margin-top: 40px; }
    .pw-stage { height: 440px; }
    .pw-card { width: 230px; margin-left: -115px; }
    .pw-dots { bottom: -18px; }
}

/* ---------- PLANT WASTE / SOUTENIR ---------- */
.plant-waste { padding: 80px 0; }
.plant-waste-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.plant-waste-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 460px; }
.plant-waste-img-wrap {
    width: 100%; max-width: 520px; aspect-ratio: 4/4; border-radius: 24px; overflow: hidden;
    box-shadow: 0 34px 68px rgba(33,47,27,.16);
    transform: perspective(1400px) rotateY(-8deg) rotateX(3deg) translateY(var(--pyP,0px)); transition: transform .6s var(--ease);
}
.plant-waste-img-wrap:hover { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg) translateY(var(--pyP,0px)); }
.plant-waste-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

@media(max-width: 900px) {
    .plant-waste-inner { grid-template-columns: 1fr; gap: 36px; }
    .plant-waste-visual { min-height: 360px; }
    .plant-waste-img-wrap { transform: translateY(var(--pyP,0px)); }
    .plant-waste-img-wrap:hover { transform: translateY(var(--pyP,0px)); }
}

/* ---------- FOOTER ---------- */
.simple-footer {
    background: var(--forest); color: var(--cream);
    padding: 44px 0 22px; margin: 40px 12px 12px; border-radius: 12px;
}
.simple-footer-top {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
    padding-bottom: 30px; border-bottom: 1px solid rgba(251,243,231,.15);
}
.foot-logo { display: flex; align-items: center; gap: 8px; }
.foot-logo .clover { width: 78px; height: 78px; }
.foot-logo .word b { font-size: 1.15rem; font-weight: 500; font-family: 'Poppins', sans-serif; }
.foot-logo .word span { font-size: .65rem; display: block; opacity: .75; }

.simple-footer-contact { display: flex; flex-direction: column; gap: 4px; font-size: .93rem; opacity: .85; text-align: right; }
.simple-footer-links { display: flex; align-items: center; }
.simple-footer-links a { color: var(--cream); text-decoration: none; font-weight: 500; font-size: .93rem; opacity: .85; transition: opacity .3s; }
.simple-footer-links a:hover { opacity: 1; }

.simple-footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
    padding-top: 22px; font-size: .85rem; opacity: .7;
}
.simple-footer-socials { display: flex; gap: 18px; }
.simple-footer-socials a {
    display: flex; align-items: center; justify-content: center; color: var(--cream);
    opacity: .75; transition: opacity .3s, transform .3s;
}
.simple-footer-socials a svg { width: 19px; height: 19px; }
.simple-footer-socials a:hover { opacity: 1; transform: translateY(-2px); color: var(--amber); }

@media(max-width: 760px) {
    .simple-footer { margin: 24px 8px 8px; padding: 32px 0 18px; border-radius: 10px; }
    .simple-footer-top { flex-direction: column; align-items: flex-start; }
    .simple-footer-contact { text-align: left; }
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
    position: fixed; right: 20px; bottom: 20px; width: 40px; height: 40px;
    border-radius: 50%; background: var(--forest); color: var(--cream);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(42,31,23,.12);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s var(--ease); z-index: 400;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--amber); color: var(--forest); }
.back-to-top svg { width: 17px; height: 17px; }

/* ================= VIDEO THUMBNAILS (Pour le carrousel) ================= */
.news-img { position: relative; overflow: hidden; cursor: pointer; }

/* Conteneur de la miniature vidéo */
.video-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.video-thumb img, 
.video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease);
}

/* Effet de zoom au survol sur la carte */
.news-card:hover .video-thumb img,
.news-card:hover .video-thumb video {
    transform: scale(1.08);
}

/* Bouton Play centré */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(240, 168, 61, 0.9); /* Couleur Amber de votre thème */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s var(--ease), background 0.3s ease;
    z-index: 2;
}

.play-button svg {
    width: 24px;
    height: 24px;
    fill: var(--forest); /* Couleur sombre pour le contraste */
    margin-left: 4px; /* Petit ajustement optique pour l'icône triangle */
}

.news-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--amber);
}

/* ==================== NOS ACTIONS - UNIFORMITÉ FORCÉE ================= */
.ha-action-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.ha-action-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 22px;
    align-items: stretch;
    min-height: 285px; /* Hauteur minimale fixe */
    perspective: 1200px; /* profondeur pour l'effet d'inclinaison 3D */
}

/* Entrée simple, façon "Nos projets" : glissement de haut en bas, sans rotation 3D */
.ha-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.ha-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Carrousel vertical "Nos Actions" : même mécanisme que le carrousel "manège" des 5 projets,
   mais orienté de haut en bas, sans changer le style visuel des cartes ha-action-row. */
/* Carrousel vertical "Nos Actions" : direction haut/bas, hauteur de carte fixe (285px),
   avec marge de sécurité pour ne pas chevaucher les sections voisines. */
.actions-wheel {
    margin: 40px 0;
}
.actions-wheel .pw-stage {
    width: min(1140px, 94vw);
    max-width: 100vw;
}
.actions-wheel .pw-card {
    width: min(1180px, 92vw);
    max-width: 92vw;
    margin-left: calc(min(1180px, 92vw) / -2);
    height: 285px;
}
.actions-wheel .pw-card-inner.ha-action-row {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    perspective: none;
}
.actions-wheel .ha-action-text:hover,
.actions-wheel .ha-action-image:hover,
.actions-wheel .ha-action-stat:hover {
    transform: none;
}
.actions-wheel .pw-dots {
    display: none;
}
@media (max-width: 900px) {
    .actions-wheel .pw-card { height: auto; }
}
.ha-action-text,
.ha-action-image,
.ha-action-stat {
    border-radius: 24px;
    height: 100%;
    min-height: 285px;           /* ← Ajout important */
    max-height: 285px;           /* ← Empêche l'agrandissement */
    display: flex;
    flex-direction: column;
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
    overflow: hidden;            /* ← Empêche le débordement */
    transform-style: preserve-3d;
    will-change: transform;
}

/* Carte texte */
.ha-action-text {
    background: #FFFFFF;
    padding: 32px 28px;
    box-shadow: 0 18px 40px -12px rgba(42,31,23,0.14);
    border: 1px solid rgba(240,168,61,0.12);
    justify-content: center;
}

.ha-action-text:hover {
    transform: perspective(1200px) rotateX(4deg) rotateY(-4deg) translateY(-8px) scale(1.02);
    box-shadow: 0 26px 50px -14px rgba(42,31,23,0.24);
}

.ha-action-text h3 {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 12px;
    flex-shrink: 0;              /* Empêche le titre de rétrécir */
}

.ha-action-text p {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--forest-2);
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    margin: 0;
}

/* Image */
.ha-action-image {
    overflow: hidden;
    box-shadow: 0 18px 40px -12px rgba(42,31,23,0.22);
}

.ha-action-image:hover {
    transform: perspective(1200px) rotateX(-4deg) rotateY(4deg) translateY(-8px) scale(1.02);
    box-shadow: 0 26px 50px -14px rgba(42,31,23,0.32);
}

.ha-action-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.ha-action-image:hover img {
    transform: scale(1.08);
}

/* Statistique */
.ha-action-stat {
    background: linear-gradient(135deg, #F0A83D 0%, #F6BC5C 100%);
    padding: 32px 24px;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 18px 40px -12px rgba(240,168,61,0.4);
    color: var(--forest);
}

.ha-action-stat:hover {
    transform: perspective(1200px) rotateX(4deg) rotateY(4deg) translateY(-8px) scale(1.02);
    box-shadow: 0 26px 50px -14px rgba(240,168,61,0.55);
}

.ha-action-stat .percentage {
    font-size: clamp(2.1rem, 2.9vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.ha-action-stat .label {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Sur mobile / tactile, on désactive l'inclinaison 3D (pas de hover fiable) */
@media (hover: none) {
    .ha-action-text:hover,
    .ha-action-image:hover,
    .ha-action-stat:hover {
        transform: none;
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .ha-action-row {
        grid-template-columns: 1fr 1fr;
    }
    .ha-action-image {
        grid-column: span 2;
    }
    /* On autorise un peu plus de hauteur en responsive */
    .ha-action-text,
    .ha-action-image,
    .ha-action-stat {
        max-height: none;
        min-height: 260px;
    }
}

@media (max-width: 720px) {
    .ha-action-row {
        grid-template-columns: 1fr;
    }
}

/* ---------- NOS ACTIONS SUR MOBILE : cartes façon VIRDYAN ----------
   Le "manège" vertical 3D est remplacé par une liste empilée. Chaque action devient une
   carte photo plein cadre (ratio 3/4, coins 22px) : la statistique en pastille en haut à
   gauche, le titre et la description en bas sur un dégradé sombre. */
@media (max-width: 720px) {
    .actions-wheel.pw-wheel { margin-top: 26px; }
    .actions-wheel .pw-stage {
        position: static; width: 100%; max-width: 100%;
        height: auto !important; perspective: none;
        display: flex; flex-direction: column; gap: 24px;
    }
    .actions-wheel .pw-card {
        position: static !important; top: auto !important; left: auto !important;
        width: 100% !important; max-width: 100% !important;
        margin-left: 0 !important; margin-top: 0 !important; height: auto !important;
        transform: none !important; opacity: 1 !important; z-index: auto !important;
        pointer-events: auto !important; cursor: default;
    }

    /* carte */
    .actions-wheel .pw-card-inner.ha-action-row {
        display: block; position: relative; isolation: isolate;
        aspect-ratio: 3/4; height: auto;
        background: var(--forest); border-radius: 22px; overflow: hidden;
        box-shadow: 0 8px 24px rgba(42,31,23,.10);
    }

    /* photo plein cadre + dégradé */
    .actions-wheel .ha-action-image {
        position: absolute; inset: 0; z-index: 0;
        width: 100%; height: 100%; min-height: 0; max-height: none;
        border-radius: 0; box-shadow: none; transform: none;
    }
    .actions-wheel .ha-action-image img { width: 100%; height: 100%; object-fit: cover; display: block; transform: none; }
    .actions-wheel .ha-action-image::after {
        content: ""; position: absolute; inset: 0; pointer-events: none;
        background: linear-gradient(180deg, rgba(42,31,23,0) 15%, rgba(42,31,23,.6) 55%, rgba(42,31,23,.94) 100%);
    }

    /* statistique = pastille en haut à gauche */
    .actions-wheel .ha-action-stat {
        position: absolute; top: 16px; left: 16px; z-index: 2;
        width: auto; height: auto; min-height: 0; max-height: none;
        flex-direction: row; align-items: baseline; gap: 6px;
        padding: .4em 1em; border-radius: 60px; overflow: visible;
        background: rgba(255,255,255,.88);
        -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
        box-shadow: none; transform: none; text-align: left; color: var(--forest);
    }
    .actions-wheel .ha-action-stat .percentage { font-size: .8rem; font-weight: 700; margin: 0; }
    .actions-wheel .ha-action-stat .label { font-size: .75rem; font-weight: 600; }

    /* titre + description en bas */
    .actions-wheel .ha-action-text {
        position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
        width: auto; height: auto; min-height: 0; max-height: none;
        padding: 0 20px 20px; border: 0; border-radius: 0; overflow: visible;
        background: transparent; box-shadow: none; transform: none;
        justify-content: flex-end;
    }
    .actions-wheel .ha-action-text h3 { color: #fff; font-size: 1.35rem; font-weight: 600; margin: 0 0 8px; }
    .actions-wheel .ha-action-text p {
        color: rgba(255,255,255,.85); font-size: .9rem; line-height: 1.55;
        -webkit-line-clamp: 5; flex-grow: 0;
    }
}
/* ---------- BANNIÈRE DE CONSENTEMENT AUX COOKIES (RGPD) ---------- */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 560px;
    margin: 0 auto;
    background: var(--forest);
    color: var(--cream);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    padding: 22px 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: translateY(140%);
    opacity: 0;
    transition: transform .6s var(--ease), opacity .5s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--cream); }
.cookie-banner a { color: var(--amber-2); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner-actions button {
    border: none; cursor: pointer; border-radius: 999px;
    padding: 10px 20px; font-size: .88rem; font-weight: 600;
    font-family: inherit; transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.cookie-banner-actions button:hover { transform: translateY(-2px); }
.cookie-accept { background: var(--amber); color: var(--forest); }
.cookie-reject { background: transparent; color: var(--cream); border: 1.5px solid rgba(251,243,231,.4) !important; }
@media (max-width: 600px) {
    .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
}