/* Le centre d'aide de nymala.be — session « Nymala — l'aide », 24/11/2026.
   Maquette validée : docs/maquettes/aide-experience.html (écran a10).
   ⛔ Les couleurs viennent de /jetons.css. Icônes au trait, jamais d'émojis.
   On met en page selon la LARGEUR (règle du 09/11) :
   - étroit (téléphone, Duo fermé) : une colonne ;
   - moyen (Duo ouvert, iPad) : deux portes côte à côte, articles en une colonne ;
   - large (ordinateur) : la liste des articles et une colonne de côté. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--nymala-police); color: var(--nymala-texte); background: var(--nymala-fond);
  font-size: 16.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
.ai-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--nymala-terracotta-trait); outline-offset: 2px; border-radius: 6px; }

/* ── L'en-tête ─────────────────────────────────────────────────── */
.ai-tete { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px;
  padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  background: rgba(247,243,236,.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(32,61,50,.08); }
.ai-logo img { height: 30px; width: auto; display: block; }
.ai-nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: 15px; }
.ai-nav a { text-decoration: none; }
.ai-nav a.ici { color: var(--nymala-terracotta-texte); }
.ai-langue { font-weight: 700; font-size: 14px; text-decoration: none; }
.ai-cx { background: var(--nymala-vert-foret); color: var(--nymala-creme); border-radius: 99px; padding: 9px 16px;
  font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
@media (max-width: 860px) {
  .ai-nav a:not(.ici) { display: none; }
  .ai-nav { gap: 0; }
}
/* Très étroit (Duo fermé, petit téléphone) : on est déjà dans l'aide. */
@media (max-width: 420px) {
  .ai-tete { gap: 14px; }
  .ai-nav { display: none; }
  .ai-langue { margin-left: auto; }
  .ai-cx { padding: 8px 12px; font-size: 13px; }
}

/* ── Le corps ──────────────────────────────────────────────────── */
.ai-main { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 18px 0 30px; }
.ai-fil { font-size: 13.5px; color: var(--nymala-texte-discret); }
.ai-fil a { text-decoration: none; }
.ai-h1 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 6px 0 12px; }
.ai-h2 { font-size: 20px; font-weight: 800; margin: 18px 0 10px; }
.ai-intro { background: var(--nymala-vert-foret); color: var(--nymala-creme); border-radius: 18px; padding: 15px 18px;
  font-size: 16px; margin-bottom: 14px; }

/* ── L'accueil ─────────────────────────────────────────────────── */
.ai-hero { background: var(--nymala-vert-foret); color: var(--nymala-creme); border-radius: 26px; padding: 26px 20px 22px;
  position: relative; overflow: hidden; }
.ai-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(210,120,78,.35), transparent 70%); pointer-events: none; }
.ai-hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.ai-dites { opacity: .88; margin-top: 8px; font-size: 16px; }
.ai-champ { position: relative; z-index: 1; margin-top: 18px; background: #fff; color: var(--nymala-texte); border-radius: 16px;
  display: flex; align-items: center; gap: 10px; padding: 0 16px; box-shadow: 0 8px 24px rgba(0,0,0,.18); max-width: 720px; }
.ai-champ svg { color: var(--nymala-terracotta-trait); flex: none; }
.ai-champ input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; padding: 16px 0; background: transparent;
  color: var(--nymala-texte); }
.ai-champ input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ai-champ:focus-within { box-shadow: 0 0 0 3px var(--nymala-terracotta-clair), 0 8px 24px rgba(0,0,0,.18); }
.ai-res { position: relative; z-index: 1; max-width: 720px; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ai-res:empty { display: none; }
.ai-res .n { font-size: 13px; opacity: .8; }
.ai-res a { display: block; background: #fff; color: var(--nymala-texte); border-radius: 14px; padding: 13px 16px; text-decoration: none; }
.ai-res a b { display: block; font-size: 16px; }
.ai-res a span { display: block; font-size: 14.5px; color: #3f4a40; margin-top: 2px; }
.ai-res a:first-of-type { border: 2px solid var(--nymala-terracotta-clair); }
.ai-res .vide { background: rgba(252,243,231,.1); border-radius: 14px; padding: 13px 16px; font-size: 15px; }
.ai-res .vide a { display: inline; background: none; padding: 0; color: inherit; text-decoration: underline; }
.ai-pop { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ai-pop a { font-size: 13.5px; border: 1px solid rgba(252,243,231,.32); border-radius: 99px; padding: 7px 12px; text-decoration: none; }
.ai-portes { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
.ai-porte { background: #fff; border-radius: 22px; padding: 22px; }
.ai-porte.fonce { background: var(--nymala-vert-foret); color: var(--nymala-creme); }
.ai-porte h2 { font-size: 22px; font-weight: 800; }
.ai-qui { opacity: .75; font-size: 14.5px; margin: 2px 0 14px; }
.ai-porte-s { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin: -4px 0 8px; font-weight: 700; }
.ai-porte ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 6px; }
.ai-porte li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-radius: 12px;
  padding: 13px 14px; background: rgba(240,223,206,.45); font-weight: 600; text-decoration: none; min-height: 48px; }
.ai-porte.fonce li a { background: rgba(252,243,231,.08); }
.ai-porte li small { font-weight: 500; opacity: .65; font-size: 13px; }

/* ── Les articles ──────────────────────────────────────────────── */
.ai-cols { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ai-liste { display: flex; flex-direction: column; gap: 10px; }
.ai-art { background: #fff; border-radius: 18px; padding: 18px; border: 1.5px solid transparent; scroll-margin-top: 80px; }
.ai-art:target, .ai-art.vise { border-color: var(--nymala-terracotta-clair); box-shadow: 0 6px 22px rgba(13,47,33,.08); }
.ai-art h2 { font-size: 18.5px; font-weight: 800; letter-spacing: -.01em; }
.ai-court { margin-top: 8px; font-size: 16px; }
.ai-art q, .ai-intro q { quotes: none; font-weight: 700; background: var(--nymala-sable); padding: 0 5px; border-radius: 5px; }
.ai-art details { margin-top: 10px; }
.ai-art summary { cursor: pointer; font-weight: 700; color: var(--nymala-terracotta-texte); font-size: 15px; list-style: none;
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.ai-art summary::-webkit-details-marker { display: none; }
.ai-art summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin-top: -4px; }
.ai-art details[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.ai-art ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ai-art li { position: relative; padding-left: 16px; font-size: 15.5px; }
.ai-art li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--nymala-terracotta); }
.ai-liens { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; }
.ai-liens span { color: var(--nymala-texte-discret); }
.ai-liens a { font-weight: 600; }
.ai-verifie { margin-top: 12px; font-size: 12.5px; color: var(--nymala-texte-discret); display: flex; gap: 6px; align-items: center; }
.ai-verifie svg { color: #2f7a4b; }
.ai-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ai-pills a { border: 1.5px solid rgba(13,47,33,.18); border-radius: 99px; padding: 7px 14px; font-weight: 600; font-size: 14px;
  text-decoration: none; background: #fff; }
.ai-pills a.on { background: var(--nymala-vert-foret); color: var(--nymala-creme); border-color: transparent; }

/* ── Toujours bloqué ? et le sommaire ──────────────────────────── */
.ai-bloque { background: #fff; border: 1.5px dashed rgba(13,47,33,.22); border-radius: 18px; padding: 18px; margin-top: 16px; }
.ai-bloque h2 { font-size: 17px; display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.ai-bloque a { font-weight: 700; color: var(--nymala-terracotta-texte); }
.ai-cote .ai-bloque { margin-top: 0; }
.ai-somm { display: none; }

/* ── Le pied ───────────────────────────────────────────────────── */
.ai-pied { width: min(1180px, 100% - 32px); margin: 10px auto 0; padding: 18px 0 calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(13,47,33,.12); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px;
  color: var(--nymala-texte-discret); }

/* ── Moyen : Duo ouvert, iPad ──────────────────────────────────── */
@media (min-width: 700px) {
  .ai-hero { padding: 36px 36px 30px; }
  .ai-portes { grid-template-columns: 1fr 1fr; }
}
/* ── Large : l'ordinateur ──────────────────────────────────────── */
@media (min-width: 1100px) {
  .ai-tete { padding: 14px 40px; }
  .ai-logo img { height: 34px; }
  .ai-main { padding-top: 26px; }
  .ai-hero { padding: 46px 52px 40px; }
  .ai-porte ul { grid-template-columns: 1fr 1fr; }
  .ai-cols { grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
  .ai-cote { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
  .ai-somm { display: flex; flex-direction: column; background: #fff; border-radius: 18px; padding: 16px; font-size: 14px; gap: 2px; }
  .ai-somm b { margin-bottom: 6px; }
  .ai-somm a { text-decoration: none; color: var(--nymala-texte-discret); padding: 4px 0; }
  .ai-somm a:hover { color: var(--nymala-texte); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* « Pas de réponse exacte » : les pistes approchantes, plus discrètes que les réponses. */
.ai-res .proches { display: flex; flex-direction: column; gap: 6px; opacity: .92; }
.ai-res .proches a { background: rgba(255,255,255,.88); border: 0; }
.ai-res .proches a:first-of-type { border: 0; }
.ai-res .vide a.ecrire { font-weight: 700; }
/* ⭐ 25/11 — « le comment du pourquoi » (Fabrice) */
.ai-art h3.ai-pq { margin: 14px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--nymala-texte-discret); }
