:root {
    --bg: #f4f1e9; --paper: #fffdf8; --ink: #222923; --muted: #697067; --green: #315c49; --green-dark: #244737; --gold: #a86c3d; --line: #d8d3c8; --soft-green: #dfe7df; 
    --radius: 16px; --shadow: 0 14px 36px rgba(35, 42, 36, 0.08); --comments-color-primary: #315c49; --comments-color-primary-hover: #244737; --comments-font-family: inherit;
}
* { box-sizing: border-box;
}
html { scroll-behavior: smooth;
}
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--green); text-underline-offset: 0.18em;
}
img { display: block; max-width: 100%;
}
.shell { width: min(1180px, calc(100% - 36px)); margin-inline: auto;
}
/* HEADER */ .site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 253, 248, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px);
}
.bar { min-height: 92px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink);
}
.brand-logo { width: 78px; height: 78px; object-fit: contain; flex: 0 0 auto;
}
.brand-text b, .brand-text small { display: block;
}
.brand-text b { font: 700 1.15rem Georgia, serif;
}
.brand-text small { color: var(--muted); font-size: 0.76rem; margin-top: 1px;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px;
}
.nav a { padding: 10px 12px; text-decoration: none; border-radius: 10px; color: var(--green-dark);
}
.nav a:hover, .nav a.active { background: #e3ebe5;
}
.nav-toggle { display: none; margin-left: auto;
}
/* HERO */ .hero { padding: clamp(64px, 8vw, 110px) 0; background: radial-gradient(circle at 90% 15%, rgba(168, 108, 61, 0.08), transparent 24rem), linear-gradient(135deg, 
        #dfe8df 0%, #f4f1e9 62%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: clamp(36px, 6vw, 80px); align-items: center;
}
.hero h1, .project-head h1, .prose > h1 { font: 700 clamp(48px, 7vw, 86px)/0.98 Georgia, serif; margin: 0.12em 0;
}
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); font-size: 0.77rem; font-weight: 800;
}
.hero-lead, .lead { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: clamp(1.12rem, 2vw, 1.35rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px;
}
.button { display: inline-block; padding: 11px 16px; border: 1px solid var(--green); border-radius: 10px; background: var(--green); color: white; font-weight: 650; 
    text-decoration: none;
}
.button:hover { background: var(--green-dark);
}
.button-secondary { background: transparent; color: var(--green);
}
.button-secondary:hover { background: #e3ebe5; color: var(--green-dark);
}
.hero-panel { display: grid; grid-template-columns: 100px 1fr; gap: 20px; align-items: center; padding: 24px; border: 1px solid rgba(49, 92, 73, 0.16); border-radius: 20px; 
    background: rgba(255, 253, 248, 0.8); box-shadow: var(--shadow);
}
.hero-panel img { width: 100px;
}
.hero-panel-label { display: block; margin-bottom: 3px; color: var(--gold); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase;
}
.hero-panel strong { display: block; font: 700 1.7rem Georgia, serif;
}
.hero-panel p { margin: 8px 0 10px; color: var(--muted); font-size: 0.94rem;
}
/* SECTIONS */ .section, .prose { padding: 58px 0;
}
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px;
}
.section-heading h2 { margin: 0; font: 700 clamp(2rem, 4vw, 3.2rem)/1 Georgia, serif;
}
.section-heading > a { white-space: nowrap;
}
/* CARDS */ .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
.card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 6px 20px rgba(35, 42, 36, 0.03);
}
.card-image { aspect-ratio: 3 / 2; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 25% 25%, rgba(168, 108, 61, 0.08), transparent 
        35%), var(--soft-green);
}
.card-image > span { color: var(--green); font: 700 1.1rem Georgia, serif;
}
.card-image img { width: 100%; height: 100%; object-fit: cover;
}
.card-body { padding: 20px;
}
.card h2, .card h3 { margin: 5px 0 10px; font: 700 1.55rem/1.2 Georgia, serif;
}
.card h2 a, .card h3 a { color: var(--green-dark);
}
.card-body p { margin: 0 0 14px;
}
.card-link { font-weight: 600;
}
/* PROJETS */ .project-head { padding: 64px 0; background: var(--soft-green);
}
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px;
}
.facts span { padding: 8px 12px; border-radius: 9px; background: rgba(255, 255, 255, 0.65);
}
.facts b { display: block; color: var(--muted); font-size: 0.7rem; text-transform: uppercase;
}
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; padding: 52px 0;
}
.layout aside { align-self: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.prose { max-width: 820px;
}
.prose h2 { margin-top: 42px; font: 700 2rem Georgia, serif;
}
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px;
}
.timeline { padding-left: 20px; border-left: 2px solid var(--line);
}
/* COMMENTS */ .comments-wrap { margin-top: 55px; padding-top: 30px; border-top: 1px solid var(--line);
}
.comments-note { color: var(--muted); font-size: 0.875rem;
}
/* UTILITAIRES */ .notice { margin: 18px 0; padding: 14px 16px; border-left: 4px solid var(--gold); border-radius: 8px; background: #fff8e9; color: var(--muted);
}
.related { margin-top: 55px; padding-top: 30px; border-top: 1px solid var(--line);
}
.error-page { min-height: 55vh;
}
/* FOOTER */ .site-footer { margin-top: 70px; padding: 30px 0; background: #242c26; color: #eef1ed;
}
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 12px;
}
.footer-brand img { width: 54px; height: 54px;
}
.footer-brand strong, .footer-brand span { display: block;
}
.footer-brand span { color: #bfc8c0; font-size: 0.8rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px;
}
.footer-nav a { color: #eef1ed;
}
/* TABLETTE */ @media (max-width: 900px) { .bar { min-height: 86px;
    }
    .brand-logo { width: 70px; height: 70px;
    }
    .hero-grid, .layout { grid-template-columns: 1fr;
    }
    .nav { display: none; position: absolute; top: 86px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 18px; border-bottom: 1px solid 
        var(--line); background: var(--paper);
    }
    .nav.open { display: flex;
    }
    .nav-toggle { display: block;
    }
    .hero-panel { max-width: 600px;
    }
}
/* MOBILE */ @media (max-width: 580px) { .shell { width: min(100% - 24px, 1180px);
    }
    .bar { min-height: 78px;
    }
    .brand-logo { width: 62px; height: 62px;
    }
    .brand-text small { display: none;
    }
    .hero { padding: 54px 0;
    }
    .hero h1 { font-size: 3.25rem;
    }
    .hero-panel { grid-template-columns: 72px 1fr; padding: 18px;
    }
    .hero-panel img { width: 72px;
    }
    .gallery { grid-template-columns: 1fr;
    }
    .section-heading, .footer-grid { align-items: flex-start; flex-direction: column;
    }
}

/* ==========================================================
   Header L'Atelier v2
   Logo plus visible + bandeau de navigation
   ========================================================== */

.header-main {
    min-height: 118px;
    display: flex;
    align-items: center;
}

.header-main .brand {
    gap: 18px;
}

.header-main .brand-logo {
    width: 104px;
    height: 104px;
}

.header-main .brand-text b {
    font-size: 1.4rem;
}

.header-main .brand-text small {
    display: block;
    margin-top: 2px;
    font-size: 0.82rem;
}

.nav-band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #eef2ed;
}

.nav-band .nav {
    position: static;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 0;
}

.nav-band .nav a {
    flex: 0 0 auto;
    padding: 12px 16px;
    border-radius: 0;
    color: var(--green-dark);
    font-weight: 600;
    text-decoration: none;
}

.nav-band .nav a:hover,
.nav-band .nav a.active {
    background: var(--green);
    color: white;
}

.nav-toggle {
    display: none !important;
}

@media (max-width: 680px) {

    .header-main {
        min-height: 94px;
    }

    .header-main .brand-logo {
        width: 80px;
        height: 80px;
    }

    .header-main .brand-text b {
        font-size: 1.2rem;
    }

    .header-main .brand-text small {
        display: none;
    }

    .nav-band .nav {
        display: flex;
        overflow-x: auto;
        justify-content: flex-start;
        white-space: nowrap;
    }

    .nav-band .nav a {
        padding: 10px 13px;
        font-size: 0.94rem;
    }
}

/* ==========================================================
   Ajustements visuels v3
   ========================================================== */

/* Logo légèrement plus présent */
@media (min-width: 681px) {
    .header-main {
        min-height: 126px;
    }

    .header-main .brand-logo {
        width: 116px;
        height: 116px;
    }
}

/* Navigation centrée */
.nav-band .nav {
    justify-content: center;
}

/* Hero légèrement plus compact */
.hero {
    padding-top: clamp(55px, 6vw, 82px);
    padding-bottom: clamp(55px, 6vw, 82px);
}


/* Réduire le grand espace avant le contenu de l'accueil */
.home-content {
    margin-top: 10px;
    padding-top: 35px;
    padding-bottom: 45px;
}

/* Mobile */
@media (max-width: 680px) {
    .nav-band .nav {
        justify-content: flex-start;
    }
}


/* =========================================================
   ZSComments — formulaire
   ========================================================= */

.comments-wrap .comments-form {
    margin-top: 1.5rem;
}

.comments-wrap .comments-form form > div {
    margin-bottom: 1rem;
}

.comments-wrap .comments-form label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 600;
}

.comments-wrap .comments-form input[type="text"],
.comments-wrap .comments-form input[type="email"],
.comments-wrap .comments-form textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: .7rem .8rem;
    font: inherit;
    color: inherit;
    background: #fff;
    border: 1px solid #9a9a8f;
    border-radius: 4px;
}

.comments-wrap .comments-form input[type="text"],
.comments-wrap .comments-form input[type="email"] {
    min-height: 42px;
}

.comments-wrap .comments-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comments-wrap .comments-form input:focus,
.comments-wrap .comments-form textarea:focus {
    outline: 2px solid var(--green);
    outline-offset: 1px;
    border-color: var(--green);
}

.comments-wrap .comments-form .buttons {
    margin-top: 1rem;
}

/* =========================================================
   ZSComments — affichage des commentaires
   ========================================================= */

.comments-wrap .comments-list {
    margin-top: 2rem;
}

.comments-wrap .comments-list > h3 {
    margin-bottom: 1rem;
}

.comments-wrap .comments-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comments-wrap .comments-list li {
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
}

.comments-wrap .comment-entry {
    padding: 1rem 1.1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.comments-wrap .comment-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .7rem;
}

.comments-wrap .comment-gravatar {
    flex: 0 0 auto;
}

.comments-wrap .comment-gravatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.comments-wrap .comment-author-date {
    min-width: 0;
}

.comments-wrap .comment-author {
    font-weight: 700;
    line-height: 1.2;
}

.comments-wrap .comment-date {
    margin-top: .15rem;
    font-size: .82rem;
    color: var(--muted);
}

.comments-wrap .comment-text {
    line-height: 1.6;
    margin-top: .5rem;
}

.comments-wrap .comment-reply {
    margin-top: .75rem;
}

.comments-wrap .comment-reply a {
    font-size: .9rem;
    text-decoration: none;
}

.comments-wrap .comment-reply a:hover {
    text-decoration: underline;
}

/* Réponses imbriquées */
.comments-wrap .comments-list li ul {
    margin: .8rem 0 0 1.25rem;
    padding-left: 1rem;
    border-left: 2px solid var(--line);
}

@media (max-width: 560px) {

    .comments-wrap .comment-entry {
        padding: .9rem;
    }

    .comments-wrap .comment-gravatar img {
        width: 36px;
        height: 36px;
    }

    .comments-wrap .comments-list li ul {
        margin-left: .6rem;
        padding-left: .8rem;
    }
}

/* =========================================================
   Responsive mobile — finitions
   ========================================================= */

@media (max-width: 850px) {

    .shell {
        width: min(100% - 24px, 1160px);
    }

    .bar {
        min-height: 68px;
        height: auto;
        padding: 8px 0;
        gap: 12px;
        flex-wrap: wrap;
    }

    .brand-logo {
        width: 52px;
        height: 52px;
    }

    .brand {
        min-width: 0;
    }

    .brand span {
        min-width: 0;
    }

    .brand b {
        line-height: 1.15;
    }

    .nav {
        width: 100%;
        margin-left: 0;
        overflow-x: auto;
        gap: 4px;
        padding: 4px 0 2px;
        scrollbar-width: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 8px 10px;
    }

    .hero {
        padding: 52px 0;
    }

    .hero h1,
    .project-head h1,
    .prose > h1 {
        font-size: clamp(38px, 10vw, 58px);
        line-height: 1.05;
    }

    .hero p,
    .lead {
        font-size: 18px;
    }

    .section,
    .prose {
        padding: 40px 0;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card h2,
    .card h3 {
        font-size: 22px;
    }

    .layout {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px 0;
    }

    .layout aside {
        order: 2;
    }

    .gallery {
        gap: 8px;
    }

    .comments-wrap {
        margin-top: 40px;
        padding-top: 24px;
    }
}

@media (max-width: 560px) {

    .shell {
        width: min(100% - 20px, 1160px);
    }

    .site-header {
        position: static;
    }

    .bar {
        min-height: 64px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand small {
        display: none;
    }

    .nav {
        padding-top: 6px;
    }

    .hero {
        padding: 38px 0;
    }

    .hero h1,
    .project-head h1,
    .prose > h1 {
        font-size: clamp(34px, 11vw, 46px);
    }

    .hero p,
    .lead {
        font-size: 17px;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 15px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .facts {
        gap: 8px;
    }

    .facts span {
        flex: 1 1 calc(50% - 8px);
        min-width: 130px;
    }

    .layout aside {
        padding: 15px;
    }

    .prose h2 {
        font-size: 27px;
    }

    .comments-wrap .comments-form input[type="text"],
    .comments-wrap .comments-form input[type="email"],
    .comments-wrap .comments-form textarea {
        font-size: 16px;
    }

    .comments-wrap .comments-form textarea {
        min-height: 130px;
    }

    .comments-wrap .comments-list li ul {
        margin-left: .4rem;
        padding-left: .7rem;
    }

    footer {
        margin-top: 36px;
        padding: 24px 0;
    }
}

/* ==========================================================
   HOME — Hero + carousel
   ========================================================== */

.hero-panel.featured-carousel {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
}


/* ---------- Zone des cartes ---------- */

.featured-slides {
    position: relative;
    width: 100%;
    padding-right: 2rem;
}


/* ---------- Cartes ---------- */

.featured-slide {
    position: absolute;
    inset: 0 2rem auto 0;

    display: block;
    width: auto;
    min-width: 0;

    overflow: hidden;

    border: 1px solid rgba(35, 60, 50, .10);
    border-radius: 2rem;

    background: #f8f5ed;

    box-shadow:
        0 1.2rem 2.5rem rgba(28, 39, 34, .10);

    transform-origin: center left;

    transition:
        transform .42s cubic-bezier(.2, .75, .25, 1),
        opacity .32s ease,
        filter .32s ease,
        box-shadow .32s ease;

    pointer-events: none;
}

.featured-slide.is-active {
    position: relative;
    inset: auto;

    z-index: 4;

    opacity: 1;
    transform: translateX(0) scale(1);

    pointer-events: auto;

    box-shadow:
        0 1.3rem 2.8rem rgba(28, 39, 34, .15);
}

.featured-slide.is-next-1 {
    z-index: 3;

    opacity: .68;

    transform:
        translateX(1rem)
        translateY(.45rem)
        scale(.985);

    filter: saturate(.82);
}

.featured-slide.is-next-2 {
    z-index: 2;

    opacity: .36;

    transform:
        translateX(2rem)
        translateY(.9rem)
        scale(.97);

    filter:
        saturate(.65)
        brightness(.98);
}

.featured-slide.is-prev {
    z-index: 1;
    opacity: 0;

    transform:
        translateX(-1.5rem)
        scale(.98);
}

.featured-slide.is-hidden {
    z-index: 0;

    opacity: 0;
    visibility: hidden;

    transform:
        translateX(2rem)
        scale(.96);
}

.featured-slide[hidden] {
    display: none !important;
}


/* ---------- Image de fond ---------- */

.featured-background {
    position: absolute;
    inset: 0;

    z-index: 0;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    transform: scale(1.025);

    transition:
        transform .6s ease,
        opacity .4s ease;
}

.featured-background-fallback {
    background-size: 48%;
    background-position: 8% 50%;
    opacity: .18;
}

.featured-background-veil {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            105deg,
            rgba(249, 246, 238, .96) 0%,
            rgba(249, 246, 238, .91) 42%,
            rgba(249, 246, 238, .76) 70%,
            rgba(249, 246, 238, .62) 100%
        );
}


/* ---------- Contenu ---------- */

.featured-content {
    position: relative;
    z-index: 2;

    box-sizing: border-box;

    width: 100%;
    min-width: 0;

    padding:
        2.1rem
        2.2rem
        2.25rem;

    text-align: left;
}

.featured-content .hero-panel-label {
    display: block;

    margin-bottom: .45rem;

    letter-spacing: .08em;
}

.featured-content strong {
    display: block;

    margin: 0 0 .8rem;

    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.05;
}

.featured-content p {
    max-width: 34rem;

    margin: 0 0 1.15rem;

    font-size: 1.05rem;
    line-height: 1.55;
}

.featured-content > a {
    display: inline-block;
    font-size: 1.05rem;
}


/* ---------- Navigation ---------- */

.featured-navigation {
    position: relative;
    z-index: 10;

    display: grid;
    grid-template-columns: 2.2rem 1fr 2.2rem;
    align-items: center;
    gap: .8rem;

    width: calc(100% - 2rem);

    margin-top: .9rem;
}

.featured-prev,
.featured-next {
    position: static;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 2.2rem;
    height: 2.2rem;

    padding: 0;

    border: 1px solid currentColor;
    border-radius: 50%;

    background: rgba(249, 246, 238, .72);

    color: #2f6652;

    font-family: sans-serif;
    font-size: 1.4rem;
    line-height: 1;

    cursor: pointer;

    transform: none;

    transition:
        background .18s ease,
        transform .18s ease;
}

.featured-prev:hover,
.featured-next:hover,
.featured-prev:focus-visible,
.featured-next:focus-visible {
    background: rgba(47, 102, 82, .10);
    transform: scale(1.06);
}

.featured-dots {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: .45rem;

    min-height: 0;
    margin: 0;
}

.featured-dots button {
    width: .52rem;
    height: .52rem;
    min-width: 0;

    padding: 0;

    border: 1px solid #2f6652;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    transition:
        transform .18s ease,
        background .18s ease;
}

.featured-dots button.active {
    background: #2f6652;
    transform: scale(1.08);
}


/* ==========================================================
   HOME — Desktop
   ========================================================== */

@media (min-width: 851px) {

    .home .shell,
    body.home .shell {
        width: min(1280px, calc(100% - 48px));
    }

    .hero {
        padding-top: clamp(2.6rem, 4vw, 3.8rem);
        padding-bottom: clamp(2.6rem, 4vw, 3.8rem);
    }

    .hero-grid {
        grid-template-columns:
            minmax(0, 1.05fr)
            minmax(430px, .95fr);

        gap: clamp(3rem, 6vw, 6rem);
        align-items: center;
    }

    .hero h1 {
        font-size: clamp(3.5rem, 5vw, 4.8rem);
    }

    .hero-panel.featured-carousel {
        max-width: 560px;
        justify-self: end;
    }


    /* Hauteur stable */

    .featured-slide,
    .featured-slide.is-active {
        height: 300px;
    }

    .featured-content {
        height: 100%;
        min-height: 0;

        display: flex;
        flex-direction: column;
        justify-content: center;

        padding:
            2.5rem
            2.7rem
            2.6rem;
    }

    .featured-content strong {
        max-width: 11em;
        font-size: clamp(2.15rem, 3vw, 3rem);
    }

    .featured-content p {
        max-width: 30rem;
    }


    /* Image plus visible */

    .featured-background-veil {
        background:
            linear-gradient(
                105deg,
                rgba(249, 246, 238, .95) 0%,
                rgba(249, 246, 238, .88) 38%,
                rgba(249, 246, 238, .64) 68%,
                rgba(249, 246, 238, .34) 100%
            );
    }


    /* Empilement */

    .featured-slides {
        padding-right: 3.4rem;
    }

    .featured-slide.is-next-1 {
        opacity: .72;

        transform:
            translateX(1.65rem)
            translateY(.65rem)
            scale(.982);

        filter:
            saturate(.82)
            brightness(.985);
    }

    .featured-slide.is-next-2 {
        opacity: .42;

        transform:
            translateX(3.15rem)
            translateY(1.2rem)
            scale(.962);

        filter:
            saturate(.68)
            brightness(.97);
    }

    .featured-navigation {
        width: calc(100% - 3.4rem);
    }


    .hero + .section,
    .hero + .shell.section {
        padding-top: 3rem;
    }
}


/* ==========================================================
   HOME — Très grands écrans
   ========================================================== */

@media (min-width: 1400px) {

    .home .shell,
    body.home .shell {
        width: min(1320px, calc(100% - 64px));
    }

    .hero-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(500px, 1fr);

        gap: 6rem;
    }

    .hero-panel.featured-carousel {
        max-width: 600px;
    }
}


/* ==========================================================
   HOME — Tablette / mobile
   ========================================================== */

@media (max-width: 850px) {

    .featured-slide,
    .featured-slide.is-active {
        height: 280px;
    }

    .featured-content {
        box-sizing: border-box;

        height: 100%;
        min-height: 0;

        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}


/* ==========================================================
   HOME — Petit mobile
   ========================================================== */

@media (max-width: 560px) {

    .featured-slides {
        padding-right: 1.35rem;
    }

    .featured-slide {
        /*
         * Correction de l'ancien "inset-right",
         * qui n'est pas une propriété CSS valide.
         */
        right: 1.35rem;

        border-radius: 1.65rem;
    }

    .featured-slide,
    .featured-slide.is-active {
        height: 270px;
    }

    .featured-slide.is-next-1 {
        transform:
            translateX(.7rem)
            translateY(.4rem)
            scale(.986);
    }

    .featured-slide.is-next-2 {
        transform:
            translateX(1.35rem)
            translateY(.8rem)
            scale(.972);
    }

    .featured-content {
        padding:
            1.45rem
            1.35rem
            1.55rem;
    }

    .featured-content strong {
        margin-bottom: .7rem;

        font-size: 1.85rem;
        line-height: 1.08;
    }

    .featured-content p {
        margin-bottom: 1rem;

        font-size: .95rem;
        line-height: 1.45;
    }

    .featured-background-veil {
        background:
            linear-gradient(
                105deg,
                rgba(249, 246, 238, .97) 0%,
                rgba(249, 246, 238, .91) 48%,
                rgba(249, 246, 238, .73) 76%,
                rgba(249, 246, 238, .58) 100%
            );
    }

    .featured-navigation {
        grid-template-columns: 2rem 1fr 2rem;

        width: calc(100% - 1.35rem);

        margin-top: .8rem;
    }

    .featured-prev,
    .featured-next {
        width: 2rem;
        height: 2rem;

        font-size: 1.25rem;
    }
}


/* ==========================================================
   Accessibilité
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .featured-slide,
    .featured-background,
    .featured-prev,
    .featured-next,
    .featured-dots button {
        transition: none;
    }
}

/* ==========================================================
   CARDS — Placeholder sans image
   ========================================================== */

.card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}


/* ==========================================================
   CARDS — Alignement vertical
   ========================================================== */

.card {
    display: flex;
    flex-direction: column;
}

.card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.card-body .card-link {
    margin-top: auto;
}


/* ==========================================================
   PROJECT — Fiche projet
   ========================================================== */

.project-head {
    padding: clamp(3.5rem, 6vw, 5.5rem) 0;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(168, 108, 61, .08),
            transparent 24rem
        ),
        linear-gradient(
            135deg,
            var(--soft-green) 0%,
            #f4f1e9 72%
        );
}

.project-head .shell {
    max-width: 1180px;
}

.project-head h1 {
    max-width: 12em;
}

.project-head .lead {
    max-width: 760px;
}

.facts {
    gap: .75rem;
    margin-top: 1.8rem;
}

.facts span {
    min-width: 125px;
    padding: .7rem .9rem;
    border: 1px solid rgba(35, 60, 50, .08);
    border-radius: .8rem;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 .3rem .9rem rgba(28, 39, 34, .025);
}

.facts b {
    margin-bottom: .12rem;
    letter-spacing: .08em;
}

.layout {
    align-items: start;
}

.layout aside {
    position: sticky;
    top: 1.5rem;
    padding: 1.4rem;
    border-radius: 1.1rem;
    box-shadow: 0 .55rem 1.5rem rgba(28, 39, 34, .04);
}

.layout aside h2 {
    margin: 1.6rem 0 .65rem;
    color: var(--green-dark);
    font: 700 1.2rem/1.2 Georgia, serif;
}

.layout aside h2:first-child {
    margin-top: 0;
}

.layout aside ul {
    margin: 0;
    padding-left: 1.15rem;
}

.layout aside li + li {
    margin-top: .35rem;
}

.layout aside a {
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .layout aside {
        position: static;
    }
}

@media (max-width: 560px) {
    .project-head {
        padding: 2.7rem 0 .75rem;
    }

    .facts span {
        min-width: 0;
    }
}


/* ==========================================================
   PROJECT — Journal / timeline
   ========================================================== */

.timeline {
    position: relative;
    margin-top: 1.5rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(47, 102, 82, .22);
}

.timeline article {
    position: relative;
    padding: 0 0 2rem .25rem;
}

.timeline article:last-child {
    padding-bottom: 0;
}

.timeline article::before {
    content: "";
    position: absolute;
    top: .35rem;
    left: -2.42rem;
    box-sizing: border-box;
    width: .78rem;
    height: .78rem;
    border: 3px solid var(--paper);
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 1px rgba(47, 102, 82, .28);
}

.timeline time {
    display: block;
    margin-bottom: .4rem;
    color: var(--gold);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.timeline h3 {
    margin: 0 0 .55rem;
    font: 700 1.3rem/1.25 Georgia, serif;
}

.timeline h3 a {
    color: var(--green-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

.timeline p {
    max-width: 42rem;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

@media (max-width: 560px) {
    .timeline {
        padding-left: 1.5rem;
    }

    .timeline article {
        padding-left: .15rem;
        padding-bottom: 1.6rem;
    }

    .timeline article::before {
        left: -1.92rem;
    }

    .timeline h3 {
        font-size: 1.2rem;
    }
}


/* ==========================================================
   JOURNAL — Page article
   ========================================================== */

.journal-head {
    padding: clamp(3rem, 5vw, 4.8rem) 0 2.8rem;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(168, 108, 61, .055),
            transparent 22rem
        );
}

.journal-shell {
    max-width: 860px;
}

.journal-back {
    display: inline-block;
    margin-bottom: 1.6rem;
    color: var(--green);
    font-weight: 600;
}

.journal-head .eyebrow {
    margin-bottom: .8rem;
}

.journal-head h1 {
    max-width: 13em;
    margin: 0;
    color: var(--green-dark);
    font: 700 clamp(3rem, 6vw, 5.3rem)/.98 Georgia, serif;
}

.journal-lead {
    max-width: 46rem;
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.55;
}

.journal-content.prose {
    max-width: 800px;
    padding-top: 1.6rem;

    font-size: 1.08rem;
    line-height: 1.72;
}

.journal-content > :first-child {
    margin-top: 0;
}

.journal-content.prose p {
    margin-top: 0;
    margin-bottom: 1.35rem;
}

.journal-content.prose h2 {
    margin-top: 3.2rem;
    margin-bottom: 1.15rem;

    color: var(--green-dark);
    font: 700 2.05rem/1.12 Georgia, serif;
}

.journal-content.prose h2:first-child {
    margin-top: 0;
}

.journal-content.prose h3 {
    margin-top: 2.4rem;
    margin-bottom: .9rem;
}

.journal-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 3.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.journal-navigation > div:last-child {
    text-align: right;
}

.journal-navigation span {
    display: block;
    margin-bottom: .4rem;
    color: var(--gold);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.journal-navigation a {
    color: var(--green-dark);
    font: 700 1.05rem/1.35 Georgia, serif;
}

@media (max-width: 560px) {

    .journal-head {
        padding: 2.2rem 0 1.2rem;
    }

    .journal-back {
        margin-bottom: 1.25rem;
    }

    .journal-head h1 {
        font-size: clamp(2.15rem, 8.5vw, 2.45rem);
        line-height: 1;
        letter-spacing: -.012em;
    }

    .journal-lead {
        margin-top: 1.15rem;
    }

    .journal-content.prose {
        padding-top: .8rem;
    }

    .journal-content.prose h2 {
        margin-top: 2rem;
        font-size: 1.6rem;
        line-height: 1.14;
    }

    .journal-navigation {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .journal-navigation > div:last-child {
        text-align: left;
    }
}


/* =========================================================
   PROJECT — Espacement mobile entre en-tête et contenu
   ========================================================= */

@media (max-width: 560px) {

    .project-head + .layout {
        padding-top: 8px;
    }

    .layout > .prose > :first-child {
        margin-top: 0;
    }

}
