/* ==========================================================================
   Mont Egalagh : système de design
   Tiré du logo : l'arche du soleil, la crête du massif, le ruban de sable.
   ========================================================================== */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --amber: #D97706;
    --amber-deep: #B45F04;
    --sun: #F5A93B;
    --emerald: #065F46;
    --emerald-deep: #043D2E;
    --earth: #7A4A1E;
    --sand: #F7EFDF;
    --sand-2: #EFE3CB;
    --sand-3: #E2D2B1;
    --paper: #FFFCF6;
    --ink: #1C1410;
    --ink-2: #4B3F36;
    --ink-3: #7C6E62;
    --line: rgba(28, 20, 16, .12);
    --white-70: rgba(255, 255, 255, .74);

    --heading: "Montserrat", system-ui, sans-serif;
    --body: "Inter", system-ui, sans-serif;

    --radius: 18px;
    --radius-s: 10px;
    --shadow: 0 18px 40px -22px rgba(60, 35, 10, .45);
    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(64px, 9vw, 120px);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--body); overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--heading); margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); transition: top .2s; }
.skip-link:focus { top: 16px; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--sand { background: var(--sand); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--dark { background: var(--emerald-deep); color: #fff; }
.stack > * + * { margin-top: var(--stack, 1rem); }

/* --- Typographie --- */
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font: 700 .76rem/1 var(--heading); letter-spacing: .16em; text-transform: uppercase; color: var(--amber-deep); }
.eyebrow::before { content: ""; width: 18px; height: 9px; background: var(--sun); border-radius: 18px 18px 0 0; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--sun); }
.title { font-size: clamp(1.8rem, 3.6vw, 2.9rem); margin-top: .7rem; text-wrap: balance; }
.lead { color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.14rem); max-width: 62ch; margin-top: .9rem; }
.section--dark .lead { color: var(--white-70); }
.head { margin-bottom: clamp(28px, 4vw, 48px); }
.head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; }

/* --- Boutons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .85em 1.5em; border-radius: 999px; font: 700 .94rem/1.1 var(--heading); transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; border: 2px solid transparent; text-align: center; }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn--primary { background: var(--amber); color: #fff; }
.btn--primary:hover { background: var(--amber-deep); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
.link-more { display: inline-flex; align-items: center; gap: .45em; font: 700 .9rem var(--heading); color: var(--amber-deep); }
.link-more .i { transition: transform .25s var(--ease); }
.link-more:hover .i { transform: translateX(4px); }

/* --- Barre de progression --- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--emerald), var(--sun)); pointer-events: none; }

/* --- Navigation --- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.nav__bar { display: flex; align-items: center; gap: 22px; height: var(--nav-h); }
.nav.is-solid, .nav.is-open { background: rgba(255, 252, 246, .96); backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.brand__logo { width: 54px; height: 54px; border-radius: 50%; background: #fff; object-fit: cover; flex: none; transition: transform .35s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.05); }
.brand__name { display: block; font: 800 1.05rem/1.1 var(--heading); letter-spacing: -.01em; white-space: nowrap; }
.brand__sub { display: block; font-size: .72rem; opacity: .78; white-space: nowrap; }

.menu { display: none; align-items: center; gap: 2px; }
.menu__trigger { display: inline-flex; align-items: center; gap: .35em; padding: .55em .85em; border-radius: 999px; font: 600 .92rem var(--heading); transition: background .2s, color .2s; position: relative; }
.menu__trigger .i { width: .9em; height: .9em; transition: transform .25s var(--ease); }
.menu__trigger:hover, .menu__item.is-open .menu__trigger { background: rgba(255, 255, 255, .14); }
.nav.is-solid .menu__trigger:hover, .nav.is-solid .menu__item.is-open .menu__trigger { background: var(--sand); }
.menu__item.is-open .menu__trigger .i { transform: rotate(180deg); }
.menu__trigger.is-current::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 16px; height: 8px; margin-left: -8px; background: var(--sun); border-radius: 16px 16px 0 0; }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(40, 25, 5, .45); border-top: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s, transform .22s var(--ease), visibility .22s; }
.menu__item.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: minmax(200px, 270px) 1fr; gap: 44px; padding-block: 34px 40px; }
.mega__intro h2 { font-size: 1.5rem; }
.mega__intro p { color: var(--ink-2); font-size: .94rem; margin-top: .6rem; }
.mega__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 32px; }
.mega__group h3 { font: 700 .72rem var(--heading); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .6rem; }
.mega__link { display: flex; align-items: center; gap: .7em; padding: .5em .6em; margin-inline: -.6em; border-radius: var(--radius-s); font-size: .94rem; font-weight: 500; transition: background .2s, color .2s; }
.mega__link .i { color: var(--amber); }
.mega__link:hover { background: var(--sand); }
.mega__link.is-current { background: var(--sand-2); font-weight: 700; }

.nav__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; flex: none; }
.nav__icon:hover { background: rgba(255, 255, 255, .14); }
.nav.is-solid .nav__icon:hover, .nav.is-open .nav__icon:hover { background: var(--sand); }
.nav__cta { display: none; }
.nav__burger .i-close { display: none; }
.nav.is-open .nav__burger .i-close { display: block; }
.nav.is-open .nav__burger .i-open { display: none; }

.drawer { display: none; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; padding: 8px var(--gutter) 28px; background: var(--paper); color: var(--ink); }
.nav.is-open .drawer { display: block; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; font: 700 1.05rem var(--heading); cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .i { transition: transform .25s; color: var(--amber); }
.drawer details[open] summary .i { transform: rotate(180deg); }
.drawer h3 { font: 700 .7rem var(--heading); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 6px 0 4px; }
.drawer__group { padding-bottom: 12px; }
.drawer .btn { margin-top: 20px; }

@media (min-width: 1000px) {
    .menu { display: flex; }
    .nav__cta { display: inline-flex; padding: .65em 1.25em; }
    .nav__burger, .drawer { display: none !important; }
}
@media (max-width: 420px) { .brand__sub { display: none; } .brand__logo { width: 46px; height: 46px; } }

/* --- Crête du massif, entre deux sections --- */
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(44px, 7vw, 96px); background: var(--ridge, var(--paper)); -webkit-mask: url("../img/ridge.svg") bottom / 100% 100% no-repeat; mask: url("../img/ridge.svg") bottom / 100% 100% no-repeat; pointer-events: none; z-index: 2; }
.ridge-base, .hero::after, .page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--paper); z-index: 2; }
.ridge--sand { --ridge: var(--sand); }
.ridge--dark { --ridge: var(--emerald-deep); }
.motif { height: 24px; background: var(--amber); opacity: .85; -webkit-mask: url("../img/pattern.svg") repeat-x center / auto 24px; mask: url("../img/pattern.svg") repeat-x center / auto 24px; }

/* --- Héros d'accueil --- */
.hero { position: relative; min-height: min(100svh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--emerald-deep); isolation: isolate; }
.hero__photo { position: absolute; inset: -6% 0; z-index: -3; background: center / cover no-repeat; filter: saturate(.82); animation: drift 26s var(--ease) infinite alternate; will-change: transform; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(12, 8, 18, .72) 0%, rgba(12, 8, 18, .34) 46%, rgba(12, 8, 18, 0) 75%), linear-gradient(180deg, rgba(20, 10, 30, .55) 0%, rgba(20, 10, 30, .1) 36%, rgba(4, 30, 22, .78) 100%); }
.hero__sun { position: absolute; z-index: -1; right: clamp(-90px, 6vw, 110px); top: 15%; width: clamp(180px, 30vw, 430px); aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, var(--sun), rgba(217, 119, 6, .05)); mix-blend-mode: soft-light; }
.hero__body { padding-block: calc(var(--nav-h) + 40px) clamp(120px, 15vw, 190px); max-width: 860px; }
.hero h1 { font-size: clamp(3rem, 9vw, 7rem); line-height: .96; letter-spacing: -.035em; margin-top: 1rem; }
.hero h1 span { display: block; color: var(--sun); }
.hero__lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: rgba(255, 255, 255, .88); margin-top: 1.25rem; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.9rem; }
.hero__coords { position: absolute; right: var(--gutter); bottom: clamp(100px, 13vw, 170px); writing-mode: vertical-rl; font: 600 .74rem var(--heading); letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .75); display: none; }
@media (min-width: 900px) { .hero__coords { display: block; } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12) translateY(-1.5%); } }

/* --- Chiffres --- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--paper); padding: clamp(18px, 3vw, 30px); }
.stat__value { display: block; font: 800 clamp(1.7rem, 3.4vw, 2.7rem)/1.05 var(--heading); letter-spacing: -.03em; color: var(--emerald); }
.stat__label { display: block; margin-top: .4rem; color: var(--ink-2); font-size: .92rem; }
.section--dark .stats { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .14); }
.section--dark .stat { background: var(--emerald-deep); }
.section--dark .stat__value { color: var(--sun); }
.section--dark .stat__label { color: var(--white-70); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.stats--lift { position: relative; z-index: 3; margin-top: clamp(-70px, -5vw, -40px); box-shadow: var(--shadow); }

/* --- Cartes --- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; height: 100%; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--sand-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--earth); background: linear-gradient(160deg, var(--sand-2), var(--sand-3)); }
.card__placeholder .i { width: 44px; height: 44px; opacity: .55; }
.card__badge { position: absolute; left: 12px; top: 12px; background: var(--paper); color: var(--ink); padding: .32em .75em; border-radius: 999px; font: 700 .72rem var(--heading); z-index: 1; }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; gap: .5rem; }
.card__eyebrow { font: 700 .7rem var(--heading); letter-spacing: .13em; text-transform: uppercase; color: var(--amber-deep); }
.card__title { font-size: 1.16rem; line-height: 1.22; font-weight: 700; letter-spacing: -.01em; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__subtitle { font-style: italic; color: var(--ink-3); font-size: .9rem; }
.card__summary { color: var(--ink-2); font-size: .93rem; line-height: 1.55; }
.card__meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--ink-3); font-size: .83rem; }
.card__meta span { display: inline-flex; align-items: center; gap: .4em; }
.card__foot { margin-top: auto; padding-top: .5rem; }
.card--arch { background: transparent; border: 0; overflow: visible; }
.card--arch:hover { box-shadow: none; }
.card--arch .card__media { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); }
.card--arch .card__badge { left: 50%; top: auto; bottom: 12px; transform: translateX(-50%); white-space: nowrap; }
.card--arch .card__body { padding-inline: 4px; text-align: center; align-items: center; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 280px); gap: 24px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--sand-3) transparent; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.rail > * { scroll-snap-align: start; }
.rail__nav { display: flex; gap: 8px; }
.rail__btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background .2s, color .2s; }
.rail__btn:hover { background: var(--ink); color: #fff; }

/* --- En-tête de page intérieure --- */
.page-hero { position: relative; color: #fff; background: var(--emerald-deep); overflow: hidden; isolation: isolate; }
.page-hero__photo { position: absolute; inset: -8% 0; z-index: -2; background: center / cover no-repeat; will-change: transform; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 12, 8, .62), rgba(4, 40, 30, .78)); }
.page-hero__body { padding-block: calc(var(--nav-h) + clamp(44px, 7vw, 90px)) clamp(90px, 12vw, 150px); max-width: 880px; }
.page-hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); line-height: 1.03; margin-top: .8rem; text-wrap: balance; overflow-wrap: anywhere; }
.page-hero__lead { color: rgba(255, 255, 255, .88); margin-top: 1rem; font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 60ch; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35em .5em; font-size: .84rem; color: rgba(255, 255, 255, .8); margin-bottom: 1.3rem; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs .i { width: .85em; height: .85em; opacity: .7; }

/* --- Filtres et recherche --- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-bottom: clamp(26px, 4vw, 44px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: .5em 1.05em; border-radius: 999px; border: 1.5px solid var(--line); font: 600 .88rem var(--heading); transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.searchbox { display: flex; align-items: center; gap: .5em; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: .2em .25em .2em 1em; min-width: min(100%, 320px); flex: 0 1 360px; transition: border-color .2s; }
.searchbox:focus-within { border-color: var(--amber); }
.searchbox input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; padding: .45em 0; }
.searchbox button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: #fff; flex: none; }

.empty { text-align: center; padding: clamp(40px, 7vw, 80px) 20px; border: 1.5px dashed var(--sand-3); border-radius: var(--radius); }
.empty__sun { width: 74px; height: 37px; border-radius: 74px 74px 0 0; background: var(--sun); margin: 0 auto 1rem; }
.empty h2 { font-size: 1.35rem; }
.empty p { color: var(--ink-2); margin-top: .5rem; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 44px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding-inline: 10px; display: inline-grid; place-items: center; border-radius: 999px; border: 1.5px solid var(--line); font: 600 .9rem var(--heading); }
.pagination a:hover { border-color: var(--ink); }
.pagination .is-current { background: var(--amber); border-color: var(--amber); color: #fff; }

/* --- Page de détail : gabarit unique --- */
.detail { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 980px) { .detail { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .detail--full { grid-template-columns: minmax(0, 820px); justify-content: center; } }
.aside { display: grid; gap: 18px; }
@media (min-width: 980px) { .aside { position: sticky; top: calc(var(--nav-h) + 20px); } }
.panel { background: var(--sand); border-radius: var(--radius); padding: 24px; }
.panel h2 { font-size: 1.1rem; margin-bottom: .9rem; }
.facts { display: grid; gap: 14px; }
.fact { display: flex; gap: 12px; }
.fact__icon { width: 36px; height: 36px; display: grid; place-items: center; background: var(--paper); border-radius: 50%; color: var(--amber-deep); flex: none; }
.fact__label { display: block; font-size: .78rem; color: var(--ink-3); }
.fact__value { display: block; font-weight: 600; overflow-wrap: anywhere; }
.feature-img { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: clamp(24px, 4vw, 40px); background: var(--sand-2); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .feature-img { border-radius: 160px 160px var(--radius) var(--radius); } }

/* --- Texte mis en forme (CKEditor) --- */
.rich { font-size: 1.05rem; line-height: 1.78; color: var(--ink-2); overflow-wrap: break-word; }
.rich > * + * { margin-top: 1.1em; }
.rich h1, .rich h2, .rich h3, .rich h4 { color: var(--ink); margin-top: 1.7em; line-height: 1.2; }
.rich > :first-child { margin-top: 0; }
.rich h1, .rich h2 { font-size: 1.65rem; }
.rich h3 { font-size: 1.32rem; }
.rich h4 { font-size: 1.1rem; }
.rich a { color: var(--amber-deep); text-decoration: underline; text-underline-offset: .18em; }
.rich strong, .rich b { color: var(--ink); }
.rich ul, .rich ol { padding-left: 1.4em; }
.rich ul { list-style: none; }
.rich ul > li { position: relative; }
.rich ul > li::before { content: ""; position: absolute; left: -1.25em; top: .72em; width: 12px; height: 6px; background: var(--sun); border-radius: 12px 12px 0 0; }
.rich ol { list-style: decimal; }
.rich li + li { margin-top: .4em; }
.rich blockquote { margin-inline: 0; padding: 1.1em 1.4em; background: var(--sand); border-left: 4px solid var(--amber); border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: 1.1rem; color: var(--ink); }
.rich img { border-radius: var(--radius-s); }
.rich figure { margin: 1.6em 0; }
.rich figure.image { display: table; margin-inline: auto; }
.rich figure.image img { margin-inline: auto; }
.rich figure.image-style-side, .rich figure.image-style-align-right { float: right; margin: .4em 0 1em 1.6em; max-width: 46%; }
.rich figure.image-style-align-left { float: left; margin: .4em 1.6em 1em 0; max-width: 46%; }
.rich figcaption { font-size: .86rem; text-align: center; color: var(--ink-3); margin-top: .5em; display: table-caption; caption-side: bottom; }
.rich figure.table { overflow-x: auto; }
.rich table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.rich th, .rich td { padding: .65em .85em; border: 1px solid var(--line); text-align: left; }
.rich th { background: var(--sand); color: var(--ink); }
.rich mark { background: #FDE9C4; padding: 0 .15em; }
.rich .video { display: block; aspect-ratio: 16 / 9; }
.rich .video iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius-s); }
.rich::after { content: ""; display: block; clear: both; }
@media (max-width: 600px) { .rich figure.image-style-side, .rich figure.image-style-align-right, .rich figure.image-style-align-left { float: none; max-width: 100%; margin: 1.4em 0; } }

/* --- Documents --- */
.docs { display: grid; gap: 12px; }
.doc { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .25s var(--ease); }
.doc:hover { border-color: var(--amber); transform: translateX(4px); }
.doc__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--sand); color: var(--amber-deep); flex: none; }
.doc__title { font-weight: 700; font-family: var(--heading); line-height: 1.25; }
.doc__meta { font-size: .86rem; color: var(--ink-3); margin-top: .15rem; }
.doc__go { margin-left: auto; color: var(--amber-deep); flex: none; }

/* --- Équipe --- */
.team { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.member { text-align: center; }
.member__photo { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); background: var(--sand-2); overflow: hidden; display: grid; place-items: center; color: var(--earth); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__photo .i { width: 48px; height: 48px; opacity: .5; }
.member h3 { font-size: 1.06rem; margin-top: 1rem; }
.member__role { font-size: .88rem; color: var(--amber-deep); font-weight: 600; margin-top: .2rem; }
.member__bio { font-size: .92rem; color: var(--ink-2); margin-top: .5rem; text-align: left; }

/* --- Mosaïque et galerie --- */
.mosaic { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(130px, 19vw, 240px); }
.mosaic > * { position: relative; border-radius: var(--radius-s); overflow: hidden; background: var(--sand-2); display: block; }
.mosaic > :nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; border-top-left-radius: 200px; border-top-right-radius: 200px; }
@media (min-width: 800px) { .mosaic { grid-template-columns: repeat(4, 1fr); } }
/* Peu de photos : pas de trous dans la grille */
.mosaic:not(:has(> :nth-child(4))) { grid-template-columns: 2fr 1fr; }
.mosaic:not(:has(> :nth-child(4))) > :first-child { grid-column: span 1; }
.mosaic:not(:has(> :nth-child(3))) > :nth-child(2) { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mosaic a:hover img, .mosaic button:hover img { transform: scale(1.06); }
.mosaic__caption { position: absolute; inset: auto 0 0; padding: 26px 14px 12px; color: #fff; font-size: .86rem; font-weight: 600; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); }
.mosaic__caption small { display: block; font-weight: 400; opacity: .85; }
.mosaic button { padding: 0; width: 100%; height: 100%; cursor: zoom-in; }

.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(15, 10, 6, .94); display: none; align-items: center; justify-content: center; padding: 56px 16px 16px; color: #fff; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 130px); border-radius: var(--radius-s); object-fit: contain; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox figcaption { margin-top: 10px; font-size: .92rem; color: rgba(255, 255, 255, .85); }
.lightbox__btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* --- Blocs de contenu --- */
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--narrow { grid-template-columns: 1.3fr 1fr; } }
.arch-img { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand-2); max-width: 520px; margin-inline: auto; width: 100%; }
.arch-img img { width: 100%; height: 100%; object-fit: cover; }
.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.feature { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.section--sand .feature { border-color: transparent; }
.feature__icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--sand-2); color: var(--amber-deep); margin-bottom: 1rem; }
.section--sand .feature__icon { background: var(--sand); }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--ink-2); font-size: .94rem; margin-top: .45rem; }
.checks { display: grid; gap: .6rem; margin-top: 1rem; }
.checks li { display: flex; gap: .65em; color: var(--ink-2); }
.checks .i { color: var(--emerald); margin-top: .22em; }
.section--dark .checks li { color: rgba(255, 255, 255, .85); }
.section--dark .checks .i { color: var(--sun); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.tags li { padding: .3em .85em; border-radius: 999px; background: var(--sand-2); font-size: .85rem; font-weight: 600; }
.map-frame { width: 100%; border: 0; border-radius: var(--radius); aspect-ratio: 16 / 9; display: block; background: var(--sand-2); }

.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 20px; }
.faq summary { padding: 16px 0; font: 700 1rem var(--heading); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--amber); transition: transform .25s; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding-bottom: 18px; color: var(--ink-2); }

/* --- Appel à l'action --- */
.cta { position: relative; overflow: hidden; border-radius: clamp(24px, 4vw, 40px); padding: clamp(40px, 7vw, 84px) clamp(22px, 6vw, 72px); background: var(--emerald-deep); color: #fff; isolation: isolate; }
.cta::before { content: ""; position: absolute; z-index: -1; right: -60px; bottom: 0; width: clamp(220px, 40vw, 520px); aspect-ratio: 2 / 1; background: linear-gradient(180deg, var(--sun), var(--amber)); border-radius: 999px 999px 0 0; opacity: .92; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 18ch; }
.cta p { color: var(--white-70); margin-top: .8rem; max-width: 46ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
@media (max-width: 700px) { .cta::before { opacity: .28; } }

/* --- Partenaires --- */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(36px, 6vw, 72px); width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: 66px; width: auto; max-width: 170px; object-fit: contain; filter: saturate(.8); transition: filter .25s, transform .25s; }
.marquee a:hover img { filter: none; transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Formulaires --- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.field .req { color: var(--amber-deep); }
.field input, .field select, .field textarea { width: 100%; padding: .75em .95em; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-s); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(217, 119, 6, .16); }
.field__error { color: #B3261E; font-size: .84rem; margin-top: .3rem; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: #B3261E; }
.field__hint { color: var(--ink-3); font-size: .82rem; margin-top: .3rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dropzone { position: relative; border: 2px dashed var(--sand-3); border-radius: var(--radius); padding: 30px 18px; text-align: center; background: var(--paper); cursor: pointer; transition: border-color .2s, background .2s; display: block; }
.dropzone:hover, .dropzone.is-over { border-color: var(--amber); background: var(--sand); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone img { max-height: 240px; margin: 0 auto 10px; border-radius: var(--radius-s); }
.dropzone .i { width: 34px; height: 34px; margin: 0 auto 8px; color: var(--amber); }

.toast-zone { position: fixed; top: calc(var(--nav-h) + 12px); right: 16px; left: 16px; z-index: 130; display: grid; justify-items: end; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; max-width: 440px; padding: 14px 16px; background: var(--ink); color: #fff; border-radius: var(--radius-s); box-shadow: var(--shadow); font-size: .94rem; animation: toast-in .4s var(--ease); }
.toast--success { background: var(--emerald); }
.toast--error { background: #9B2C22; }
.toast button { color: inherit; opacity: .8; margin-left: 6px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

/* --- Pied de page --- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding-top: clamp(50px, 7vw, 86px); font-size: .93rem; position: relative; }
.footer__top { display: grid; gap: 36px; grid-template-columns: 1fr; padding-bottom: 42px; }
@media (min-width: 700px) { .footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer__top { grid-template-columns: 1.5fr repeat(5, 1fr); gap: 32px; } }
.footer h2 { color: #fff; font: 700 .86rem var(--heading); letter-spacing: .04em; margin-bottom: .85rem; }
.footer a:hover { color: var(--sun); }
.footer li + li { margin-top: .45rem; }
.footer__brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: .9rem; }
.footer__brand img { width: 56px; height: 56px; border-radius: 50%; background: #fff; }
.footer__brand strong { font: 800 1.1rem var(--heading); }
.contact-list li { display: flex; gap: .6em; }
.contact-list .i { color: var(--sun); margin-top: .22em; }
.socials { display: flex; gap: 8px; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .24); transition: background .2s, color .2s; }
.socials a:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.footer__news { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: center; padding-block: 26px; border-block: 1px solid rgba(255, 255, 255, .12); }
.footer__news h2 { margin: 0; font-size: 1.05rem; }
.footer__news p { font-size: .9rem; margin-top: .2rem; }
.news-form { display: flex; gap: 8px; background: rgba(255, 255, 255, .08); padding: 5px; border-radius: 999px; max-width: 460px; width: 100%; justify-self: end; }
.news-form input { flex: 1; min-width: 0; padding: .55em 1em; background: transparent; border: 0; outline: 0; color: #fff; }
.news-form input::placeholder { color: rgba(255, 255, 255, .6); }
.news-form .btn { padding: .6em 1.1em; }
@media (min-width: 760px) { .footer__news { grid-template-columns: 1fr 1fr; } }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px; font-size: .84rem; }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: var(--amber); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, background .2s, visibility .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--amber-deep); }

/* --- Plan du site --- */
.sitemap-grid { display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.sitemap-grid h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.sitemap-grid h3 { font: 700 .72rem var(--heading); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 1rem 0 .3rem; }
.sitemap-grid a:hover { color: var(--amber-deep); text-decoration: underline; }
.sitemap-grid li + li { margin-top: .3rem; }

/* --- Apparition au défilement (uniquement si le JavaScript tourne) --- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--reveal-i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
    .nav, .footer, .to-top, .progress, .ridge, .aside, .toast-zone { display: none !important; }
    .page-hero { background: none; color: #000; }
    .page-hero::before, .page-hero__photo { display: none; }
}
