/* ==========================================================================
   SLE – Schéma de Libéralisation des Échanges de la CEDEAO
   Mise en page plein écran · vert CEDEAO, or, terre de Sienne
   Lexend (titres) + Source Sans 3 (texte)
   ========================================================================== */
:root {
    --green: #00753a;
    --green-2: #0a8a47;
    --forest: #08321f;
    --forest-2: #0d4a2d;
    --brown: #993300;
    --brown-2: #b5512a;
    --gold: #f2b705;
    --gold-2: #ffd34d;
    --gold-soft: #fff6d6;
    --paper: #f5f6f1;
    --mist: #eaf1ec;
    --card: #ffffff;
    --ink: #142019;
    --muted: #5b685f;
    --line: #dbe3d7;
    --focus: 0 0 0 3px rgba(242, 183, 5, .6);
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;
    --shadow: 0 1px 2px rgba(8, 50, 31, .06), 0 10px 30px -14px rgba(8, 50, 31, .25);
    --shadow-lg: 0 30px 60px -30px rgba(8, 50, 31, .45);
    --gutter: clamp(1rem, 4.5vw, 5.5rem);
    --font-head: "Lexend", "Segoe UI", system-ui, sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    /* motif tissé (inspiré du pagne) : fines diagonales or et vert */
    --weave: repeating-linear-gradient(135deg, rgba(242,183,5,.07) 0 2px, transparent 2px 14px),
             repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px);
}

/* ---------- Plein écran : toutes les sections occupent la largeur ---------- */
.container-xl {
    max-width: none !important;
    width: 100%;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.page-body.narrow { max-width: 1100px !important; margin-inline: auto; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: .95rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--forest); line-height: 1.2; letter-spacing: -.01em; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--brown); }
img { max-width: 100%; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--gold); color: var(--forest); padding: 8px 14px; font-weight: 700; }
.skip-link:focus { left: 8px; }

.section-title {
    font-size: clamp(1.35rem, 1rem + 1.1vw, 1.95rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 2.25rem;
}
.section-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 5px;
    margin: .75rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--green) 0 33%, var(--gold) 33% 66%, var(--brown) 66%);
}
.section-title.text-start::after { margin-left: 0; }
.section-title.light { color: #fff; }

/* ---------- Boutons ---------- */
.btn-sle, .btn-sle-outline {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--font-head); font-weight: 500; font-size: .975rem;
    padding: .8rem 1.4rem; border-radius: 999px;
    text-decoration: none; border: 2px solid var(--green); cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sle { background: var(--green); color: #fff; }
.btn-sle:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn-sle-outline { background: #fff; color: var(--green); }
.btn-sle-outline:hover { background: var(--green); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--forest); }
.btn-gold:hover { background: #fff; border-color: #fff; color: var(--forest); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.link-more { display: inline-block; margin-top: 1rem; font-weight: 600; text-decoration: none; }
.link-more::after { content: " ›"; }
.link-more:hover { text-decoration: underline; }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--forest); color: #d6e9dd; font-size: .875rem; }
.topbar-inner { display: flex; align-items: center; gap: 1rem; min-height: 40px; }
.topbar-date { white-space: nowrap; text-transform: capitalize; opacity: .9; }
.topbar-notice { flex: 1; min-width: 0; display: flex; align-items: center; gap: .5rem; overflow: hidden; }
.topbar-notice a, .topbar-notice span { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* annonce défilante */
.ticker { flex: 1; min-width: 0; overflow: hidden; }
.ticker-track { display: flex; width: max-content; }
.ticker-item { flex: none; }
.ticker-copy { display: none; }
.ticker.is-scrolling { -webkit-mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent); }
.ticker.is-scrolling .ticker-item { overflow: visible; text-overflow: clip; padding-right: 4rem; }
.ticker.is-scrolling .ticker-copy { display: inline; }
.ticker.is-scrolling .ticker-track { animation: ticker var(--ticker-duration, 20s) linear infinite; }
.ticker.is-scrolling:hover .ticker-track, .ticker.is-scrolling:focus-within .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .ticker.is-scrolling .ticker-track { animation: none; }
    .ticker.is-scrolling .ticker-copy { display: none; }
    .ticker.is-scrolling .ticker-track { width: 100%; }
    .ticker.is-scrolling .ticker-item { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-right: 0; }
    .ticker.is-scrolling { -webkit-mask-image: none; mask-image: none; }
}
.topbar-notice i { color: var(--gold); }
.topbar-notice.level-danger i { color: #ff8a65; }
.topbar-more { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: .75rem; padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.lang-switch { margin-left: auto; display: flex; gap: 2px; background: rgba(255,255,255,.08); padding: 3px; border-radius: 99px; }
.lang-switch a { color: #cfe3d6; text-decoration: none; font-weight: 700; font-size: .8rem; padding: 3px 10px; border-radius: 99px; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.active { background: var(--gold); color: var(--forest); }

/* ---------- En-tête ---------- */
.site-header { background: #fff; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; min-width: 0; }
.brand img { width: 68px; height: 68px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-title { font-family: var(--font-head); font-weight: 600; color: var(--forest); font-size: clamp(.95rem, .7rem + .8vw, 1.35rem); line-height: 1.15; }
.brand-sub { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.header-search { margin-left: auto; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); padding: 4px; }
.header-search input { border: 0; background: transparent; padding: .45rem .9rem; width: 260px; font-size: .95rem; }
.header-search input:focus { outline: none; }
.header-search:focus-within { box-shadow: var(--focus); }
.header-search button { border: 0; background: var(--green); color: #fff; width: 38px; height: 38px; border-radius: 50%; }
.header-search button:hover { background: var(--forest); }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: .5rem; background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: .6rem 1rem; font-family: var(--font-head); font-size: .95rem; }

/* ---------- Navigation (collante) ---------- */
.main-nav { background: var(--green); position: sticky; top: 0; z-index: 1020; box-shadow: 0 6px 20px -12px rgba(0,0,0,.45); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list > li > a {
    display: block; color: #fff; text-decoration: none;
    font-family: var(--font-head); font-weight: 500; font-size: .95rem;
    padding: 1.05rem 1.1rem; position: relative;
}
.nav-list > li > a:hover { background: rgba(0,0,0,.14); color: #fff; }
.nav-list > li > a.active { background: rgba(0,0,0,.18); color: #fff; }
.nav-list > li > a.active::after { content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--gold); }
.main-nav .dropdown-menu { border: 0; border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: var(--shadow); padding: .5rem 0; margin-top: 0 !important; min-width: 240px; border-top: 3px solid var(--gold); }
.main-nav .dropdown-item { padding: .6rem 1.2rem; font-size: .975rem; }
.main-nav .dropdown-item:hover { background: var(--mist); color: var(--green); }

/* ---------- Ruban des États membres ---------- */
.ribbon { display: flex; height: 6px; }
.ribbon span { flex: 1; background: var(--c); }

/* ---------- Bandeau des pages intérieures ---------- */
.page-hero {
    position: relative; color: #fff; padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
    background:
        var(--weave),
        linear-gradient(100deg, rgba(8,50,31,.97) 0%, rgba(8,50,31,.88) 45%, rgba(0,117,58,.55) 100%),
        var(--hero, none) center / cover no-repeat,
        var(--forest);
    overflow: hidden;
}
.page-hero::after {
    content: ""; position: absolute; right: -8vw; top: -30%; width: 45vw; aspect-ratio: 1;
    border-radius: 50%; border: 2px dashed rgba(242,183,5,.25); pointer-events: none;
}
.page-hero h1 { color: #fff; font-size: clamp(1.3rem, 1rem + 1.3vw, 2rem); font-weight: 600; max-width: 48ch; margin: .6rem 0 0; }
.page-lead { max-width: 62ch; margin: 1rem 0 0; color: #dcebe1; font-size: 1rem; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; font-size: .925rem; color: #bcd7c6; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--gold); }
.crumbs a { color: #fff; }

.page-body { padding-top: clamp(2.5rem, 4vw, 4rem); padding-bottom: clamp(3rem, 5vw, 5rem); }

/* ==========================================================================
   Accueil
   ========================================================================== */
/* 1. Bandeau plein écran */
.home-hero {
    position: relative; isolation: isolate; color: #fff;
    padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(5rem, 8vw, 7rem);
    background:
        var(--weave),
        radial-gradient(ellipse at 85% 10%, rgba(242,183,5,.22), transparent 45%),
        radial-gradient(ellipse at 10% 90%, rgba(0,117,58,.55), transparent 55%),
        linear-gradient(120deg, rgba(8,50,31,.96), rgba(13,74,45,.9)),
        var(--hero, none) center / cover no-repeat,
        var(--forest);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(320px, 1fr); gap: clamp(1.25rem, 2.5vw, 2.5rem); align-items: stretch; }
.hero-main { min-width: 0; display: flex; flex-direction: column; }

/* le diaporama prend toute la hauteur de la ligne : son bas s'aligne sur celui de « Actualités récentes » */
.slider { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--forest); flex: 1; min-height: clamp(380px, 58vh, 640px); box-shadow: var(--shadow-lg); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 2rem 3.6rem;
    background: linear-gradient(180deg, transparent, rgba(8,50,31,.55) 45%, rgba(8,50,31,.85));
    color: #fff;
}
.slide-cat { display: inline-block; background: var(--gold); color: var(--forest); font-weight: 700; font-size: .825rem; padding: 3px 10px; border-radius: 99px; }
.slide-caption h2 { color: #fff; font-size: clamp(.85rem, .75rem + .35vw, 1.05rem); line-height: 1.35; margin: .5rem 0 .3rem; max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.slide-caption h2 a { color: inherit; text-decoration: none; }
.slide-caption h2 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.slide-caption time { color: #cfe3d6; font-size: .8rem; }
.slider-controls { position: absolute; z-index: 2; right: 1.4rem; bottom: 1.3rem; display: flex; align-items: center; gap: .6rem; }
.slider-controls > button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(8,50,31,.55); color: #fff; backdrop-filter: blur(6px); }
.slider-controls > button:hover { background: var(--gold); border-color: var(--gold); color: var(--forest); }
.slider-dots { display: flex; gap: 6px; }
.slider-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); transition: width .25s; }
.slider-dots button[aria-current="true"] { background: var(--gold); width: 28px; border-radius: 5px; }

.hero-intro { height: 100%; min-height: clamp(360px, 52vh, 600px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(1rem, 3vw, 3rem) 0; }
.hero-intro h1 { color: #fff; font-size: clamp(1.7rem, 1.1rem + 2.2vw, 3.2rem); font-weight: 600; line-height: 1.05; letter-spacing: -.025em; max-width: 18ch; margin-bottom: 1.25rem; }
.hero-intro p { color: #d9eadf; font-size: clamp(.95rem, .9rem + .25vw, 1.1rem); max-width: 52ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-latest {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-radius: var(--r-lg); padding: 1.6rem 1.5rem; color: #fff;
    display: flex; flex-direction: column;
}
.hero-latest h2 { color: #fff; font-size: 1rem; margin-bottom: 1.2rem; padding-bottom: .9rem; border-bottom: 2px solid var(--gold); }
.hero-latest ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; flex: 1; align-content: start; }
.hero-latest a { display: flex; gap: .9rem; text-decoration: none; color: #fff; }
.hero-latest img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.hero-latest strong { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .8rem; line-height: 1.35; font-weight: 600; }
.hero-latest a:hover strong { color: var(--gold-2); }
.hero-latest time { font-size: .75rem; color: #b9d4c3; }
.hero-latest-empty { color: #c6dccf; }
.hero-latest .link-more { color: var(--gold-2); }

/* Corridor des États membres : la signature du site */
.corridor { margin-top: clamp(2rem, 4vw, 3.25rem); }
.corridor ul {
    list-style: none; margin: 0; padding: 0; position: relative;
    display: flex; justify-content: space-between; gap: .5rem;
}
.corridor ul::before {
    content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 12px, transparent 12px 20px);
    transform-origin: left; animation: route 1.6s ease-out .2s both;
}
.corridor li { position: relative; flex: 0 0 auto; animation: stop-in .5s ease-out both; animation-delay: calc(.25s + var(--i) * .08s); }
.corridor a { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-decoration: none; color: #d6e9dd; }
.corridor img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--forest), 0 0 0 5px rgba(242,183,5,.6); transition: transform .2s; }
.corridor span { font-size: .78rem; font-weight: 600; white-space: nowrap; opacity: .85; }
.corridor a:hover img, .corridor a:focus-visible img { transform: scale(1.15); }
.corridor a:hover span { color: var(--gold-2); opacity: 1; }
@keyframes route { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stop-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 2. Objectifs : cartes à cheval sur le bandeau */
.features { position: relative; z-index: 2; margin-top: clamp(-4rem, -5vw, -2.5rem); padding-bottom: clamp(1rem, 2vw, 1.5rem); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.feature { padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 2.5vw, 2.5rem); background: #fff; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature > i { font-size: 1.5rem; color: var(--green); width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; background: var(--mist); margin-bottom: 1.2rem; }
.feature h3 { font-size: 1.02rem; margin-bottom: .6rem; }
.feature p { color: var(--muted); margin: 0; }
.feature-accent { background: var(--brown); background-image: var(--weave); }
.feature-accent h3, .feature-accent p { color: #fff; }
.feature-accent p { opacity: .92; }
.feature-accent > i { background: rgba(255,255,255,.14); color: var(--gold); }

/* 3. À propos */
.about-home { padding: clamp(1.5rem, 2.5vw, 2.5rem) 0 clamp(3.5rem, 6vw, 6rem); }
.about-figure { margin: 0; position: relative; }
.about-figure img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.about-figure::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 3px solid var(--gold); border-radius: var(--r-lg); z-index: -1; }
.about-flags { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 18px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.about-flags img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--line); }
.prose { max-width: 72ch; }
.prose p, .prose li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.prose p { margin-bottom: 1rem; }
.prose img { border-radius: var(--r-sm); height: auto; }
.prose h2, .prose h3 { margin-top: 1.6rem; }
.prose blockquote { border-left: 4px solid var(--gold); padding-left: 1rem; color: var(--muted); }
.about-home .prose { font-size: 1.1rem; line-height: 1.75; max-width: none; }
.about-home .btn-sle { margin-top: .75rem; }

/* 4. Procédure (séquence) */
.procedure { background: #fff; padding: clamp(3.5rem, 6vw, 6rem) 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 2rem); position: relative; }
.steps:not(.vertical)::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--green) 0 10px, transparent 10px 18px); }
.step { position: relative; background: var(--paper); border-radius: var(--r-lg); padding: 4.2rem 1.5rem 1.8rem; text-align: center; border: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.step:hover { background: #fff; border-color: var(--line); }
.step-num {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--brown); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem;
    box-shadow: 0 0 0 8px #fff;
}
.step-icon { font-size: 1.9rem; color: var(--green); margin-bottom: .8rem; display: block; }
.step h3 { font-size: .98rem; }
.step p { color: var(--muted); font-size: .875rem; margin: 0; }
.steps.vertical { grid-template-columns: 1fr; gap: 1rem; }
.steps.vertical .step { display: flex; gap: 1rem; text-align: left; padding: 1.25rem; }
.steps.vertical .step-num { position: static; transform: none; flex: none; box-shadow: none; }
.procedure-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.75rem; }

/* 5. Actualités / cartes */
.home-news { padding: clamp(3.5rem, 6vw, 6rem) 0; background: var(--paper); }
.block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.block-head .section-title { margin-bottom: 0; }
.tabs-inline { display: flex; gap: .4rem; }
.tabs-inline a { font-size: .9rem; font-weight: 600; text-decoration: none; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 99px; background: #fff; }
.tabs-inline a:hover { border-color: var(--green); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.news-grid.three { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.post-card { background: var(--card); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card { position: relative; }
/* catégorie de l'article, en haut de l'image */
.post-badge { position: absolute; top: .85rem; left: .85rem; z-index: 2; max-width: calc(100% - 1.7rem); padding: .3rem .8rem; border-radius: 99px; background: var(--green); color: #fff; font-family: var(--font-head); font-size: .75rem; font-weight: 600; letter-spacing: .02em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid rgba(255, 255, 255, .45); box-shadow: 0 4px 12px -4px rgba(8, 50, 31, .55); pointer-events: none; }
.post-badge.type-rapport { background: var(--brown); }
.post-list .post-badge { max-width: 40%; }
.post-media { display: block; aspect-ratio: 16 / 10; background: var(--mist); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-media img { transform: scale(1.04); }
.media-placeholder { display: grid; place-items: center; height: 100%; font-size: 2rem; color: #a9b8ad; }
.post-body { padding: 1.2rem 1.35rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.post-body h3 { font-size: .92rem; margin: .45rem 0 .55rem; }
.post-body h3 a { color: var(--forest); text-decoration: none; }
.post-body h3 a:hover { color: var(--green); text-decoration: underline; }
.post-body p { color: var(--muted); margin: 0; font-size: .875rem; }
.btn-more { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1rem; border: 1px solid var(--green); border-radius: 999px; font-family: var(--font-head); font-size: .8rem; font-weight: 500; color: var(--green); text-decoration: none; transition: background-color .2s, color .2s; }
.post-body > p:not(.post-meta) { margin-bottom: 1rem; }
.post-body > h3 { margin-bottom: 1rem; }
.event-body .btn-more { margin-top: .7rem; }
.btn-more i { font-size: .75rem; transition: transform .25s; }
.btn-more:hover, .btn-more:focus-visible { background: var(--green); color: #fff; }
.btn-more:hover i, .btn-more:focus-visible i { transform: translateX(4px); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font-size: .875rem; color: var(--muted); margin-bottom: .25rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--brown); background: #fbeee7; padding: 2px 10px; border-radius: 99px; }

.post-list { display: grid; gap: 1.5rem; }
.post-list .post-card { flex-direction: row; }
.post-list .post-card:hover { transform: none; }
.post-list .post-media { flex: 0 0 38%; aspect-ratio: auto; min-height: 220px; }
.post-list .post-body { align-self: center; padding: 1.5rem 1.75rem; }
.post-list .post-body h3 { font-size: 1.05rem; }

/* ---------- Onglets & filtres ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 2px solid var(--line); margin-bottom: 1.75rem; }
.tabs a { padding: .75rem 1.2rem; font-family: var(--font-head); font-weight: 500; text-decoration: none; color: var(--muted); margin-bottom: -2px; border-bottom: 3px solid transparent; }
.tabs a:hover { color: var(--green); }
.tabs a.active { color: var(--forest); border-bottom-color: var(--brown); }

.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.2rem; margin-bottom: 1.75rem; box-shadow: var(--shadow); }
.fb-field { display: flex; flex-direction: column; gap: .25rem; min-width: 150px; }
.fb-field.grow { flex: 1 1 240px; }
.fb-field label { font-size: .825rem; font-weight: 600; color: var(--muted); }
.fb-field input, .fb-field select { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .6rem .75rem; background: var(--paper); font-size: .975rem; }
.fb-field input:focus, .fb-field select:focus { outline: none; box-shadow: var(--focus); }
.filter-note { color: var(--muted); }

/* ---------- Événements ---------- */
.event-list, .event-stack { display: grid; gap: 1rem; }
.event-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: var(--r-md); padding: 1.1rem; box-shadow: var(--shadow); border-left: 5px solid var(--green); }
.event-card.status-cancelled { border-left-color: #c0392b; }
.event-card.status-postponed { border-left-color: var(--gold); }
.event-card.status-done { border-left-color: #9aa79e; }
.date-tile { flex: none; width: 68px; text-align: center; background: var(--forest); color: #fff; border-radius: var(--r-sm); padding: .5rem 0; line-height: 1.1; font-size: .8rem; text-transform: capitalize; }
.date-tile b { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--gold); }
.date-tile small { display: block; opacity: .75; }
.event-body { flex: 1; min-width: 0; }
.event-body h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.event-body h3 a { color: var(--forest); text-decoration: none; }
.event-body h3 a:hover { text-decoration: underline; color: var(--green); }
.event-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--muted); font-size: .9rem; margin: 0 0 .4rem; }
.event-meta i { color: var(--green); margin-right: 3px; }
.event-tags { margin: 0; display: flex; gap: .4rem; }
.status { font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: #fdecea; color: #a52a1f; }
.status-postponed .status { background: var(--gold-soft); color: #7a5c00; }
.status-done .status { background: #eef1ec; color: var(--muted); }
.event-thumb { width: 150px; height: 100px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.event-card.is-compact { box-shadow: none; border: 1px solid var(--line); border-left-width: 5px; }
.event-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.2rem; margin-bottom: 1.5rem; }
.event-facts dt { font-size: .825rem; color: var(--muted); font-weight: 600; }
.event-facts dd { margin: 0; font-weight: 600; text-transform: capitalize; }
.event-alert { padding: .85rem 1.1rem; border-radius: var(--r-sm); background: #fdecea; color: #a52a1f; font-weight: 600; }
.event-alert.status-postponed { background: var(--gold-soft); color: #7a5c00; }

/* ---------- Article ---------- */
.article-figure { margin: 1rem 0 1.75rem; }
.article-figure img { width: 100%; border-radius: var(--r-lg); max-height: 560px; object-fit: cover; }
.article-lead { font-size: 1.05rem; color: var(--forest); font-weight: 600; max-width: none; }
.article .prose { max-width: none; }
.lang-note { background: var(--gold-soft); padding: .65rem .95rem; border-radius: var(--r-sm); font-size: .95rem; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.prev-next a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.1rem; text-decoration: none; color: var(--forest); font-weight: 600; }
.prev-next a:hover { border-color: var(--green); }
.prev-next small { display: block; color: var(--muted); font-weight: 400; }
.pn-next { text-align: right; grid-column: 2; }
.related { margin-top: 2.5rem; }
.related > h2 { font-size: 1.15rem; margin-bottom: 1.2rem; }
.link-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.link-list a { text-decoration: none; font-weight: 600; }
.link-list i { color: var(--brown); margin-right: .4rem; }

/* ---------- Partage ---------- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; margin-top: 2rem; }
.share > span { font-family: var(--font-head); font-weight: 600; color: var(--forest); }
.share ul { list-style: none; display: flex; gap: .45rem; margin: 0; padding: 0; }
.share a, .share button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--forest); text-decoration: none; }
.share a:hover, .share button:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Barre latérale ---------- */
.sidebar { display: grid; gap: 1.75rem; position: sticky; top: 76px; }
.side-search { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; padding: 4px; }
.side-search input { flex: 1; border: 0; padding: .5rem .9rem; min-width: 0; }
.side-search input:focus { outline: none; }
.side-search:focus-within { box-shadow: var(--focus); }
.side-search button { border: 0; background: var(--green); color: #fff; width: 38px; height: 38px; border-radius: 50%; }
.side-block { background: #fff; border-radius: var(--r-md); padding: 1.35rem; border-top: 4px solid var(--green); box-shadow: var(--shadow); }
.side-block h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.side-posts, .side-events { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.side-posts a, .side-events a { display: flex; gap: .75rem; text-decoration: none; color: var(--ink); align-items: center; }
.side-posts img { width: 76px; height: 58px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.side-posts strong { display: block; font-size: .78rem; line-height: 1.35; font-weight: 600; }
.side-posts time { font-size: .8rem; color: var(--muted); }
.side-posts a:hover strong, .side-events a:hover span:last-child { color: var(--green); text-decoration: underline; }
.side-events .date-tile { width: 54px; padding: .3rem 0; }
.side-events .date-tile b { font-size: 1.2rem; }
.side-events span:last-child { font-size: .95rem; font-weight: 600; line-height: 1.35; }
.side-cta { background: var(--forest); background-image: var(--weave); border-top-color: var(--gold); color: #dcebe1; }
.side-cta h2 { color: #fff; }

/* ---------- FAQ ---------- */
.faq-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1.25rem; }
.faq-tools input { flex: 1 1 260px; border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1.1rem; background: #fff; }
.faq-tools input:focus { outline: none; box-shadow: var(--focus); }
.faq-actions { display: flex; gap: .5rem; }
.faq-actions button { background: none; border: 0; color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.faq-list { display: grid; gap: .7rem; }
.faq-item { background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; }
.faq-item h2 { margin: 0; font-size: 1rem; }
.faq-item h2 button { width: 100%; display: flex; align-items: center; gap: .9rem; text-align: left; background: none; border: 0; padding: 1.1rem 1.3rem; font-family: var(--font-head); font-weight: 500; color: var(--forest); font-size: 1.05rem; }
.faq-num { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--brown); font-size: .85rem; font-weight: 700; }
.faq-q { flex: 1; }
.faq-item h2 button i { color: var(--green); transition: transform .2s; }
.faq-item h2 button:not(.collapsed) { background: var(--green); color: #fff; }
.faq-item h2 button:not(.collapsed) i { transform: rotate(45deg); color: var(--gold); }
.faq-item h2 button:not(.collapsed) .faq-num { background: var(--gold); color: var(--forest); }
.faq-answer { padding: 1.25rem 1.5rem 1.5rem 4.4rem; max-width: 95ch; }
.faq-cta { margin-top: 2.5rem; padding: 1.6rem 1.8rem; border-radius: var(--r-md); background: var(--gold-soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-cta p { margin: 0; font-weight: 600; color: var(--forest); }

/* ---------- Documents ---------- */
.doc-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.doc-cats a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--forest); font-weight: 600; font-size: .95rem; }
.doc-cats a span { background: var(--paper); color: var(--muted); font-size: .8rem; padding: 0 7px; border-radius: 99px; }
.doc-cats a:hover { border-color: var(--green); }
.doc-cats a.active { background: var(--forest); border-color: var(--forest); color: #fff; }
.doc-cats a.active span { background: var(--gold); color: var(--forest); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 1rem; }
.doc-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.2rem 1.3rem; transition: border-color .2s, box-shadow .2s; }
.doc-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.doc-icon { font-size: 2.1rem; color: #c0392b; flex: none; margin-top: 2px; }
.doc-body { flex: 1; min-width: 0; }
.doc-body h2 { font-size: 1.04rem; margin: 0 0 .3rem; overflow-wrap: anywhere; }
.doc-body p { margin: 0 0 .4rem; color: var(--muted); font-size: .95rem; }
.doc-meta { display: flex; flex-wrap: wrap; gap: .25rem .8rem; font-size: .85rem !important; }
.doc-meta > * + *::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--line); margin-right: .8rem; vertical-align: middle; }
.btn-download { flex: none; display: inline-flex; align-items: center; gap: .45rem; background: var(--gold); color: var(--forest); font-weight: 700; font-size: .9rem; padding: .6rem 1rem; border-radius: 999px; text-decoration: none; }
.btn-download:hover { background: var(--forest); color: #fff; }
.doc-actions { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: .5rem; }
.doc-actions .btn-download, .btn-read { justify-content: center; }
.btn-read { display: inline-flex; align-items: center; gap: .45rem; background: #fff; color: var(--forest); border: 1.5px solid var(--green); font-weight: 700; font-size: .9rem; padding: .55rem 1rem; border-radius: 999px; text-decoration: none; transition: background-color .2s, color .2s; }
.btn-read:hover, .btn-read:focus-visible { background: var(--green); color: #fff; }

/* Visionneuse de documents */
.doc-viewer { position: fixed; inset: 0; z-index: 3000; background: rgba(5,22,13,.88); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.doc-viewer[hidden] { display: none; }
.dv-panel { width: min(1100px, 100%); height: min(92vh, 100%); background: #fff; border-radius: var(--r-lg); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); }
.dv-head { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem .8rem 1.3rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.dv-icon { font-size: 1.4rem; color: #c0392b; flex: none; }
.dv-head h2 { flex: 1; min-width: 0; margin: 0; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.dv-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--line); color: var(--forest); text-decoration: none; font-size: .88rem; font-weight: 600; background: #fff; }
.dv-btn:hover { border-color: var(--green); color: var(--green); }
.dv-close { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--forest); font-size: 1.25rem; }
.dv-close:hover { background: #e7eee9; }
.dv-body { position: relative; flex: 1; min-height: 0; background: #e9ece8; }
.dv-body iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.dv-body img { display: block; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; position: absolute; inset: 0; }
.dv-pages { height: 100%; overflow-y: auto; padding: 12px; -webkit-overflow-scrolling: touch; }
.dv-pages figure { margin: 0 auto 14px; width: fit-content; }
.dv-pages canvas { display: block; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.dv-pages figcaption { text-align: center; font-size: .78rem; color: var(--muted); margin-top: .35rem; }
.dv-loading, .dv-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .7rem; color: var(--muted); padding: 2rem; text-align: center; margin: 0; }
.dv-loading[hidden], .dv-error[hidden] { display: none; }
.dv-error { color: #8e2a20; }
.dv-spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #cfd8d2; border-top-color: var(--green); animation: dv-spin .8s linear infinite; }
@keyframes dv-spin { to { transform: rotate(360deg); } }
.doc-viewer:not([hidden]) .dv-panel { animation: zoom-in .3s cubic-bezier(.2, .7, .2, 1) both; }

/* ---------- Galeries ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .9rem; }
.photo-grid .photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md); background: var(--mist); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-grid .photo:hover img { transform: scale(1.05); }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem .9rem; color: #fff; font-size: .9rem; background: linear-gradient(transparent, rgba(8,50,31,.88)); }
.photo[hidden] { display: none; }
.home-gallery { padding: 0 0 clamp(3.5rem, 6vw, 6rem); background: var(--paper); }
.album-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.album-filter button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: .5rem 1.1rem; font-weight: 600; color: var(--forest); }
.album-filter button.active { background: var(--forest); color: #fff; border-color: var(--forest); }

.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(5,22,13,.95); display: flex; align-items: center; justify-content: center; padding: 3rem 4.5rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; max-height: 100%; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: var(--r-sm); }
.lightbox figcaption { color: #dcebe1; margin-top: .8rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 1.2rem; }
.lightbox button:hover { background: var(--gold); color: var(--forest); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.75rem; margin-bottom: 1.5rem; }
.video-card h2 { font-size: 1.05rem; margin: .9rem 0 .3rem; }
.video-card p { color: var(--muted); font-size: .95rem; }
.video-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video-thumb:hover img { opacity: 1; }
.play { position: absolute; inset: 0; display: grid; place-items: center; }
.play i { width: 68px; height: 68px; border-radius: 50%; background: var(--brown); color: #fff; display: grid; place-items: center; font-size: 1.3rem; padding-left: 4px; box-shadow: 0 0 0 8px rgba(255,255,255,.18); }
.video-thumb:hover .play i { background: var(--gold); color: var(--forest); }
.video-modal { background: #000; border: 0; }
.video-modal .modal-header { border: 0; }
.video-modal .modal-title { color: #fff; font-size: 1.05rem; }

/* ---------- En chiffres ---------- */
.stats { background: var(--forest); background-image: var(--weave); padding: clamp(3.5rem, 6vw, 6rem) 0; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 12% 20%, rgba(242,183,5,.16), transparent 40%), radial-gradient(circle at 88% 85%, rgba(0,117,58,.55), transparent 50%); }
.stats .container-xl { position: relative; }
.stats-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; text-align: center; }
.stats-grid li { color: #dcebe1; padding: 1.5rem 1rem; border-radius: var(--r-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.stats-grid i { font-size: 1.9rem; color: var(--gold); }
.stats-grid strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); color: #fff; font-weight: 600; line-height: 1.05; margin: .6rem 0 .3rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--brown); background-image: var(--weave), linear-gradient(110deg, var(--brown), var(--brown-2)); color: #fff; padding: clamp(2.5rem, 4vw, 3.75rem) 0; }
.newsletter-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.newsletter-title { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin-bottom: .35rem; }
.newsletter p { margin: 0; color: #f6dfd3; font-size: 1.05rem; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: .6rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px; }
.newsletter-form input { flex: 1 1 220px; border: 0; background: transparent; color: #fff; padding: .75rem 1.1rem; }
.newsletter-form input::placeholder { color: #f1cdbd; }
.newsletter-form input:focus { outline: none; }
.newsletter-form:focus-within { box-shadow: var(--focus); }
.newsletter-form button { border: 0; background: #fff; color: var(--brown); font-family: var(--font-head); font-weight: 600; padding: .75rem 1.6rem; border-radius: 999px; }
.newsletter-form button:hover { background: var(--gold); color: var(--forest); }
.form-msg { flex-basis: 100%; margin: .2rem 1rem .3rem; font-weight: 600; }
.form-msg.error { color: #ffe2d6; }
.form-msg.ok { color: var(--gold); }

/* ---------- États membres ---------- */
.states { background: var(--mist); padding: clamp(3rem, 5vw, 4.5rem) 0; }
.states-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .85rem; }
.state-chip { display: flex; align-items: center; gap: .85rem; background: #fff; border-radius: 99px; padding: .5rem 1.1rem .5rem .5rem; text-decoration: none; color: var(--forest); font-family: var(--font-head); font-weight: 500; border: 1px solid transparent; box-shadow: 0 1px 2px rgba(8,50,31,.06); transition: border-color .2s, transform .2s; }
.state-chip img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); flex: none; }
.state-chip span { flex: 1; }
.state-chip i { color: var(--muted); font-size: .8rem; }
.state-chip:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.state-head { display: flex; gap: 1.5rem; align-items: center; background: #fff; border-radius: var(--r-md); padding: 1.4rem; border-left: 6px solid var(--c); margin-bottom: 1.75rem; box-shadow: var(--shadow); }
.state-head img { border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--line); }
.state-head dl { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 0; }
.state-head dt { font-size: .825rem; color: var(--muted); font-weight: 600; }
.state-head dd { margin: 0; font-weight: 600; }
.focal { background: var(--gold-soft); padding: 1.3rem; border-radius: var(--r-md); margin: 1.5rem 0; }
.focal h2 { font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact-form { background: #fff; border-radius: var(--r-lg); padding: clamp(1.25rem, 2.5vw, 2.25rem); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-form .form-label { font-weight: 600; color: var(--forest); }
.contact-form .form-control { background: var(--paper); border-color: var(--line); padding: .7rem .85rem; border-radius: var(--r-sm); }
.contact-form .form-control:focus { box-shadow: var(--focus); border-color: var(--gold); }
.req { color: var(--brown); }
.form-hint { font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -5000px; }
.contact-card { background: var(--forest); background-image: var(--weave); color: #dcebe1; border-radius: var(--r-lg); padding: 1.8rem; margin-bottom: 1.25rem; }
.contact-card h2 { color: #fff; font-size: 1.25rem; }
.contact-card .muted { color: #a9c6b4; margin: 1rem 0 0; font-size: .95rem; }
.map-frame { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.alert-sle { padding: .95rem 1.15rem; border-radius: var(--r-sm); margin-bottom: 1.25rem; font-weight: 600; }
.alert-sle.ok { background: #e3f3e9; color: var(--forest); }
.alert-sle.ok i { color: var(--green); }

/* ---------- Recherche ---------- */
.search-big { display: flex; gap: .6rem; margin-bottom: 1.5rem; }
.search-big input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: .85rem 1.25rem; font-size: 1.1rem; background: #fff; }
.search-big input:focus { outline: none; box-shadow: var(--focus); }
.search-results { list-style: none; padding: 0; display: grid; gap: 1rem; }
.search-results li { background: #fff; border-radius: var(--r-md); padding: 1.2rem 1.35rem; border: 1px solid var(--line); }
.search-results h2 { font-size: 1.1rem; margin: .4rem 0; }
.search-results p { margin: 0 0 .3rem; color: var(--muted); }
.search-results time { font-size: .85rem; color: var(--muted); }

/* ---------- États vides ---------- */
.empty-state { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-md); }
.empty-state i { font-size: 2.2rem; color: #a9b8ad; }
.empty-state p { margin: .8rem auto 1rem; max-width: 46ch; color: var(--muted); }

/* ---------- Pagination ---------- */
.pagination { margin-top: 2rem; flex-wrap: wrap; gap: 4px; }
.page-link { color: var(--green); border-color: var(--line); border-radius: var(--r-sm) !important; }
.page-item.active .page-link { background: var(--green); border-color: var(--green); }
.page-link:focus { box-shadow: var(--focus); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--forest); background-image: var(--weave); color: #cfe3d6; }
.footer-brand { display: flex; align-items: center; gap: 1rem; padding: 3rem 0 1.75rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand img { background: #fff; border-radius: 50%; padding: 4px; }
.footer-brand p { margin: 0; font-family: var(--font-head); font-weight: 600; color: #fff; font-size: clamp(1.1rem, .9rem + .6vw, 1.45rem); }
.footer-cols { padding: 2.25rem 0; }
.site-footer h3 { color: var(--gold); font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
/* puces » des listes de liens du pied de page */
.footer-links li a { display: inline-flex; align-items: baseline; gap: .55rem; transition: transform .2s, color .2s; }
.footer-links li a::before { content: "\f101"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .85em; color: var(--gold); flex: none; transition: transform .2s; }
.footer-links li a:hover { text-decoration: none; }
.footer-links li a:hover::before { transform: translateX(3px); }
.footer-contact li { display: flex; gap: .7rem; align-items: baseline; }
.footer-contact i { color: var(--gold); width: 16px; }
.footer-note { margin-top: 1rem; font-size: .9rem; color: #a9c6b4; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0 1.6rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.socials { display: flex !important; gap: .5rem !important; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--forest); text-decoration: none; }

.to-top { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 900; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--forest); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--green); color: #fff; }

/* ---------- Annonces ---------- */
.notice-modal .modal-content { border: 0; border-radius: var(--r-lg); overflow: hidden; }
.notice-modal .modal-header { border-bottom: 4px solid var(--green); }
.notice-modal.level-warning .modal-header { border-color: var(--gold); }
.notice-modal.level-danger .modal-header { border-color: #c0392b; }
.notice-modal .modal-title { font-size: 1.15rem; }
.notice-modal .modal-title i { color: var(--brown); }
.notice-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.notice-list li { border-left: 4px solid var(--green); padding-left: .9rem; }
.notice-list li.level-warning { border-color: var(--gold); }
.notice-list li.level-danger { border-color: #c0392b; }
.notice-list p { margin: .3rem 0; color: var(--muted); }

/* ==========================================================================
   Galerie d'images d'un article
   ========================================================================== */
.article-gallery { margin-top: 2.5rem; }
.article-gallery > h2 { font-size: 1.15rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .55rem; }
.article-gallery > h2 i { color: var(--brown); }
.article-gallery .photo-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .65rem; }
.article-gallery .photo { aspect-ratio: 1 / 1; cursor: zoom-in; }
.article-gallery .photo::after {
    content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; inset: 0; display: grid; place-items: center;
    color: #fff; font-size: 1.3rem; background: rgba(8, 50, 31, .5);
    opacity: 0; transition: opacity .3s;
}
.article-gallery .photo:hover::after, .article-gallery .photo:focus-visible::after { opacity: 1; }

/* ==========================================================================
   Animations
   ========================================================================== */
/* Apparition au défilement : la classe .reveal est posée par site.js
   (animations sur « translate »/« scale » pour ne pas gêner les effets de survol existants) */
.reveal:not(.is-visible) { opacity: 0; }
.reveal.is-visible { animation: reveal-up .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
.reveal.from-left.is-visible { animation-name: reveal-left; }
.reveal.from-right.is-visible { animation-name: reveal-right; }
.reveal.zoom.is-visible { animation-name: reveal-zoom; }

/* Diaporama : léger zoom lent sur l'image, texte qui glisse à chaque changement */
.slide.is-active img { animation: ken-burns 9s ease-out both; }
.slide.is-active .slide-caption > * { animation: rise-in .8s cubic-bezier(.2, .7, .2, 1) both; }
.slide.is-active .slide-caption > :nth-child(2) { animation-delay: .12s; }
.slide.is-active .slide-caption > :nth-child(3) { animation-delay: .24s; }
.hero-latest { animation: rise-in .9s .2s cubic-bezier(.2, .7, .2, 1) both; }
.hero-latest li { animation: rise-in .6s cubic-bezier(.2, .7, .2, 1) both; }
.hero-latest li:nth-child(1) { animation-delay: .45s; }
.hero-latest li:nth-child(2) { animation-delay: .55s; }
.hero-latest li:nth-child(3) { animation-delay: .65s; }
.hero-latest li:nth-child(4) { animation-delay: .75s; }
.hero-latest img { transition: transform .35s; }
.hero-latest a:hover img { transform: scale(1.06); }

/* Bandeau des pages intérieures */
.page-hero .crumbs { animation: rise-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.page-hero h1 { animation: rise-in .9s .1s cubic-bezier(.2, .7, .2, 1) both; }

/* Corridor des drapeaux : les drapeaux ondulent doucement après leur arrivée */
.corridor a { animation: wave 3.6s ease-in-out infinite; animation-delay: calc(1.8s + var(--i, 0) * .14s); }

/* Soulignés tricolores des titres : ils se dessinent à l'apparition */
.section-title::after { transform-origin: left center; transition: transform .9s .25s cubic-bezier(.2, .7, .2, 1); }
.section-title:not(.text-start)::after { transform-origin: center; }
.section-title.reveal::after { transform: scaleX(0); }
.section-title.reveal.is-visible::after { transform: scaleX(1); }

/* Objectifs */
.feature > i { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.feature:hover > i { transform: translateY(-4px) rotate(-8deg); }

/* À propos : l'image se dévoile, le cadre or glisse en place */
.about-figure img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.about-figure.reveal-clip { clip-path: inset(0 100% 0 0 round var(--r-lg)); transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1); }
.about-figure.reveal-clip.is-visible { clip-path: inset(-40px -40px -40px -40px); }
.about-figure.reveal-clip img { transform: scale(1.12); }
.about-figure.reveal-clip.is-visible img { transform: scale(1); }
.about-figure::before { transition: transform 1s .7s cubic-bezier(.2, .7, .2, 1), opacity 1s .7s; }
.about-figure.reveal-clip::before { transform: translate(-22px, -22px); opacity: 0; }
.about-figure.reveal-clip.is-visible::before { transform: none; opacity: 1; }
.about-figure:hover img { transform: scale(1.03); }

/* Procédure : la ligne pointillée se trace, puis les pastilles apparaissent une à une */
.steps.reveal-line:not(.vertical)::before { transform-origin: left; transform: scaleX(0); transition: transform 1.4s .2s cubic-bezier(.2, .7, .2, 1); }
.steps.reveal-line.is-visible:not(.vertical)::before { transform: scaleX(1); }
.step.reveal .step-num { opacity: 0; }
.step.reveal.is-visible .step-num { animation: pop-num .6s cubic-bezier(.3, 1.6, .5, 1) both, pulse-num 2.6s 1.2s ease-out infinite; animation-delay: calc(var(--d, 0s) + .35s), calc(var(--d, 0s) + 1.2s); }
.step { transition: border-color .2s, background-color .2s, transform .3s, box-shadow .3s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-icon { transition: transform .35s; }
.step:hover .step-icon { transform: scale(1.15); }

/* Cartes et listes */
.event-card { transition: transform .25s, box-shadow .25s; }
.event-card:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.stats-grid li { transition: transform .3s, background-color .3s; }
.stats-grid li:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); }
.stats-grid li i { transition: transform .5s; }
.stats-grid li:hover i { transform: rotateY(360deg); }
.state-chip img { transition: transform .4s; }
.state-chip:hover img { transform: rotate(-12deg) scale(1.08); }
.side-posts img { transition: transform .3s; }
.side-posts a:hover img { transform: scale(1.06); }
.share a, .share button { transition: transform .2s, background-color .2s, color .2s; }
.share a:hover, .share button:hover { transform: translateY(-3px); }

/* Visionneuse : ouverture en fondu, image qui s'agrandit */
.lightbox:not([hidden]) { animation: fade-in .25s ease both; }
.lightbox:not([hidden]) img { animation: zoom-in .35s cubic-bezier(.2, .7, .2, 1) both; }

/* Retour en haut */
.to-top { transition: opacity .2s, transform .25s; }
.to-top:hover { transform: translateY(-4px); }

@keyframes reveal-up { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: none; } }
@keyframes reveal-left { from { opacity: 0; translate: -40px 0; } to { opacity: 1; translate: none; } }
@keyframes reveal-right { from { opacity: 0; translate: 40px 0; } to { opacity: 1; translate: none; } }
@keyframes reveal-zoom { from { opacity: 0; scale: .92; } to { opacity: 1; scale: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes ken-burns { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes wave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes pop-num { from { opacity: 0; transform: translateX(-50%) scale(.3); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes pulse-num { 0% { box-shadow: 0 0 0 8px #fff, 0 0 0 8px rgba(153,51,0,.45); } 70% { box-shadow: 0 0 0 8px #fff, 0 0 0 20px rgba(153,51,0,0); } 100% { box-shadow: 0 0 0 8px #fff, 0 0 0 8px rgba(153,51,0,0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1399.98px) {
    .corridor span { display: none; }
}

@media (max-width: 1199.98px) {
    .header-search input { width: 180px; }
    .nav-list > li > a { padding: 1rem .8rem; font-size: .9rem; }
    .hero-grid { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); }
}

@media (max-width: 991.98px) {
    .header-search { display: none; }
    .nav-toggle { display: inline-flex; }
    .brand-sub { display: none; }
    .nav-list { flex-direction: column; padding: .5rem 0 1rem; }
    .nav-list > li > a { padding: .85rem .5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
    .nav-list > li > a.active::after { display: none; }
    .main-nav { position: relative; }
    .main-nav .dropdown-menu { position: static !important; transform: none !important; background: rgba(0,0,0,.15); box-shadow: none; border-radius: 0; border-top: 0; }
    .main-nav .dropdown-item { color: #fff; }
    .main-nav .dropdown-item:hover { background: rgba(0,0,0,.15); color: var(--gold); }

    .hero-grid { grid-template-columns: 1fr; }
    .slider { flex: none; min-height: 0; height: clamp(320px, 55vw, 460px); }
    .hero-intro { min-height: 0; }
    .corridor ul { flex-wrap: wrap; justify-content: center; gap: .75rem; }
    .corridor ul::before { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.75rem; }
    .steps:not(.vertical)::before { display: none; }
    .newsletter-inner { grid-template-columns: 1fr; gap: 1.25rem; }
    .sidebar { position: static; }
    .about-figure::before { display: none; }
}

@media (max-width: 767.98px) {
    .topbar-date { display: none; }
    .header-inner { padding-top: 10px; padding-bottom: 10px; gap: .8rem; }
    .brand img { width: 50px; height: 50px; }
    .nav-toggle span { display: none; }
    .news-grid, .news-grid.three, .doc-grid, .video-grid { grid-template-columns: 1fr; }
    .post-list .post-card { flex-direction: column; }
    .post-list .post-media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .slide-caption h2 { -webkit-line-clamp: 3; }
    .event-thumb { display: none; }
    .doc-card { flex-wrap: wrap; }
    .btn-download { width: 100%; justify-content: center; }
    .doc-actions { width: 100%; flex-direction: row; }
    .doc-actions > a { flex: 1; }
    .doc-viewer { padding: 0; }
    .dv-panel { height: 100%; border-radius: 0; }
    .dv-head { padding: .6rem .6rem .6rem 1rem; flex-wrap: wrap; }
    .dv-btn span, .dv-actions .btn-download span { display: none; }
    .dv-actions .btn-download { width: auto; padding: .55rem .8rem; }
    .faq-answer { padding: 1rem 1.2rem; }
    .state-head { flex-direction: column; align-items: flex-start; }
    .prev-next { grid-template-columns: 1fr; }
    .pn-next { grid-column: 1; text-align: left; }
    .lightbox { padding: 3.5rem .5rem; }
    .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
    .about-flags { gap: 6px; padding: 10px; }
    .corridor img { width: 36px; height: 36px; }
    .newsletter-form { border-radius: var(--r-md); }
    .newsletter-form button { width: 100%; }
}

@media (max-width: 575.98px) {
    .steps { grid-template-columns: 1fr; }
    .slide-caption { padding: 1.2rem 1.1rem 3.8rem; }
    .search-big { flex-direction: column; }
    .hero-actions .btn-sle { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .reveal, .step.reveal .step-num, .about-figure.reveal-clip, .about-figure.reveal-clip::before { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

@media print {
    .topbar, .main-nav, .newsletter, .states, .site-footer, .sidebar, .share, .to-top, .ribbon, .corridor { display: none !important; }
    .page-hero, .home-hero { background: none; color: #000; padding: 1rem 0; }
    .page-hero h1, .hero-intro h1 { color: #000; }
}

/* ==========================================================================
   Exportateur agréé : espace en ligne et formulaire EA
   ========================================================================== */
.topbar-account { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; padding: .2rem .7rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; }
.topbar-account:hover { background: rgba(255,255,255,.1); color: var(--gold-2); }
.topbar-account + .lang-switch { margin-left: 0; }

.alert-sle.err { background: #fdecea; border-color: #f3c5bf; color: #8d1c12; }
.alert-sle.warn { background: var(--gold-soft); border-color: #f1d98a; color: #6b4a00; }
.alert-sle ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.alert-sle > div { flex: 1; }

/* page de présentation */
.lead-text { font-size: 1.08rem; line-height: 1.7; }
.ea-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.ea-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.ea-steps .n { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-family: var(--font-head); font-weight: 600; }
.ea-steps p { margin: .15rem 0 0; color: var(--muted); }
.ea-check { list-style: none; padding: 0; display: grid; gap: .5rem; }
.ea-check i { color: var(--green); margin-right: .4rem; }
.ea-cta { position: sticky; top: 1.5rem; padding: 2rem; border-radius: var(--r-lg); background: var(--forest); background-image: var(--weave); color: #e3efe7; box-shadow: var(--shadow-lg); }
.ea-cta h2 { color: #fff; font-size: 1.35rem; }
.ea-cta-ico { font-size: 2.4rem; color: var(--gold); margin-bottom: 1rem; }
.ea-cta .btn-sle-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.ea-cta .btn-sle-outline:hover { background: #fff; color: var(--forest); }

/* connexion / inscription */
.ea-auth { max-width: 560px; margin-inline: auto; }
.ea-auth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.ea-auth-head { display: flex; gap: .9rem; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.ea-auth-head i { font-size: 1.6rem; color: var(--green); }
.ea-auth-head strong { display: block; font-family: var(--font-head); color: var(--forest); }
.ea-auth-head span { font-size: .9rem; color: var(--muted); }

/* barre de l'espace connecté */
.ea-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: .9rem 1.2rem; margin-bottom: 1.75rem; border-radius: var(--r-md); background: var(--mist); border: 1px solid var(--line); }
.ea-bar-who { display: flex; gap: .8rem; align-items: center; }
.ea-bar-who strong { display: block; font-family: var(--font-head); color: var(--forest); }
.ea-bar-who div span { font-size: .85rem; color: var(--muted); }
.ea-avatar { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 700; font-family: var(--font-head); }
.ea-bar-nav { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.ea-bar-nav a, .ea-bar-nav button { display: inline-flex; gap: .4rem; align-items: center; padding: .45rem .8rem; border-radius: 999px; border: 0; background: none; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.ea-bar-nav a:hover, .ea-bar-nav button:hover { background: #fff; }
.ea-bar-nav a.active { background: var(--green); color: #fff; }
.ea-bar-nav form { margin: 0; }

/* liste des demandes */
.ea-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.3rem; margin-bottom: .75rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.ea-row:hover { transform: translateY(-2px); border-color: var(--green); color: inherit; }
.ea-row-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ea-row-main strong { font-family: var(--font-head); color: var(--forest); font-size: 1.05rem; }
.ea-row-side { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ea-ref { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; font-weight: 700; color: var(--brown); letter-spacing: .02em; }
.ea-auth-no { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; font-weight: 700; color: var(--green); }
.ea-pill { display: inline-flex; gap: .3rem; align-items: center; padding: .15rem .55rem; border-radius: 999px; background: var(--brown); color: #fff; font-size: .78rem; font-weight: 700; }
.ea-empty { text-align: center; padding: 3rem 1rem; border: 2px dashed var(--line); border-radius: var(--r-lg); }
.ea-empty > i { font-size: 2.6rem; color: var(--green); margin-bottom: 1rem; }

/* pastilles de statut */
.ea-status { display: inline-block; padding: .25rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.ea-secondary { background: #eceee9; color: #4d574f; }
.ea-info { background: #e3edfb; color: #1f4f9b; }
.ea-warning { background: var(--gold-soft); color: #7a5600; }
.ea-orange { background: #fde9dc; color: #a2420e; }
.ea-success { background: #dcf2e4; color: #0b6a35; }
.ea-danger { background: #fbe3e1; color: #9b1c12; }

/* feuille du formulaire (reprend la mise en page du formulaire officiel) */
.ea-sheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.2rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.ea-sheet-head { display: flex; align-items: center; gap: 1.2rem; padding-bottom: 1.2rem; margin-bottom: 1.4rem; border-bottom: 3px solid var(--green); }
.ea-sheet-head h2 { margin: 0; color: #2f6b12; font-family: Georgia, "Times New Roman", serif; font-weight: 700; text-transform: uppercase; font-size: clamp(1.1rem, 2.4vw, 1.75rem); line-height: 1.2; }
.ea-sheet-head p { margin: .35rem 0 0; font-size: .82rem; color: var(--muted); }
.ea-sheet-head .ea-ref { margin-left: auto; align-self: flex-start; }
.ea-top { margin-bottom: 1.4rem; }
.ea-block { border-radius: var(--r-lg); padding: clamp(1rem, 2.5vw, 1.6rem); margin-bottom: 1.4rem; border: 1px solid; }
.ea-block h3 { font-size: 1.15rem; color: #2f6b12; font-style: italic; margin: 0 0 1.1rem; }
.ea-block h3 span { font-style: normal; margin-right: .3rem; }
.ea-block-1 { background: #e8ebdd; border-color: #c9cfae; }
.ea-block-2 { background: #dcefe2; border-color: #a9d5b6; }
.ea-block-3 { background: #f6f7f2; border-color: var(--line); }
.ea-block .form-label b { color: #2f6b12; margin-right: .2rem; }
.ea-block .form-control, .ea-block .form-select { background-color: #fff; }
.ea-inner { margin: 0; padding: .9rem; background: #fff; border: 1px solid #c9cfae; border-radius: var(--r-sm); }
.ea-choice { display: flex; gap: .8rem; flex-wrap: wrap; }
.ea-choice > label { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; background: #fff; border: 1.5px solid #c9cfae; border-radius: var(--r-sm); cursor: pointer; font-weight: 600; }
.ea-choice > label:has(input:checked) { border-color: var(--green); background: #effaf3; }
.ea-choice > label.is-invalid { border-color: #dc3545; }
.ea-choice input { width: 1.15rem; height: 1.15rem; accent-color: var(--green); }
.ea-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
.ea-table th { background: #e0dcc5; font-weight: 600; font-style: italic; font-size: .85rem; padding: .5rem .6rem; border: 1px solid #b9b49a; vertical-align: bottom; }
.ea-table td { border: 1px solid #b9b49a; padding: .25rem; }
.ea-table td .form-control { border: 0; border-radius: 0; box-shadow: none; min-width: 9rem; }
.ea-table td .form-control:focus { box-shadow: inset 0 0 0 2px var(--gold); }
.ea-table td .form-control.is-invalid { box-shadow: inset 0 0 0 2px #dc3545; }
.ea-table td:last-child:not(:first-child) { width: 2.5rem; text-align: center; }
.ea-table.ro td { padding: .55rem .6rem; }
.ea-del { border: 0; background: none; color: var(--brown); width: 2rem; height: 2rem; border-radius: 50%; }
.ea-del:hover { background: #fbe3e1; }
.ea-add { margin-top: .6rem; border: 1.5px dashed var(--green); background: #fff; color: var(--green); font-weight: 600; padding: .4rem 1rem; border-radius: 999px; }
.ea-add:hover { background: var(--green); color: #fff; }
.ea-commit { padding-left: 1.4rem; line-height: 1.6; }
.ea-commit > li { margin-bottom: .55rem; }
.ea-commit ul { list-style: none; padding-left: .4rem; margin: .3rem 0; }
.ea-commit ul li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: .5rem; }
.ea-accept { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.1rem; margin-top: 1rem; border: 2px solid var(--green); border-radius: var(--r-md); background: #effaf3; font-weight: 600; cursor: pointer; }
.ea-accept input { width: 1.3rem; height: 1.3rem; flex: none; margin-top: .15rem; accent-color: var(--green); }
.ea-accept.is-invalid { border-color: #dc3545; background: #fdecea; }
.ea-actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; padding: 1rem 1.2rem; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); backdrop-filter: blur(6px); }

/* consultation */
.ea-head-card { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1.5rem; margin-bottom: 1.5rem; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ea-head-card h2 { margin: .25rem 0; color: var(--forest); font-size: 1.5rem; }
.ea-progress { list-style: none; display: flex; padding: 0; margin: 0 0 1.5rem; counter-reset: s; }
.ea-progress li { flex: 1; position: relative; text-align: center; font-weight: 600; font-size: .92rem; color: var(--muted); padding-top: 2.6rem; }
.ea-progress .dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); z-index: 1; }
.ea-progress li::after { content: ""; position: absolute; top: 1rem; left: -50%; width: 100%; height: 2px; background: var(--line); }
.ea-progress li:first-child::after { display: none; }
.ea-progress li.done, .ea-progress li.current { color: var(--forest); }
.ea-progress li.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.ea-progress li.done::after, .ea-progress li.current::after { background: var(--green); }
.ea-progress li.current .dot { border-color: var(--gold); background: var(--gold-soft); }
.ea-progress li.ko .dot { background: #c0392b; border-color: #c0392b; color: #fff; }
.ea-decision { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.4rem; margin-bottom: 1.5rem; border-radius: var(--r-md); border: 1px solid; }
.ea-decision > i { font-size: 1.8rem; }
.ea-decision h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.ea-decision.ok { background: #e3f5ea; border-color: #a9d9ba; color: #0b5a2e; }
.ea-decision.ko { background: #fdecea; border-color: #f3c5bf; color: #8d1c12; }
.ea-decision.warn { background: var(--gold-soft); border-color: #f1d98a; color: #6b4a00; }
.ea-view .ea-view-top { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ea-view .ea-view-top div { flex: 1; min-width: 200px; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.ea-view-top span, .ea-sign span { display: block; font-size: .8rem; color: var(--muted); font-style: italic; }
.ea-dl { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: .5rem 1rem; margin: 0; }
.ea-dl dt { font-weight: 600; font-style: italic; font-size: .92rem; }
.ea-dl dd { margin: 0; background: #fff; padding: .35rem .6rem; border-radius: 4px; min-height: 2rem; }
.ea-box { margin-right: 1rem; color: var(--muted); }
.ea-box.on { color: var(--ink); font-weight: 700; }
.ea-sign { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.ea-sign div { flex: 1; min-width: 180px; padding: .7rem 1rem; border-bottom: 2px solid var(--ink); }
.mono { font-family: ui-monospace, Consolas, monospace; }
.ea-side { position: sticky; top: 1rem; padding: 1.3rem; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ea-side h3 { font-size: 1.05rem; color: var(--forest); margin-bottom: 1rem; }
.ea-thread { display: flex; flex-direction: column; gap: .7rem; max-height: 520px; overflow-y: auto; }
.ea-msg { padding: .75rem .9rem; border-radius: 12px; font-size: .93rem; }
.ea-msg.admin { background: var(--mist); border-top-left-radius: 2px; margin-right: 1.5rem; }
.ea-msg.exporter { background: var(--gold-soft); border-top-right-radius: 2px; margin-left: 1.5rem; }
.ea-msg-head { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; margin-bottom: .3rem; }
.ea-msg-head span { color: var(--muted); }
.ea-file { display: inline-flex; gap: .3rem; align-items: center; margin-top: .4rem; font-size: .85rem; font-weight: 600; }

/* impression / autorisation */
.ea-print-body { background: #e9ece6; }
.ea-print { max-width: 900px; margin: 1.5rem auto; padding: 2rem; background: #fff; box-shadow: var(--shadow); }
.ea-print-bar { display: flex; justify-content: center; padding: .8rem; background: var(--forest); }
.ea-certificate { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.4rem; padding: 1.5rem; margin-bottom: 2rem; border: 3px double var(--green); border-radius: 8px; background: #f3faf5; }
.ea-certificate h1 { font-size: 1.5rem; color: var(--forest); margin: .3rem 0 .5rem; text-transform: uppercase; }
.ea-certificate dl { grid-column: 1 / -1; display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.2rem; margin: 0; }
.ea-certificate dt { font-weight: 600; }
.ea-certificate dd { margin: 0; }
@media print {
    .no-print { display: none !important; }
    .ea-print-body { background: #fff; }
    .ea-print { box-shadow: none; margin: 0; padding: 0; max-width: none; }
    .ea-block { break-inside: avoid; }
    @page { margin: 12mm; }
}
@media (max-width: 767.98px) {
    .ea-dl { grid-template-columns: 1fr; }
    .ea-progress li { font-size: .78rem; }
    .topbar-account span { display: none; }
}

/* ==========================================================================
   Mot de passe : bouton « œil »
   ========================================================================== */
.pw-wrap { position: relative; display: block; }
.pw-wrap > input { padding-right: 2.9rem !important; width: 100%; }
.pw-eye { position: absolute; top: 50%; right: .35rem; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #5b685f; cursor: pointer; }
.pw-eye:hover { background: rgba(0, 117, 58, .08); color: #00753a; }
.pw-eye:focus-visible { outline: 3px solid rgba(242, 183, 5, .6); outline-offset: 1px; }
.pw-wrap:has(.is-invalid) ~ .invalid-feedback { display: block; }
.pw-wrap > .is-invalid { background-position: right 2.9rem center !important; }

/* ==========================================================================
   Listes déroulantes avec recherche (Select2) aux couleurs du site
   ========================================================================== */
body .select2-container--default .select2-selection--single { height: calc(2.25rem + 2px); min-height: 38px; display: flex; align-items: center; border: 1px solid #ced4da; border-radius: .375rem; background: #fff; }
body .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.5; padding-left: .75rem; padding-right: 2.2rem; color: #212529; }
body .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #6c757d; }
body .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; right: .5rem; }
body .select2-container--default.select2-container--focus .select2-selection--single,
body .select2-container--default.select2-container--open .select2-selection--single { border-color: #00753a; box-shadow: 0 0 0 .2rem rgba(0, 117, 58, .18); }
body .select2-container.is-invalid .select2-selection { border-color: #dc3545 !important; }
body .select2-container.select2-sm .select2-selection--single { min-height: 31px; height: 31px; font-size: .875rem; }
body .select2-container--default .select2-selection--multiple { min-height: 38px; border: 1px solid #ced4da; border-radius: .375rem; }
body .select2-container--default .select2-selection--multiple .select2-selection__choice { background: #e6f2ea; border-color: #b8dcc4; color: #0b4a26; border-radius: 99px; }
body .select2-dropdown { border-color: #00753a; border-radius: .5rem; overflow: hidden; box-shadow: 0 12px 30px -12px rgba(8, 50, 31, .35); z-index: 1060; }
body .select2-container--default .select2-search--dropdown .select2-search__field { border: 1px solid #ced4da; border-radius: .375rem; padding: .4rem .6rem; }
body .select2-container--default .select2-search--dropdown .select2-search__field:focus { outline: none; border-color: #00753a; }
body .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: #00753a; color: #fff; }
body .select2-container--default .select2-results__option--selected { background: #e6f2ea; color: #0b4a26; font-weight: 600; }
body .select2-results__option { padding: .45rem .75rem; }

/* ==========================================================================
   Galerie photo : un dossier par jour, sélection de plusieurs dossiers
   ========================================================================== */
.folder-hint { color: var(--muted); margin-bottom: 1.2rem; }
.folder-hint i { color: var(--green); margin-right: .3rem; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.folder-card { position: relative; border-radius: var(--r-md); background: var(--card); border: 2px solid transparent; box-shadow: var(--shadow); transition: transform .2s, border-color .2s, box-shadow .2s; }
.folder-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.folder-card.is-selected { border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 117, 58, .15), var(--shadow); }
.folder-link { display: block; color: inherit; text-decoration: none; }
.folder-link:hover { color: inherit; }
.folder-cover { position: relative; display: grid; grid-template-columns: 2fr 1fr; gap: 3px; aspect-ratio: 16 / 11; border-radius: calc(var(--r-md) - 2px) calc(var(--r-md) - 2px) 0 0; overflow: hidden; background: var(--mist); }
.folder-cover > img { grid-column: 1; width: 100%; height: 100%; object-fit: cover; }
.folder-cover > img:only-of-type:last-child { grid-column: 1 / -1; }
.folder-cover:not(:has(.folder-thumbs)) > img { grid-column: 1 / -1; }
.folder-thumbs { display: grid; grid-auto-rows: 1fr; gap: 3px; }
.folder-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.folder-count { position: absolute; left: .7rem; bottom: .7rem; padding: .2rem .6rem; border-radius: 99px; background: rgba(8, 50, 31, .78); color: #fff; font-size: .82rem; font-weight: 600; backdrop-filter: blur(4px); }
.folder-body { display: flex; flex-direction: column; gap: .15rem; padding: .85rem 1rem 1rem; }
.folder-body strong { font-family: var(--font-head); color: var(--forest); font-size: 1.02rem; line-height: 1.3; }
.folder-body strong i { color: var(--gold); margin-right: .35rem; }
.folder-body > span { color: var(--muted); font-size: .9rem; }
.folder-check { position: absolute; top: .65rem; right: .65rem; width: 2rem; height: 2rem; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .92); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: pointer; z-index: 2; }
.folder-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.folder-check i { color: transparent; font-size: .9rem; }
.folder-check:has(input:focus-visible) { outline: 3px solid var(--gold); }
.folder-card.is-selected .folder-check { background: var(--green); border-color: var(--green); }
.folder-card.is-selected .folder-check i { color: #fff; }
.folder-bar { position: sticky; bottom: 1rem; z-index: 20; display: flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap; width: fit-content; max-width: 100%; margin: 1.5rem auto 0; padding: .7rem .9rem .7rem 1.3rem; border-radius: 99px; background: var(--forest); color: #fff; box-shadow: var(--shadow-lg); }
.folder-bar .btn-sle-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); padding: .55rem 1.1rem; }
.folder-bar .btn-sle { background: var(--gold); border-color: var(--gold); color: var(--forest); padding: .55rem 1.2rem; }
.folder-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.folder-section + .folder-section { margin-top: 2.5rem; }
.folder-title { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; font-size: 1.3rem; color: var(--forest); margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--line); }
.folder-title i { color: var(--gold); }
.folder-title small { font-size: .9rem; color: var(--muted); font-weight: 400; font-family: var(--font-body); }

/* ==========================================================================
   Fenêtre « Écrivez-nous » : contact sous forme de discussion
   (au-dessus du menu collant : z-index 1030 > 1020)
   ========================================================================== */
.chat-contact ~ .to-top { bottom: 5.4rem; }
.chat-launcher { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 1031; display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.3rem; border-radius: 99px; background: var(--green); color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; box-shadow: 0 12px 30px -10px rgba(8, 50, 31, .7); transition: transform .2s, background-color .2s; }
.chat-launcher:hover { background: var(--forest); color: #fff; transform: translateY(-2px); }
.chat-launcher:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.chat-launcher i { font-size: 1.15rem; color: var(--gold); }
.chat-launcher .chat-ico-close, .chat-contact.is-open .chat-launcher .chat-ico-open { display: none; }
.chat-contact.is-open .chat-launcher .chat-ico-close { display: inline-block; }
.chat-contact:not(.is-open) .chat-launcher::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(242, 183, 5, .55); animation: chat-pulse 2.6s ease-out 1.5s 3; pointer-events: none; }
@keyframes chat-pulse { to { box-shadow: 0 0 0 14px rgba(242, 183, 5, 0); } }

.chat-panel { position: fixed; right: 1.2rem; bottom: 5.2rem; z-index: 1030; width: min(380px, calc(100vw - 2.4rem)); height: min(560px, calc(100vh - 7rem)); display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 28px 70px -20px rgba(8, 50, 31, .6), 0 0 0 1px rgba(8, 50, 31, .06); transform-origin: bottom right; animation: chat-in .22s cubic-bezier(.2, .8, .2, 1); }
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .85rem .9rem .85rem 1rem; background: var(--forest); background-image: var(--weave); color: #fff; flex: none; }
.chat-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid var(--gold); flex: none; }
.chat-head-text { min-width: 0; flex: 1; }
.chat-head strong { display: block; font-family: var(--font-head); font-size: 1rem; line-height: 1.2; }
.chat-head span { font-size: .78rem; color: #bcd8c6; }
.chat-head .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; margin-right: .25rem; vertical-align: 1px; }
.chat-icon-btn { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: .9rem; }
.chat-icon-btn:hover { background: rgba(255, 255, 255, .24); }
.chat-progress { height: 3px; background: rgba(0, 117, 58, .12); flex: none; }
.chat-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--gold)); transition: width .4s; }
.chat-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: .45rem; padding: .9rem; background: #f3f5ef; scroll-behavior: smooth; }
.chat-day { align-self: center; font-size: .72rem; color: var(--muted); background: #fff; padding: .15rem .65rem; border-radius: 99px; margin-bottom: .2rem; }
.chat-bubble { max-width: 86%; padding: .55rem .8rem; font-size: .9rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; animation: bubble-in .2s ease-out; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-bubble.bot { align-self: flex-start; background: #fff; color: var(--ink); border-radius: 16px 16px 16px 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.chat-bubble.me { align-self: flex-end; background: var(--green); color: #fff; border-radius: 16px 16px 4px 16px; }
.chat-bubble.me.muted { background: #dfe5dc; color: var(--muted); font-style: italic; }
.chat-bubble.bot.muted { color: var(--muted); font-style: italic; }
.chat-bubble.ok { background: #e3f5ea; color: #0b5a2e; font-weight: 600; }
.chat-bubble.warn { background: #fdf0e3; color: #8a4a06; }
.chat-bubble.summary { max-width: 94%; background: #fffdf3; border: 1px dashed var(--gold); font-size: .85rem; }
.chat-bubble.typing { display: inline-flex; gap: 4px; padding: .7rem .85rem; }
.chat-bubble.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9fb3a6; animation: typing 1s infinite ease-in-out; }
.chat-bubble.typing span:nth-child(2) { animation-delay: .15s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .55rem .9rem 0; background: #fff; flex: none; max-height: 34%; overflow-y: auto; }
.chat-chips[hidden], .chat-chips:empty { display: none; }
.chat-chip { border: 1.5px solid var(--green); background: #fff; color: var(--green); border-radius: 99px; padding: .32rem .8rem; font-size: .82rem; font-weight: 600; line-height: 1.3; }
.chat-chip:hover, .chat-chip:focus-visible { background: var(--green); color: #fff; outline: none; }
.chat-chip.primary { background: var(--green); color: #fff; }
.chat-chip.primary:hover { background: var(--forest); border-color: var(--forest); }
.chat-composer { display: flex; align-items: flex-end; gap: .45rem; margin: .55rem .7rem 0; padding: .3rem .3rem .3rem .85rem; border: 1.5px solid var(--line); border-radius: 22px; background: #fff; flex: none; transition: border-color .15s; }
.chat-composer[hidden] { display: none; }
.chat-composer:focus-within { border-color: var(--green); }
.chat-composer textarea { flex: 1; min-width: 0; border: 0; outline: none; resize: none; padding: .45rem 0; font-size: .92rem; line-height: 1.4; max-height: 6.5rem; background: transparent; }
.chat-send { flex: none; width: 2.35rem; height: 2.35rem; border: 0; border-radius: 50%; background: var(--green); color: #fff; }
.chat-send:hover { background: var(--forest); }
.chat-foot { margin: 0; padding: .4rem .9rem .65rem; font-size: .7rem; color: var(--muted); text-align: center; background: #fff; flex: none; }
@media (max-width: 575.98px) {
    .chat-launcher span { display: none; }
    .chat-launcher { padding: .95rem; }
    .chat-panel { right: .6rem; left: .6rem; width: auto; bottom: 4.9rem; height: calc(100vh - 6rem); }
}
@media (prefers-reduced-motion: reduce) {
    .chat-panel, .chat-bubble, .chat-launcher::after, .chat-bubble.typing span { animation: none !important; }
}
@media print { .chat-contact { display: none !important; } }
