/* APPSR — design system moderne.
   Serif (titres) + sans (corps), navy profond, accent corail, dark mode. */

/* ---------------------------------------------------------- tokens */
:root {
  --ink: #141822;
  --ink-soft: #3b4356;
  --muted: #697089;
  --line: #e4e6ec;
  --line-soft: #eff0f4;
  --bg: #fbfaf7;
  --bg-elev: #ffffff;
  --bg-tint: #f3eeea;
  --navy: #335eea;
  --navy-deep: #2648cc;
  --coral: #ef6a4a;
  --coral-ink: #c04a2d;
  --mint: #cde7d6;
  --focus: #9ec1ff;
  --shadow-1: 0 1px 2px rgba(15,26,45,.06), 0 2px 8px rgba(15,26,45,.05);
  --shadow-2: 0 2px 8px rgba(15,26,45,.08), 0 20px 40px -20px rgba(15,26,45,.18);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --measure: 68ch;
  --font-serif: "Fraunces", "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t: 180ms cubic-bezier(.4,0,.2,1);
  color-scheme: light;
}

/* ---------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px;
}
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.015em; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); letter-spacing: -0.03em; font-weight: 450; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.02em; margin-top: 2em; }
h3 { font-size: 1.3rem; margin-top: 1.5em; }
p { margin: 0 0 1em; }

/* ---------------------------------------------------------- layout */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ---------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 0;
}
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand img { display: block; height: 26px; width: auto; }
.brand:hover { text-decoration: none; opacity: .85; }
.site-footer__brand img { height: 28px; width: auto; display: block; }
.site-footer__baseline { font-size: .95rem; margin: 10px 0 14px; color: #eef1fa; letter-spacing: .005em; line-height: 1.4; max-width: 28ch; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); font-size: .95rem; font-weight: 500; transition: background var(--t), color var(--t); }
.nav a:hover { background: var(--bg-tint); color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--ink); background: var(--bg-tint); }
.nav-tools { display: flex; gap: 6px; align-items: center; margin-left: 8px; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: transparent; color: var(--ink-soft); border: 1px solid transparent;
  transition: background var(--t), color var(--t);
}
.icon-btn:hover { background: var(--bg-tint); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
         flex-direction: column; gap: 0; background: var(--bg-elev);
         padding: 8px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-1); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 8px; }
  .menu-toggle { display: inline-grid; }
  .nav-tools { margin-left: auto; }
}

/* ---------------------------------------------------------- hero (home) */
.hero {
  padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
  position: relative;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--coral-ink); font-weight: 600;
  margin-bottom: 20px;
}
.hero__eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.hero h1 {
  max-width: 18ch;
  margin-bottom: 24px;
}
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 58ch; margin-bottom: 36px; line-height: 1.55; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- hero split (photo + text) ---- */
.hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero--split .hero__text h1 { max-width: 20ch; }
.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  justify-self: center;
}
.hero__photo {
  position: relative;
  z-index: 2;
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 62% 38% 48% 52% / 55% 45% 55% 45%;
  box-shadow: var(--shadow-2);
  transition: border-radius 10s cubic-bezier(.4,0,.2,1);
}
.hero__photo:hover {
  border-radius: 45% 55% 38% 62% / 45% 55% 45% 55%;
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero__blob {
  position: absolute;
  z-index: 1;
  top: -6%; left: -8%;
  width: 95%; height: 95%;
  background: var(--navy);
  border-radius: 48% 52% 62% 38% / 42% 58% 42% 58%;
  opacity: .22;
  transform: rotate(-10deg);
  animation: heroBlob 18s ease-in-out infinite alternate;
}
@keyframes heroBlob {
  0%   { transform: rotate(-8deg) translate(0, 0) scale(1); }
  50%  { transform: rotate(6deg) translate(2%, -3%) scale(1.03); }
  100% { transform: rotate(-4deg) translate(-2%, 2%) scale(.98); }
}
@media (max-width: 860px) {
  .hero--split { grid-template-columns: 1fr; gap: 32px; }
  .hero__media { max-width: 320px; aspect-ratio: 1 / 1; order: -1; }
  .hero--split .hero__text h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__blob { animation: none; }
  .hero__photo { transition: none; }
}

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  background: var(--navy); color: #fff;
  border: 1px solid var(--navy); transition: transform var(--t), background var(--t), box-shadow var(--t);
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, var(--shadow-1);
}
.btn:hover { background: var(--navy-deep); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--bg-tint); border-color: var(--line); color: var(--ink); }
.btn--coral { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn--coral:hover { background: var(--coral-ink); border-color: var(--coral-ink); }
.btn svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------- sections list on home */
.section-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 40px 0 72px; }
.section-card {
  display: block; padding: 28px; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--line-soft);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative; overflow: hidden;
}
.section-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line); }
.section-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-tint); color: var(--coral-ink); display: grid; place-items: center; margin-bottom: 18px; }
.section-card .section-card__icon {
  background: transparent;
  color: var(--navy);
  width: fit-content;
  height: auto;
  padding: 0;
  margin-left: -2px;
  display: block;
}
.section-card .section-card__icon svg {
  width: 44px;
  height: 44px;
  stroke-width: 1.6;
  display: block;
}
.section-card__icon svg { width: 22px; height: 22px; }
.section-card__title { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; color: var(--ink); margin: 0 0 8px; letter-spacing: -.015em; }
.section-card__desc { font-size: .95rem; color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.section-card__link { font-size: .9rem; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.section-card__link svg { width: 14px; height: 14px; transition: transform var(--t); }
.section-card:hover .section-card__link svg { transform: translateX(3px); }

/* section headers (listing pages) */
.section-head { padding: 60px 0 30px; border-bottom: 1px solid var(--line-soft); margin-bottom: 44px; }
.section-head__crumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.section-head__crumb a { color: var(--muted); }
.section-head h1 { margin: 0 0 14px; max-width: 20ch; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; max-width: 62ch; margin: 0; }

/* ---------------------------------------------------------- article grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-bottom: 80px; }
.card {
  background: var(--bg-elev); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line); }
.card a { color: inherit; display: block; }
.card a:hover { text-decoration: none; }
.card__media { aspect-ratio: 16/10; background: var(--bg-tint); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.4,0,.2,1); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__group { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-ink); font-weight: 700; }
.card-grid--no-group .card__group { display: none; }
.card__title { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.card__excerpt { font-size: .93rem; color: var(--muted); line-height: 1.55; margin: 0; }
.card__meta { margin-top: auto; padding-top: 12px; font-size: .82rem; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.card__meta svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------- article page */
.article-hero {
  position: relative;
  background: var(--bg-tint);
  margin-bottom: 40px;
}
.article-hero__inner { max-width: 880px; margin: 0 auto; padding: 50px 24px 56px; }
.article-hero__crumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.article-hero__crumb a { color: var(--muted); }
.article-hero__crumb .sep { opacity: .5; }
.article-hero h1 { max-width: 22ch; margin: 0 0 18px; }
.article-hero__lead { color: var(--ink-soft); font-size: 1.15rem; max-width: 60ch; line-height: 1.55; margin: 0; }
.article-hero__inner svg { width: 16px; height: 16px; flex-shrink: 0; }
.article-hero__img {
  max-width: 880px; margin: 0 auto 50px; padding: 0 24px;
}
.article-hero__img img {
  width: 100%; aspect-ratio: 21/9; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
}

.article {
  max-width: 720px; margin: 0 auto 80px; padding: 0 24px;
  font-size: 1.07rem; line-height: 1.78;
}
.article h1 { display: none; } /* titre déjà dans le hero */
.article h2 { font-size: 1.7rem; margin-top: 2em; }
.article h3 { font-size: 1.25rem; margin-top: 1.6em; }
.article p { color: var(--ink-soft); }
.article ul, .article ol { padding-left: 1.4em; margin: 0 0 1em; color: var(--ink-soft); }
.article li { margin-bottom: .4em; }
.article blockquote { border-left: 3px solid var(--coral); padding: 0 0 0 20px; margin: 1.6em 0; font-family: var(--font-serif); font-size: 1.2rem; color: var(--ink); font-style: italic; }
.article img { border-radius: var(--radius-sm); margin: 1.6em auto; }
.article a { color: var(--coral-ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--coral-ink) 40%, transparent); }
.article a:hover { text-decoration-color: var(--coral-ink); }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.article code { background: var(--bg-tint); padding: 1px 6px; border-radius: 4px; font-size: .9em; }

/* ---- callouts & tableaux pour les articles ---- */
.article .callout {
  margin: 2em 0;
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--bg-elev);
}
.article .callout h2,
.article .callout h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: 0;
}
.article .callout ul { margin: 0; padding-left: 1.2em; color: var(--ink-soft); }
.article .callout li { margin-bottom: .5em; }
.article .callout li:last-child { margin-bottom: 0; }

.article .callout--key {
  background: color-mix(in srgb, var(--navy) 6%, var(--bg-elev));
  border: 1px solid color-mix(in srgb, var(--navy) 18%, var(--line-soft));
  border-left: 3px solid var(--navy);
}
.article .callout--key h2 { color: var(--navy-deep); }

.article .callout--contact {
  background: color-mix(in srgb, var(--coral) 6%, var(--bg-elev));
  border: 1px solid color-mix(in srgb, var(--coral) 20%, var(--line-soft));
  border-left: 3px solid var(--coral);
}
.article .callout--contact h3 { color: var(--coral-ink); }

.article .article-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2em 0;
  font-size: .95rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.article .article-table thead {
  background: color-mix(in srgb, var(--navy) 6%, var(--bg-elev));
}
.article .article-table th,
.article .article-table td {
  text-align: left;
  padding: 12px 16px;
  color: var(--ink-soft);
  vertical-align: top;
}
.article .article-table th {
  font-weight: 600;
  color: var(--ink);
  font-size: .82rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.article .article-table tbody tr + tr td,
.article .article-table tbody tr + tr th {
  border-top: 1px solid var(--line-soft);
}
.article .article-table td strong { color: var(--ink); }

@media (max-width: 640px) {
  .article .callout { padding: 20px 20px; }
  .article .article-table { font-size: .9rem; }
  .article .article-table th,
  .article .article-table td { padding: 10px 12px; }
}

/* related */
.related { background: var(--bg-tint); padding: 60px 0; margin-top: 60px; }
.related h2 { font-size: 1.5rem; margin: 0 0 24px; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.related-item { background: var(--bg-elev); padding: 20px; border-radius: var(--radius); border: 1px solid var(--line-soft); transition: transform var(--t); }
.related-item:hover { transform: translateY(-2px); text-decoration: none; }
.related-item__group { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--coral-ink); font-weight: 700; margin-bottom: 6px; }
.related-item__title { font-family: var(--font-serif); font-size: 1.05rem; color: var(--ink); font-weight: 500; line-height: 1.35; }

/* reading progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: transparent; z-index: 100; pointer-events: none; }
.progress__bar { height: 100%; width: 0; background: var(--coral); transition: width 80ms linear; }

/* ---------------------------------------------------------- footer */
.site-footer { background: var(--navy-deep); color: #e2e6f1; padding: 60px 0 32px; margin-top: 80px; }
.site-footer a { color: #cfd6e6; }
.site-footer a:hover { color: #fff; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 36px; }
.site-footer__brand { font-family: var(--font-serif); font-size: 1.4rem; color: #fff; margin-bottom: 10px; display: block; }
.site-footer h4 { font-family: var(--font-sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #a9b2c8; font-weight: 600; margin: 0 0 14px; }
.site-footer h4 a { color: inherit; transition: color var(--t); }
.site-footer h4 a:hover { color: #fff; text-decoration: none; }
.site-footer__sub { gap: 10px !important; }
.site-footer__sub a {
  font-family: var(--font-sans);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #a9b2c8;
  font-weight: 600;
  transition: color var(--t);
}
.site-footer__sub a:hover { color: #fff; text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: #a9b2c8; }
.site-footer__bottom a { color: #cfd6e6; }

/* ---------------------------------------------------------- search dialog */
.search-dialog {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: color-mix(in srgb, #000 55%, transparent);
  animation: fade 200ms ease;
}
.search-dialog.open { display: block; }
.search-panel {
  position: absolute; top: 12vh; left: 50%; transform: translateX(-50%);
  width: min(620px, calc(100% - 32px));
  background: var(--bg-elev); border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
  overflow: hidden; border: 1px solid var(--line);
}
.search-panel__input {
  width: 100%; border: 0; padding: 20px 24px; font: 500 1.1rem var(--font-sans);
  background: transparent; color: var(--ink); border-bottom: 1px solid var(--line-soft);
}
.search-panel__input:focus { outline: 0; }
.search-panel__results { max-height: 55vh; overflow: auto; padding: 8px; }
.search-hit { display: block; padding: 12px 14px; border-radius: 10px; color: var(--ink); }
.search-hit:hover, .search-hit.active { background: var(--bg-tint); text-decoration: none; }
.search-hit__title { font-family: var(--font-serif); font-size: 1rem; font-weight: 500; margin-bottom: 2px; }
.search-hit__meta { font-size: .78rem; color: var(--muted); }
.search-panel__empty { padding: 24px; color: var(--muted); text-align: center; font-size: .95rem; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

/* ---------------------------------------------------------- contact map */
.contact-map {
  max-width: 820px;
  margin: 10px auto 80px;
  padding: 0 24px;
}
.contact-map iframe {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
  background: var(--bg-tint);
}
.contact-map__caption {
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
  margin: 16px 0 0;
  line-height: 1.7;
}
.contact-map__caption svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; color: var(--navy); }
.contact-map__caption a { color: var(--navy); font-weight: 500; }
.contact-map__sep { color: var(--line); margin: 0 10px; }
@media (max-width: 560px) {
  .contact-map__sep { display: block; height: 0; margin: 4px 0; }
}

/* ---------------------------------------------------------- contact form */
.contact-form { display: grid; gap: 18px; max-width: 560px; margin: 32px auto 80px; }
.contact-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--ink); font: inherit;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form__actions { display: flex; justify-content: flex-start; }
.contact-form__status { font-size: .9rem; padding: 10px 14px; border-radius: var(--radius-sm); min-height: 0; }
.contact-form__status:empty { padding: 0; }
.contact-form__status--ok { background: #e8f6ee; color: #1a7c3e; border: 1px solid #b7e4c7; }
.contact-form__status--err { background: #fdecec; color: #b1352a; border: 1px solid #f5c7c3; }

/* ---------------------------------------------------------- utils */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 600ms, transform 600ms; }
.fade-up.in { opacity: 1; transform: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg-tint); color: var(--coral-ink); font-size: .78rem; font-weight: 600; letter-spacing: .04em; }

/* ---------------------------------------------------------- admin button */
.admin-link {
  position: fixed; bottom: 18px; right: 18px;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; box-shadow: var(--shadow-2);
  opacity: .9; z-index: 40;
}
.admin-link:hover { opacity: 1; text-decoration: none; transform: translateY(-1px); }

/* ---------------------------------------------------------- Chiffres clés */
.chiffres { padding-bottom: 80px; display: grid; gap: 28px; }

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-tile {
  background: var(--bg-elev); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color var(--t), transform var(--t);
}
.stat-tile:hover { border-color: var(--navy); transform: translateY(-2px); }
.stat-tile__val { font-family: var(--font-serif); font-size: 2.1rem; font-weight: 500; letter-spacing: -.02em; color: var(--navy); line-height: 1; }
.stat-tile__lab { color: var(--ink); font-size: .95rem; line-height: 1.4; margin-top: 6px; }
.stat-tile__src { color: var(--muted); font-size: .76rem; margin-top: auto; padding-top: 10px; }

.chart-card {
  background: var(--bg-elev); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 32px clamp(20px, 3vw, 36px);
}
.chart-card--highlight { background: var(--navy); border-color: var(--navy); color: #fff; }
.chart-card--highlight h2 { color: #fff; }
.chart-card--highlight .chart-card__src { color: color-mix(in srgb, #fff 70%, transparent); }
.chart-card--highlight .cost-item__val { color: var(--ink); }
.chart-card__head { margin-bottom: 20px; }
.chart-card__head h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 6px; letter-spacing: -.02em; }
.chart-card__head p { color: var(--muted); margin: 0; font-size: .95rem; max-width: 70ch; }
.chart-card__src { color: var(--muted); font-size: .78rem; margin: 18px 0 0; font-style: italic; }

.chart { width: 100%; height: auto; display: block; overflow: visible; }

/* axes & grid */
.chart-grid { stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-ax-y { fill: var(--muted); font-size: 11px; font-family: var(--font-sans); }
.chart-ax-x { fill: var(--muted); font-size: 11.5px; font-family: var(--font-sans); }

/* line (sans animation) */
.chart-line { stroke: var(--navy); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart-line--coral { stroke: var(--coral); }
.chart-dot { fill: var(--navy); stroke: #fff; stroke-width: 2; }
.chart-dot--coral { fill: var(--coral); }
/* halo lumineux qui parcourt la courbe (sans point visible) */
.chart-tracer-glow {
  fill: var(--navy); stroke: none;
  filter: blur(7px);
  opacity: .85;
}
.chart-tracer-glow--coral { fill: var(--coral); }

/* bars */
.chart-bar { fill: var(--navy); transform: scaleX(0); transform-origin: left center; transform-box: fill-box; transition: transform 1s cubic-bezier(.22,.9,.3,1); }
.chart.chart--in .chart-bar { transform: scaleX(1); }
.chart-bar--avg { fill: var(--navy); opacity: .55; }
.chart-bar-val { opacity: 0; transition: opacity .4s ease 1s; }
.chart.chart--in .chart-bar-val { opacity: 1; }
.chart-bar-label { fill: var(--ink); font-size: 13px; font-family: var(--font-sans); font-weight: 500; }
.chart-bar-val { fill: var(--muted); font-size: 12px; font-family: var(--font-sans); font-weight: 600; }

/* donut */
.chart-card--donut .chart-card__donut-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.chart-card--donut .chart { max-width: 320px; margin: 0 auto; }
.chart-donut-pct { fill: var(--ink); font-family: var(--font-serif); font-size: 42px; font-weight: 500; letter-spacing: -.02em; }
.chart-donut-lab { fill: var(--muted); font-size: 13px; }
.chart-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.chart-legend li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; color: var(--ink-soft); line-height: 1.5; }
.chart-legend__sw { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; margin-top: 4px; }
@media (max-width: 640px) {
  .chart-card--donut .chart-card__donut-row { grid-template-columns: 1fr; }
}

/* timeline (états initiaux — l'animation est pilotée par JS inline) */
.chart-tl-line { stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; }
.chart-tl-dot { fill: var(--navy); opacity: 0; transform: scale(.3); transform-origin: center; transform-box: fill-box; }
.chart-tl-year, .chart-tl-name { opacity: 0; }
.chart-tl-year { fill: var(--navy); font-family: var(--font-serif); font-size: 16px; font-weight: 500; }
.chart-tl-name { fill: var(--ink); font-size: 12.5px; font-weight: 600; font-family: var(--font-sans); }

/* donut : affichage direct, pas d'animation */
.chart-donut-pct, .chart-donut-lab { opacity: 1; }

/* reduced-motion : désactive tout */
@media (prefers-reduced-motion: reduce) {
  .chart-line, .chart-dot, .chart-bar, .chart-bar-val,
  .chart-arc, .chart-tl-line, .chart-tl-dot,
  .chart-tl-year, .chart-tl-name,
  .chart-donut-pct, .chart-donut-lab {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
    stroke-dasharray: none !important;
  }
}
.laws-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.laws-list li { padding: 12px 16px; background: var(--bg); border-radius: var(--radius-sm); font-size: .95rem; color: var(--ink-soft); line-height: 1.55; }
.laws-list strong { color: var(--ink); font-weight: 600; }

/* cost grid */
.cost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.cost-item { background: var(--bg-elev); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px 24px; }
.cost-item__val { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 500; color: var(--coral-ink); letter-spacing: -.02em; line-height: 1; margin-bottom: 8px; }
.cost-item__lab { color: var(--ink-soft); font-size: .92rem; line-height: 1.45; }

/* ---------------------------------------------------------- Glossaire */
.gloss { max-width: 1000px; margin: 0 auto; padding-bottom: 80px; }
.gloss__toolbar {
  position: sticky; top: 72px; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 16px 0 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.gloss-search {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border: 1px solid var(--line); background: var(--bg-elev);
  border-radius: 999px; margin-bottom: 14px;
  transition: border-color var(--t), box-shadow var(--t);
}
.gloss-search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy) 18%, transparent); }
.gloss-search svg { color: var(--muted); flex-shrink: 0; }
.gloss-search input { flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1rem; outline: 0; }
.gloss-search__count { color: var(--muted); font-size: .85rem; white-space: nowrap; }

.gloss-letters {
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
}
.gloss-letter {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  font-family: var(--font-serif); font-weight: 500; font-size: 1rem;
  color: var(--muted); background: transparent;
  transition: background var(--t), color var(--t);
}
.gloss-letter:hover { background: var(--bg-tint); color: var(--navy); text-decoration: none; }
.gloss-letter--active { color: var(--navy); font-weight: 600; }
.gloss-letter--off { color: var(--line); pointer-events: none; }

.gloss-group { padding-top: 32px; scroll-margin-top: 220px; }
.gloss-group__letter {
  font-family: var(--font-serif);
  font-size: 3.5rem; font-weight: 500;
  color: var(--navy); margin: 0 0 20px;
  letter-spacing: -.03em; line-height: 1;
  padding-bottom: 10px; border-bottom: 1px solid var(--line-soft);
}
.gloss-group__list { display: grid; gap: 22px; }
.gloss-term {
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 220px;
}
.gloss-term:last-child { border-bottom: 0; }
.gloss-term__name {
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500;
  letter-spacing: -.01em; color: var(--ink); margin: 0 0 8px;
}
.gloss-term__def {
  color: var(--ink-soft); font-size: 1rem; line-height: 1.65;
  margin: 0; max-width: 72ch;
}

.gloss-empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------------------------------------------------------- FAQ (home) */
.faq { padding: 60px 0 40px; max-width: 820px; }
.faq__head { text-align: center; margin-bottom: 36px; }
.faq__eyebrow {
  display: inline-block;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy); font-weight: 700; margin-bottom: 10px;
}
.faq__head h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2rem); letter-spacing: -.02em; }
.faq__list { display: grid; gap: 10px; }
.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2px 22px;
  transition: border-color var(--t), box-shadow var(--t);
}
.faq-item:hover { border-color: var(--line); }
.faq-item[open] { box-shadow: var(--shadow-1); border-color: var(--line); }
.faq-item__q {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.35;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { content: ""; }
.faq-item__chev {
  flex-shrink: 0;
  color: var(--navy);
  transition: transform var(--t);
}
.faq-item[open] .faq-item__chev { transform: rotate(180deg); }
.faq-item__a {
  padding: 0 0 20px;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.65;
  animation: faqSlide .25s cubic-bezier(.4,0,.2,1);
}
.faq-item__a p { margin: 0; max-width: 62ch; }
@keyframes faqSlide { from { opacity: 0; transform: translateY(-4px);} to { opacity: 1; transform: none;} }
.faq__foot { text-align: center; margin: 32px 0 0; color: var(--muted); font-size: .95rem; }
.faq__foot a { color: var(--navy); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
.faq__foot a svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------- assureurs grid (home) */
.assureurs { padding: 20px 0 50px; }
.assureurs__title {
  text-align: center; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); font-weight: 600; margin: 0 0 28px;
}
.assureurs__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px 40px; align-items: center; justify-items: center;
  max-width: 1000px; margin-inline: auto;
}
.assureurs__item {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 140px;
  padding: 10px;
  filter: grayscale(100%);
  opacity: .55;
  transition: opacity var(--t), filter var(--t), transform var(--t);
}
.assureurs__item:hover { filter: grayscale(0); opacity: 1; transform: translateY(-2px); }
.assureurs__item img { width: 100%; height: auto; max-height: 48px; object-fit: contain; }
@media (max-width: 500px) {
  .assureurs__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media print {
  .site-header, .site-footer, .progress, .admin-link, .search-dialog { display: none !important; }
}

/* ============================================================
   Fiches pratiques — Diagnostic express (wizard) + grille
   ============================================================ */
.wiz { padding: 20px 0 50px; }
.wiz__shell {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}

.wiz__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.wiz__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; color: var(--navy); margin-bottom: 8px;
}
.wiz__eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); display: inline-block; animation: wizPulse 1.8s infinite; }
@keyframes wizPulse { 0%,100% { opacity:1; transform: scale(1);} 50% { opacity:.4; transform: scale(1.4);} }
.wiz__head h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); max-width: 22ch; }
.wiz__progress { font-size: .82rem; color: var(--muted); font-weight: 500; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); white-space: nowrap; }

.wiz__step { display: none; animation: wizFade .35s cubic-bezier(.4,0,.2,1); }
.wiz__step.wiz-visible { display: block; }
@keyframes wizFade { from { opacity: 0; transform: translateY(8px);} to { opacity:1; transform: none;} }

.wiz-question {
  font-family: var(--font-serif); font-weight: 500; letter-spacing: -.01em;
  font-size: 1.35rem; margin: 0 0 22px; color: var(--ink);
}

/* étape 1 : cartes situation */
.wiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.wiz-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  text-align: left; cursor: pointer; width: 100%;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t), background var(--t);
  position: relative;
}
.wiz-card:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-2); background: var(--bg-elev); }
.wiz-card:hover .wiz-card__arrow { opacity: 1; transform: translateX(2px); color: var(--navy); }
.wiz-card__emoji { font-size: 1.6rem; width: 44px; height: 44px; display: grid; place-items: center; background: var(--bg-tint); border-radius: 12px; flex-shrink: 0; }
.wiz-card__label { flex: 1; font-weight: 500; color: var(--ink); line-height: 1.35; font-size: .95rem; }
.wiz-card__arrow { opacity: 0; color: var(--muted); transition: opacity var(--t), transform var(--t), color var(--t); display: inline-flex; }
.wiz-card__arrow svg { width: 18px; height: 18px; }

/* étape 2 : options verticales */
.wiz-back { background: transparent; border: 0; color: var(--muted); padding: 0 0 18px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .9rem; font-weight: 500; }
.wiz-back:hover { color: var(--navy); }
.wiz-options { display: grid; gap: 12px; }
.wiz-option {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; text-align: left; width: 100%;
  transition: border-color var(--t), transform var(--t), background var(--t);
}
.wiz-option:hover { border-color: var(--navy); background: var(--bg-elev); transform: translateX(4px); }
.wiz-option__num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-tint); color: var(--ink);
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  flex-shrink: 0; font-family: var(--font-serif);
}
.wiz-option:hover .wiz-option__num { background: var(--navy); color: #fff; }
.wiz-option__label { flex: 1; font-weight: 500; color: var(--ink); font-size: 1rem; line-height: 1.4; }
.wiz-option svg { color: var(--muted); flex-shrink: 0; }
.wiz-option:hover svg { color: var(--navy); }

/* résultats */
.wiz-recos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 24px; }
.wiz-reco {
  display: block; padding: 20px 22px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  animation: wizPop .5s cubic-bezier(.4,0,.2,1) both;
  animation-delay: calc(var(--reco-i, 0) * 80ms);
}
.wiz-reco:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--navy); }
@keyframes wizPop { from { opacity:0; transform: translateY(10px) scale(.98);} to { opacity:1; transform: none;} }
.wiz-reco__badge {
  display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; font-weight: 700; margin-bottom: 10px;
}
.wiz-reco__badge[data-cat="refus"]         { background: #fde6e2; color: #a63620; }
.wiz-reco__badge[data-cat="sante"]         { background: #d5efe3; color: #1b6b48; }
.wiz-reco__badge[data-cat="remboursement"] { background: #fbe9c7; color: #8a5a07; }
.wiz-reco__badge[data-cat="situation"]     { background: #e3e2fb; color: #3d35a6; }
.wiz-reco__title { font-family: var(--font-serif); font-weight: 500; font-size: 1.15rem; margin: 0 0 8px; line-height: 1.3; color: var(--ink); letter-spacing: -.01em; }
.wiz-reco__excerpt { font-size: .9rem; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.wiz-reco__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); font-size: .9rem; }
.wiz-reco:hover .wiz-reco__cta svg { transform: translateX(3px); transition: transform var(--t); }

.wiz__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.wiz__actions--top { position: absolute; top: 20px; right: 20px; }

/* ---- grille complète avec filtres ---- */
.fact-browse-head { margin: 56px 0 22px; }
.fact-browse-head h2 { font-size: 1.6rem; margin: 0 0 6px; }
.fact-browse-head p { color: var(--muted); margin: 0; }

.fact-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.fact-filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--ink-soft);
  border-radius: 999px; font-size: .88rem; font-weight: 500; cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.fact-filter:hover { border-color: var(--navy); color: var(--ink); }
.fact-filter--active { background: var(--navy); border-color: var(--navy); color: #fff; }
.fact-filter__count {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  font-size: .72rem; font-weight: 700;
}

.fact-search {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--line); background: var(--bg-elev);
  border-radius: var(--radius-sm); margin-bottom: 28px;
}
.fact-search svg { color: var(--muted); flex-shrink: 0; }
.fact-search input { flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; outline: 0; }
.fact-search__count { color: var(--muted); font-size: .85rem; white-space: nowrap; }

.fact-card .card__body { gap: 10px; }
.fact-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.fact-pill {
  display: inline-block; font-size: .7rem; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px; font-weight: 600;
  background: var(--bg-tint); color: var(--muted);
}
.fact-pill--refus         { background: #fde6e2; color: #a63620; }
.fact-pill--sante         { background: #d5efe3; color: #1b6b48; }
.fact-pill--remboursement { background: #fbe9c7; color: #8a5a07; }
.fact-pill--situation     { background: #e3e2fb; color: #3d35a6; }
.fact-pill--action        { background: transparent; color: var(--muted); border: 1px solid var(--line); }


/* ============================================================
   Mode tabs (choix guidé / décrire ma situation)
   ============================================================ */
.wiz__mode-tabs { display: inline-flex; gap: 2px; background: var(--bg-tint); padding: 4px; border-radius: 999px; margin-bottom: 26px; }
.wiz__mode {
  background: transparent; border: 0; padding: 7px 16px; border-radius: 999px;
  color: var(--muted); font: inherit; font-weight: 600; font-size: .88rem;
  cursor: pointer; transition: background var(--t), color var(--t);
}
.wiz__mode:hover { color: var(--ink); }
.wiz__mode--active { background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-1); }

/* ---------- texte libre ---------- */
.wiz-textbox {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); transition: border-color var(--t), box-shadow var(--t);
}
.wiz-textbox:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy) 18%, transparent); }
.wiz-textbox svg { color: var(--muted); flex-shrink: 0; }
.wiz-textbox input { flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1rem; outline: 0; }

.wiz-suggest { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 16px 0 24px; }
.wiz-suggest__label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.wiz-chip {
  background: var(--bg-tint); border: 0; color: var(--ink-soft);
  padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 500;
  cursor: pointer; transition: background var(--t), color var(--t);
}
.wiz-chip:hover { background: var(--navy); color: #fff; }

.wiz-matches { display: grid; gap: 10px; }
.wiz-matches__label { font-size: .85rem; color: var(--muted); margin: 0 0 4px; font-weight: 500; }
.wiz-match {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; text-align: left; width: 100%;
  transition: border-color var(--t), transform var(--t), background var(--t);
  animation: wizPop .4s cubic-bezier(.4,0,.2,1) both;
  animation-delay: calc(var(--reco-i, 0) * 70ms);
}
.wiz-match:hover { border-color: var(--navy); background: var(--bg-elev); transform: translateX(3px); }
.wiz-match__title { font-family: var(--font-serif); font-weight: 500; font-size: 1.05rem; color: var(--ink); margin-bottom: 2px; letter-spacing: -.01em; }
.wiz-match__meta { font-size: .82rem; color: var(--muted); }
.wiz-match svg { color: var(--muted); }
.wiz-match:hover svg { color: var(--navy); }
.wiz-nores { color: var(--muted); font-size: .92rem; padding: 10px 0; }

/* ============================================================
   Plan d'action (résultat)
   ============================================================ */
.plan { animation: wizFade .4s cubic-bezier(.4,0,.2,1); }

.plan__head { margin-bottom: 24px; }
.plan__badge {
  display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; font-weight: 700; margin-bottom: 12px;
}
.plan__badge[data-cat="refus"]         { background: #fde6e2; color: #a63620; }
.plan__badge[data-cat="sante"]         { background: #d5efe3; color: #1b6b48; }
.plan__badge[data-cat="remboursement"] { background: #fbe9c7; color: #8a5a07; }
.plan__badge[data-cat="situation"]     { background: #e3e2fb; color: #3d35a6; }
.plan__title { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.02em; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 8px; color: var(--ink); line-height: 1.2; }
.plan__intro { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.55; max-width: 60ch; margin: 0 0 16px; }
.plan__meta { display: flex; gap: 20px; font-size: .88rem; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.plan__meta-item { display: inline-flex; align-items: center; gap: 6px; }

.plan__progress { position: relative; height: 8px; background: var(--bg-tint); border-radius: 999px; margin-bottom: 8px; overflow: hidden; }
.plan__progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--navy), var(--coral)); border-radius: 999px; transition: width .4s cubic-bezier(.4,0,.2,1); }
.plan__progress-bar--full { background: #4caa82; animation: planCelebrate 1s ease; }
@keyframes planCelebrate { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, #4caa82 55%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.plan__progress-label { display: block; margin-top: 10px; font-size: .82rem; color: var(--muted); font-weight: 500; }

.plan__steps { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; counter-reset: plan-step; }
.plan-step {
  display: grid; grid-template-columns: auto auto 1fr auto; gap: 16px; align-items: start;
  padding: 18px 22px 20px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); position: relative;
  animation: wizPop .5s cubic-bezier(.4,0,.2,1) both;
  animation-delay: calc(var(--reco-i, 0) * 50ms);
  transition: background var(--t), border-color var(--t);
}
.plan-step--done { background: color-mix(in srgb, var(--bg-tint) 60%, var(--bg)); border-color: var(--line-soft); }
.plan-step--done .plan-step__title { text-decoration: line-through; color: var(--muted); }
.plan-step--done .plan-step__icon { opacity: .4; filter: grayscale(0.8); }

.plan-step__check { position: relative; display: inline-flex; align-items: center; cursor: pointer; margin-top: 2px; }
.plan-step__check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan-step__box {
  width: 24px; height: 24px; border-radius: 7px;
  border: 1.5px solid var(--line); background: var(--bg-elev);
  display: grid; place-items: center; color: transparent;
  transition: all var(--t);
}
.plan-step__check input:checked + .plan-step__box { background: #4caa82; border-color: #4caa82; color: #fff; }
.plan-step__check:hover .plan-step__box { border-color: var(--navy); }
.plan-step__check input:focus-visible + .plan-step__box { box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 30%, transparent); }

.plan-step__icon { font-size: 1.4rem; line-height: 1; margin-top: 1px; }
.plan-step__body { min-width: 0; }
.plan-step__title { font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 6px; font-size: 1rem; }
.plan-step__meta { display: flex; gap: 14px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; align-items: center; }
.plan-step__link { display: inline-flex; align-items: center; gap: 4px; color: var(--navy); font-weight: 500; }
.plan-step__link:hover svg { transform: translateX(2px); transition: transform var(--t); }

.plan-step__num {
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500;
  color: var(--muted); align-self: start; margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.plan-step--done .plan-step__num { color: #4caa82; }

.plan__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- print : ne montrer que le plan ---------- */
@media print {
  body > *:not(main) { display: none !important; }
  .site-header, .site-footer, .progress, .admin-link, .search-dialog, .admin-link,
  .section-head, .wiz__head, .wiz__mode-tabs, .wiz__step:not(.wiz-visible),
  #toutes-les-fiches, .wiz__shell::before, .no-print { display: none !important; }
  .wiz__shell { border: 0; box-shadow: none; padding: 0; }
  .wiz { padding: 0; }
  .plan-step { break-inside: avoid; border: 1px solid #ddd; }
  .plan__progress { display: none; }
  .plan__title { color: #000; }
  body { background: #fff; color: #000; }
}
body.printing-plan .wiz__head,
body.printing-plan .wiz__mode-tabs { display: none; }

/* ============================================================
   Glossaire — hero split (texte + image en blob)
   ============================================================ */

.gloss-hero { padding: 50px 0 40px; }
.gloss-hero__split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.gloss-hero__text .section-head__crumb { margin-bottom: 14px; }
.gloss-hero__text h1 { max-width: 20ch; margin: 0 0 .4em; }
.gloss-hero__text p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.55; max-width: 52ch; margin: 0; }

.gloss-hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  justify-self: center;
}
.gloss-hero__photo {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 62% 38% 48% 52% / 55% 45% 55% 45%;
  box-shadow: var(--shadow-2);
  transition: border-radius 10s cubic-bezier(.4,0,.2,1);
}
.gloss-hero__photo:hover {
  border-radius: 45% 55% 38% 62% / 45% 55% 45% 55%;
}
.gloss-hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 860px) {
  .gloss-hero__split { grid-template-columns: 1fr; gap: 28px; }
  .gloss-hero__media { max-width: 280px; order: -1; }
  .gloss-hero__text h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gloss-hero__photo { transition: none; }
}

/* ============================================================
   Focus — entrée par la question
   ============================================================ */

.focus-ask {
  padding: 50px 0 96px;
  background:
    radial-gradient(ellipse at 50% -20%,
      color-mix(in srgb, var(--navy) 10%, transparent) 0%,
      transparent 55%),
    var(--bg);
}

/* split : texte + 3 pastilles à gauche, image en blob à droite */
.focus-ask__split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: 56px;
}
.focus-ask__text { min-width: 0; }
.focus-ask__eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy-deep);
  background: color-mix(in srgb, var(--navy) 12%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.focus-ask__title {
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  margin: 0 0 .35em;
  color: var(--ink);
  max-width: 20ch;
}
.focus-ask__lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 52ch;
}

/* ---------- média droite (image en blob organique) ---------- */
.focus-ask__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  justify-self: center;
}
.focus-ask__photo {
  position: relative;
  z-index: 2;
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 62% 38% 48% 52% / 55% 45% 55% 45%;
  box-shadow: var(--shadow-2);
  transition: border-radius 10s cubic-bezier(.4,0,.2,1);
}
.focus-ask__photo:hover {
  border-radius: 45% 55% 38% 62% / 45% 55% 45% 55%;
}
.focus-ask__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.focus-ask__blob {
  position: absolute;
  z-index: 1;
  top: -6%; left: -8%;
  width: 95%; height: 95%;
  background: var(--navy);
  border-radius: 48% 52% 62% 38% / 42% 58% 42% 58%;
  opacity: .22;
  transform: rotate(-10deg);
  animation: focusBlob 18s ease-in-out infinite alternate;
}
@keyframes focusBlob {
  0%   { transform: rotate(-8deg) translate(0, 0) scale(1); }
  50%  { transform: rotate(6deg) translate(2%, -3%) scale(1.03); }
  100% { transform: rotate(-4deg) translate(-2%, 2%) scale(.98); }
}

/* ---------- pastilles de question (empilées verticalement) ---------- */
.focus-ask__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.focus-opt {
  background: var(--bg-elev);
  border: 1.5px solid var(--line-soft);
  border-radius: 18px;
  padding: 22px 20px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t), background var(--t);
  font-family: inherit;
}
.focus-opt:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in srgb, var(--navy) 30%, var(--line-soft));
}
.focus-opt--active {
  border-color: var(--navy);
  background: color-mix(in srgb, var(--navy) 5%, var(--bg-elev));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy) 14%, transparent);
}
.focus-opt__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  background: transparent;
  color: var(--navy);
  display: grid;
  place-items: center;
  transition: color var(--t), transform var(--t);
}
.focus-opt--active .focus-opt__icon {
  color: var(--navy-deep);
  transform: scale(1.05);
}
.focus-opt__picto { width: 44px; height: 44px; }
.focus-opt__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.focus-opt__label {
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
}
.focus-opt__hint {
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.35;
}
.focus-opt__badge {
  flex: 0 0 auto;
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--bg-tint);
  padding: 4px 10px;
  border-radius: 999px;
  min-width: 26px;
  text-align: center;
}
.focus-opt--active .focus-opt__badge {
  background: var(--navy);
  color: #fff;
}

/* ---------- panneau de réponse ---------- */
.focus-ask__answers {
  max-width: 820px;
  margin: 0 auto;
  min-height: 200px;
}
.focus-panel {
  animation: none;
}
.focus-panel__intro {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--navy) 5%, var(--bg-elev));
  border-left: 3px solid var(--navy);
  border-radius: 0 10px 10px 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.9,.3,1);
}
.focus-panel__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.focus-panel--in .focus-panel__intro {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- carte réponse (article) ---------- */
.focus-ans {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.9,.3,1), border-color var(--t), box-shadow var(--t), transform var(--t);
}
.focus-ans:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--navy) 35%, var(--line-soft));
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.focus-panel--in .focus-ans { opacity: 1; transform: translateY(0); }
.focus-panel--in .focus-ans:nth-child(1) { transition-delay: .12s; }
.focus-panel--in .focus-ans:nth-child(2) { transition-delay: .22s; }
.focus-panel--in .focus-ans:nth-child(3) { transition-delay: .32s; }
.focus-panel--in .focus-ans:nth-child(4) { transition-delay: .42s; }
.focus-panel--in .focus-ans:nth-child(5) { transition-delay: .52s; }
.focus-panel--in .focus-ans:nth-child(6) { transition-delay: .62s; }
.focus-panel--in .focus-ans:nth-child(7) { transition-delay: .72s; }
.focus-panel--in .focus-ans:nth-child(8) { transition-delay: .82s; }

.focus-ans__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  background: transparent;
  color: var(--navy);
  display: grid;
  place-items: center;
}
.focus-ans__picto { width: 44px; height: 44px; }
.focus-ans__text { flex: 1; min-width: 0; }
.focus-ans__answer {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.focus-ans__title {
  font-family: var(--font-sans, inherit);
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: 0;
}
.focus-ans__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: .82rem;
}
.focus-ans__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.focus-ans__meta svg { width: 13px; height: 13px; }
.focus-ans__cta {
  color: var(--navy);
  font-weight: 600;
  transition: gap var(--t);
}
.focus-ans:hover .focus-ans__cta { gap: 8px; }

@media (max-width: 860px) {
  .focus-ask__split { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .focus-ask__media { max-width: 320px; order: -1; }
}
@media (max-width: 640px) {
  .focus-ask { padding: 40px 0 64px; }
  .focus-ask__title { max-width: none; }
  .focus-opt { padding: 18px 16px; }
  .focus-opt__icon { flex: 0 0 48px; width: 48px; height: 48px; }
  .focus-opt__picto { width: 36px; height: 36px; }
  .focus-ans { padding: 16px; gap: 12px; }
  .focus-ans__icon { flex: 0 0 48px; width: 48px; height: 48px; }
  .focus-ans__picto { width: 36px; height: 36px; }
  .focus-ans__answer { font-size: .98rem; }
}
@media (prefers-reduced-motion: reduce) {
  .focus-ask__blob { animation: none; }
  .focus-ask__photo { transition: none; }
}

