/* =========================================================
   CHCFMEM – feuille de style (identité : bleu marine #1A4071, Sen + Lato)
   ========================================================= */
:root {
  --navy: #1a4071;
  --navy-2: #12305a;
  --sky: #dbe9f6;
  --sky-2: #eef4fa;
  --teal: #2a9d8f;
  --amber: #e9a23b;
  --red: #c0392b;
  --ink: #1d2a3a;
  --ink-2: #41536b;
  --muted: #6a7a8e;
  --line: #dde5ee;
  --bg: #ffffff;
  --bg-alt: #f4f8fc;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(18, 48, 90, .08);
  --c1: #1a4071; --c2: #2a9d8f; --c3: #e9a23b; --c4: #d1495b; --c5: #5fa8d3; --c6: #7b6ca8;
  --font-h: 'Sen', system-ui, sans-serif;
  --font-b: 'Lato', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-b); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
h1, h2, h3, h4, h5, h6, .h2, .h3, .h4, .h5, .h6 { font-family: var(--font-h); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2, .h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3, .h3 { font-size: 1.45rem; } .h4 { font-size: 1.3rem; } .h5 { font-size: 1.12rem; } .h6 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.muted { color: var(--muted); } .small { font-size: .88rem; } .center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(860px, 100% - 32px); }
.eyebrow { display: inline-block; font-family: var(--font-h); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: .5em; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--navy); color: #fff; border: 2px solid var(--navy); border-radius: 999px; padding: 11px 24px; font: 700 .95rem var(--font-b); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--navy-2); color: #fff; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--sky-2); color: var(--navy); }
.btn-ghost { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .28); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--sky); color: var(--navy); }
.btn-danger { background: #fff; color: var(--red); border-color: #f0c9c4; }
.btn-danger:hover { background: #fdf0ee; color: var(--red); }
.btn-sm { padding: 7px 16px; font-size: .88rem; }
.btn-xs { padding: 4px 11px; font-size: .8rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row form { margin: 0; }
.link { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(219, 233, 246, .96); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(26, 64, 113, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.5rem var(--font-h); color: var(--navy); }
.brand img { width: 58px; height: auto; background: #fff; border-radius: 8px; padding: 3px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a, .has-sub > a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: .93rem; white-space: nowrap; }
.main-nav > a:hover, .has-sub > a:hover { background: rgba(255, 255, 255, .7); }
.main-nav a.active { box-shadow: inset 0 -3px 0 var(--navy); border-radius: 8px 8px 0 0; }
.nav-espace { display: inline-flex !important; align-items: center; gap: 6px; }
.nav-cta { margin-left: 8px; color: #fff !important; }
.has-sub { position: relative; }
.has-sub > a::after { content: ''; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.sub { position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: none; max-height: 70vh; overflow: auto; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: grid; }
.sub a { padding: 7px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: .92rem; }
.sub a:hover { background: var(--sky-2); color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span:not(.sr) { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .2s; }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .main-nav { position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 24px; box-shadow: var(--shadow); display: none; max-height: calc(100vh - 72px); overflow: auto; }
  .menu-open .main-nav { display: flex; }
  .sub { position: static; display: grid; box-shadow: none; padding: 0 0 0 12px; max-height: none; }
  .has-sub > a::after { display: none; }
  .nav-cta { margin: 8px 0 0; }
  .main-nav a.active { box-shadow: inset 3px 0 0 var(--navy); border-radius: 0 8px 8px 0; }
}

/* ---------- Héros et sections ---------- */
.hero { position: relative; background: var(--bg) center / cover no-repeat; background-image: var(--bg); min-height: min(78vh, 680px); display: flex; align-items: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 60, .15), rgba(10, 30, 60, .45)); }
.hero-inner { position: relative; display: flex; justify-content: center; }
.hero-card { background: rgba(255, 255, 255, .88); backdrop-filter: blur(4px); border-radius: 18px; padding: clamp(24px, 4vw, 48px); max-width: 760px; text-align: center; box-shadow: var(--shadow); }
.hero-card p { font-size: 1.12rem; color: var(--ink-2); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.hero-actions .btn-ghost { color: var(--navy); border-color: var(--navy); background: transparent; }
.quick-search { margin-top: -34px; position: relative; z-index: 2; }
.search-bar { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 8px 8px 8px 22px; box-shadow: var(--shadow); max-width: 820px; margin: 0 auto; color: var(--muted); }
.search-bar input { flex: 1; border: 0; font: inherit; padding: 10px 4px; min-width: 0; outline: none; }
.page-hero { position: relative; background: var(--navy) center / cover no-repeat; background-image: var(--bg); color: #fff; padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 80px); }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 48, 90, .92), rgba(18, 48, 90, .55)); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; max-width: 900px; }
.page-hero p { max-width: 760px; font-size: 1.1rem; opacity: .95; }
.page-hero.slim { padding: 56px 0 40px; }
.page-hero a { color: #fff; }
.sub-title { display: block; font-size: .5em; font-weight: 700; opacity: .9; margin-top: .3em; }
.crumbs { font-size: .9rem; opacity: .9; margin-bottom: .6em; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.alt { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split.top { align-items: start; }
.media img, .media-stack img { border-radius: 16px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.media { margin: 0; }
.media-logo img { box-shadow: none; max-width: 340px; margin: auto; }
.media-stack { display: grid; gap: 16px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.center-head { text-align: center; max-width: 780px; margin: 0 auto 36px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.5vw, 28px); box-shadow: 0 1px 2px rgba(18, 48, 90, .04); margin-bottom: 20px; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.cards-2 .card { margin: 0; }
.pillars { list-style: none; padding: 0; display: grid; gap: 14px; }
.pillars li { background: #fff; border-left: 4px solid var(--teal); padding: 12px 16px; border-radius: 0 10px 10px 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.section.alt .pillars li, .pillars li { background: var(--bg); }
.section.alt .pillars li { background: #fff; }
.pillars strong { display: block; color: var(--navy); font-family: var(--font-h); }
.checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .8rem; display: grid; place-items: center; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: var(--bg-alt); border-radius: 16px; padding: 24px; text-align: center; }
.feature img { max-height: 220px; margin: 0 auto 16px; border-radius: 12px; }
.welcome { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: center; margin-top: 40px; padding: 28px; border-radius: 16px; background: var(--sky-2); }
.doc-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.doc-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 700; }
.doc-list a:hover { border-color: var(--navy); }
.doc-list small { color: var(--muted); font-weight: 400; }
.band { position: relative; background: var(--navy) center / cover; background-image: var(--bg); color: #fff; padding: 90px 0; text-align: center; }
.band::before { content: ''; position: absolute; inset: 0; background: rgba(18, 48, 90, .72); }
.band-inner { position: relative; max-width: 820px; }
.band h2 { color: #fff; }
.band p { font-size: 1.15rem; }
.news-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-icon { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.news-icon:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.news-icon img { width: 64px; height: 64px; margin-bottom: 14px; }
.more { font-weight: 700; color: var(--navy); }
.more::after { content: ' →'; }
.cta-band { position: relative; background: var(--navy) center / cover; background-image: var(--bg); color: #fff; padding: 64px 0; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 48, 90, .95), rgba(18, 48, 90, .6)); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 640px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 900px; margin: auto; }
.member { margin: 0; text-align: center; background: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.member img { width: 180px; height: 220px; object-fit: cover; border-radius: 12px; margin: 0 auto 14px; }
.member strong { display: block; font-family: var(--font-h); color: var(--navy); font-size: 1.15rem; }
.member span { display: block; color: var(--teal); font-weight: 700; }
.member small { color: var(--muted); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.news-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--sky-2); }
.news-card > div { padding: 20px; }
.prose figure { margin: 24px 0; }
.prose figure img { border-radius: 12px; margin: auto; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; text-align: center; }
.prose .authors img { max-width: 420px; }
.fig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.notes { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; }
.letter { background: var(--bg-alt); border-radius: 16px; padding: clamp(20px, 4vw, 40px); }
.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; font-family: var(--font-h); }
.faq p { margin: 10px 0 0; }

/* ---------- Annuaire / carte ---------- */
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 14px; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 20px; }
.filters label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.f-actions { display: flex; gap: 12px; align-items: center; }
.annuaire-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.map-col { position: sticky; top: 90px; }
.map { height: 620px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 1; background: var(--sky-2); }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .85rem; color: var(--ink-2); margin-top: 10px; }
.map-jump button { background: var(--sky-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; cursor: pointer; font: inherit; font-size: .8rem; color: var(--navy); margin: 2px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.dot-de { background: var(--navy); } .dot-dts { background: var(--teal); }
.pin span { display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.pin-de span { background: var(--navy); } .pin-dts span { background: var(--teal); }
.pop { display: grid; gap: 3px; font: 14px/1.4 var(--font-b); min-width: 210px; }
.pop strong { font-family: var(--font-h); color: var(--navy); font-size: 1rem; }
.pop em { color: var(--ink-2); font-style: normal; }
.pop-more { font-weight: 700; margin-top: 4px; }
.result-count { margin: 0 0 10px; color: var(--ink-2); }
.results { display: grid; gap: 12px; max-height: 660px; overflow: auto; padding-right: 4px; }
.r-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.r-card:hover, .r-card.on { border-color: var(--navy); box-shadow: var(--shadow); }
.r-card h3 { font-size: 1.1rem; margin: 6px 0 2px; }
.r-card p { margin: 0 0 2px; font-size: .93rem; }
.r-nom { color: var(--ink-2); font-weight: 700; }
.r-geo { color: var(--muted); font-size: .84rem !important; }
.r-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.r-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9rem; margin: 6px 0; word-break: break-all; }
.r-more { font-weight: 700; font-size: .9rem; }
.dist { margin-left: auto; font-weight: 700; color: var(--teal); font-size: .9rem; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #eef1f5; color: var(--ink-2); white-space: nowrap; }
.badge-de { background: var(--navy); color: #fff; } .badge-dts { background: var(--teal); color: #fff; }
.badge-adh { background: #fdf3e1; color: #9a5f05; } .badge-ok { background: #e3f4ec; color: #1d7a4c; }
.badge-warn { background: #fdf3e1; color: #9a5f05; } .badge-open { background: var(--sky); color: var(--navy); }
.centre-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.map-centre { height: 100%; min-height: 380px; }
.info-list { display: grid; grid-template-columns: 200px 1fr; gap: 10px 16px; margin: 16px 0; }
.info-list dt { font-weight: 700; color: var(--ink-2); }
.info-list dd { margin: 0; word-break: break-word; }

/* ---------- Formulaires ---------- */
input, select, textarea { width: 100%; min-height: 46px; font: inherit; font-size: 1rem; color: var(--ink); padding: 11px 13px; border: 1.5px solid #c9d5e2; border-radius: 9px; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26, 64, 113, .15); outline: none; }
input:disabled, textarea:disabled, select:disabled { background: #f3f6f9; color: var(--ink-2); }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; line-height: 1.45; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .93rem; color: var(--ink-2); }
.form fieldset { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 14px; }
.form legend { font: 700 1.1rem var(--font-h); color: var(--navy); margin-bottom: 12px; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; }
.full { grid-column: 1 / -1; }
.form label.check, label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); }
label.check input, .radio input, input[type=checkbox], input[type=radio] { width: auto; min-height: 0; margin-top: 4px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.form .radio { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ink); }
.hp { position: absolute; left: -5000px; }
.narrow-form { max-width: 520px; }
.inline-form { margin-top: 12px; }
.alert { padding: 14px 18px; border-radius: 10px; margin: 0 0 18px; border: 1px solid; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-ok { background: #e9f7f0; border-color: #b9e3cd; color: #155f3b; }
.alert-err { background: #fdf0ee; border-color: #f2c4bd; color: #8e2a1d; }
.alert-info { background: var(--sky-2); border-color: var(--sky); color: var(--navy); }
.alert.big { font-size: 1.05rem; padding: 22px; }
.flash-wrap { padding-top: 16px; }
.steps { padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; padding-left: 46px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 .95rem var(--font-h); }
.steps-card { background: var(--sky-2); border-color: var(--sky); }

/* ---------- Authentification ---------- */
.auth { background: var(--bg-alt); min-height: 60vh; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 40px; align-items: start; justify-content: center; }
.auth-card { max-width: 520px; margin: 0 auto; box-shadow: var(--shadow); }
.auth-help { padding-top: 12px; }
.code-input { font: 700 1.8rem/1 ui-monospace, Consolas, monospace; letter-spacing: .4em; text-align: center; padding: 14px; }

/* ---------- Espace centre / admin ---------- */
.app-shell { display: grid; grid-template-columns: 250px 1fr; gap: 32px; padding: 32px 0 64px; align-items: start; }
.app-side { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; }
.side-who { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.side-who small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 700; }
.side-who strong { font-family: var(--font-h); color: var(--navy); }
.app-side nav { display: grid; gap: 2px; order: 2; }
.app-side nav a { padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .93rem; }
.app-side nav a:hover { background: var(--sky-2); }
.app-side nav a.active { background: var(--navy); color: #fff; }
.side-logout { order: 3; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; }
.app-main { min-width: 0; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 24px 0 32px; }
.dash-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.dash-card:hover { border-color: var(--navy); box-shadow: var(--shadow); color: var(--ink); }
.dash-card p { flex: 1; }
.big-num { font: 800 2rem var(--font-h); color: var(--navy); }
.warn { color: #9a5f05; font-weight: 700; }
.list-plain { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.row-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.row-item form { margin: 0; }
.empty { padding: 28px; text-align: center; background: var(--bg-alt); border-radius: var(--radius); color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 20px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--bg-alt); font-family: var(--font-h); color: var(--navy); font-size: .85rem; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table .actions form { margin: 0; }
.table-num td:not(:first-child), .table-num th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-section td { background: var(--sky-2); font-weight: 700; color: var(--navy); font-family: var(--font-h); }
td.mine { background: #fdf8ee; font-weight: 700; }
.inline-edit { display: flex; gap: 6px; }
.inline-edit input { padding: 5px 8px; font-size: .88rem; min-width: 220px; }
.toggle { border: 1.5px solid #c9d5e2; background: #fff; border-radius: 999px; padding: 3px 14px; cursor: pointer; font: 700 .8rem var(--font-b); color: var(--muted); }
.toggle.on { background: #e3f4ec; border-color: #b9e3cd; color: #1d7a4c; }
.filter-inline { display: flex; align-items: center; gap: 10px; max-width: 420px; margin-bottom: 12px; font-weight: 700; color: var(--ink-2); }
.inline-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--sky-2); border-color: var(--sky); }
.inline-card p { margin: 0; }
.form-card summary { cursor: pointer; color: var(--navy); }
.form-card[open] summary { margin-bottom: 14px; }
details.card > summary { cursor: pointer; }
details.card[open] > summary { margin-bottom: 14px; }
.adh-item summary { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.info-list.cols { grid-template-columns: 180px 1fr; }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

/* Enquêtes */
.survey-list { display: grid; gap: 14px; }
.survey-item { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 0; }
.survey-item > div:first-child { flex: 1; }
.survey-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.progress { height: 8px; background: #e6edf4; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--navy)); border-radius: 99px; transition: width .3s; }
.survey-progress { position: sticky; top: 80px; z-index: 5; padding: 14px 20px; }
.survey-section legend { display: flex; align-items: center; gap: 10px; }
.sec-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .9rem; }
.q-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
.form .q { font-weight: 400; color: var(--ink); align-content: end; }
.q-full { grid-column: 1 / -1; }
.q-missing input, .q-missing textarea { border-color: var(--amber); background: #fffaf0; }
.q-missing span::after { content: ' – à compléter'; color: #9a5f05; font-weight: 700; font-size: .85em; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; box-shadow: 0 -4px 18px rgba(18, 48, 90, .08); }

/* Résultats */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 16px 0 24px; }
.kpi { background: var(--navy); color: #dbe9f6; border-radius: var(--radius); padding: 16px 18px; font-size: .9rem; }
.kpi span { display: block; font: 800 2rem/1.1 var(--font-h); color: #fff; }
.synthese { padding-left: 20px; display: grid; gap: 6px; }
.charts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.chart-card { margin: 0 0 20px; }
.chart-box { position: relative; height: 320px; }
.pdf-only { display: none; }
.pdf-mode .pdf-only { display: flex; }
.pdf-head { align-items: center; gap: 16px; border-bottom: 2px solid var(--navy); padding-bottom: 12px; margin-bottom: 16px; }
.pdf-mode .rapport { width: 190mm; }
.pdf-mode .charts { grid-template-columns: 1fr 1fr; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-2); color: #c7d6e8; padding: 56px 0 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .h6 { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-logo { background: #fff; border-radius: 10px; padding: 6px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer ul a { text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding: 18px 0; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .centre-detail, .annuaire-grid, .auth-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .map-col { position: static; }
  .map { height: 420px; }
  .results { max-height: none; }
  .filters { grid-template-columns: 1fr 1fr; }
  .f-search { grid-column: 1 / -1; }
  .feature-grid, .news-icons, .team { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .app-shell { grid-template-columns: 1fr; }
  .app-side { position: static; }
  .app-side nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .charts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards-2, .grid-2, .grid-3, .q-grid, .fig-grid, .filters { grid-template-columns: 1fr; }
  .welcome { grid-template-columns: 1fr; text-align: center; }
  .welcome img { margin: auto; }
  .info-list, .info-list.cols { grid-template-columns: 1fr; gap: 2px; }
  .info-list dd { margin-bottom: 10px; }
  .search-bar { border-radius: 16px; flex-wrap: wrap; padding: 12px; }
  .search-bar .btn { width: 100%; }
  .survey-item, .row-item { flex-direction: column; align-items: stretch; }
  .hero { min-height: 520px; }
}
@media print {
  .site-header, .site-footer, .app-side, .sticky-actions, #pdf-btn { display: none !important; }
  .app-shell { display: block; }
}
.enq-form { margin: 20px 0; background: #fff; }
#enq-form { scroll-margin-top: 110px; } #enq-msg .alert { margin-bottom: 4px; }
.enq-nationale { border-left: 4px solid var(--teal); margin-top: 20px; } .enq-nationale .btn { margin-top: 4px; }
