:root {
    --brown: #8a6239;
    --brown-deep: #3f2d1c;
    --brown-dark: #2c2017;
    --gold: #b9894c;
    --sand: #d9c7aa;
    --cream: #faf7f2;
    --cream-2: #f2eadf;
    --white: #ffffff;
    --ink: #2e2924;
    --muted: #6f655c;
    --line: rgba(63,45,28,.14);
    --shadow: 0 18px 50px rgba(63,45,28,.10);
    --radius: 22px;
    --container: 1180px;
    --footer-fixed-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--white); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 9999; background: var(--brown-dark); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.navbar { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 285px; }
.brand img { width: 66px; height: 66px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { color: var(--brown); font-size: 1.35rem; letter-spacing: .04em; }
.brand-copy small { max-width: 215px; margin-top: 4px; color: var(--muted); font-size: .72rem; }
.main-nav { display: flex; align-items: center; gap: 25px; }
.main-nav a { position: relative; padding: 31px 0 27px; color: var(--brown-deep); font-size: .86rem; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 19px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: .25s; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--brown-deep); margin: 5px 0; }

.flash-wrap { position: fixed; right: 24px; top: 104px; z-index: 1001; width: min(420px, calc(100% - 48px)); }
.flash { background: var(--brown-deep); color: white; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow); }

.section { position: relative; padding: 100px 0; }
.section-soft { background: var(--cream); }
.section-dark { background: linear-gradient(140deg, #2d2118, #5c4028 62%, #765336); color: white; overflow: hidden; }
.section-dark::after { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); right: -230px; top: -260px; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.light p { color: rgba(255,255,255,.72); }
.eyebrow { display: inline-block; color: var(--brown); text-transform: uppercase; font-weight: 900; font-size: .77rem; letter-spacing: .15em; margin-bottom: 10px; }
.section-dark .eyebrow, .support .eyebrow { color: var(--sand); }
h1, h2, h3 { color: var(--brown-deep); line-height: 1.15; margin-top: 0; }
h1 { font-size: clamp(2.65rem, 6vw, 5.3rem); letter-spacing: -.05em; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.035em; margin-bottom: 18px; }
h3 { font-size: 1.22rem; }
.section-dark h2, .section-dark h3, .support h2 { color: white; }
p { margin-top: 0; }
.lead { max-width: 720px; color: #52483f; font-size: clamp(1.06rem, 1.6vw, 1.25rem); }

.hero { min-height: calc(100vh - 86px); display: grid; align-items: center; overflow: hidden; background: radial-gradient(circle at 76% 42%, rgba(217,199,170,.5), transparent 32%), linear-gradient(120deg, #fff 12%, #fcf8f3 54%, #efe1cf 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(rgba(138,98,57,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(138,98,57,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent 0, black 55%, black 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 70px; }
.hero-copy { padding: 48px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; font-weight: 850; font-size: .86rem; text-transform: uppercase; letter-spacing: .035em; cursor: pointer; }
.btn-primary { background: var(--brown); color: white; box-shadow: 0 12px 28px rgba(138,98,57,.2); }
.btn-primary:hover { background: #73502f; }
.btn-secondary { border-color: var(--brown); color: var(--brown-deep); background: rgba(255,255,255,.65); }
.hero-note { color: var(--muted); font-size: .9rem; font-weight: 700; letter-spacing: .03em; }
.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.hero-visual img { position: relative; z-index: 2; width: min(470px, 92%); filter: drop-shadow(0 28px 26px rgba(63,45,28,.16)); }
.logo-halo { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.7); box-shadow: 0 0 0 36px rgba(255,255,255,.28), 0 0 0 72px rgba(255,255,255,.12); }

.about-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 24px; align-items: stretch; }
.about-intro { padding: 8px 32px 8px 0; font-size: 1.05rem; }
.value-card { background: white; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--cream-2); color: var(--brown); font-weight: 900; margin-bottom: 32px; }

.objectives-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.objective { min-height: 280px; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: transform .25s, background .25s; }
.objective:hover { background: var(--cream); transform: translateY(-4px); }
.objective > span { display: inline-block; margin-bottom: 48px; color: var(--gold); font-weight: 900; font-size: 1.45rem; }
.objective p { color: var(--muted); }

.domains-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.domain-card { padding: 30px; border-radius: 18px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); }
.domain-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 30px; background: var(--sand); color: var(--brown-deep); border-radius: 12px; font-weight: 950; }
.domain-card p { color: rgba(255,255,255,.72); }

.content-grid, .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.content-card, .news-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 35px rgba(63,45,28,.07); }
.content-card img, .content-card .card-placeholder { width: 100%; height: 220px; object-fit: cover; }
.card-placeholder { display: grid; place-items: center; background: linear-gradient(140deg, var(--cream-2), var(--sand)); color: rgba(63,45,28,.3); font-size: 4rem; font-weight: 950; letter-spacing: .12em; }
.content-card-body { padding: 28px; }
.tag { display: inline-flex; padding: 4px 9px; margin-bottom: 12px; border-radius: 999px; background: var(--cream-2); color: var(--brown); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.text-link { color: var(--brown); font-weight: 850; }
.empty-state { grid-column: 1 / -1; padding: 48px; border: 1px dashed rgba(138,98,57,.45); border-radius: var(--radius); background: var(--cream); }
.empty-state h3 { font-size: 1.6rem; }

.impact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.impact-panel { display: grid; grid-template-columns: 1fr 1fr; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.impact-panel div { min-height: 170px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.impact-panel strong { color: var(--gold); font-size: 2rem; }
.impact-panel span { color: var(--brown-deep); font-weight: 800; }

.news-card img { width: 100%; height: 180px; object-fit: cover; }
.news-card > div { padding: 26px; }
.news-card time { color: var(--gold); font-weight: 800; font-size: .8rem; text-transform: uppercase; }
.news-card h3 { margin-top: 10px; }
.news-card p { color: var(--muted); }

.support { color: white; background: linear-gradient(110deg, var(--brown-deep), var(--brown)); }
.support-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.support-grid p { color: rgba(255,255,255,.78); }
.support-actions { display: grid; gap: 10px; }
.support-actions a { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.support-actions strong { color: white; }
.support-actions span { color: rgba(255,255,255,.68); text-align: right; }

.contact-section { background: #fff; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.contact-points { margin-top: 36px; display: grid; gap: 18px; }
.contact-points div { display: flex; flex-direction: column; padding-left: 18px; border-left: 3px solid var(--sand); }
.contact-points span { color: var(--muted); }
.contact-form { padding: 34px; background: var(--cream); border-radius: var(--radius); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 7px; margin-bottom: 16px; color: var(--brown-deep); font-size: .85rem; font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(63,45,28,.18); background: white; border-radius: 10px; padding: 13px 14px; color: var(--ink); outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brown); box-shadow: 0 0 0 3px rgba(138,98,57,.1); }
.form-error { color: #9c342d; margin: -6px 0 14px; font-size: .84rem; }

.footer { background: #231912; color: rgba(255,255,255,.72); padding: 58px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand img { width: 92px; height: 92px; object-fit: contain; background: white; border-radius: 16px; padding: 6px; }
.footer strong { color: white; display: block; margin-bottom: 10px; }
.footer a { display: block; margin: 6px 0; }
.footer-bottom { margin-top: 42px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.footer-fixed-name { color: rgba(255,255,255,.78); font-size: .82rem; text-align: center; }
.back-top { width: 40px; height: 40px; display: grid !important; place-items: center; background: var(--brown); color: white; border-radius: 10px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

.detail-shell { padding: 80px 0; }
.detail-shell img { border-radius: var(--radius); margin-bottom: 28px; }

@media (max-width: 1050px) {
    .brand-copy { display: none; }
    .brand { min-width: auto; }
    .main-nav { gap: 18px; }
    .main-nav a { font-size: .78rem; }
    .hero-grid { grid-template-columns: 1fr 420px; gap: 25px; }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .about-intro { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    html { scroll-padding-top: 76px; }
    .navbar { min-height: 74px; }
    .brand img { width: 56px; height: 56px; }
    .nav-toggle { display: block; }
    .main-nav { position: absolute; left: 20px; right: 20px; top: 68px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 18px 16px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 4px; }
    .main-nav a::after { bottom: 6px; right: auto; width: 36px; }
    .section { padding: 76px 0; }
    .hero { min-height: auto; }
    .hero-grid, .impact-grid, .support-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-copy { padding-top: 50px; }
    .hero-visual { min-height: 320px; }
    .hero-visual img { width: min(360px, 90%); }
    .logo-halo { width: 300px; height: 300px; }
    .objectives-grid, .domains-grid, .content-grid, .news-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-intro { grid-column: auto; padding-right: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.15rem; }
    .hero-actions .btn { width: 100%; }
    .objectives-grid, .domains-grid, .content-grid, .news-grid, .impact-panel, .form-row, .footer-grid { grid-template-columns: 1fr; }
    .objective { min-height: auto; }
    .objective > span { margin-bottom: 26px; }
    .support-actions a { flex-direction: column; }
    .support-actions span { text-align: left; }
    .contact-form { padding: 24px; }
    .footer-brand { grid-column: auto; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Navigation "écran par écran" — page d'accueil PEN
   ========================================================= */
@media (min-width: 821px) {
    html:has(body.home-snap) {
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
        scroll-padding-top: 86px;
    }

    body.home-snap main > .section {
        min-height: calc(100svh - 86px - var(--footer-fixed-h));
        scroll-snap-align: start;
        scroll-snap-stop: always;
        display: flex;
        align-items: center;
        padding-top: clamp(42px, 5vh, 68px);
        padding-bottom: clamp(42px, 5vh, 68px);
    }

    body.home-snap main > .hero {
        min-height: calc(100svh - 86px - var(--footer-fixed-h));
    }

    body.home-snap main > .section > .container {
        width: min(calc(100% - 72px), var(--container));
    }

    /* Les sections denses restent compactes pour tenir dans un écran courant. */
    body.home-snap .section-heading {
        margin-bottom: clamp(22px, 3vh, 36px);
    }

    body.home-snap .objective {
        min-height: 0;
        padding: clamp(20px, 2.4vw, 30px);
    }

    body.home-snap .objective > span {
        margin-bottom: clamp(18px, 3vh, 34px);
    }

    body.home-snap .domain-card {
        padding: clamp(20px, 2.2vw, 28px);
    }

    body.home-snap .domain-icon {
        margin-bottom: 20px;
    }

    body.home-snap .content-card img,
    body.home-snap .content-card .card-placeholder {
        height: clamp(145px, 19vh, 200px);
    }

    body.home-snap .news-card img {
        height: clamp(125px, 17vh, 170px);
    }

    body.home-snap .content-card-body,
    body.home-snap .news-card > div {
        padding: clamp(20px, 2vw, 26px);
    }

    /* Repères latéraux : donnent l'impression de naviguer entre des pages. */
    .page-dots {
        position: fixed;
        z-index: 980;
        right: 22px;
        top: 50%;
        transform: translateY(-50%);
        display: grid;
        gap: 11px;
        padding: 12px 9px;
        border-radius: 999px;
        background: rgba(255,255,255,.72);
        border: 1px solid rgba(63,45,28,.10);
        box-shadow: 0 10px 30px rgba(63,45,28,.08);
        backdrop-filter: blur(12px);
    }

    .page-dots a {
        width: 15px;
        height: 15px;
        display: grid;
        place-items: center;
        border-radius: 50%;
    }

    .page-dots a span {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: rgba(63,45,28,.34);
        transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
    }

    .page-dots a:hover span,
    .page-dots a.active span {
        background: var(--brown);
        transform: scale(1.55);
        box-shadow: 0 0 0 3px rgba(138,98,57,.13);
    }

    /* Footer fixe : toujours visible en bas sans créer un écran supplémentaire. */
    body.home-snap .footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 990;
        height: var(--footer-fixed-h);
        padding: 0;
        background: rgba(35,25,18,.96);
        border-top: 1px solid rgba(255,255,255,.10);
        backdrop-filter: blur(12px);
        box-shadow: 0 -8px 26px rgba(35,25,18,.10);
        scroll-snap-align: none;
    }

    /* Conserver le contenu institutionnel du footer v3, mais en format compact. */
    body.home-snap .footer-grid {
        height: 56px;
        display: grid;
        grid-template-columns: minmax(320px, 2fr) minmax(255px, 1.25fr) minmax(170px, .75fr);
        align-items: center;
        gap: clamp(16px, 2.3vw, 34px);
    }

    body.home-snap .footer-brand {
        min-width: 0;
        gap: 11px;
    }

    body.home-snap .footer-brand img {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        border-radius: 9px;
        padding: 3px;
    }

    body.home-snap .footer-brand strong {
        margin: 0 0 2px;
        font-size: clamp(.66rem, .77vw, .76rem);
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.home-snap .footer-brand p {
        margin: 0;
        color: rgba(255,255,255,.62);
        font-size: clamp(.56rem, .67vw, .65rem);
        line-height: 1.12;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.home-snap .footer-grid > div:not(.footer-brand) {
        display: flex;
        align-items: center;
        gap: 11px;
        min-width: 0;
        white-space: nowrap;
    }

    body.home-snap .footer-grid > div:not(.footer-brand) strong {
        margin: 0;
        font-size: .68rem;
        text-transform: uppercase;
        letter-spacing: .055em;
        color: rgba(255,255,255,.94);
    }

    body.home-snap .footer-grid > div:not(.footer-brand) a {
        display: inline-flex;
        margin: 0;
        color: rgba(255,255,255,.70);
        font-size: .66rem;
        transition: color .2s ease;
    }

    body.home-snap .footer-grid > div:not(.footer-brand) a:hover {
        color: white;
    }

    body.home-snap .footer-bottom {
        min-height: 28px;
        margin-top: 0;
        padding-top: 0;
        border-top: 1px solid rgba(255,255,255,.09);
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 18px;
        font-size: .62rem;
        color: rgba(255,255,255,.56);
    }

    body.home-snap .footer-bottom .back-top {
        justify-self: end;
        width: 24px;
        height: 24px;
        border-radius: 7px;
        font-size: .8rem;
    }
}

@media (max-width: 820px) {
    .page-dots { display: none; }
    .footer-fixed-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html:has(body.home-snap) { scroll-snap-type: none; }
}

/* =========================================================
   Écrans denses — Objectifs & Domaines
   Garder l'intégralité du contenu visible sur un écran desktop.
   ========================================================= */
@media (min-width: 821px) {
    body.home-snap .screen-compact > .screen-compact-layout {
        display: grid;
        grid-template-columns: minmax(235px, .72fr) minmax(0, 2.15fr);
        gap: clamp(26px, 4vw, 58px);
        align-items: center;
    }

    body.home-snap .screen-compact .screen-side-heading {
        margin: 0;
        max-width: 360px;
        text-align: left;
    }

    body.home-snap .screen-compact .screen-side-heading h2 {
        font-size: clamp(1.75rem, 3.1vw, 2.85rem);
        margin-bottom: 14px;
    }

    body.home-snap .screen-compact .screen-side-heading p {
        margin-bottom: 0;
        font-size: clamp(.88rem, 1.15vw, 1rem);
        line-height: 1.52;
    }

    body.home-snap .screen-compact .objectives-grid,
    body.home-snap .screen-compact .domains-grid {
        width: 100%;
        align-self: center;
    }

    body.home-snap .screen-compact .objective {
        min-height: 0;
        padding: clamp(15px, 1.7vw, 23px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    body.home-snap .screen-compact .objective > span {
        margin: 0 0 8px;
        font-size: clamp(1rem, 1.6vw, 1.25rem);
        line-height: 1;
    }

    body.home-snap .screen-compact .objective h3,
    body.home-snap .screen-compact .domain-card h3 {
        font-size: clamp(.94rem, 1.3vw, 1.08rem);
        margin-bottom: 7px;
        line-height: 1.22;
    }

    body.home-snap .screen-compact .objective p,
    body.home-snap .screen-compact .domain-card p {
        margin-bottom: 0;
        font-size: clamp(.78rem, 1.02vw, .9rem);
        line-height: 1.42;
    }

    body.home-snap .screen-compact .domains-grid {
        gap: clamp(10px, 1.3vw, 16px);
    }

    body.home-snap .screen-compact .domain-card {
        padding: clamp(15px, 1.65vw, 22px);
    }

    body.home-snap .screen-compact .domain-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 10px;
        border-radius: 10px;
        font-size: .88rem;
    }
}

/* Écrans portables peu hauts : compacter encore sans masquer de texte. */
@media (min-width: 821px) and (max-height: 850px) {
    body.home-snap main > .screen-compact {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    body.home-snap .screen-compact > .screen-compact-layout {
        gap: 28px;
    }

    body.home-snap .screen-compact .screen-side-heading h2 {
        font-size: clamp(1.55rem, 2.6vw, 2.2rem);
        margin-bottom: 10px;
    }

    body.home-snap .screen-compact .screen-side-heading p {
        font-size: .82rem;
        line-height: 1.4;
    }

    body.home-snap .screen-compact .objective,
    body.home-snap .screen-compact .domain-card {
        padding: 13px 15px;
    }

    body.home-snap .screen-compact .objective > span {
        margin-bottom: 6px;
        font-size: 1rem;
    }

    body.home-snap .screen-compact .objective h3,
    body.home-snap .screen-compact .domain-card h3 {
        font-size: .9rem;
        margin-bottom: 5px;
    }

    body.home-snap .screen-compact .objective p,
    body.home-snap .screen-compact .domain-card p {
        font-size: .74rem;
        line-height: 1.32;
    }

    body.home-snap .screen-compact .domain-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 7px;
    }
}

/* Tablettes et mobiles : revenir au flux normal pour préserver la lisibilité. */
@media (max-width: 820px) {
    .screen-compact-layout {
        display: block;
    }
}

/* =========================================================
   V8 — Une section = un écran complet
   Chaque écran desktop tient entre le header et le footer.
   Le contenu est compacté de façon responsive, sans déborder
   visuellement sur l'écran suivant.
   ========================================================= */
@media (min-width: 821px) {
    body.home-snap main > .screen-fit {
        height: calc(100svh - 86px - var(--footer-fixed-h));
        min-height: 0;
        max-height: calc(100svh - 86px - var(--footer-fixed-h));
        overflow: hidden;
        padding-top: clamp(22px, 3.4vh, 38px);
        padding-bottom: clamp(22px, 3.4vh, 38px);
    }

    body.home-snap main > .screen-fit > .container {
        max-height: 100%;
    }

    body.home-snap .screen-fit .section-heading {
        margin-bottom: clamp(14px, 2.2vh, 24px);
    }

    body.home-snap .screen-fit .section-heading h2 {
        font-size: clamp(1.75rem, 3vw, 2.75rem);
        margin-bottom: clamp(8px, 1.4vh, 14px);
    }

    body.home-snap .screen-fit .section-heading p,
    body.home-snap .screen-fit p {
        line-height: 1.42;
    }

    /* Accueil */
    body.home-snap .screen-hero .hero-grid {
        height: 100%;
        gap: clamp(28px, 4vw, 58px);
    }

    body.home-snap .screen-hero .hero-copy {
        padding: 0;
    }

    body.home-snap .screen-hero h1 {
        font-size: clamp(2.45rem, 5vw, 4.65rem);
        margin-bottom: clamp(14px, 2vh, 22px);
    }

    body.home-snap .screen-hero .lead {
        font-size: clamp(.94rem, 1.35vw, 1.12rem);
        line-height: 1.48;
    }

    body.home-snap .screen-hero .hero-actions {
        margin: clamp(16px, 2.2vh, 24px) 0 clamp(12px, 1.7vh, 18px);
    }

    body.home-snap .screen-hero .hero-visual {
        min-height: 0;
        height: min(46vh, 410px);
    }

    body.home-snap .screen-hero .hero-visual img {
        width: min(400px, 88%);
        max-height: 100%;
        object-fit: contain;
    }

    body.home-snap .screen-hero .logo-halo {
        width: min(34vw, 360px);
        height: min(34vw, 360px);
    }

    /* Qui sommes-nous ? : conserver les trois blocs sur une seule ligne
       même entre 821 et 1050 px, où l'ancienne règle les empilait. */
    body.home-snap .screen-about .section-heading {
        max-width: 820px;
    }

    body.home-snap .screen-about .about-grid {
        grid-template-columns: 1.2fr .9fr .9fr;
        gap: clamp(12px, 1.7vw, 20px);
        align-items: stretch;
    }

    body.home-snap .screen-about .about-intro {
        grid-column: auto;
        padding: 2px clamp(12px, 1.6vw, 22px) 2px 0;
        font-size: clamp(.80rem, .98vw, .94rem);
        line-height: 1.42;
    }

    body.home-snap .screen-about .about-intro p {
        margin-bottom: clamp(8px, 1.3vh, 13px);
    }

    body.home-snap .screen-about .value-card {
        padding: clamp(17px, 1.8vw, 24px);
        border-radius: 18px;
    }

    body.home-snap .screen-about .card-mark {
        width: 34px;
        height: 34px;
        margin-bottom: clamp(10px, 1.5vh, 16px);
        font-size: .82rem;
    }

    body.home-snap .screen-about .value-card h3 {
        margin-bottom: 8px;
        font-size: clamp(1rem, 1.3vw, 1.16rem);
    }

    body.home-snap .screen-about .value-card p {
        margin-bottom: 0;
        font-size: clamp(.78rem, .94vw, .90rem);
        line-height: 1.42;
    }

    /* Objectifs / domaines : utiliser toute la hauteur utile sans la dépasser. */
    body.home-snap .screen-compact > .screen-compact-layout {
        height: 100%;
        align-items: center;
    }

    body.home-snap .screen-compact .objectives-grid,
    body.home-snap .screen-compact .domains-grid {
        max-height: 100%;
    }

    /* Programmes & Actualités : aperçu de trois cartes dans un seul écran. */
    body.home-snap .screen-listing .section-heading {
        margin-bottom: clamp(12px, 1.8vh, 20px);
    }

    body.home-snap .screen-listing .content-grid,
    body.home-snap .screen-listing .news-grid {
        gap: clamp(12px, 1.6vw, 20px);
    }

    body.home-snap .screen-listing .content-card img,
    body.home-snap .screen-listing .content-card .card-placeholder,
    body.home-snap .screen-listing .news-card img {
        height: clamp(108px, 15vh, 148px);
    }

    body.home-snap .screen-listing .content-card-body,
    body.home-snap .screen-listing .news-card > div {
        padding: clamp(14px, 1.5vw, 20px);
    }

    body.home-snap .screen-listing .content-card h3,
    body.home-snap .screen-listing .news-card h3 {
        font-size: clamp(.95rem, 1.25vw, 1.1rem);
        margin-bottom: 7px;
    }

    body.home-snap .screen-listing .content-card p,
    body.home-snap .screen-listing .news-card p {
        margin-bottom: 9px;
        font-size: clamp(.74rem, .88vw, .84rem);
        line-height: 1.35;
    }

    body.home-snap .screen-listing .tag,
    body.home-snap .screen-listing .news-card time,
    body.home-snap .screen-listing .text-link {
        font-size: .70rem;
    }

    body.home-snap .screen-listing .empty-state {
        padding: clamp(22px, 3vh, 34px);
    }

    /* Démarche */
    body.home-snap .screen-impact .impact-grid {
        height: 100%;
        gap: clamp(32px, 5vw, 58px);
    }

    body.home-snap .screen-impact .section-heading {
        margin-bottom: 0;
    }

    body.home-snap .screen-impact .impact-panel div {
        min-height: clamp(105px, 16vh, 140px);
        padding: clamp(18px, 2vw, 25px);
    }

    body.home-snap .screen-impact .impact-panel strong {
        font-size: clamp(1.45rem, 2.6vw, 2rem);
    }

    body.home-snap .screen-impact .impact-panel span {
        font-size: clamp(.78rem, 1vw, .9rem);
    }

    /* Nous soutenir */
    body.home-snap .screen-support .support-grid {
        height: 100%;
        gap: clamp(38px, 6vw, 70px);
    }

    body.home-snap .screen-support .support-actions {
        gap: 0;
    }

    body.home-snap .screen-support .support-actions a {
        padding: clamp(12px, 2vh, 18px) 0;
    }

    body.home-snap .screen-support .support-actions strong {
        font-size: clamp(.88rem, 1.1vw, 1rem);
    }

    body.home-snap .screen-support .support-actions span {
        font-size: clamp(.76rem, .9vw, .85rem);
    }

    /* Contact : formulaire compact et informations intégralement visibles. */
    body.home-snap .screen-contact .contact-grid {
        height: 100%;
        grid-template-columns: .9fr 1.1fr;
        gap: clamp(34px, 5vw, 64px);
        align-items: center;
    }

    body.home-snap .screen-contact .section-heading {
        margin: 0;
    }

    body.home-snap .screen-contact .section-heading h2 {
        font-size: clamp(1.7rem, 2.8vw, 2.6rem);
    }

    body.home-snap .screen-contact .section-heading > p {
        font-size: clamp(.80rem, .95vw, .9rem);
        margin-bottom: 0;
    }

    body.home-snap .screen-contact .contact-points {
        margin-top: clamp(14px, 2vh, 22px);
        gap: 9px;
    }

    body.home-snap .screen-contact .contact-points div {
        padding-left: 13px;
    }

    body.home-snap .screen-contact .contact-points strong,
    body.home-snap .screen-contact .contact-points span {
        font-size: clamp(.74rem, .88vw, .84rem);
        line-height: 1.3;
    }

    body.home-snap .screen-contact .contact-form {
        padding: clamp(17px, 2vw, 24px);
        border-radius: 18px;
    }

    body.home-snap .screen-contact .form-row {
        gap: 11px;
    }

    body.home-snap .screen-contact .contact-form label {
        gap: 4px;
        margin-bottom: 8px;
        font-size: .75rem;
    }

    body.home-snap .screen-contact .contact-form input,
    body.home-snap .screen-contact .contact-form textarea {
        padding: 9px 11px;
        border-radius: 8px;
        font-size: .82rem;
    }

    body.home-snap .screen-contact .contact-form textarea {
        min-height: 74px;
        max-height: 92px;
        resize: vertical;
    }

    body.home-snap .screen-contact .contact-form .btn {
        min-height: 40px;
        padding: 0 18px;
        font-size: .76rem;
    }

    body.home-snap .screen-contact .form-error {
        margin: 2px 0 6px;
        font-size: .70rem;
        line-height: 1.25;
    }

    /* Ajustement automatique ajouté par JS lorsqu'un écran est encore trop dense. */
    body.home-snap .screen-fit.fit-tight {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    body.home-snap .screen-fit.fit-tight .section-heading {
        margin-bottom: 10px;
    }

    body.home-snap .screen-fit.fit-tight .section-heading h2 {
        font-size: clamp(1.55rem, 2.6vw, 2.25rem);
        margin-bottom: 7px;
    }

    body.home-snap .screen-fit.fit-tight p {
        font-size: .76rem;
        line-height: 1.31;
    }

    body.home-snap .screen-fit.fit-tight .value-card,
    body.home-snap .screen-fit.fit-tight .domain-card,
    body.home-snap .screen-fit.fit-tight .objective,
    body.home-snap .screen-fit.fit-tight .content-card-body,
    body.home-snap .screen-fit.fit-tight .news-card > div,
    body.home-snap .screen-fit.fit-tight .contact-form {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    body.home-snap .screen-fit.fit-tight .content-card img,
    body.home-snap .screen-fit.fit-tight .content-card .card-placeholder,
    body.home-snap .screen-fit.fit-tight .news-card img {
        height: 96px;
    }

    body.home-snap .screen-fit.fit-ultra > .container {
        zoom: .90;
    }
}

/* Sur écran très bas, garder la logique plein écran tout en libérant davantage d'espace. */
@media (min-width: 821px) and (max-height: 740px) {
    body.home-snap main > .screen-fit {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    body.home-snap .screen-hero h1 {
        font-size: clamp(2rem, 4.3vw, 3.4rem);
    }

    body.home-snap .screen-hero .hero-visual {
        height: min(40vh, 300px);
    }

    body.home-snap .screen-about .section-heading h2,
    body.home-snap .screen-contact .section-heading h2 {
        font-size: clamp(1.45rem, 2.45vw, 2rem);
    }

    body.home-snap .screen-about .value-card {
        padding: 13px 15px;
    }

    body.home-snap .screen-about .about-intro,
    body.home-snap .screen-about .value-card p {
        font-size: .72rem;
        line-height: 1.3;
    }

    body.home-snap .screen-contact .contact-form {
        padding: 13px 15px;
    }

    body.home-snap .screen-contact .contact-form label {
        margin-bottom: 5px;
    }

    body.home-snap .screen-contact .contact-form input,
    body.home-snap .screen-contact .contact-form textarea {
        padding: 7px 9px;
    }

    body.home-snap .screen-contact .contact-form textarea {
        min-height: 56px;
        max-height: 68px;
    }
}
