:root {
  /* Thème national : vert + orange, fond blanc. */
  --vert: #006543;
  --vert-clair: #E6F2EC;
  --vert-moyen: #1A8A5A;
  --vert-fonce: #003D28;
  --orange: #F47B20;
  --orange-clair: #FEF0E3;
  --blanc: #FAFAF8;
  --gris-clair: #F5F4F0;
  --gris: #8B8B80;
  --texte: #1A1A18;
  --texte-sec: #5C5C54;
  --bord: rgba(0,101,67,0.15);
  --ombre: 0 2px 24px rgba(0,61,40,0.10);
  --grad-vert: linear-gradient(135deg, #1FA968 0%, #0A8A54 40%, #006543 100%);
  --grad-vert-hover: linear-gradient(135deg, #178B54 0%, #05623f 100%);
  --grad-fonce: linear-gradient(160deg, #0A5D3B 0%, #024b30 45%, #012a1c 100%);
  --grad-fonce-soft: linear-gradient(155deg, #075138 0%, #003D28 60%, #01271a 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--blanc); color: var(--texte); font-size: 16px; line-height: 1.65; overflow-x: hidden; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--bord); padding: 0 2rem; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.nav-logo-icon { width: 40px; height: 40px; background: var(--vert); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Libre Baskerville', serif; font-weight: 700; color: #fff; font-size: 13px; letter-spacing: 0.5px; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-text .label-top { font-size: 9px; font-weight: 500; color: var(--gris); letter-spacing: 1.5px; text-transform: uppercase; }
.nav-logo-text .label-main { font-size: 13px; font-weight: 600; color: var(--texte); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--texte-sec); text-decoration: none; padding: 6px 14px; border-radius: 6px; transition: all 0.2s; }
.nav-links a:hover { color: var(--vert); background: var(--vert-clair); }
.nav-links a.active { color: var(--vert); font-weight: 500; }
.nav-cta { background: var(--grad-vert); color: #fff !important; border-radius: 8px !important; padding: 8px 18px !important; font-weight: 500 !important; transition: all 0.2s !important; box-shadow: 0 4px 14px rgba(0,101,67,0.25); }
.nav-cta:hover { background: var(--grad-vert-hover) !important; color: #fff !important; box-shadow: 0 6px 18px rgba(0,101,67,0.35); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; border-radius: 6px; background: none; border: none; }
.hamburger span { width: 22px; height: 2px; background: var(--texte); border-radius: 2px; display: block; transition: all 0.3s; }

/* HERO */
.hero { min-height: 100vh; padding-top: 68px; background: var(--grad-fonce); display: grid; grid-template-columns: 1fr 1.25fr; overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse 800px 600px at 30% 50%, rgba(0,101,67,0.4) 0%, transparent 70%), radial-gradient(ellipse 500px 400px at 80% 30%, rgba(244,123,32,0.08) 0%, transparent 60%); pointer-events: none; }
.hero-pattern { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,0.03) 79px, rgba(255,255,255,0.03) 80px), repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.03) 79px, rgba(255,255,255,0.03) 80px); pointer-events: none; }
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 5rem 5rem 5rem 7rem; max-width: 720px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 100px; padding: 6px 16px; margin-bottom: 2rem; width: fit-content; }
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.3); } }
.hero-badge span { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.75); letter-spacing: 0.5px; text-transform: uppercase; }
.hero-badge--link { text-decoration: none; cursor: pointer; transition: all 0.25s; }
.hero-badge--link:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.35); transform: translateY(-1px); }
.hero-badge-arrow { width: 14px; height: 14px; color: var(--orange); transition: transform 0.25s; }
.hero-badge--link:hover .hero-badge-arrow { transform: translateX(3px); }
.hero h1 { font-family: 'Libre Baskerville', serif; font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 700; line-height: 1.15; color: #fff; margin-bottom: 1.5rem; letter-spacing: -0.5px; }
.hero h1 em { font-style: italic; color: rgba(255,255,255,0.65); }
.hero-desc { font-size: 17px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 2.5rem; max-width: 480px; font-weight: 300; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-primary { background: var(--orange); color: #fff; border: none; padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.25s; font-family: 'DM Sans', sans-serif; }
.btn-primary:hover { background: #d9671a; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(244,123,32,0.35); }
.btn-outline { background: transparent; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.25); padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 400; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.25s; font-family: 'DM Sans', sans-serif; }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.10); }
.hero-stat-num { font-family: 'Libre Baskerville', serif; font-size: 2rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-stat-num span { color: var(--orange); }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; letter-spacing: 0.5px; }
.hero-visual { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 3rem 4rem 3rem 0.5rem; }
.hero-card-stack { position: relative; width: 380px; }
.hero-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 1.5rem; backdrop-filter: blur(16px); }
.hero-card-main { position: relative; z-index: 3; }
.hero-card-behind { position: absolute; top: -16px; left: 20px; right: 20px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; height: 100%; z-index: 1; }
.hero-card-behind2 { position: absolute; top: -30px; left: 40px; right: 40px; background: rgba(255,255,255,0.01); border: 1px solid rgba(255,255,255,0.04); border-radius: 16px; height: 100%; z-index: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.card-header-label { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.5); letter-spacing: 1px; text-transform: uppercase; }
.card-badge-live { background: rgba(0,200,100,0.15); color: #00c864; border-radius: 100px; padding: 3px 10px; font-size: 10px; font-weight: 600; letter-spacing: 0.5px; display: flex; align-items: center; gap: 5px; }
.card-badge-live::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #00c864; }
.card-metric-big { font-family: 'Libre Baskerville', serif; font-size: 3rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 0.25rem; }
.card-metric-label { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; }
.card-bar-track { height: 6px; background: rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; margin-bottom: 0.5rem; }
.card-bar-fill { height: 100%; background: linear-gradient(90deg, var(--vert-moyen), var(--orange)); border-radius: 10px; transition: width 1.5s ease; }
.card-bar-labels { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.4); }
.card-sparkline { display: flex; align-items: flex-end; gap: 4px; height: 48px; margin: 1.5rem 0 0.5rem; }
.spark-bar { flex: 1; background: rgba(255,255,255,0.08); border-radius: 3px 3px 0 0; position: relative; transition: background 0.2s; }
.spark-bar.hi { background: var(--orange); }
.spark-bar.med { background: rgba(255,255,255,0.2); }
.card-mini-row { display: flex; gap: 0.75rem; margin-top: 1rem; }
.card-mini { flex: 1; background: rgba(255,255,255,0.04); border-radius: 10px; padding: 0.75rem; border: 1px solid rgba(255,255,255,0.06); }
.card-mini-val { font-size: 18px; font-weight: 600; color: #fff; font-family: 'Libre Baskerville', serif; }
.card-mini-lbl { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* SECTION COMMUNE */
section { padding: 6rem 7rem; }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--vert); margin-bottom: 0.75rem; }
.section-title { font-family: 'Libre Baskerville', serif; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; color: var(--texte); line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.3px; }
.section-subtitle { font-size: 17px; color: var(--texte-sec); line-height: 1.7; max-width: 560px; font-weight: 300; }

/* CHIFFRES CLÉS */
#chiffres { background: var(--gris-clair); }
.chiffres-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.chiffre-card { background: #fff; border-radius: 16px; padding: 2rem 1.75rem; border: 1px solid var(--bord); position: relative; overflow: hidden; transition: all 0.3s; }
.chiffre-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,101,67,0.12); border-color: var(--vert); }
.chiffre-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--vert), var(--vert-moyen)); opacity: 0; transition: opacity 0.3s; }
.chiffre-card:hover::before { opacity: 1; }
.chiffre-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--vert-clair); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.chiffre-icon svg { width: 22px; height: 22px; stroke: var(--vert); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chiffre-num { font-family: 'Libre Baskerville', serif; font-size: 2.4rem; font-weight: 700; color: var(--texte); line-height: 1; margin-bottom: 0.25rem; }
.chiffre-num span { color: var(--vert); }
.chiffre-label { font-size: 14px; color: var(--texte-sec); line-height: 1.4; font-weight: 300; }
.chiffre-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: #16a34a; background: #dcfce7; padding: 3px 8px; border-radius: 100px; margin-top: 0.75rem; }

/* MISSIONS */
#missions { background: #fff; }
.missions-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: center; margin-top: 3rem; }
.mission-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.mission-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.25rem; border-radius: 12px; cursor: pointer; transition: all 0.25s; border: 1px solid transparent; }
.mission-item.active, .mission-item:hover { background: var(--vert-clair); border-color: var(--bord); }
.mission-item.active .mission-num { background: var(--vert); color: #fff; }
.mission-num { width: 32px; height: 32px; border-radius: 50%; background: var(--gris-clair); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--gris); flex-shrink: 0; transition: all 0.25s; }
.mission-text { font-size: 15px; font-weight: 400; color: var(--texte); line-height: 1.5; padding-top: 5px; }
.missions-detail { background: linear-gradient(160deg, #F79A45 0%, #F47B20 45%, #D9631A 100%); border-radius: 20px; padding: 2.5rem; color: #fff; position: relative; overflow: hidden; box-shadow: 0 20px 50px rgba(244,123,32,0.30); }
.missions-detail::after { content: '"'; position: absolute; bottom: -20px; right: 30px; font-family: 'Libre Baskerville', serif; font-size: 200px; color: rgba(255,255,255,0.04); line-height: 1; }
.detail-icon-wrap { width: 56px; height: 56px; border-radius: 14px; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.detail-icon-wrap svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.detail-title { font-family: 'Libre Baskerville', serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; color: #fff; }
.detail-body { font-size: 16px; color: #fff; line-height: 1.7; font-weight: 700; margin-bottom: 1.5rem; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.detail-tag { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.30); border-radius: 100px; padding: 4px 12px; font-size: 12px; color: #fff; }

/* PUBLICATIONS */
#publications { background: var(--gris-clair); }
.pub-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.5rem; }
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pub-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--bord); transition: all 0.3s; cursor: pointer; text-decoration: none; display: block; color: inherit; }
.pub-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,101,67,0.12); }
.pub-thumb { height: 140px; background: linear-gradient(160deg, #F79A45 0%, #F47B20 45%, #D9631A 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.pub-thumb-pattern { position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 50%); background-size: 20px 20px; }
.pub-thumb-icon { position: relative; z-index: 2; width: 52px; height: 52px; border-radius: 12px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.pub-thumb-icon svg { width: 26px; height: 26px; stroke: rgba(255,255,255,0.8); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pub-thumb-year { position: absolute; top: 14px; right: 14px; background: #fff; color: #D9631A; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 6px; z-index: 2; }
.pub-body { padding: 1.5rem; }
.pub-type { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--vert); margin-bottom: 0.5rem; }
.pub-title { font-size: 16px; font-weight: 500; color: var(--texte); line-height: 1.45; margin-bottom: 0.75rem; font-family: 'Libre Baskerville', serif; }
.pub-meta { font-size: 13px; color: var(--gris); display: flex; align-items: center; gap: 0.5rem; }
.pub-meta-sep { color: var(--bord); }

/* BIBLIOTHÈQUE DE DOCUMENTS PAR ANNÉE */
.doclib { margin-top: 4rem; }
.doclib-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.doclib-title { font-family: 'Libre Baskerville', serif; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; color: var(--texte); line-height: 1.2; }
.doclib-sub { font-size: 15px; color: var(--texte-sec); font-weight: 300; margin-top: 0.5rem; max-width: 440px; }
.year-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.year-select-label { font-size: 13px; font-weight: 600; color: var(--texte-sec); }
.year-select { appearance: none; -webkit-appearance: none; -moz-appearance: none; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006543' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 15px; border: 1px solid var(--bord); color: var(--texte); border-radius: 10px; padding: 9px 40px 9px 16px; font-size: 14px; font-weight: 600; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.2s; min-width: 190px; }
.year-select:hover { border-color: var(--vert); }
.year-select:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 3px rgba(0,101,67,0.15); }

.doclib-groups { display: flex; flex-direction: column; gap: 1rem; }
.doclib-group { display: grid; grid-template-columns: 132px 1fr; gap: 1.5rem; align-items: start; background: #fff; border: 1px solid var(--bord); border-radius: 18px; padding: 1.5rem; transition: box-shadow 0.3s; }
.doclib-group:hover { box-shadow: 0 14px 40px rgba(0,61,40,0.08); }
.doclib-year { position: relative; padding-right: 1.5rem; border-right: 1px solid var(--bord); height: 100%; display: flex; flex-direction: column; justify-content: center; }
.dy-num { font-family: 'Libre Baskerville', serif; font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -1px; background: linear-gradient(135deg, #1A8A5A 0%, #006543 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dy-count { font-size: 12px; color: var(--gris); margin-top: 6px; letter-spacing: 0.3px; }

.doclib-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.9rem; }
.doc-card { display: flex; align-items: flex-start; gap: 0.9rem; background: var(--gris-clair); border: 1px solid transparent; border-radius: 14px; padding: 1.1rem; text-decoration: none; color: inherit; transition: all 0.25s; position: relative; overflow: hidden; }
.doc-card::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--vert); opacity: 0; transition: opacity 0.25s; }
.doc-card:not(.doc-card--soon):hover { background: #fff; border-color: var(--bord); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,61,40,0.12); }
.doc-card:not(.doc-card--soon):hover::after { opacity: 1; }
.doc-card--soon { opacity: 0.65; cursor: default; }

.doc-card-ic { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-card-ic svg { width: 22px; height: 22px; }
.ic-annuaire { background: var(--vert-clair); color: var(--vert); }
.ic-poche { background: var(--orange-clair); color: var(--orange); }
.ic-fdr { background: #E7F0FF; color: #1D4ED8; }
.ic-bulletin { background: #F3E8FF; color: #7C3AED; }
.ic-autre { background: #ECECE6; color: var(--texte-sec); }

.doc-card-body { min-width: 0; flex: 1; }
.doc-card-type { font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--vert); margin-bottom: 4px; }
.doc-card--soon .doc-card-type { color: var(--gris); }
.doc-card-title { font-size: 14px; font-weight: 500; color: var(--texte); line-height: 1.4; margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc-card-foot { display: flex; align-items: center; gap: 0.6rem; }
.doc-format { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; color: var(--gris); background: #fff; border: 1px solid var(--bord); border-radius: 5px; padding: 2px 7px; }
.doc-dl { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--vert); margin-left: auto; }
.doc-dl svg { width: 14px; height: 14px; transition: transform 0.25s; }
.doc-card:hover .doc-dl svg { transform: translateY(2px); }
.doc-soon { font-size: 12px; font-style: italic; color: var(--gris); }
.doclib-note { font-size: 13px; color: var(--gris); margin-top: 1.25rem; font-weight: 300; }

@media (max-width: 700px) {
  .doclib-group { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
  .doclib-year { flex-direction: row; align-items: baseline; gap: 0.75rem; border-right: none; border-bottom: 1px solid var(--bord); padding-right: 0; padding-bottom: 0.9rem; }
  .dy-num { font-size: 2rem; }
  .dy-count { margin-top: 0; }
  .doclib-cards { grid-template-columns: 1fr; }
}

/* ACTUALITÉS */
#actualites { background: #fff; }
.actu-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin-top: 2.5rem; }
.actu-featured { background: var(--grad-fonce); border-radius: 20px; padding: 2.5rem; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; position: relative; overflow: hidden; cursor: pointer; }
.actu-featured-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 600px 400px at 80% 20%, rgba(0,101,67,0.5) 0%, transparent 70%); pointer-events: none; }
.actu-featured-cat { position: relative; z-index: 2; display: inline-flex; background: var(--orange); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 5px 14px; border-radius: 6px; width: fit-content; margin-bottom: 1.25rem; }
.actu-featured-title { position: relative; z-index: 2; font-family: 'Libre Baskerville', serif; font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 1rem; }
.actu-featured-meta { position: relative; z-index: 2; font-size: 13px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 0.75rem; }
.actu-list { display: flex; flex-direction: column; gap: 0; }
.actu-item { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--bord); cursor: pointer; transition: all 0.2s; }
.actu-item:first-child { padding-top: 0; }
.actu-item:last-child { border-bottom: none; }
.actu-item:hover .actu-item-title { color: var(--vert); }
.actu-item-date { text-align: center; flex-shrink: 0; background: var(--gris-clair); border-radius: 10px; width: 50px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.actu-day { font-family: 'Libre Baskerville', serif; font-size: 1.3rem; font-weight: 700; color: var(--texte); line-height: 1; }
.actu-month { font-size: 10px; font-weight: 600; color: var(--gris); text-transform: uppercase; letter-spacing: 0.5px; }
.actu-item-title { font-size: 14px; font-weight: 500; color: var(--texte); line-height: 1.45; transition: color 0.2s; }
.actu-item-cat { font-size: 11px; color: var(--vert); font-weight: 600; margin-bottom: 4px; letter-spacing: 0.5px; }

/* PARTENAIRES */
#partenaires { background: var(--gris-clair); }
.partners-strip { display: flex; align-items: center; gap: 3rem; margin-top: 2.5rem; flex-wrap: wrap; }
.partner-logo { height: 44px; display: flex; align-items: center; justify-content: center; opacity: 0.5; filter: grayscale(1); transition: all 0.3s; cursor: pointer; }
.partner-logo:hover { opacity: 1; filter: grayscale(0); }
.partner-text { font-family: 'Libre Baskerville', serif; font-size: 15px; font-weight: 700; color: var(--texte); letter-spacing: 0.5px; white-space: nowrap; text-decoration: none; }

/* CONTACT */
#contact { background: var(--grad-fonce); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-info .section-title, .contact-info .section-label { color: rgba(255,255,255,0.85); }
.contact-info .section-label { color: var(--orange); }
.contact-info .section-subtitle { color: rgba(255,255,255,0.5); }
.contact-detail-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 18px; height: 18px; stroke: var(--orange); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-detail-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.35); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
.contact-detail-val { font-size: 15px; color: rgba(255,255,255,0.8); font-weight: 300; }

/* FORMULAIRE */
.contact-form-wrap { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 2.5rem; backdrop-filter: blur(8px); }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; letter-spacing: 0.3px; }
.form-control { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 12px 16px; color: #fff; font-size: 15px; font-family: 'DM Sans', sans-serif; transition: all 0.2s; outline: none; }
.form-control:focus { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); }
.form-control::placeholder { color: rgba(255,255,255,0.25); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; cursor: pointer; }
.form-select option { background: var(--vert-fonce); color: #fff; }
.btn-submit { width: 100%; background: var(--orange); color: #fff; border: none; padding: 14px; border-radius: 10px; font-size: 15px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.25s; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 0.5rem; }
.btn-submit:hover { background: #d9671a; transform: translateY(-1px); }
.btn-submit svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-alert { border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 8px; }
.form-alert.ok { background: rgba(22,163,74,0.15); border: 1px solid rgba(22,163,74,0.3); color: #86efac; }
.form-alert.err { background: rgba(220,38,38,0.12); border: 1px solid rgba(220,38,38,0.25); color: #fca5a5; }

/* FOOTER */
footer { background: linear-gradient(160deg, #024b30 0%, #012a1c 60%, #000d07 100%); color: rgba(255,255,255,0.45); padding: 3rem 7rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 1rem; }
.footer-brand { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.6); }
.footer-copy { font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; list-style: none; }
html, body { max-width: 100%; overflow-x: hidden; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,13,7,0.8); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; pointer-events: none; transition: opacity 0.3s; backdrop-filter: blur(4px); }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: #fff; border-radius: 20px; max-width: 560px; width: 100%; padding: 2.5rem; position: relative; transform: translateY(20px) scale(0.97); transition: all 0.3s; }
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 1.25rem; right: 1.25rem; width: 32px; height: 32px; border-radius: 8px; background: var(--gris-clair); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.modal-close:hover { background: #e0e0da; }
.modal-close svg { width: 16px; height: 16px; stroke: var(--texte-sec); fill: none; stroke-width: 2.5; stroke-linecap: round; }
.modal-badge { display: inline-flex; background: var(--vert-clair); color: var(--vert); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; border-radius: 6px; margin-bottom: 1rem; }
.modal-title { font-family: 'Libre Baskerville', serif; font-size: 1.4rem; color: var(--texte); margin-bottom: 0.75rem; line-height: 1.3; }
.modal-body { font-size: 15px; color: var(--texte-sec); line-height: 1.7; font-weight: 300; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  section { padding: 5rem 3rem; }
  footer { padding: 2.5rem 3rem; }
  .hero-content { padding: 4rem 3rem; }
  nav { padding: 0 1.5rem; }
  .chiffres-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { padding: 3rem 2rem; }
  .missions-layout { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: 1fr; }
  .actu-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  section { padding: 4rem 2rem; }
  footer { padding: 2rem; flex-direction: column; align-items: flex-start; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: rgba(255,255,255,0.98); border-bottom: 1px solid var(--bord); padding: 1rem; gap: 0.25rem; }
  .chiffres-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
}
@media (max-width: 500px) {
  .chiffres-grid { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
.count-up { display: inline-block; }

/* ===================== GALERIE (site public) ===================== */
#galerie { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.gallery-item { margin: 0; background: #fff; border: 1px solid #ECEBE4; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: box-shadow .2s, transform .2s; }
.gallery-item:hover { box-shadow: 0 10px 26px rgba(0,61,40,.12); transform: translateY(-2px); }
.gallery-photo-link { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.gallery-photo-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.gallery-photo-link:hover img { transform: scale(1.05); }
.gallery-zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,61,40,.35); opacity: 0; transition: opacity .2s; }
.gallery-photo-link:hover .gallery-zoom { opacity: 1; }
.gallery-zoom svg { width: 34px; height: 34px; color: #fff; }
.gallery-embed { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.gallery-embed iframe, .gallery-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery-item figcaption { padding: .8rem 1rem; display: flex; flex-direction: column; gap: 2px; }
.gallery-item figcaption strong { font-size: 14px; color: var(--vert-fonce, #003D28); }
.gallery-item figcaption span { font-size: 12.5px; color: #8B8B80; }
.gallery-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 3000; display: none; align-items: center; justify-content: center; padding: 2rem; }
.gallery-lightbox.open { display: flex; }
.gallery-lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.gallery-lightbox-close { position: absolute; top: 18px; right: 28px; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; font-family: sans-serif; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: 1fr; } #galerie { padding: 3rem 1.2rem; } }

/* Galerie : filtres par album + catégorie */
.gallery-filters { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.5rem; }
.gallery-filter { border:1px solid #Dfe3df; background:#fff; color:#5C5C54; font-family:inherit; font-size:13px; font-weight:500; padding:.5rem 1rem; border-radius:100px; cursor:pointer; transition:all .18s; }
.gallery-filter:hover { border-color:#006543; color:#006543; }
.gallery-filter.active { background:#006543; border-color:#006543; color:#fff; }
.gallery-cat { font-size:11px !important; font-weight:600 !important; color:#006543 !important; text-transform:uppercase; letter-spacing:.4px; }

/* ===================== GALERIE PAR ALBUMS ===================== */
.gallery-album { margin-top: 2rem; }
.gallery-album:first-of-type { margin-top: 1.25rem; }
.gallery-album-hdr { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; padding-bottom: 0.6rem; margin-bottom: 1rem; border-bottom: 1px solid var(--bord, rgba(0,101,67,0.15)); }
.gallery-album-title { font-family: 'Libre Baskerville', serif; font-size: 1.35rem; color: var(--vert-fonce); margin: 0; }
.gallery-album-date { font-size: 13px; font-weight: 600; color: #fff; background: var(--vert); padding: 3px 10px; border-radius: 100px; }
.gallery-album-desc { color: #5C5C54; margin: -0.4rem 0 1rem; max-width: 780px; }

/* ===================== GALERIE : DOSSIERS ===================== */
.gallery-dossier { margin-top: 2.5rem; }
.gallery-dossier:first-of-type { margin-top: 1.5rem; }
.gallery-dossier-hdr { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.gallery-dossier-hdr svg { width: 22px; height: 22px; color: var(--orange); flex-shrink: 0; }
.gallery-dossier-title { font-family: 'Libre Baskerville', serif; font-size: 1.65rem; color: var(--vert-fonce); margin: 0; }
.gallery-dossier-desc { color: #5C5C54; margin: 0 0 0.5rem; max-width: 820px; }
.gallery-dossier .gallery-album { margin-top: 1.5rem; padding-left: 1rem; border-left: 3px solid var(--vert-clair); }

/* ===================== ACTUALITÉS : GRILLE DE CARTES (page dédiée) ===================== */
.actu-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.actu-card { background: #fff; border: 1px solid var(--bord); border-radius: 16px; padding: 1.5rem; transition: box-shadow .25s, transform .25s; }
.actu-card:hover { box-shadow: 0 10px 30px rgba(0,61,40,0.08); transform: translateY(-2px); }
.actu-card-cat { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--orange); margin-bottom: 0.6rem; }
.actu-card-title { font-family: 'Libre Baskerville', serif; font-size: 1.1rem; color: var(--vert-fonce); line-height: 1.35; margin: 0 0 0.6rem; }
.actu-card-desc { color: #5C5C54; font-size: 14px; line-height: 1.6; margin: 0 0 1rem; }
.actu-card-meta { display: flex; gap: 0.5rem; font-size: 12px; color: var(--gris); }
@media (max-width: 900px) { .actu-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .actu-cards { grid-template-columns: 1fr; } }

/* ===================== NAV : MENUS PERSONNALISÉS (déroulants) ===================== */
.nav-has-sub { position: relative; }
.nav-caret { font-size: 10px; opacity: 0.7; }
.nav-submenu { list-style: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; border: 1px solid var(--bord); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,61,40,0.12); padding: 0.4rem; display: none; z-index: 1200; }
.nav-has-sub:hover > .nav-submenu, .nav-has-sub:focus-within > .nav-submenu { display: block; }
.nav-submenu li { display: block; }
.nav-submenu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--texte); white-space: nowrap; }
.nav-submenu a:hover { background: var(--vert-clair); color: var(--vert); }
@media (max-width: 860px) {
  .nav-submenu { position: static; display: block; box-shadow: none; border: none; border-left: 2px solid var(--vert-clair); border-radius: 0; margin: 0.25rem 0 0.5rem 0.75rem; padding: 0; min-width: 0; }
  .nav-caret { display: none; }
}

/* ===================== BARRE DE CONTACT (haut, style institutionnel) ===================== */
.topbar-contact { position: fixed; top: 0; left: 0; right: 0; height: 34px; z-index: 1001; background: var(--vert-fonce); color: rgba(255,255,255,0.82); display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; font-size: 12.5px; }
.topbar-contact .tc-left, .topbar-contact .tc-right { display: flex; align-items: center; gap: 1.4rem; }
.topbar-contact .tc-item { color: rgba(255,255,255,0.82); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar-contact a.tc-item:hover { color: #fff; }
.topbar-contact svg { width: 14px; height: 14px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* La barre de contact décale la navigation et le hero vers le bas. */
nav#navbar { top: 34px; }
.hero { padding-top: 102px; }
@media (max-width: 760px) {
  .topbar-contact { display: none; }
  nav#navbar { top: 0; }
  .hero { padding-top: 68px; }
}
/* Pages internes (sans bannière) : décalage sous l'en-tête fixe (barre contact + nav). */
.inner-page section:first-of-type { padding-top: 8rem; }
@media (max-width: 760px) { .inner-page section:first-of-type { padding-top: 6rem; } }

/* ===================== DIAPORAMA (carrousel d'images accueil) ===================== */
.carousel-section { padding: 0; }
.carousel { position: relative; width: 100%; height: clamp(340px, 46vw, 620px); overflow: hidden; background: var(--vert-fonce); }
.carousel-track { width: 100%; height: 100%; position: relative; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; display: block; text-decoration: none; }
.carousel-slide.is-active { opacity: 1; z-index: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,36,79,0.72) 0%, rgba(4,36,79,0.15) 45%, transparent 70%); pointer-events: none; }
.carousel-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 2.5rem 7rem 3rem; color: #fff; }
.carousel-caption h2 { font-family: 'Libre Baskerville', serif; font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.2; margin: 0 0 .5rem; max-width: 900px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.carousel-caption p { font-size: clamp(.95rem, 1.4vw, 1.15rem); color: rgba(255,255,255,0.9); margin: 0; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,0.22); color: #fff; font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); transition: background .2s; }
.carousel-arrow:hover { background: var(--orange); }
.carousel-arrow.prev { left: 1.5rem; }
.carousel-arrow.next { right: 1.5rem; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 1.1rem; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.carousel-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; transition: background .2s; }
.carousel-dot.is-active { background: var(--orange); border-color: var(--orange); }
@media (max-width: 760px) {
  .carousel-caption { padding: 1.5rem 1.5rem 2.5rem; }
  .carousel-arrow { width: 38px; height: 38px; font-size: 24px; }
  .carousel-arrow.prev { left: .6rem; } .carousel-arrow.next { right: .6rem; }
}

/* Carrousel intégré dans la bannière (colonne droite du hero) */
.hero-carousel { width: 100%; max-width: 820px; height: clamp(300px, 34vw, 470px); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.12); }
.hero-carousel .carousel-caption { padding: 1.4rem 1.5rem 1.8rem; }
.hero-carousel .carousel-caption h2 { font-size: clamp(1.1rem, 1.7vw, 1.6rem); }
.hero-carousel .carousel-caption p { font-size: .9rem; }
.hero-carousel .carousel-arrow { width: 40px; height: 40px; font-size: 26px; }
.hero-carousel .carousel-arrow.prev { left: .8rem; }
.hero-carousel .carousel-arrow.next { right: .8rem; }
@media (max-width: 900px) { .hero-carousel { height: clamp(260px, 60vw, 380px); } }

/* ===================== BANNIÈRE SUR FOND BLANC ===================== */
.hero { background: #fff; }
.hero::before { background:
  radial-gradient(ellipse 800px 600px at 22% 40%, rgba(0,101,67,0.06) 0%, transparent 70%),
  radial-gradient(ellipse 520px 420px at 88% 22%, rgba(244,123,32,0.07) 0%, transparent 60%); }
.hero-pattern { background-image:
  repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(0,101,67,0.04) 79px, rgba(0,101,67,0.04) 80px),
  repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(0,101,67,0.04) 79px, rgba(0,101,67,0.04) 80px); }
.hero h1 { color: var(--vert-fonce); }
.hero h1 em { color: var(--orange); }
.hero-desc { color: var(--texte-sec); }
.hero-badge { background: var(--vert-clair); border-color: rgba(0,101,67,0.18); }
.hero-badge span { color: var(--vert); }
.hero-badge--link:hover { background: #d8ebe0; border-color: rgba(0,101,67,0.30); }
.btn-outline { color: var(--vert); border-color: rgba(0,101,67,0.35); }
.btn-outline:hover { background: var(--vert-clair); border-color: var(--vert); }
/* Cadre statistique de repli (visible si aucune diapositive) — lisible sur blanc */
.hero-card { background: #fff; border-color: var(--bord); box-shadow: 0 14px 40px rgba(0,61,40,0.10); }
.hero-card-behind { background: rgba(0,101,67,0.05); border-color: rgba(0,101,67,0.08); }
.hero-card-behind2 { background: rgba(0,101,67,0.03); border-color: rgba(0,101,67,0.05); }
.card-header-label { color: var(--gris); }
.card-metric-big, .card-mini-val { color: var(--vert-fonce); }
.card-metric-label, .card-bar-labels, .card-mini-lbl { color: var(--gris); }

/* Image d'actualité (cartes de la page Actualités) */
.actu-card { padding: 0; overflow: hidden; }
.actu-card > .actu-card-cat, .actu-card > .actu-card-title, .actu-card > .actu-card-desc, .actu-card > .actu-card-meta { margin-left: 1.5rem; margin-right: 1.5rem; }
.actu-card > .actu-card-cat { margin-top: 1.4rem; }
.actu-card > .actu-card-meta { margin-bottom: 1.5rem; }
.actu-card-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--vert-clair); margin-bottom: 1rem; }
.actu-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Slogan + texte de présentation : alignés à gauche, champ élargi */
.hero h1 { text-align: left; }
.hero-desc { text-align: left; max-width: 640px; }
.hero-content { max-width: 900px; }
@media (min-width: 901px) {
  .hero { grid-template-columns: 1.1fr 1fr; }
  .hero-content { padding: 5rem 3rem 5rem 5rem; }
}

/* ===================== ACTUALITÉS CLIQUABLES + PAGE DÉTAIL ===================== */
.actu-item { text-decoration: none; color: inherit; cursor: pointer; }
.actu-item .actu-item-title { transition: color .2s; }
.actu-item:hover .actu-item-title { color: var(--vert); }
.actu-featured { text-decoration: none; }
.actu-card { transition: box-shadow .25s, transform .25s; }
.actu-card:hover .actu-card-title { color: var(--vert); }

.actu-detail { max-width: 860px; }
.actu-back { display: inline-flex; align-items: center; gap: 4px; color: var(--vert); text-decoration: none; font-size: 14px; font-weight: 500; margin-bottom: 1.5rem; }
.actu-back:hover { text-decoration: underline; }
.actu-detail-cat { display: inline-flex; background: var(--orange); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 5px 14px; border-radius: 6px; margin-bottom: 1rem; }
.actu-detail-title { font-family: 'Libre Baskerville', serif; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--vert-fonce); line-height: 1.25; margin: 0 0 0.75rem; }
.actu-detail-meta { display: flex; gap: 0.6rem; font-size: 14px; color: var(--gris); margin-bottom: 1.75rem; }
.actu-detail-img { border-radius: 16px; overflow: hidden; margin-bottom: 2rem; max-height: 480px; }
.actu-detail-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.actu-detail-body { font-size: 17px; line-height: 1.85; color: var(--texte-sec); }
.actu-detail-lead { font-size: 19px; font-weight: 500; color: var(--texte); margin-bottom: 1.25rem; }
.actu-detail-autres { margin-top: 3.5rem; border-top: 1px solid var(--bord); padding-top: 2rem; }

/* ===================== 3 DERNIÈRES ACTUALITÉS (bas de bannière) ===================== */
.hero { grid-template-rows: 1fr auto; }
.hero-actualites { grid-column: 1 / -1; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 0 5rem 2.5rem; }
.hero-actu { display: flex; align-items: center; gap: 0.85rem; background: #fff; border: 1px solid var(--bord); border-radius: 12px; padding: 0.6rem; text-decoration: none; box-shadow: 0 6px 20px rgba(0,61,40,0.06); transition: transform .2s, box-shadow .2s; }
.hero-actu:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,61,40,0.12); }
.hero-actu-img { width: 74px; height: 60px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--vert-clair); display: flex; align-items: center; justify-content: center; color: var(--vert); }
.hero-actu-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-actu-ph svg { width: 24px; height: 24px; }
.hero-actu-txt { min-width: 0; }
.hero-actu-title { font-size: 13.5px; font-weight: 600; color: var(--vert-fonce); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actu:hover .hero-actu-title { color: var(--vert); }
.hero-actu-date { font-size: 11.5px; color: var(--gris); margin-top: 3px; }
@media (max-width: 900px) {
  .hero-actualites { grid-template-columns: 1fr; padding: 0 2rem 2rem; gap: 0.75rem; }
}

/* Bannière compacte : entièrement visible sans défilement */
.hero { min-height: auto; }
@media (min-width: 901px) {
  .hero-content { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .hero-visual { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .hero-carousel { height: clamp(260px, 28vw, 380px); }
  .hero-actualites { padding-bottom: 1.75rem; }
}

/* Compactage supplémentaire de la bannière (desktop) */
@media (min-width: 901px) {
  .hero-content { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .hero-visual { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .hero-carousel { height: clamp(210px, 20vw, 290px); }
  .hero h1 { font-size: clamp(1.9rem, 2.9vw, 2.5rem); margin-bottom: 0.8rem; }
  .hero-badge { margin-bottom: 0.9rem; }
  .hero-desc { margin-bottom: 1.2rem; font-size: 16px; }
  .hero-actions { gap: 0.8rem; }
  .hero-actualites { padding-bottom: 1rem; }
}

/* ===================== BANDEAU : MESSAGES DÉFILANTS ===================== */
.tc-ticker { flex: 1; min-width: 0; overflow: hidden; margin-left: 2rem; -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); }
.tc-ticker-track { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; animation: tc-scroll 30s linear infinite; }
.tc-ticker:hover .tc-ticker-track { animation-play-state: paused; }
.tc-ticker-item { color: #fff; font-size: 12.5px; font-weight: 700; padding: 0 1.5rem; position: relative; }
.tc-ticker-item::before { content: '•'; color: var(--orange); position: absolute; left: -3px; }
@keyframes tc-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 760px) { .tc-ticker { display: none; } }

/* Armoirie dans la navigation (avant Accueil) */
.nav-armoirie { display: flex; align-items: center; margin-right: 0.4rem; }
.nav-armoirie img { height: 46px; width: auto; display: block; }
@media (max-width: 860px) { .nav-armoirie { display: none; } }

/* Logo MESRS devant le logo DP (barre de navigation) */
.nav-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-logo-mesrs { display: flex; align-items: center; }
.nav-logo-mesrs img { height: 42px; width: auto; display: block; }
.nav-brand .nav-logo::before { content: ''; width: 1px; height: 30px; background: var(--bord); margin-right: 4px; }
@media (max-width: 600px) { .nav-logo-mesrs img { height: 34px; } .nav-brand .nav-logo-text { display: none; } }

/* ===================== GALERIE : VUE PAR DOSSIERS (cliquables) ===================== */
.gallery-intro { color: #5C5C54; margin-top: 0.5rem; }
.gallery-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 1.75rem; }
.gallery-folder-card { text-align: left; background: #fff; border: 1px solid var(--bord); border-radius: 16px; overflow: hidden; cursor: pointer; padding: 0; font-family: inherit; transition: transform .2s, box-shadow .2s; }
.gallery-folder-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,61,40,0.12); }
.gallery-folder-cover { position: relative; aspect-ratio: 4/3; background: var(--vert-clair); display: flex; align-items: center; justify-content: center; color: var(--vert); }
.gallery-folder-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-folder-ph svg { width: 46px; height: 46px; stroke-width: 1.5; }
.gallery-folder-count { position: absolute; top: 10px; right: 10px; background: rgba(0,61,40,0.78); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 100px; }
.gallery-folder-info { display: flex; align-items: center; gap: 10px; padding: 0.9rem 1rem; }
.gallery-folder-info svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; stroke-width: 2; }
.gallery-folder-name { font-family: 'Libre Baskerville', serif; font-size: 1.05rem; color: var(--vert-fonce); line-height: 1.25; }
.gallery-folder-back { background: none; border: none; color: var(--vert); font-size: 14px; font-weight: 500; cursor: pointer; margin-bottom: 1.25rem; padding: 6px 0; font-family: inherit; }
.gallery-folder-back:hover { text-decoration: underline; }
.gallery-folders[hidden] { display: none; }

/* ===== Menu Direction : Mot du Directeur & Organigramme ===== */
.mot-directeur-wrap { max-width: 820px; margin: 1.8rem auto 0; }
.mot-directeur-body p {
  color: #3a3a34;
  font-size: 1.02rem;
  line-height: 1.85;
  margin: 0 0 1.1rem;
  text-align: justify;
}
.mot-directeur-body p:first-child::first-letter {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 3.1rem;
  line-height: 0.9;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--vert);
}
.mot-directeur-sign {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--gris-clair, #e7e7e0);
  text-align: right;
}
.mot-directeur-sign .mds-nom {
  display: block;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--vert);
}
.mot-directeur-sign .mds-fct {
  display: block;
  font-size: 0.9rem;
  color: #8B8B80;
  margin-top: 2px;
}

.organigramme-wrap {
  margin: 1.4rem auto 0;
  max-width: 1100px;
  border: 1px solid var(--gris-clair, #e7e7e0);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  text-align: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.06);
}
.organigramme-wrap a { display: inline-block; cursor: zoom-in; }
.organigramme-wrap img { max-width: 100%; height: auto; border-radius: 8px; display: block; }

@media (max-width: 640px) {
  .mot-directeur-body p { text-align: left; }
  .mot-directeur-body p:first-child::first-letter { font-size: 2.5rem; }
}

/* ===== Archives à télécharger : fond des cartes en orange ===== */
.doclib .doc-card { background: #F47B20; border-color: transparent; }
.doclib .doc-card:not(.doc-card--soon):hover { background: #E06A18; border-color: transparent; box-shadow: 0 12px 28px rgba(244,123,32,0.30); }
.doclib .doc-card::after { background: #fff; }
.doclib .doc-card-ic { background: rgba(255,255,255,0.22) !important; color: #fff !important; }
.doclib .doc-card-ic svg { stroke: #fff; }
.doclib .doc-card-type { color: rgba(255,255,255,0.92); }
.doclib .doc-card--soon .doc-card-type { color: rgba(255,255,255,0.85); }
.doclib .doc-card-title { color: #fff; }
.doclib .doc-format { background: #fff; color: #D9631A; border-color: #fff; }
.doclib .doc-dl { color: #fff; }
.doclib .doc-soon { color: rgba(255,255,255,0.9); }

/* ===== Onglets du menu en orange (comme le bouton "Télécharger les rapports") ===== */
.nav-links { gap: 0.4rem; }
.nav-links > li > a {
  background: var(--orange) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 7px 15px !important;
  font-weight: 500 !important;
  box-shadow: 0 3px 10px rgba(244,123,32,0.26);
  transition: all 0.2s !important;
}
.nav-links > li > a:hover,
.nav-links > li > a.nav-sub-toggle:hover,
.nav-links > li > a.nav-cta:hover {
  background: #d9671a !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(244,123,32,0.38);
}
.nav-links > li > a.active,
.nav-links > li > a.active:hover { background: var(--vert) !important; color: #fff !important; box-shadow: 0 4px 14px rgba(0,101,67,0.28); }
.nav-links > li > a .nav-caret { color: #fff !important; }
