/* ===== RÉGION ARGENTALE — Design system =====
   Site institutionnel fictif d'une collectivité (décor de démo / captation vidéo).
   « Votre région, vos démarches, simplifiées. »
   Polices Source Serif 4 (titres institutionnels) + Public Sans (corps, interface),
   chargées via <link> dans le <head>.
   Tokens issus du référentiel de marque (voir /ARGENTALE.md).
   Sobriété institutionnelle : beaucoup de blanc, bordures fines plutôt qu'ombres,
   grille stricte. L'accent chaleureux est STRICTEMENT réservé aux actions concrètes
   (faire une démarche, prendre rendez-vous) — jamais en décor. */
:root {
  /* Fond et surfaces */
  --paper:        #FFFFFF;   /* fond global */
  --surface-grey: #F2F4F6;   /* sections alternées, blocs d'information */
  --surface-blue: #EAF0F6;   /* encadrés institutionnels doux */
  --line:         #D8DEE3;   /* bordures et séparateurs */

  /* Encres */
  --ink:          #1A2B3C;   /* bleu nuit, titres et texte principal */
  --ink-soft:     #4B5C6B;   /* texte secondaire */
  --ink-faint:    #7C8A96;   /* légendes, mentions */

  /* Bleu institutionnel, structure et confiance */
  --blue:         #0B4F8A;   /* en-tête, liens, boutons secondaires */
  --blue-deep:    #073A66;   /* fond pied de page, survol liens */
  --blue-tint:    #E3EDF6;   /* fonds doux, badges informatifs */

  /* Accent chaleureux, réservé aux actions */
  --accent:       #C8762E;   /* CTA principal, démarches mises en avant */
  --accent-deep:  #A75F1F;   /* survol des CTA */
  --accent-tint:  #F6E8D7;   /* fonds doux, badges */

  /* Vert service public, démarches en ligne */
  --service:      #2E7D52;   /* badge en ligne, validation, étapes complétées */
  --service-tint: #E1F0E7;

  /* Sémantique */
  --alert:        #B3261E;   /* urgence, information importante */
  --alert-tint:   #FBE9E7;

  /* Typographie */
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body:    'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Rayons, sobres */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Ombres, très discrètes */
  --shadow-sm: 0 1px 2px rgba(26,43,60,.08);
  --shadow-md: 0 6px 18px -8px rgba(26,43,60,.14);

  /* Transitions, sans effet appuyé */
  --ease:   ease-out;
  --t-fast: .12s;
  --t-base: .18s;

  /* Layout */
  --gov-height: 34px;
  --nav-height: 68px;
  --max-width: 1280px;
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--gov-height) + var(--nav-height) + 12px); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background: var(--paper);
  padding-top: calc(var(--gov-height) + var(--nav-height));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--ink); font-weight: 700; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.link-blue { color: var(--blue); font-weight: 600; }
.link-blue:hover { color: var(--blue-deep); text-decoration: underline; }

/* ===== Bandeau gouvernemental ===== */
.gov-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--gov-height);
  background: var(--surface-grey);
  border-bottom: 1px solid var(--line);
  z-index: 1001;
  display: flex; align-items: center;
  font-size: 0.78rem;
}
.gov-banner .container { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 16px; }
.gov-banner__mention { color: var(--ink-soft); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.gov-banner__mention .cocarde { width: 16px; height: 11px; border-radius: 2px; display: inline-block; overflow: hidden; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(26,43,60,.15); }
.gov-banner__mention .cocarde i { display: block; width: 33.34%; height: 100%; float: left; }
.gov-banner__mention .cocarde .b { background: #0B4F8A; }
.gov-banner__mention .cocarde .w { background: #ffffff; }
.gov-banner__mention .cocarde .r { background: #B3261E; }
.gov-banner__link { color: var(--blue); font-weight: 600; white-space: nowrap; }
.gov-banner__link:hover { text-decoration: underline; }

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: var(--gov-height); left: 0; right: 0;
  height: var(--nav-height);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  display: flex; align-items: center;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 20px; }

.navbar__logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 46px; height: 46px; flex-shrink: 0;
  background: center / contain no-repeat url("images/logo.png");
  font-size: 0; color: transparent; /* masque le fallback texte */
}
.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.2px;
  color: var(--ink);
  line-height: 1.05;
}
.logo-word small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }

.navbar__links { display: flex; align-items: center; gap: 2px; }
.navbar__links > li { position: relative; }
.navbar__links a {
  display: inline-flex; align-items: center;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  transition: color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}
.navbar__links a:hover, .navbar__links a.active { color: var(--blue); background: var(--blue-tint); }

.navbar__actions { display: flex; align-items: center; gap: 10px; }

/* Recherche dans la nav */

.navbar__menu-toggle {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  width: 42px; height: 42px;
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ===== Bandeau d'information (en flux, sous la nav) ===== */
.info-bar {
  background: var(--blue-tint);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.88rem;
}
.info-bar .container { display: flex; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.info-bar__tag { flex-shrink: 0; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 10px; }
.info-bar--alert { background: var(--alert-tint); }
.info-bar--alert .info-bar__tag { color: var(--alert); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}

/* Bleu institutionnel — actions structurantes (recherche, espace, navigation) */
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); }

/* Accent chaleureux — actions concrètes de démarche UNIQUEMENT */
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); }

/* Vert service — dépôt en ligne / validation */
.btn--service { background: var(--service); color: #fff; }
.btn--service:hover { filter: brightness(0.94); }

.btn--secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--secondary:hover { background: var(--blue-tint); }

.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { background: var(--blue-tint); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--ghost-light:hover { background: #fff; color: var(--blue); border-color: #fff; }

.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--sm { padding: 9px 16px; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section--grey { background: var(--surface-grey); }
.section--blue-soft { background: var(--surface-blue); }
.section--dark { background: var(--blue-deep); color: #fff; }
.section--tight { padding: 48px 0; }

.section__header { max-width: 680px; margin-bottom: 40px; }
.section__header--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 1.9rem);
  letter-spacing: -0.2px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.section--dark .section__title { color: #fff; }
.section--dark .eyebrow { color: #9ec3e6; }
.section__subtitle { color: var(--ink-soft); font-size: 1.02rem; }
.section--dark .section__subtitle { color: rgba(255,255,255,0.78); }
.section__foot { text-align: center; margin-top: 36px; }

/* ===== Hero d'accueil (fond clair, recherche large) ===== */
.hero {
  background: var(--surface-blue);
  border-bottom: 1px solid var(--line);
  padding: 60px 0 66px;
}
.hero__inner { max-width: 820px; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.4px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}
.hero__title em { font-style: normal; color: var(--blue); }
.hero__lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 26px;
}


/* ===== Emplacements d'injection (agent Tolk) =====
   Conteneurs vides destinés à recevoir les déclencheurs injectés par l'agent.
   :empty les masque tant que rien n'est injecté : aucune boîte vide à l'écran.
   Cibles : #genii-inject-nav-trigger (11 pages) et #genii-inject-hero-trigger (accueil). */
.genii-slot:empty { display: none; }
.genii-slot--nav { display: flex; align-items: center; gap: 8px; }
.genii-slot--hero { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; max-width: 660px; }

/* Raccourcis fréquents */
.shortcuts { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.shortcuts__label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-right: 4px; }
.shortcut {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 15px;
  font-size: 0.88rem; font-weight: 600; color: var(--ink);
  transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}
.shortcut:hover { border-color: var(--blue); background: var(--blue-tint); }
.shortcut.active { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); }

/* Barre de puces de filtre (annuaire des démarches) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }

/* ===== Cartes démarche ===== */
.proc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proc-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 24px 22px;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.proc-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.proc-card__icon {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: var(--blue-tint); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.proc-card__name { font-family: var(--font-body); font-size: 1.06rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.proc-card__desc { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 14px; flex: 1; }
.proc-card__delay { font-size: 0.82rem; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.proc-card__link { font-size: 0.9rem; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
.proc-card__link:hover { color: var(--blue-deep); gap: 9px; }

/* Badges (statut démarche) */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: var(--r-pill);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--online { background: var(--service-tint); color: var(--service); }
.badge--paper { background: var(--surface-grey); color: var(--ink-soft); }

/* ===== Cartes aides / dispositifs ===== */
.aid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.aid-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  padding: 24px 22px;
}
.aid-card__amount { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); line-height: 1.1; margin-bottom: 6px; }
.aid-card__amount small { display: block; font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }
.aid-card__name { font-family: var(--font-body); font-size: 1.04rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.aid-card__cond { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 8px; flex: 1; }
.aid-card__public { font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 18px; }
.aid-card__public strong { color: var(--ink-soft); font-weight: 600; }

/* ===== Étapes (comment ça marche) ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 0 8px; }
.step__num {
  width: 46px; height: 46px; margin-bottom: 16px;
  border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
}
.step__title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.step__text { color: var(--ink-soft); font-size: 0.92rem; }

/* ===== Bloc chiffres ===== */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.figure { text-align: center; }
.figure__num { font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 700; color: #fff; line-height: 1; margin-bottom: 8px; }
.figure__label { font-size: 0.86rem; color: rgba(255,255,255,0.75); }

/* ===== Actualités ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.news-card__media { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; background: var(--surface-blue); border-bottom: 1px solid var(--line); }
.news-card__media--travaux { background: #E7EEF4; }
.news-card__media--aide { background: var(--service-tint); }
.news-card__media--event { background: var(--accent-tint); }
.news-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 8px; }
.news-card__title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; line-height: 1.25; margin-bottom: 8px; }
.news-card__excerpt { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 14px; flex: 1; }

/* ===== Témoignages ===== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 22px;
}
.quote-card__text { color: var(--ink); font-size: 0.95rem; line-height: 1.6; margin-bottom: 16px; }
.quote-card__meta { font-size: 0.84rem; color: var(--ink-faint); display: flex; align-items: center; gap: 12px; }
.quote-card__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.quote-card__meta strong { color: var(--ink); font-weight: 600; display: block; }

/* ===== FAQ (accordéon) ===== */
.faq { max-width: 780px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; background: transparent; border: none; text-align: left;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink);
  padding: 20px 40px 20px 0; cursor: pointer; position: relative;
}
.faq__q::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--blue); font-weight: 400;
}
.faq__item.open .faq__q::after { content: "−"; }
.faq__a { max-height: 0; overflow: hidden; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.7; transition: max-height var(--t-base) var(--ease), padding var(--t-base) var(--ease); }
.faq__item.open .faq__a { max-height: 400px; padding-bottom: 20px; }

/* ===== Page header (pages internes) ===== */
.page-header { background: var(--blue-deep); color: #fff; padding: 46px 0; }
.page-header__title { font-family: var(--font-display); font-size: clamp(1.8rem, 4.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.3px; color: #fff; }
.page-header__subtitle { color: rgba(255,255,255,0.78); margin-top: 10px; max-width: 620px; }
.breadcrumb { padding: 16px 0; display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ink-faint); flex-wrap: wrap; }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--ink-faint); }

/* ===== Détail démarche ===== */
.proc-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; padding: 32px 0 8px; }
.proc-detail__cat { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.proc-detail__name { font-family: var(--font-display); font-size: clamp(1.8rem, 3.8vw, 2.4rem); letter-spacing: -0.3px; margin-bottom: 8px; }
.proc-detail__badges { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.proc-detail__lead { color: var(--ink-soft); font-size: 1.06rem; line-height: 1.7; margin-bottom: 26px; }
.proc-detail h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 30px 0 14px; }

/* Liste conditions / étapes / pièces */
.check-list { display: grid; gap: 10px; margin: 8px 0 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--ink-soft); }
.check-list li::before { content: "✓"; color: var(--service); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.step-list { display: grid; gap: 12px; margin: 8px 0 20px; counter-reset: st; }
.step-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: var(--ink-soft); }
.step-list li::before { counter-increment: st; content: counter(st); flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); font-weight: 700; font-size: 0.82rem; display: inline-flex; align-items: center; justify-content: center; }
.doc-list { display: grid; gap: 8px; margin: 8px 0 20px; }
.doc-list li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--ink-soft); background: var(--surface-grey); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; }
.doc-list li::before { content: "📄"; flex-shrink: 0; }

/* Carte d'action (sticky) */
.action-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 26px;
  position: sticky;
  top: calc(var(--gov-height) + var(--nav-height) + 18px);
}
.action-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.action-card__row:first-of-type { padding-top: 0; }
.action-card__row .k { color: var(--ink-faint); }
.action-card__row .v { color: var(--ink); font-weight: 600; text-align: right; }
.action-card__cta { margin-top: 20px; }
.action-card__legal { font-size: 0.76rem; color: var(--ink-faint); margin-top: 14px; line-height: 1.5; }

/* ===== Simulateur / tunnel de démarche ===== */
.flow { max-width: 680px; margin: 0 auto; padding: 36px 0 60px; }
.flow__progress { height: 8px; background: var(--surface-grey); border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; margin-bottom: 10px; }
.flow__progress-bar { height: 100%; background: var(--blue); border-radius: var(--r-pill); transition: width .35s var(--ease); width: 25%; }
.flow__step-label { font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 26px; text-align: right; }
.flow__panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 38px; }
.flow__step { display: none; }
.flow__step.active { display: block; animation: arg-rise .35s var(--ease) both; }
.flow__q { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.flow__help { color: var(--ink-soft); margin-bottom: 24px; }
.flow__options { display: grid; gap: 12px; margin-bottom: 28px; }
.flow__options--cols { grid-template-columns: repeat(2, 1fr); }
.flow__option {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px; cursor: pointer; background: var(--paper);
  font-family: var(--font-body); font-size: 0.96rem; font-weight: 500; color: var(--ink);
  text-align: left; width: 100%;
  transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}
.flow__option .ico { font-size: 1.4rem; }
.flow__option:hover { border-color: var(--blue); }
.flow__option.active { border-color: var(--blue); background: var(--blue-tint); }
.flow__field { margin-bottom: 18px; }
.flow__field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 7px; }
.flow__field input, .flow__field select {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  font-family: var(--font-body); font-size: 0.96rem; color: var(--ink);
  background: var(--paper); outline: none;
  transition: border-color var(--t-base) var(--ease);
}
.flow__field input:focus, .flow__field select:focus { border-color: var(--blue); }
.flow__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }

/* Résultat du simulateur */
.flow-result { text-align: left; }
.flow-result__badge { display: inline-flex; align-items: center; gap: 8px; background: var(--service-tint); color: var(--service); font-size: 0.84rem; font-weight: 700; padding: 8px 16px; border-radius: var(--r-pill); margin-bottom: 18px; }
.flow-result__title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; }
.flow-result__text { color: var(--ink-soft); margin-bottom: 22px; }
.flow-result__box { background: var(--surface-grey); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; margin-bottom: 22px; }
.flow-result__box h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 12px; }
.flow-result__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 24px; font-size: 0.9rem; color: var(--ink-soft); }
.flow-result__meta strong { color: var(--ink); }

/* ===== Espace usager (tableau de bord) ===== */
.dash { display: grid; grid-template-columns: 250px 1fr; gap: 30px; padding: 30px 0 60px; }
.dash__side { align-self: start; position: sticky; top: calc(var(--gov-height) + var(--nav-height) + 18px); }
.dash__profile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; margin-bottom: 16px; text-align: center; }
.dash__avatar { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.dash__name { font-family: var(--font-display); font-weight: 700; }
.dash__id { font-size: 0.8rem; color: var(--ink-faint); }
.dash__menu { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px; }
.dash__menu a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--r-sm); font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.dash__menu a:hover, .dash__menu a.active { background: var(--blue-tint); color: var(--blue); }

.dash__main { display: grid; gap: 22px; }
.dash-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.dash-block__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.dash-block__title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; }

.dossier-list { display: grid; gap: 14px; }
.dossier {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px;
}
.dossier__icon { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--surface-grey); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.dossier__name { font-weight: 600; color: var(--ink); }
.dossier__ref { font-size: 0.8rem; color: var(--ink-faint); }
.dossier__meta { text-align: right; }
.dossier__next { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700; padding: 4px 11px; border-radius: var(--r-pill); white-space: nowrap; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill--valid { background: var(--service-tint); color: var(--service); }
.status-pill--progress { background: var(--blue-tint); color: var(--blue); }
.status-pill--action { background: var(--accent-tint); color: var(--accent-deep); }
.status-pill--missing { background: var(--alert-tint); color: var(--alert); }

/* Encart action requise */
.notice { display: flex; align-items: flex-start; gap: 14px; border-radius: var(--r-md); padding: 16px 18px; }
.notice--action { background: var(--accent-tint); border: 1px solid rgba(200,118,46,0.35); }
.notice--info { background: var(--blue-tint); border: 1px solid var(--line); }
.notice__icon { font-size: 1.25rem; flex-shrink: 0; }
.notice__text { font-size: 0.9rem; color: var(--ink); }
.notice__text strong { font-weight: 700; }

/* Messagerie */
.msg-list { display: grid; gap: 2px; }
.msg-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.msg-row:last-child { border-bottom: none; }
.msg-row__dot { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.msg-row__from { font-weight: 600; font-size: 0.9rem; }
.msg-row__text { font-size: 0.88rem; color: var(--ink-soft); }
.msg-row__date { font-size: 0.76rem; color: var(--ink-faint); margin-top: 3px; }

/* ===== Tableau comparatif (démarches) ===== */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; min-width: 760px;
}
.table th, .table td { padding: 15px 18px; text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { background: var(--surface-grey); font-family: var(--font-display); color: var(--ink); font-size: 0.86rem; }
.table tbody th { font-weight: 600; color: var(--ink); }
.table td { color: var(--ink-soft); }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: none; }

/* ===== Annuaire des services ===== */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 30px; }
.filters__field { display: flex; flex-direction: column; gap: 6px; }
.filters__field label { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
.filters__field select {
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 0.9rem; color: var(--ink); background: var(--paper); min-width: 200px; cursor: pointer;
}
.filters__count { margin-left: auto; font-size: 0.86rem; color: var(--ink-faint); align-self: center; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.service-card__tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); background: var(--blue-tint); border-radius: var(--r-pill); padding: 3px 10px; margin-bottom: 12px; }
.service-card__name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.service-card__row { display: flex; align-items: flex-start; gap: 8px; font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 6px; }
.service-card__row .ico { flex-shrink: 0; }
.service-card--empty { grid-column: 1 / -1; text-align: center; color: var(--ink-faint); padding: 40px; border-style: dashed; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.contact-card__icon { width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-card__title { font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.contact-card__text { font-size: 0.9rem; color: var(--ink-soft); }
.form-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 0.94rem; color: var(--ink); background: var(--paper); outline: none;
  transition: border-color var(--t-base) var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); }
.form-field textarea { resize: vertical; min-height: 120px; }

/* ===== Bandeau CTA ===== */
.cta-band { background: var(--blue-deep); color: #fff; text-align: center; padding: 60px 0; }
.cta-band__title { font-family: var(--font-display); font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 700; color: #fff; margin-bottom: 12px; }
.cta-band__text { color: rgba(255,255,255,0.78); margin-bottom: 24px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ===== Encadré institutionnel ===== */
.callout { background: var(--surface-blue); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--r-md); padding: 22px 24px; }
.callout__title { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 6px; }
.callout__text { color: var(--ink-soft); font-size: 0.95rem; }

/* ===== Footer ===== */
.footer { background: var(--blue-deep); color: rgba(255,255,255,0.72); padding: 56px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 34px; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer__brand .logo-mark { background-color: #fff; background-size: 82%; border-radius: var(--r-sm); }
.footer__brand .logo-word { color: #fff; }
.footer__brand .logo-word small { color: rgba(255,255,255,0.6); }
.footer__desc { font-size: 0.88rem; line-height: 1.7; margin-bottom: 16px; max-width: 320px; }
.footer__heading { font-family: var(--font-body); font-size: 0.76rem; font-weight: 700; color: #fff; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.1em; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { font-size: 0.88rem; transition: color var(--t-base) var(--ease); }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__legal { border-top: 1px solid rgba(255,255,255,0.14); padding: 22px 0; font-size: 0.8rem; line-height: 1.6; color: rgba(255,255,255,0.6); }
.footer__legal strong { color: rgba(255,255,255,0.85); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.14); padding: 18px 0; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; text-align: center; font-size: 0.8rem; }
.footer__managed { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.footer__managed a { display: inline-flex; align-items: center; transition: opacity 0.2s ease; }
.footer__managed a:hover { opacity: 0.7; }
.footer__managed-logo { height: 20px; width: auto; display: block; }

/* ===== Animations ===== */
@keyframes arg-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.hero__inner > * { animation: arg-rise .5s var(--ease) both; }
.hero__lead { animation-delay: .04s; }
.genii-slot--hero { animation-delay: .08s; }
.shortcuts { animation-delay: .12s; }

/* ===== Hovers (souris uniquement) ===== */
@media (hover: hover) and (pointer: fine) {
  .proc-card:hover, .news-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
  .dossier:hover, .service-card:hover { border-color: var(--blue); }
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .genii-slot--nav { display: none; }
}
@media (max-width: 1024px) {
  .proc-grid, .aid-grid, .news-grid, .quotes { grid-template-columns: repeat(2, 1fr); }
  .figures { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  /* Nav horizontale → menu déroulant (hamburger) */
  .navbar__links {
    display: none;
    position: absolute; top: var(--nav-height);
    left: 14px; right: 14px;
    flex-direction: column; align-items: stretch;
    padding: 12px; gap: 4px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
  }
  .navbar__links.open { display: flex; }
  .navbar__links a { justify-content: flex-start; }
  .navbar__menu-toggle { display: block; }
}
@media (max-width: 860px) {
  .proc-detail { grid-template-columns: 1fr; }
  .action-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash__side { position: static; }
}
@media (max-width: 640px) {
  .proc-grid, .aid-grid, .news-grid, .quotes, .steps, .service-grid { grid-template-columns: 1fr; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 52px 0; }
  .flow__panel { padding: 26px 20px; }
  .flow__options--cols { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .dossier { grid-template-columns: 44px 1fr; }
  .dossier__meta { grid-column: 1 / -1; text-align: left; }
}

/* ===== Réduire le mouvement ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Contact — bloc « Posez une question » (chat Tolk embarqué en fixe) ===== */
.ask { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: center; }
.ask__copy { max-width: 520px; }
.ask__title { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; color: var(--ink); line-height: 1.15; margin-bottom: 16px; }
.ask__lead { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; margin-bottom: 24px; }
.ask__lead strong { color: var(--ink); font-weight: 700; }
.ask__hint { font-size: 0.9rem; font-weight: 600; color: var(--ink-faint); margin-bottom: 12px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ask-chip { display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-size: 0.88rem; text-align: left; color: var(--blue); background: var(--blue-tint); border: 1px solid var(--line); padding: 8px 15px; border-radius: var(--r-pill); line-height: 1.3; cursor: pointer; transition: background-color .18s ease-out, border-color .18s ease-out, color .18s ease-out, transform .12s ease-out; }
.ask-chip::after { content: "\2192"; font-size: 0.95em; opacity: 0.5; transition: transform .18s ease-out, opacity .18s ease-out; }
.ask-chip:active { transform: scale(0.97); }
.ask-chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ask-window { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; display: flex; flex-direction: column; }
.ask-window__bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: var(--blue-deep); border-bottom: 1px solid rgba(0,0,0,0.15); }
.ask-window__dots { display: flex; gap: 7px; }
.ask-window__dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.ask-window__dot:first-child { background: var(--accent); }
.ask-window__dot:nth-child(2) { background: var(--service); }
.ask-window__dot:nth-child(3) { background: var(--blue); }
.ask-window__body { position: relative; background: #fff; }
/* Widget Tolk (template "fullscreen") injecté ici — hauteur fixe = cadre stable.
   SCOPÉ à .ask-window__body : ailleurs, le widget flottant crée son propre
   #lightchat-container sur le <body> ; ne pas forcer son iframe en plein écran. */
.ask-window__body #lightchat-container { width: 100%; height: 480px; display: block; }
.ask-window__body #lightchat-container iframe { width: 100% !important; height: 100% !important; border: 0; display: block; }
@media (hover: hover) and (pointer: fine) {
  .ask-chip:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
  .ask-chip:hover::after { transform: translateX(3px); opacity: 1; }
}
@media (max-width: 860px) {
  .ask { grid-template-columns: 1fr; gap: 34px; }
  .ask__copy { max-width: none; }
}
