/* ==========================================================================
   CHIC e-RDV - Feuille de style principale (mobile-first)
   Charte inspirée des e-services publics du Bénin (service-public.bj, eservices.anip.bj) :
   bleu institutionnel #0a3764, orange #f0a945, bandeau tricolore, Montserrat (titres), Inter (texte).
   ========================================================================== */

/* ---------- 1. Polices (hébergées localement, licence OFL) ---------- */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/montserrat-700.woff2") format("woff2"); }

/* ---------- 2. Jetons de design ---------- */
:root {
  /* Institutionnel */
  --primary: #0a3764;
  --primary-700: #082c50;
  --primary-800: #07294d;
  --primary-900: #051d34;
  --primary-rgb: 10, 55, 100;
  --primary-50: #eef2f8;
  --primary-100: #dfe7f2;
  --primary-200: #c8d5e5;

  /* Accent (orange e-services) */
  --accent: #f0a945;
  --accent-600: #e0952c;
  --accent-text: #8a5206;
  --accent-50: #fdf4e6;
  --accent-200: #f3d6a6;

  /* Médical rassurant */
  --success: #1f7a3a;
  --success-50: #e8f5ec;
  --success-200: #b7dfc2;
  --danger: #c81e1e;
  --danger-50: #fdecec;
  --danger-200: #f5b5b5;
  --warning: #9a6700;
  --warning-50: #fff7e0;
  --info: #0b6e99;
  --info-50: #e6f4fa;

  /* Drapeau */
  --flag-green: #006828;
  --flag-yellow: #ffbe00;
  --flag-red: #eb0000;

  /* Neutres */
  --bg: #f6f8fb;
  --surface: #ffffff;
  --border: #e3e8ef;
  --border-strong: #cfd7e2;
  --text: #1b2430;
  --muted: #5b6573;
  --subtle: #8a93a0;

  /* Typographie */
  --font: "Inter", Arial, "Helvetica Neue", sans-serif;
  --font-title: "Montserrat", "Inter", Arial, sans-serif;
  --lh-tight: 1.25;
  --lh: 1.5;

  /* Formes & profondeur */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(7, 41, 77, .06), 0 1px 3px rgba(7, 41, 77, .08);
  --shadow: 0 4px 16px rgba(7, 41, 77, .08);
  --shadow-lg: 0 16px 48px rgba(7, 41, 77, .18);
  --focus: 0 0 0 3px rgba(240, 169, 69, .55);

  --header-h: 64px;
  --gutter: 16px;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: var(--lh);
  color: var(--text); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-700); }
h1, h2, h3, h4, .h1, .h2, .h3 { font-family: var(--font-title); line-height: var(--lh-tight); color: var(--primary-800); margin: 0 0 .5em; letter-spacing: -.01em; }
h1, .h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 700; }
h2, .h2 { font-size: clamp(1.3rem, 3.2vw, 1.6rem); font-weight: 600; }
h3, .h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
code { font-size: .9em; background: var(--primary-50); padding: .1em .35em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #111; padding: .5rem 1rem; z-index: 1000; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { left: 8px; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -.25em; }
.icon--lg { width: 1.6em; height: 1.6em; }

/* ---------- 4. Mise en page ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 760px; }
.container.mid { max-width: 980px; }
.section { padding: 2rem 0; }
.section--tight { padding: 1.25rem 0; }
.grid { display: grid; gap: 1rem; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.spacer { flex: 1; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.fw-600 { font-weight: 600; }
.overline { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .35rem; }
.lead { font-size: 1.05rem; color: var(--muted); }
.page-head { padding: 1.5rem 0 1rem; }
.page-head h1 { margin-bottom: .25rem; }
.page-head p { color: var(--muted); margin: 0; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 3rem 0; }
}

/* ---------- 5. En-tête & navigation ---------- */
.site-header { background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(5, 29, 52, .25); }
.site-header__bar { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand__mark { width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.brand__mark svg { width: 24px; height: 24px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-title); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.brand__sub { font-size: .66rem; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }
.nav-toggle { margin-left: auto; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }
.main-nav { display: none; width: 100%; padding: .5rem 0 1rem; }
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav button.linklike {
  display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; text-transform: uppercase;
  font-family: var(--font-title); font-weight: 500; font-size: .85rem; letter-spacing: .02em; padding: .8rem .25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--accent); }
.nav-actions { display: flex; gap: .5rem; flex-wrap: wrap; padding-top: .75rem; }
.nav-badge { background: var(--accent); color: #1b1b1b; font-size: .7rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 5px; }
.flag-stripe { display: flex; height: 5px; }
.flag-stripe span { flex: 1; }
.flag-stripe span:nth-child(1) { background: var(--flag-green); }
.flag-stripe span:nth-child(2) { background: var(--flag-yellow); }
.flag-stripe span:nth-child(3) { background: var(--flag-red); }

@media (min-width: 1100px) {
  .site-header__bar { flex-wrap: nowrap; }
  .brand__sub { display: none; }
  .nav-toggle { display: none; }
  .main-nav { display: flex !important; align-items: center; width: auto; padding: 0; margin-left: auto; gap: 1rem; }
  .main-nav ul { display: flex; align-items: stretch; }
  .main-nav li { display: flex; align-items: center; }
  .main-nav li + li { border-left: 1px solid rgba(255,255,255,.2); }
  .main-nav a { border: 0; padding: .35rem .7rem; font-size: .76rem; line-height: 1.25; white-space: nowrap; }
  .main-nav { gap: .75rem; }
  .nav-actions { padding: 0; flex-wrap: nowrap; }
}

/* Sous-navigation d'espace (patient, pro, admin) */
.subnav { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: var(--header-h); z-index: 40; }
.subnav ul { display: flex; gap: .25rem; overflow-x: auto; list-style: none; margin: 0; padding: 0; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: flex; align-items: center; gap: .45rem; white-space: nowrap; padding: .85rem .75rem .7rem; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--primary); }
.subnav a.is-active { color: var(--primary); border-bottom-color: var(--accent); }

/* ---------- 6. Boutons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--primary); --btn-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
  padding: .6rem 1.1rem; border-radius: var(--r-sm); border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font: 600 .95rem/1.2 var(--font); text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { filter: brightness(.97); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn--primary { --btn-bg: var(--primary); --btn-fg: #fff; --btn-bd: var(--primary); }
.btn--primary:hover { --btn-bg: var(--primary-700); filter: none; }
.btn--accent { --btn-bg: var(--accent); --btn-fg: #1b1b1b; --btn-bd: var(--accent); }
.btn--accent:hover { --btn-bg: var(--accent-600); filter: none; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--primary); --btn-bd: var(--primary); }
.btn--outline:hover { --btn-bg: var(--primary); --btn-fg: #fff; filter: none; }
.btn--ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn--ghost:hover { --btn-bg: var(--primary-50); filter: none; }
.btn--danger { --btn-bg: var(--surface); --btn-fg: var(--danger); --btn-bd: var(--danger-200); }
.btn--danger:hover { --btn-bg: var(--danger-50); filter: none; }
.btn--success { --btn-bg: var(--success); --btn-fg: #fff; --btn-bd: var(--success); }
.btn--glass { --btn-bg: rgba(255,255,255,.18); --btn-fg: #fff; --btn-bd: transparent; text-transform: uppercase; font-family: var(--font-title); font-weight: 500; font-size: .8rem; letter-spacing: .02em; }
.btn--glass:hover { --btn-bg: rgba(255,255,255,.28); --btn-fg: #fff; filter: none; }
.btn--sm { min-height: 36px; padding: .4rem .8rem; font-size: .85rem; }
.btn--lg { min-height: 52px; padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- 7. Formulaires ---------- */
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > label, .label { font-weight: 600; font-size: .92rem; color: var(--text); }
.field .req { color: var(--danger); margin-left: 2px; }
.help { font-size: .82rem; color: var(--muted); margin: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: .6rem .8rem; border: 1.5px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); font: 400 1rem/1.3 var(--font); transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .18); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid, .is-invalid .input { border-color: var(--danger); background: #fffafa; }
.field-error { color: var(--danger); font-size: .85rem; font-weight: 500; margin: 0; display: flex; gap: .35rem; align-items: flex-start; }
.field-error::before { content: "!"; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.choices { display: grid; gap: .5rem; }
@media (min-width: 640px) { .choices--inline { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .6rem .9rem; border: 1.5px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); font-weight: 500; transition: all .15s; }
.choice span::before { content: ""; width: 18px; height: 18px; border: 2px solid var(--border-strong); border-radius: 50%; flex-shrink: 0; background: #fff; }
.choice input[type=checkbox] + span::before { border-radius: 4px; }
.choice input:checked + span { border-color: var(--primary); background: var(--primary-50); color: var(--primary-800); }
.choice input:checked + span::before { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.choice input:focus-visible + span { box-shadow: var(--focus); }
.input-group { display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--r-sm); padding: 0 .8rem; min-height: 52px; }
.input-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .18); }
.input-group input { border: 0; outline: 0; flex: 1; min-width: 0; font: 400 1rem var(--font); background: transparent; color: var(--text); height: 48px; }
.input-group .icon { color: var(--subtle); }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; margin-top: 1.5rem; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }

/* ---------- 8. Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.card--pad { padding: 1.25rem; }
@media (min-width: 640px) { .card--pad { padding: 1.5rem; } }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.card__head h2, .card__head h3 { margin: 0; font-size: 1.05rem; }
.card__body { padding: 1.25rem; }
.card__foot { padding: .9rem 1.25rem; border-top: 1px solid var(--border); background: #fbfcfe; border-radius: 0 0 var(--r) var(--r); }
.card--soft { background: var(--primary-50); border-color: var(--primary-100); box-shadow: none; }
.card--accent { border-left: 4px solid var(--accent); }

.service-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1rem; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary-200); color: var(--text); }
.service-card__icon, .disc { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.service-card__icon svg, .disc svg { width: 26px; height: 26px; }
.disc--sm { flex-basis: 38px; width: 38px; height: 38px; } .disc--sm svg { width: 20px; height: 20px; }
.disc--accent { background: var(--accent-50); color: var(--accent-text); }
.disc--success { background: var(--success-50); color: var(--success); }
.disc--danger { background: var(--danger-50); color: var(--danger); }
.service-card__title { font-weight: 600; margin: 0; line-height: 1.3; }
.service-card__meta { color: var(--muted); font-size: .88rem; margin: .15rem 0 0; }

.prestation-card { display: flex; flex-direction: column; gap: .75rem; padding: 1.1rem; height: 100%; }
.prestation-card h3 { margin: 0; font-size: 1.02rem; }
.prestation-card .price { font-family: var(--font-title); font-weight: 700; color: var(--primary); font-size: 1.15rem; }
.prestation-card__foot { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.meta-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .85rem; color: var(--muted); }
.meta-list li { display: flex; gap: .3rem; align-items: center; }
.meta-list .icon { width: 1em; height: 1em; }

/* ---------- 9. Pastilles (chips), badges, alertes ---------- */
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: var(--r-pill); border: 1px solid; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--info { background: var(--primary-50); border-color: var(--primary-200); color: var(--primary); }
.chip--pending { background: var(--accent-50); border-color: var(--accent-200); color: var(--accent-text); }
.chip--ok { background: var(--success-50); border-color: var(--success-200); color: var(--success); }
.chip--ko { background: var(--danger-50); border-color: var(--danger-200); color: var(--danger); }
.chip--plain::before { display: none; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: var(--r-sm); background: var(--primary-50); color: var(--primary); }
.tag--accent { background: var(--accent-50); color: var(--accent-text); }

.alert { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--r-sm); border: 1px solid; margin-bottom: 1rem; font-size: .95rem; }
.alert .icon { margin-top: 1px; }
.alert p:last-child { margin: 0; }
.alert--success { background: var(--success-50); border-color: var(--success-200); color: #14532d; }
.alert--danger { background: var(--danger-50); border-color: var(--danger-200); color: #7f1d1d; }
.alert--warning { background: var(--warning-50); border-color: var(--accent-200); color: #6b4300; }
.alert--info { background: var(--info-50); border-color: #b9e1f0; color: #0b4a66; }
.flash-zone { padding-top: 1rem; }
.alert__close { margin-left: auto; background: none; border: 0; cursor: pointer; color: inherit; opacity: .7; padding: 0; }
.alert__close svg { width: 18px; height: 18px; }

.infobar { display: flex; gap: .75rem; align-items: center; padding: .6rem var(--gutter); background: #7fc6e4; color: var(--primary-900); font-size: .9rem; }
.infobar__tag { background: var(--accent); color: #fff; font-weight: 700; font-size: .7rem; padding: .15rem .55rem; border-radius: 3px; text-transform: uppercase; flex-shrink: 0; }
.demo-banner { background: var(--accent-50); border: 1px dashed var(--accent); color: var(--accent-text); padding: .75rem 1rem; border-radius: var(--r-sm); font-size: .9rem; }

/* ---------- 10. Hero ---------- */
.hero { position: relative; color: #fff; background: linear-gradient(120deg, rgba(10,55,100,.97), rgba(7,41,77,.88)), radial-gradient(circle at 85% 20%, rgba(240,169,69,.35), transparent 45%), radial-gradient(circle at 95% 110%, transparent 130px, rgba(255,255,255,.05) 131px, rgba(255,255,255,.05) 178px, transparent 179px); }
.hero__inner { position: relative; z-index: 5; padding-top: 2.5rem; padding-bottom: 2rem; }
.hero h1 { color: #fff; max-width: 22ch; }
.hero p { color: rgba(255,255,255,.85); max-width: 48rem; }
.hero .overline { color: var(--accent); }
.hero-search { margin-top: 1.5rem; max-width: 640px; position: relative; }
.hero-search .input-group { border: 0; box-shadow: var(--shadow-lg); }
.hero-search .input-group input { color: var(--text); }
.hero-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.hero-chips a { color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: .35rem .8rem; border-radius: var(--r-pill); font-size: .85rem; text-decoration: none; }
.hero-chips a:hover { background: rgba(255,255,255,.22); }
@media (min-width: 992px) { .hero__inner { padding-top: 4rem; padding-bottom: 3.25rem; } }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg); z-index: 20; overflow: hidden; color: var(--text); }
.search-results a { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); }
.search-results a:hover, .search-results a.is-focus { background: var(--primary-50); }
.search-results small { color: var(--muted); }
.search-results .empty { padding: 1rem; color: var(--muted); }

.steps-band { display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 768px) { .steps-band { grid-template-columns: repeat(4, 1fr); } }
.steps-band li { list-style: none; counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1rem; position: relative; }
.steps-band li::before { content: counter(s); position: absolute; top: -12px; left: 1rem; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #1b1b1b; font-weight: 700; display: grid; place-items: center; font-size: .85rem; }
.steps-band strong { display: block; margin: .4rem 0 .2rem; color: var(--primary-800); }

/* ---------- 11. Tableaux ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; background: var(--primary-50); color: var(--primary); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; padding: .7rem .8rem; white-space: nowrap; }
.table td { padding: .75rem .8rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcff; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 720px) {
  .table--stack thead { display: none; }
  .table--stack tr { display: block; border-bottom: 1px solid var(--border); padding: .6rem 0; }
  .table--stack td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .3rem .8rem; text-align: right; }
  .table--stack td::before { content: attr(data-label); font-weight: 600; color: var(--muted); text-align: left; }
  .table--stack .num { text-align: right; }
}

/* ---------- 12. Barre de progression / étapes ---------- */
.progress { height: 8px; border-radius: 4px; background: var(--primary-100); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #2b5d91); border-radius: inherit; transition: width .4s ease; }
.progress--accent > span { background: var(--accent); }
.progress-label { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: .35rem; }

.stepper { display: flex; list-style: none; margin: 0; padding: 0; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper li { flex: 1; min-width: 74px; display: flex; flex-direction: column; align-items: center; gap: .35rem; position: relative; font-size: .72rem; font-weight: 600; color: var(--subtle); text-align: center; line-height: 1.2; }
.stepper li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--border-strong); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); display: grid; place-items: center; position: relative; z-index: 1; font-size: .8rem; color: var(--subtle); }
.stepper .dot svg { width: 16px; height: 16px; }
.stepper li.is-done { color: var(--primary); }
.stepper li.is-done::before, .stepper li.is-current::before { background: var(--primary); }
.stepper li.is-done .dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.stepper li.is-current { color: var(--primary-800); }
.stepper li.is-current .dot { border-color: var(--accent); background: var(--accent); color: #1b1b1b; box-shadow: 0 0 0 4px var(--accent-50); }
.stepper button { all: unset; cursor: pointer; display: contents; }
@media (min-width: 640px) { .stepper li { font-size: .8rem; } }

/* ---------- 13. Timeline interactive ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 1.1rem 52px; }
.timeline .t-dot { position: absolute; left: 4px; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--primary-200); color: var(--primary); }
.timeline .t-dot svg { width: 16px; height: 16px; }
.timeline .t-dot--ok { background: var(--success-50); border-color: var(--success-200); color: var(--success); }
.timeline .t-dot--ko { background: var(--danger-50); border-color: var(--danger-200); color: var(--danger); }
.timeline .t-dot--pending { background: var(--accent-50); border-color: var(--accent-200); color: var(--accent-text); }
.timeline .t-title { font-weight: 600; margin: 0; line-height: 1.3; }
.timeline .t-meta { font-size: .82rem; color: var(--muted); }
.timeline li[hidden] { display: none; }
.filters { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-btn { border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); border-radius: var(--r-pill); padding: .3rem .8rem; font: 600 .8rem var(--font); cursor: pointer; }
.filter-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Parcours en étapes horizontales (détail RDV) */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem; }
.journey__step { text-align: center; font-size: .72rem; font-weight: 600; color: var(--subtle); display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.journey__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-50); color: var(--primary-200); border: 2px solid var(--primary-100); }
.journey__icon svg { width: 20px; height: 20px; }
.journey__step.is-done { color: var(--primary); }
.journey__step.is-done .journey__icon { background: var(--primary); color: #fff; border-color: var(--primary); }
.journey__step.is-next .journey__icon { background: var(--accent); color: #1b1b1b; border-color: var(--accent); }
.journey__step.is-next { color: var(--primary-800); }
@media (min-width: 640px) { .journey__step { font-size: .82rem; } .journey__icon { width: 48px; height: 48px; } }

/* ---------- 14. Centre d'actions & prochaine étape ---------- */
.next-step { background: linear-gradient(135deg, var(--primary), var(--primary-800)); color: #fff; border-radius: var(--r-lg); padding: 1.25rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.next-step::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(240,169,69,.18); }
.next-step h2, .next-step h3 { color: #fff; }
.next-step .overline { color: var(--accent); }
.next-step .meta-list { color: rgba(255,255,255,.85); font-size: .9rem; }
.next-step__date { font-family: var(--font-title); font-size: 1.35rem; font-weight: 700; margin: .25rem 0 .5rem; }
.action-center { display: flex; flex-direction: column; gap: .6rem; }
.action { display: flex; gap: .85rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--r-sm); background: var(--surface); }
.action__body { flex: 1; min-width: 0; }
.action__title { font-weight: 600; margin: 0; line-height: 1.3; }
.action__text { font-size: .85rem; color: var(--muted); margin: .15rem 0 0; }
.action--done { border-left-color: var(--success); }
.empty-state { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.empty-state .disc { margin: 0 auto .75rem; }
@media (max-width: 520px) { .action { flex-wrap: wrap; } .action .btn { width: 100%; } }

.ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--primary-100) 0); flex-shrink: 0; }
.ring span { width: 66px; height: 66px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--font-title); font-weight: 700; color: var(--primary); }

/* ---------- 15. KPI & graphiques ---------- */
.kpi { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .25rem; }
.kpi__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kpi__value { font-family: var(--font-title); font-size: 1.7rem; font-weight: 700; color: var(--primary-800); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi__delta { font-size: .8rem; color: var(--muted); }
.kpi__delta.up { color: var(--success); } .kpi__delta.down { color: var(--danger); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: .5rem; }
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; height: 100%; justify-content: flex-end; }
.bars__bar { width: 100%; max-width: 28px; background: var(--primary); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars__lbl { font-size: .65rem; color: var(--subtle); }
.hbar { display: grid; grid-template-columns: minmax(110px, 40%) 1fr auto; gap: .6rem; align-items: center; font-size: .88rem; padding: .35rem 0; }
.hbar__track { height: 10px; background: var(--primary-50); border-radius: 5px; overflow: hidden; }
.hbar__fill { height: 100%; background: var(--primary); border-radius: 5px; }

/* ---------- 16. Assistant de réservation ---------- */
.wizard { display: grid; gap: 1.5rem; grid-template-columns: 1fr; padding-bottom: 96px; }
@media (min-width: 992px) { .wizard { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; padding-bottom: 0; } }
.wizard__panel { min-height: 380px; }
.wizard__step[hidden] { display: none; }
.wizard__nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.option-list { display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .option-list--2 { grid-template-columns: 1fr 1fr; } }
.option { display: flex; gap: .85rem; align-items: center; width: 100%; text-align: left; padding: .9rem 1rem; border: 1.5px solid var(--border-strong); border-radius: var(--r); background: var(--surface); cursor: pointer; font: inherit; color: var(--text); transition: border-color .15s, background .15s; }
.option:hover { border-color: var(--primary-200); background: #fbfcff; }
.option.is-selected { border-color: var(--primary); background: var(--primary-50); box-shadow: inset 0 0 0 1px var(--primary); }
.option__body { flex: 1; min-width: 0; }
.option__title { font-weight: 600; display: block; line-height: 1.3; }
.option__meta { display: block; font-size: .83rem; color: var(--muted); margin-top: .15rem; }
.option__price { font-family: var(--font-title); font-weight: 700; color: var(--primary); white-space: nowrap; }
.pole-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: .75rem; scrollbar-width: thin; }
.days { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .1rem .75rem; scroll-snap-type: x mandatory; }
.day { flex: 0 0 auto; scroll-snap-align: start; min-width: 76px; padding: .55rem .5rem; border: 1.5px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); text-align: center; cursor: pointer; font: inherit; color: var(--text); }
.day strong { display: block; font-size: 1.15rem; font-family: var(--font-title); color: var(--primary-800); }
.day small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
.day .count { display: block; font-size: .7rem; color: var(--success); font-weight: 600; margin-top: .15rem; }
.day.is-selected { border-color: var(--primary); background: var(--primary); }
.day.is-selected strong, .day.is-selected small, .day.is-selected .count { color: #fff; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.slot { min-height: 46px; border: 1.5px solid var(--primary-200); background: var(--surface); color: var(--primary); border-radius: var(--r-sm); font: 600 .95rem var(--font); cursor: pointer; font-variant-numeric: tabular-nums; }
.slot:hover { background: var(--primary-50); }
.slot.is-selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.slot small { display: block; font-size: .65rem; font-weight: 500; opacity: .8; }
.slot.is-taken { text-decoration: line-through; opacity: .45; pointer-events: none; }
.lock-timer { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--accent-text); background: var(--accent-50); border: 1px solid var(--accent-200); padding: .3rem .7rem; border-radius: var(--r-pill); }
.skeleton { background: linear-gradient(90deg, var(--primary-50), #f7f9fc, var(--primary-50)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r-sm); min-height: 46px; }
@keyframes sk { to { background-position: -200% 0; } }
.recap { display: grid; gap: .1rem; }
.recap dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: .75rem; }
.recap dd { margin: 0; font-weight: 500; }

/* Résumé permanent collant (sticky summary) */
.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary__list { list-style: none; margin: 0; padding: 0; }
.summary__list li { display: flex; gap: .75rem; padding: .65rem 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.summary__list li:last-child { border-bottom: 0; }
.summary__list .icon { color: var(--primary); margin-top: 2px; }
.summary__k { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--subtle); }
.summary__v { display: block; font-weight: 600; color: var(--text); }
.summary__v.is-empty { color: var(--subtle); font-weight: 400; font-style: italic; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .75rem; margin-top: .5rem; border-top: 2px solid var(--primary-100); }
.summary__total strong { font-family: var(--font-title); font-size: 1.35rem; color: var(--primary); }
.summary__next { margin-top: 1rem; padding: .75rem; border-radius: var(--r-sm); background: var(--accent-50); color: var(--accent-text); font-size: .85rem; display: flex; gap: .5rem; }
.summary-bar { display: none; }
@media (max-width: 991.98px) {
  .summary { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -8px 30px rgba(5,29,52,.18); max-height: 70vh; overflow-y: auto; transform: translateY(calc(100% - 72px)); transition: transform .25s ease; }
  .summary.is-open { transform: translateY(0); }
  .summary-bar { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 72px; padding: .75rem 1rem; background: var(--surface); border: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; cursor: pointer; font: inherit; color: var(--text); text-align: left; position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--border); }
  .summary-bar__grip { position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--border-strong); }
  .summary-bar strong { font-family: var(--font-title); color: var(--primary); }
}

/* ---------- 17. Questionnaire CHECK-UP ---------- */
.q-section { margin-bottom: 1.5rem; }
.q-section > h2 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; padding-bottom: .5rem; border-bottom: 2px solid var(--primary-100); }
.q-item { padding: 1rem 0; border-bottom: 1px solid var(--border); animation: qin .25s ease; }
.q-item:last-child { border-bottom: 0; }
.q-item[hidden] { display: none; }
.q-item.is-conditional { padding-left: 1rem; border-left: 3px solid var(--accent-200); margin-left: .25rem; }
@keyframes qin { from { opacity: 0; transform: translateY(-4px); } }
.autosave { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; }
.autosave.is-saving { color: var(--accent-text); }
.autosave.is-error { color: var(--danger); }
.sticky-bar { position: sticky; bottom: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--border); padding: .75rem 0; z-index: 30; }

/* ---------- 18. Agenda professionnel ---------- */
.agenda-list { display: flex; flex-direction: column; gap: .6rem; }
.appt { display: grid; grid-template-columns: 64px 1fr; gap: .75rem; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary-200); border-radius: var(--r-sm); align-items: center; }
.appt--confirme { border-left-color: var(--primary); }
.appt--enregistre, .appt--en_cours { border-left-color: var(--accent); background: #fffdf8; }
.appt--termine { border-left-color: var(--success); opacity: .85; }
.appt--absent { border-left-color: var(--danger); opacity: .75; }
.appt--en_attente_paiement { border-left-style: dashed; }
.appt__time { font-family: var(--font-title); font-weight: 700; color: var(--primary-800); font-size: 1.05rem; }
.appt__time small { display: block; font-family: var(--font); font-weight: 500; font-size: .72rem; color: var(--muted); }
.appt__main { min-width: 0; }
.appt__name { font-weight: 600; margin: 0; }
.appt__meta { font-size: .83rem; color: var(--muted); margin: .1rem 0 0; }
.appt__actions { grid-column: 1 / -1; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
@media (min-width: 900px) { .appt { grid-template-columns: 72px 1fr auto; } .appt__actions { grid-column: auto; justify-content: flex-end; } }
.week { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 900px) { .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; } }
.week__day { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); min-height: 120px; }
.week__head { padding: .5rem .6rem; border-bottom: 1px solid var(--border); font-size: .8rem; font-weight: 700; color: var(--primary); display: flex; justify-content: space-between; }
.week__head.is-today { background: var(--accent-50); }
.week__item { display: block; padding: .4rem .55rem; margin: .35rem; border-radius: 4px; background: var(--primary-50); border-left: 3px solid var(--primary); font-size: .75rem; text-decoration: none; color: var(--text); }
.week__item strong { display: block; color: var(--primary-800); }
.week__item.st-termine { border-left-color: var(--success); background: var(--success-50); }
.week__item.st-absent { border-left-color: var(--danger); background: var(--danger-50); }
.week__item.st-enregistre, .week__item.st-en_cours { border-left-color: var(--accent); background: var(--accent-50); }
.week__item.st-en_attente_paiement { border-left-style: dashed; background: #fff; }

/* ---------- 19. Pass QR ---------- */
.pass-page { background: var(--primary-900); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.pass { width: 100%; max-width: 400px; background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.pass__head { background: var(--primary); color: #fff; padding: 1.25rem 1.25rem 1rem; }
.pass__head h1 { color: #fff; font-size: 1.15rem; margin: 0; }
.pass__qr { padding: 1.25rem; display: grid; place-items: center; }
.pass__qr .qr-box { width: 240px; height: 240px; background: #fff; padding: 8px; border: 1px solid var(--border); border-radius: 12px; }
.pass__qr .qr-box svg { width: 100%; height: 100%; display: block; }
.pass__ref { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.2rem; letter-spacing: .12em; font-weight: 700; color: var(--primary-800); margin-top: .75rem; }
.pass__body { padding: 0 1.25rem 1.25rem; }
.pass__cut { border-top: 2px dashed var(--border); margin: 0 1.25rem; position: relative; }
.pass dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 1rem 0 0; font-size: .92rem; }
.pass dt { color: var(--muted); }
.pass dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- 20. Pied de page ---------- */
.site-footer { background: var(--primary); color: rgba(255,255,255,.85); margin-top: 3rem; font-size: .9rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer h2 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer__grid { display: grid; gap: 1.75rem; padding: 2.5rem 0 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1rem 0; font-size: .8rem; color: rgba(255,255,255,.65); display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }

/* ---------- 21. Divers ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border-strong); margin-bottom: 1rem; overflow-x: auto; }
.tab { padding: .7rem .9rem .6rem; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font: 600 .9rem var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.tab:hover { color: var(--primary); }
.tab.is-active { color: var(--primary); border-bottom-color: var(--accent); }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.list-check li { display: flex; gap: .5rem; align-items: flex-start; }
.list-check .icon { color: var(--success); margin-top: 2px; }
.kv { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: .5rem 1rem; margin: 0; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.compare { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.compare-bar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 55; background: var(--primary-900); color: #fff; border-radius: var(--r-pill); padding: .5rem .5rem .5rem 1rem; display: flex; gap: .75rem; align-items: center; box-shadow: var(--shadow-lg); font-size: .9rem; }
.compare-bar[hidden] { display: none; }
.matrix th, .matrix td { text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.pre { white-space: pre-line; }
.sep-dot::before { content: "·"; margin: 0 .4rem; color: var(--subtle); }
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 100; max-width: 360px; background: var(--primary-900); color: #fff; padding: .85rem 1rem; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); font-size: .92rem; animation: qin .2s ease; }
.toast--error { background: var(--danger); }
.offline-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: var(--warning-50); color: #6b4300; text-align: center; font-size: .85rem; padding: .4rem; border-bottom: 1px solid var(--accent-200); }
.offline-banner[hidden] { display: none; }
.error-page { text-align: center; padding: 4rem 1rem; }
.error-page .code { font-family: var(--font-title); font-size: 4rem; font-weight: 700; color: var(--primary-200); }

/* ---------- 22. Impression ---------- */
@media print {
  .site-header, .site-footer, .subnav, .no-print, .btn, .summary-bar { display: none !important; }
  body { background: #fff; }
  .pass-page { background: #fff; }
  .pass { box-shadow: none; border: 1px solid #ccc; }
  .card { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media (min-width: 1400px) { .brand__sub { display: inline; } }
@media (max-width: 520px) { .brand__sub { display: none; } }

/* --- CHECK-UP (circuit de validation) & interface SIH : ajustements mobiles --- */
.card__head { flex-wrap: wrap; }
.card__head > .chip, .row > .chip { white-space: normal; max-width: 100%; }
.kv dd, .kv dd code { overflow-wrap: anywhere; word-break: break-word; }

/* --- Référentiels dynamiques, plannings, RBAC (version 2026.10.2) --- */
.unit-group { border: 1px solid var(--border); border-radius: var(--r-md, 10px); padding: .6rem .8rem .8rem; margin: 0; }
.unit-group legend { padding: 0 .35rem; }
.repeater__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.repeater__row { display: flex; align-items: center; gap: .4rem; }
.repeater__row .select { flex: 1; min-width: 0; }
.repeater__num { width: 1.8rem; text-align: right; font-weight: 700; color: var(--muted); font-size: .85rem; }
.select.is-invalid { border-color: #c62828; }
.choice--card { align-items: flex-start; }
.choice--card > span, .choice > span { min-width: 0; overflow-wrap: anywhere; }
.choices--scale { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)) !important; }
.week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: .4rem; }
.week-grid__day { display: flex; flex-direction: column; gap: .35rem; min-width: 0; padding: .4rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.week-grid__slot { display: flex; flex-direction: column; padding: .35rem .4rem; border-radius: 6px; background: var(--primary-50); color: var(--primary); text-decoration: none; font-size: .72rem; line-height: 1.25; border-left: 3px solid var(--primary); overflow-wrap: anywhere; }
.week-grid__slot strong { font-size: .78rem; }
.week-grid__slot--apres_midi { border-left-color: var(--accent); background: var(--accent-50); color: var(--accent-text); }
.week-grid__slot--soir, .week-grid__slot--nuit { border-left-color: #5b4b8a; background: #f1eef9; color: #3e3266; }
/* Libellés riches dans les choix (texte secondaire, étiquettes) : seuls les span de premier niveau sont des cases */
.choice span span { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; font-weight: inherit; transition: none; color: inherit; }
.choice span span::before { content: none; }
.choice span .choice__body { display: block; }
.choice span span.tag { display: inline-block; padding: .05rem .45rem; border-radius: var(--r-pill); background: var(--accent-50); color: var(--accent-text); font-size: .7rem; font-weight: 700; }
.choice span span.muted { color: var(--muted); }
