/* ==========================================================================
   CONASOC — Site public V2
   Charte conservée : rouge institutionnel #c7012e, or #e0b533, logo officiel.
   Système : Plus Jakarta Sans (titres) + Inter (texte), neutres « slate », grille 8 px.
   ========================================================================== */
:root {
    --brand: #c7012e;
    --brand-600: #b00128;
    --brand-700: #8f0120;
    --brand-50: #fdf2f4;
    --brand-100: #fbe3e8;
    --gold: #e0b533;
    --gold-50: #fdf8e8;
    --ink: #0f172a;
    --ink-2: #1e293b;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #f8fafc;
    --surface-2: #f1f5f9;
    --dark: #0b1220;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
    --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .28);
    --f-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --header-h: 84px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --- Base --------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--f-body); font-size: 16.5px; line-height: 1.7; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); color: var(--ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
p { margin-bottom: 1rem; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-700); }
img { max-width: 100%; height: auto; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid rgba(199, 1, 46, .45); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 3000; background: #fff; padding: .6rem 1rem; border-radius: 8px; box-shadow: var(--shadow); }
.container { max-width: 1240px; }
.container-narrow { max-width: 780px; margin-inline: auto; }

/* --- Typographie utilitaire ---------------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--gold); }
.display { font-size: clamp(2.2rem, 4.6vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
.h-section { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .8rem; }
.lead-text { font-size: 1.15rem; color: var(--muted); line-height: 1.7; }
.text-ink { color: var(--ink) !important; }
.text-muted-2 { color: var(--muted) !important; }

/* --- Boutons ------------------------------------------------------------ */
.btn-c { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-family: var(--f-head); font-weight: 700; font-size: .95rem; line-height: 1; padding: .95rem 1.45rem; border-radius: 999px; border: 2px solid transparent; transition: all .25s var(--ease); white-space: nowrap; cursor: pointer; text-decoration: none; }
.btn-c i { font-size: 1.05em; transition: transform .25s var(--ease); }
.btn-c:hover i.bi-arrow-right, .btn-c:hover i.bi-arrow-up-right { transform: translateX(3px); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(199, 1, 46, .6); }
.btn-brand:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(199, 1, 46, .7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light-c { background: #fff; color: var(--ink); }
.btn-light-c:hover { background: var(--gold); color: var(--ink); }
.btn-outline-light-c { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn-outline-light-c:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm-c { padding: .65rem 1.05rem; font-size: .86rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--f-head); font-weight: 700; font-size: .93rem; color: var(--brand); }
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* --- Barre supérieure -------------------------------------------------- */
.topbar { background: var(--dark); color: #cbd5e1; font-size: .84rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar a { color: #cbd5e1; }
.topbar a:hover { color: #fff; }
.topbar-info { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: .45rem; }
.topbar-info i { color: var(--gold); }
.topbar-social { display: flex; align-items: center; gap: .9rem; }

/* --- En-tête ----------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 23, 42, .4); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .85rem; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand img { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--f-head); font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; color: var(--ink); }
.brand-tag { font-size: .72rem; color: var(--muted); max-width: 210px; line-height: 1.3; margin-top: 2px; }
.brand:hover .brand-name { color: var(--brand); }
.nav-main { margin-left: auto; }
.nav-main > ul { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-main > ul > li { position: relative; }
.nav-main > ul > li > a { position: relative; display: block; padding: .6rem .95rem; font-family: var(--f-head); font-weight: 600; font-size: .95rem; color: var(--ink-2); border-radius: 999px; transition: color .2s, background .2s; }
.nav-main > ul > li > a:hover { color: var(--brand); background: var(--brand-50); }
.nav-main > ul > li.active > a { color: var(--brand); }
.nav-main > ul > li.active > a::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 3px; border-radius: 3px; background: var(--brand); transform: translateX(-50%); }
.nav-main .submenu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px; list-style: none; margin: 0; padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s var(--ease); }
.nav-main li:hover > .submenu, .nav-main li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.nav-main .submenu a { display: block; padding: .55rem .8rem; border-radius: 8px; color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.nav-main .submenu a:hover { background: var(--surface); color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.1rem; transition: all .2s; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.menu-btn { display: none; }
@media (max-width: 1199.98px) {
    .nav-main, .header-cta { display: none !important; }
    .menu-btn { display: inline-flex; }
    .header-actions { margin-left: auto; }
}
@media (max-width: 575.98px) {
    :root { --header-h: 70px; }
    .brand img { height: 44px; }
    .brand-tag { display: none; }
    .topbar { display: none; }
}

/* Recherche plein écran */
.search-overlay .modal-content { background: transparent; border: 0; }
.search-overlay .modal-backdrop, .search-overlay { --bs-backdrop-opacity: .85; }
.search-box { display: flex; gap: .6rem; background: #fff; padding: .6rem; border-radius: 999px; box-shadow: var(--shadow-lg); }
.search-box input { flex: 1; border: 0; outline: 0; padding: .6rem 1.1rem; font-size: 1.15rem; border-radius: 999px; background: transparent; }

/* Menu mobile (offcanvas) */
.offcanvas-nav { width: min(380px, 92vw) !important; }
.offcanvas-nav .offcanvas-header { border-bottom: 1px solid var(--line); }
.mobile-nav { list-style: none; padding: 0; margin: 0; }
.mobile-nav > li { border-bottom: 1px solid var(--line); }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 1rem .25rem; font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.mobile-nav a.active { color: var(--brand); }
.mobile-nav .sub { list-style: none; padding: 0 0 .6rem .9rem; }
.mobile-nav .sub a { padding: .45rem 0; font-size: .95rem; font-weight: 500; color: var(--text); }

/* --- Sections --------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-sm { padding: clamp(44px, 6vw, 72px) 0; }
.bg-surface { background: var(--surface); }
.bg-dark-c { background: var(--dark); color: #cbd5e1; }
.bg-dark-c h1, .bg-dark-c h2, .bg-dark-c h3, .bg-dark-c h4 { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .lead-text { max-width: 620px; margin: 0; }

/* Révélation au défilement */
.js-anim [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js-anim [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-anim [data-reveal] { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* --- Héros ------------------------------------------------------------ */
.hero { position: relative; min-height: clamp(560px, 82vh, 780px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--dark); isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 8s linear; }
.hero-slide.is-active img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11, 18, 32, .92) 0%, rgba(11, 18, 32, .72) 42%, rgba(11, 18, 32, .2) 100%), linear-gradient(0deg, rgba(11, 18, 32, .85) 0%, rgba(11, 18, 32, 0) 45%); }
.hero-content { padding-top: 120px; padding-bottom: 128px; width: 100%; }
@media (max-width: 991.98px) { .hero-content { padding-bottom: 96px; } }
@media (max-width: 575.98px) { .hero-content { padding-top: 72px; padding-bottom: 40px; } .badge-agree { font-size: .74rem; } }
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 span { color: var(--gold); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #e2e8f0; max-width: 620px; margin: 1.3rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .15); }
.hero-caption { display: flex; align-items: center; gap: .7rem; font-size: .92rem; color: #cbd5e1; max-width: 640px; min-height: 1.5em; }
.hero-caption i { color: var(--gold); }
.hero-dots { display: flex; gap: .45rem; }
.hero-dots button { width: 34px; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.hero-dots button::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dots button.is-active::after { animation: dot 6.5s linear forwards; }
@keyframes dot { to { transform: scaleX(1); } }
.badge-agree { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: .82rem; color: #f1f5f9; backdrop-filter: blur(6px); margin-bottom: 1.4rem; }
.badge-agree i { color: var(--gold); }

/* --- Chiffres clés ----------------------------------------------------- */
.stats-wrap { position: relative; z-index: 2; margin-top: -1px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transform: translateY(-50%); }
.stat { padding: 1.6rem 1.8rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.5rem); color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.stat-value::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--brand); margin: .7rem 0 .55rem; }
.stat-label { font-size: .9rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 991.98px) { .stats { grid-template-columns: repeat(2, 1fr); transform: translateY(-30%); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 575.98px) { .stats { transform: none; margin: 2rem 0 3rem; } .stat { padding: 1.2rem; } }

/* --- À propos (accueil) ------------------------------------------------ */
.about-media { position: relative; }
.about-media .img-main { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow-lg); }
.about-media .img-float { position: absolute; right: -24px; bottom: -32px; width: 48%; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow-lg); aspect-ratio: 1; object-fit: cover; }
.about-badge { position: absolute; left: -18px; top: 28px; background: var(--brand); color: #fff; padding: 1rem 1.2rem; border-radius: 14px; box-shadow: var(--shadow); font-family: var(--f-head); }
.about-badge strong { display: block; font-size: 1.8rem; line-height: 1; }
.about-badge span { font-size: .78rem; opacity: .9; }
@media (max-width: 991.98px) { .about-media .img-float { right: 12px; } .about-badge { left: 12px; } }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--ink-2); }
.check-list i { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; margin-top: 2px; }

/* --- Axes d'intervention -------------------------------------------- */
.axes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }
.axis { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; overflow: hidden; height: 100%; }
.axis::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--brand), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.axis:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.axis:hover::before { transform: scaleX(1); }
.axis-icon { width: 54px; height: 54px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; background: var(--brand-50); color: var(--brand); margin-bottom: 1.2rem; transition: background .3s, color .3s; }
.axis:hover .axis-icon { background: var(--brand); color: #fff; }
.axis h3 { font-size: 1.1rem; margin-bottom: .55rem; }
.axis p { font-size: .94rem; color: var(--muted); margin: 0; }
.axis-num { position: absolute; right: 1.2rem; top: 1rem; font-family: var(--f-head); font-weight: 800; font-size: 2.6rem; color: var(--surface-2); line-height: 1; }

/* --- Mot du président ------------------------------------------------ */
.president { position: relative; background: var(--dark); border-radius: calc(var(--radius) + 8px); overflow: hidden; color: #cbd5e1; }
.president::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(199, 1, 46, .45), transparent 70%); }
.president-photo { height: 100%; min-height: 380px; position: relative; }
.president-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.president-body { position: relative; padding: clamp(32px, 5vw, 64px); }
.president-body .quote-mark { font-family: Georgia, serif; font-size: 6rem; line-height: .6; color: var(--brand); display: block; height: 40px; }
.president-body h2 { color: #fff; }
.president-text { font-size: 1.05rem; color: #cbd5e1; }
.president-text p:last-child { margin-bottom: 0; }
.president-sign { margin-top: 1.6rem; display: flex; align-items: center; gap: .9rem; }
.president-sign strong { display: block; color: #fff; font-family: var(--f-head); font-size: 1.05rem; }
.president-sign span { font-size: .88rem; color: #94a3b8; }
.president-more { display: none; }
.president.is-open .president-more { display: block; }
.president-toggle { background: none; border: 0; padding: 0; color: var(--gold); font-family: var(--f-head); font-weight: 700; margin-top: 1rem; display: inline-flex; align-items: center; gap: .4rem; }

/* --- Cartes d'actualité ---------------------------------------------- */
.news-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.06); }
.news-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: rgba(255, 255, 255, .9); font-family: var(--f-head); font-weight: 800; letter-spacing: .2em; font-size: 1.2rem; }
.news-cat { position: absolute; left: 14px; top: 14px; padding: .32rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--brand); font-family: var(--f-head); font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.news-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; align-items: center; gap: .5rem; font-size: .83rem; color: var(--muted); margin-bottom: .6rem; }
.news-title { font-size: 1.08rem; line-height: 1.4; margin-bottom: .6rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-title a { color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.news-card:hover .news-title a { color: var(--brand); }
.news-excerpt { font-size: .93rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1.1rem; }
.news-body .link-arrow { margin-top: auto; font-size: .88rem; }
.stretched { position: relative; }

/* Article à la une */
.news-feature { position: relative; display: block; border-radius: calc(var(--radius) + 4px); overflow: hidden; min-height: 100%; aspect-ratio: auto; color: #fff; background: var(--dark); isolation: isolate; }
.news-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.news-feature:hover img { transform: scale(1.05); }
.news-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 18, 32, .95) 0%, rgba(11, 18, 32, .5) 50%, rgba(11, 18, 32, .05) 100%); }
.news-feature-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 40px); }
.news-feature .news-cat { position: static; display: inline-block; margin-bottom: 1rem; }
.news-feature h3 { color: #fff; font-size: clamp(1.3rem, 2.3vw, 1.85rem); line-height: 1.25; margin-bottom: .8rem; }
.news-feature p { color: #cbd5e1; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-feature .news-meta { color: #cbd5e1; }
.news-feature-wrap { min-height: 520px; height: 100%; }
.news-list-item { display: flex; gap: 1rem; padding: 1rem; border-radius: 14px; transition: background .2s; }
.news-list-item:hover { background: var(--surface); }
.news-list-item .thumb { flex: 0 0 120px; height: 92px; border-radius: 12px; overflow: hidden; background: var(--surface-2); position: relative; }
.news-list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list-item h4 { font-size: .98rem; line-height: 1.4; margin-bottom: .35rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-list-item h4 a { color: var(--ink); }
.news-list-item:hover h4 a { color: var(--brand); }
@media (max-width: 991.98px) { .news-feature-wrap { min-height: 420px; } }

/* --- Documents --------------------------------------------------------- */
.doc-card { display: flex; gap: 1.1rem; align-items: center; height: 100%; padding: 1.25rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: all .25s var(--ease); }
.doc-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.doc-icon { flex: 0 0 56px; height: 64px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.5rem; position: relative; }
.doc-icon small { font-family: var(--f-head); font-weight: 800; font-size: .62rem; letter-spacing: .05em; margin-top: 2px; }
.doc-card h3 { font-size: 1rem; margin: 0 0 .25rem; line-height: 1.35; }
.doc-card .doc-meta { font-size: .82rem; color: var(--muted); }
.doc-dl { margin-left: auto; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--brand); transition: all .25s; }
.doc-card:hover .doc-dl { background: var(--brand); color: #fff; border-color: var(--brand); }

/* --- Projets ---------------------------------------------------------- */
.project { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; display: block; color: #fff; background: var(--dark); isolation: isolate; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.project::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 18, 32, .92), rgba(11, 18, 32, .1) 65%); }
.project:hover img { transform: scale(1.07); }
.project-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem; }
.project-body h3 { color: #fff; font-size: 1.2rem; margin: 0 0 .4rem; }
.project-body p { color: #cbd5e1; font-size: .92rem; margin: 0; }
.project-tag { display: inline-block; margin-bottom: .7rem; font-size: .72rem; font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }

/* --- Partenaires ------------------------------------------------------ */
.partners-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.partner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; padding: 1.3rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-align: center; transition: all .25s var(--ease); height: 100%; }
.partner img { width: 84px; height: 84px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: all .3s; border-radius: 50%; }
.partner span { font-family: var(--f-head); font-weight: 700; font-size: .85rem; color: var(--muted); line-height: 1.3; }
.partner:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.partner:hover img { filter: none; opacity: 1; }
.partner:hover span { color: var(--ink); }

/* --- Appel à l'action -------------------------------------------------- */
.cta-band { position: relative; border-radius: calc(var(--radius) + 8px); overflow: hidden; padding: clamp(36px, 6vw, 72px); background: linear-gradient(120deg, var(--brand) 0%, var(--brand-700) 100%); color: #fff; isolation: isolate; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.cta-band::before { width: 420px; height: 420px; right: -120px; top: -180px; background: rgba(255, 255, 255, .08); }
.cta-band::after { width: 260px; height: 260px; right: 160px; bottom: -160px; background: rgba(224, 181, 51, .22); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.cta-band p { color: #fde7ec; font-size: 1.08rem; max-width: 620px; margin: 0; }

/* --- En-tête de page intérieure -------------------------------------- */
.page-hero { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); background: var(--dark); color: #cbd5e1; overflow: hidden; isolation: isolate; }
.page-hero .page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 85% 20%, rgba(199, 1, 46, .45), transparent 45%), linear-gradient(180deg, rgba(11, 18, 32, .2), rgba(11, 18, 32, .85)); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; max-width: 900px; margin-bottom: .8rem; }
.page-hero .lead-text { color: #cbd5e1; max-width: 680px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .86rem; margin-bottom: 1.1rem; color: #94a3b8; list-style: none; padding: 0; }
.crumbs a { color: #e2e8f0; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "\F285"; font-family: bootstrap-icons; font-size: .7rem; margin-right: .5rem; color: #64748b; }
.crumbs .current { color: var(--gold); max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Filtres (chips) -------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-family: var(--f-head); font-weight: 600; font-size: .88rem; transition: all .2s; }
.chip small { color: var(--muted); font-weight: 600; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.active small { color: #cbd5e1; }
.search-inline { display: flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .3rem .3rem 1rem; min-width: min(360px, 100%); transition: border-color .2s, box-shadow .2s; }
.search-inline:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.search-inline input { flex: 1; border: 0; outline: 0; background: transparent; padding: .45rem 0; font-size: .95rem; min-width: 0; }
.search-inline button { border: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; }
.form-select-c { border-radius: 999px; border: 1px solid var(--line); padding: .7rem 2.4rem .7rem 1.1rem; font-size: .95rem; }

/* Pagination */
.pagination { gap: .35rem; }
.pagination .page-link { border: 1px solid var(--line); border-radius: 12px !important; color: var(--ink-2); font-family: var(--f-head); font-weight: 600; min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.pagination .page-link:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.pagination .active > .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .disabled > .page-link { color: #cbd5e1; }

/* --- Article ---------------------------------------------------------- */
.article-hero { padding: clamp(40px, 6vw, 72px) 0 0; background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); }
.article-hero .crumbs { color: var(--muted); }
.article-hero .crumbs a { color: var(--text); }
.article-hero .crumbs .current { color: var(--brand); }
.article-hero .crumbs li + li::before { color: #cbd5e1; }
.article-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: .4rem 0 1.4rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; font-size: .9rem; color: var(--muted); padding-bottom: 2rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article-meta .author { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 600; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 800; font-size: .9rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.article-cover { border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: clamp(32px, 5vw, 56px); }
.article-cover img { width: 100%; max-height: 640px; object-fit: cover; display: block; }
.article-cover figcaption { padding: .7rem 1rem; font-size: .85rem; color: var(--muted); background: var(--surface); }
.article-layout { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 2.5rem; }
.share-rail { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: flex; flex-direction: column; gap: .5rem; }
.share-rail .label { font-size: .7rem; font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 auto .4rem; }
.share-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; transition: all .2s; }
.share-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.share-inline { display: none; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; }
@media (max-width: 767.98px) { .article-layout { grid-template-columns: 1fr; } .share-rail { display: none; } .share-inline { display: flex; } }
.prose { font-size: 1.1rem; line-height: 1.85; color: var(--ink-2); overflow-wrap: break-word; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.4rem; }
.prose h2 { font-size: 1.6rem; margin: 2.4rem 0 1rem; }
.prose h3 { font-size: 1.3rem; margin: 2rem 0 .8rem; }
.prose h4, .prose h5 { font-size: 1.1rem; margin: 1.6rem 0 .6rem; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose img { border-radius: 14px; margin: 1.2rem 0; height: auto; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.4rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--brand); }
.prose blockquote { margin: 2rem 0; padding: 1.2rem 1.6rem; border-left: 4px solid var(--brand); background: var(--brand-50); border-radius: 0 14px 14px 0; font-size: 1.15rem; color: var(--ink); font-style: italic; }
.prose table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; }
.prose th { background: var(--surface); }
.prose iframe { max-width: 100%; border-radius: 14px; }
.prose > p:first-of-type { font-size: 1.2rem; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.2rem; }
.tags a { padding: .35rem .85rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .85rem; }
.tags a:hover { background: var(--brand-50); color: var(--brand); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.post-nav a { display: block; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); transition: all .2s; }
.post-nav a:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.post-nav small { display: flex; align-items: center; gap: .35rem; font-family: var(--f-head); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: .35rem; }
.post-nav strong { font-family: var(--f-head); font-size: .95rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav .next { text-align: right; }
.post-nav .next small { justify-content: flex-end; }
@media (max-width: 575.98px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } .post-nav .next small { justify-content: flex-start; } }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--brand), var(--gold)); z-index: 2000; }

/* --- Équipe ---------------------------------------------------------- */
.team-card { text-align: left; }
.team-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); margin-bottom: 1rem; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s var(--ease), filter .4s; filter: grayscale(.25); }
.team-card:hover .team-photo img { transform: scale(1.05); filter: none; }
.team-photo .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #cbd5e1; }
.team-card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.team-card p { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.45; }
.team-card .role-chip { display: inline-block; margin-bottom: .5rem; font-family: var(--f-head); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }

/* --- Médiathèque ----------------------------------------------------- */
.masonry { columns: 4 260px; column-gap: 1rem; }
.masonry a { display: block; break-inside: avoid; margin-bottom: 1rem; border-radius: 14px; overflow: hidden; position: relative; background: var(--surface-2); }
.masonry img { width: 100%; display: block; transition: transform .6s var(--ease); }
.masonry a::after { content: "\F52A"; font-family: bootstrap-icons; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; background: rgba(11, 18, 32, .45); opacity: 0; transition: opacity .3s; }
.masonry a:hover::after { opacity: 1; }
.masonry a:hover img { transform: scale(1.05); }

/* --- Contact --------------------------------------------------------- */
.contact-card { display: flex; gap: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; height: 100%; }
.contact-card .ic { flex: 0 0 48px; height: 48px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.contact-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.contact-card p, .contact-card a { font-size: .94rem; margin: 0; color: var(--text); }
.contact-card a:hover { color: var(--brand); }
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-c .form-label { font-family: var(--f-head); font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: .35rem; }
.form-c .form-control, .form-c .form-select { border-radius: 12px; border: 1px solid var(--line); padding: .8rem 1rem; font-size: .98rem; background: var(--surface); transition: all .2s; }
.form-c .form-control:focus, .form-c .form-select:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.form-c .form-control.is-invalid { border-color: #dc3545; }
.map-frame { border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line); height: 100%; min-height: 360px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: grayscale(.3); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert-c { border-radius: 14px; padding: 1rem 1.2rem; display: flex; gap: .8rem; align-items: flex-start; }
.alert-c.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-c.danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* --- Documents (bibliothèque) ------------------------------------------- */
.doc-row { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: all .2s; }
.doc-row + .doc-row { margin-top: .8rem; }
.doc-row:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.doc-row h3 { font-size: 1.02rem; margin: 0 0 .2rem; }
.doc-row p { font-size: .9rem; color: var(--muted); margin: 0; }
.doc-row .cat { display: inline-block; font-size: .72rem; font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: .2rem; }
@media (max-width: 575.98px) { .doc-row { flex-wrap: wrap; } .doc-row .btn-c { width: 100%; } }

/* --- Événements ------------------------------------------------------ */
.event-date { flex: 0 0 72px; height: 78px; border-radius: 14px; background: var(--brand); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--f-head); line-height: 1; }
.event-date strong { font-size: 1.7rem; font-weight: 800; }
.event-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin-top: .25rem; }
.event-item { display: flex; gap: 1.2rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: all .2s; height: 100%; }
.event-item:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.event-item h3 { font-size: 1.08rem; margin: 0 0 .4rem; }
.event-item h3 a { color: var(--ink); }
.info-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: sticky; top: calc(var(--header-h) + 24px); }
.info-panel dt { font-family: var(--f-head); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.info-panel dd { color: var(--ink); font-weight: 500; margin-bottom: 1rem; }

/* --- États vides ----------------------------------------------------- */
.empty { text-align: center; padding: 3.5rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: var(--surface); }
.empty i { font-size: 2.2rem; color: #cbd5e1; display: block; margin-bottom: .6rem; }

/* --- Pied de page ---------------------------------------------------- */
.site-footer { background: var(--dark); color: #94a3b8; font-size: .94rem; }
.footer-top { padding: clamp(56px, 7vw, 88px) 0 48px; }
.footer-brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; }
.footer-brand img { height: 54px; background: #fff; border-radius: 12px; padding: 4px; }
.footer-brand strong { font-family: var(--f-head); font-size: 1.3rem; color: #fff; letter-spacing: .02em; }
.footer-about { line-height: 1.7; max-width: 380px; }
.footer-title { font-family: var(--f-head); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1.3rem; font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links a { color: #94a3b8; display: inline-flex; align-items: center; gap: .4rem; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact i { color: var(--gold); margin-top: 3px; }
.footer-contact a { color: #cbd5e1; word-break: break-word; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: .55rem; margin-top: 1.5rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.footer-social a:hover { background: var(--brand); }
.footer-post a { color: #e2e8f0; font-family: var(--f-head); font-weight: 600; line-height: 1.45; display: block; }
.footer-post a:hover { color: #fff; }
.footer-post small { color: #64748b; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.3rem 0; font-size: .86rem; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }
.footer-agree { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: .8rem; color: #cbd5e1; margin-top: 1.2rem; }
.footer-agree i { color: var(--gold); }

.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 1020; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 1.1rem; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--brand); }

/* Pages d'erreur */
.error-code { font-family: var(--f-head); font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(135deg, var(--brand), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }
