/*
Theme Name: Amane
Theme URI: https://loup-garou.live/
Author: Kabylio
Author URI: https://loup-garou.live/
Description: Coque d'application mobile-first pour la plateforme Amane (mise en relation psychologues ↔ patients). Le thème fournit le design system, la coque PWA et le rendu de l'application ; la logique métier vient de l'extension « Amane Cœur ».
Version: 1.7.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amane
Tags: mobile, app, one-column, accessibility-ready
*/

/* ==========================================================================
   0. Polices auto-hébergées (aucun appel externe — RGPD)
   ========================================================================== */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  /* Couleurs — « crépuscule méditerranéen » */
  --am-ink: #1A2530;
  --am-ink-2: #3A4956;
  --am-muted: #667380;
  --am-marine: #23405A;
  --am-marine-deep: #172C3F;
  --am-marine-soft: #E4EBF1;
  --am-figuier: #4F7C5B;
  --am-figuier-deep: #3E6449;
  --am-figuier-soft: #E3EEE5;
  --am-brume: #F4F6F7;
  --am-surface: #FFFFFF;
  --am-surface-2: #FAFBFB;
  --am-line: #DFE5E9;
  --am-line-strong: #C9D2D9;
  --am-danger: #B9433A;
  --am-danger-soft: #F8E7E5;
  --am-warn: #9C7A2E;
  --am-warn-soft: #F7F0DE;
  --am-on-primary: #FFFFFF;
  --am-brand: #87A58E; /* vert du logo psykologue.com */

  /* Typographie */
  --am-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --am-font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --am-fs-12: 0.75rem;
  --am-fs-13: 0.8125rem;
  --am-fs-15: 0.9375rem;
  --am-fs-17: 1.0625rem;
  --am-fs-20: 1.25rem;
  --am-fs-24: 1.5rem;
  --am-fs-30: 1.875rem;
  --am-fs-38: 2.375rem;

  /* Rythme */
  --am-s-1: 4px;
  --am-s-2: 8px;
  --am-s-3: 12px;
  --am-s-4: 16px;
  --am-s-5: 20px;
  --am-s-6: 24px;
  --am-s-8: 32px;
  --am-s-10: 40px;
  --am-s-12: 48px;

  /* Rayons : la hiérarchie se lit dans les rayons */
  --am-r-card: 20px;
  --am-r-control: 14px;
  --am-r-chip: 999px;
  --am-r-avatar: 999px;

  /* Ombres : une seule, discrète, jamais grise-sale */
  --am-shadow: 0 1px 2px rgba(23, 44, 63, 0.06), 0 8px 24px -12px rgba(23, 44, 63, 0.18);
  --am-shadow-sheet: 0 -8px 40px -12px rgba(23, 44, 63, 0.28);

  /* Coque */
  --am-tabbar-h: 64px;
  --am-header-h: 56px;
  --am-safe-top: env(safe-area-inset-top, 0px);
  --am-safe-bottom: env(safe-area-inset-bottom, 0px);
  --am-max-w: 520px;

  /* Mouvement */
  --am-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --am-t-fast: 160ms;
  --am-t-base: 240ms;
  --am-t-slow: 360ms;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --am-ink: #E8EEF2;
    --am-ink-2: #C3CED7;
    --am-muted: #98A6B3;
    --am-marine: #7FA7CB;
    --am-marine-deep: #23405A;
    --am-marine-soft: #1B2B3A;
    --am-figuier: #7DAF8B;
    --am-figuier-deep: #5F9270;
    --am-figuier-soft: #1C2A22;
    --am-brume: #0F1720;
    --am-surface: #17222D;
    --am-surface-2: #1C2834;
    --am-line: #263441;
    --am-line-strong: #34465A;
    --am-danger: #E07A72;
    --am-danger-soft: #3A2220;
    --am-warn: #D8B25E;
    --am-warn-soft: #33291A;
    --am-on-primary: #0F1720;
    --am-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --am-shadow-sheet: 0 -8px 40px -12px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --am-ink: #E8EEF2;
  --am-ink-2: #C3CED7;
  --am-muted: #98A6B3;
  --am-marine: #7FA7CB;
  --am-marine-deep: #23405A;
  --am-marine-soft: #1B2B3A;
  --am-figuier: #7DAF8B;
  --am-figuier-deep: #5F9270;
  --am-figuier-soft: #1C2A22;
  --am-brume: #0F1720;
  --am-surface: #17222D;
  --am-surface-2: #1C2834;
  --am-line: #263441;
  --am-line-strong: #34465A;
  --am-danger: #E07A72;
  --am-danger-soft: #3A2220;
  --am-warn: #D8B25E;
  --am-warn-soft: #33291A;
  --am-on-primary: #0F1720;
}

/* ==========================================================================
   2. Reset ciblé
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--am-brume);
  color: var(--am-ink);
  font-family: var(--am-font-body);
  font-size: var(--am-fs-15);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
body.am-locked { overflow: hidden; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--am-marine); text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--am-marine); outline-offset: 2px; border-radius: 6px; }
.am-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   3. Coque d'application
   ========================================================================== */
.am-app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  max-width: var(--am-max-w);
  margin: 0 auto;
  background: var(--am-brume);
  overflow: hidden;
  overflow-x: clip;
}
@media (min-width: 560px) {
  .am-app {
    top: 24px; bottom: 24px;
    border-radius: 32px;
    box-shadow: 0 24px 80px -24px rgba(23, 44, 63, 0.35);
    border: 1px solid var(--am-line);
  }
}

.am-header {
  flex: 0 0 auto;
  min-height: calc(var(--am-header-h) + var(--am-safe-top));
  padding: calc(var(--am-safe-top) + var(--am-s-2)) var(--am-s-4) var(--am-s-2);
  display: flex;
  align-items: center;
  gap: var(--am-s-3);
  background: var(--am-brume);
}
.am-header__back {
  width: 40px; min-width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--am-ink);
  background: var(--am-surface);
  border: 1px solid var(--am-line);
}
.am-header__title {
  flex: 1 1 auto;
  font-family: var(--am-font-display);
  font-weight: 600;
  font-size: var(--am-fs-20);
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.am-header__title--sm { font-size: var(--am-fs-17); font-weight: 700; font-family: var(--am-font-body); letter-spacing: 0; }
.am-header__sos {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px 0 11px;
  border-radius: 999px;
  background: var(--am-danger-soft);
  color: var(--am-danger);
  font-weight: 800; font-size: var(--am-fs-13);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--am-t-fast);
}
.am-header__sos:active { background: color-mix(in srgb, var(--am-danger) 18%, transparent); }
.am-header__sos svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 360px) { .am-header__sos span { display: none; } .am-header__sos { padding: 0 11px; } }

.am-header__action {
  white-space: nowrap;
  max-width: 48%;
  min-width: 40px; height: 40px;
  padding: 0 var(--am-s-3);
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--am-marine);
  font-weight: 700;
  font-size: var(--am-fs-13);
}

.am-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: clip;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--am-s-4);
  scroll-behavior: smooth;
}
.am-app.has-tabbar .am-main > .am-screen { padding-bottom: calc(var(--am-tabbar-h) + var(--am-safe-bottom) + var(--am-s-6)); }
/* Le bouton d'aide urgente flotte : on réserve sa hauteur pour qu'il ne masque jamais rien. */
.am-main--flush { padding-left: 0; padding-right: 0; }
.am-main--flush > .am-screen { padding-bottom: 0; }
.am-main--center { display: flex; flex-direction: column; justify-content: center; }

.am-screen { flex: 1 0 auto; padding-bottom: calc(var(--am-s-8) + var(--am-safe-bottom)); display: flex; flex-direction: column; animation: am-enter var(--am-t-base) var(--am-ease) both; }
.am-screen > * { flex: 0 0 auto; }
.am-screen > .am-entry { flex: 1 1 auto; }
@keyframes am-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Barre d'onglets */
.am-tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--am-tabbar-h) + var(--am-safe-bottom));
  padding-bottom: var(--am-safe-bottom);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: color-mix(in srgb, var(--am-surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--am-line);
  z-index: 20;
}
.am-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--am-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.am-tab svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.am-tab.is-active { color: var(--am-marine); }
.am-tab.is-active::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--am-marine);
}
.am-tab__dot {
  position: absolute; top: 8px; right: calc(50% - 16px);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--am-danger);
  border: 2px solid var(--am-surface);
}

/* ==========================================================================
   4. Typographie
   ========================================================================== */
.am-display {
  font-family: var(--am-font-display);
  font-weight: 500;
  font-size: var(--am-fs-38);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.am-h1 {
  font-family: var(--am-font-display);
  font-weight: 600;
  font-size: var(--am-fs-30);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.am-h2 {
  font-family: var(--am-font-display);
  font-weight: 600;
  font-size: var(--am-fs-24);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.am-h3 { font-weight: 800; font-size: var(--am-fs-17); line-height: 1.3; }
.am-lead { font-size: var(--am-fs-17); line-height: 1.5; color: var(--am-ink-2); }
.am-body { font-size: var(--am-fs-15); color: var(--am-ink-2); }
.am-small { font-size: var(--am-fs-13); color: var(--am-muted); }
.am-tiny { font-size: var(--am-fs-12); color: var(--am-muted); }
.am-brand {
  font-family: var(--am-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100;
}
.am-section-title {
  font-weight: 800;
  font-size: var(--am-fs-15);
  margin: var(--am-s-6) 0 var(--am-s-3);
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--am-s-3);
}
.am-section-title a { font-size: var(--am-fs-13); font-weight: 700; }

/* ==========================================================================
   5. Boutons
   ========================================================================== */
.am-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px;
  padding: 0 var(--am-s-5);
  border-radius: var(--am-r-control);
  font-weight: 800;
  font-size: var(--am-fs-15);
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: transform var(--am-t-fast) var(--am-ease), background var(--am-t-fast), opacity var(--am-t-fast);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  white-space: nowrap;
}
.am-btn:active { transform: scale(0.985); }
.am-btn[disabled], .am-btn.is-loading { opacity: 0.55; pointer-events: none; }
.am-btn--primary { background: var(--am-marine); color: var(--am-on-primary); }
.am-btn--primary:hover { background: var(--am-marine-deep); }
.am-btn--accent { background: var(--am-figuier); color: #FFFFFF; }
.am-btn--accent:hover { background: var(--am-figuier-deep); }
.am-btn--ghost { background: var(--am-surface); color: var(--am-ink); border-color: var(--am-line-strong); }
.am-btn--soft { background: var(--am-marine-soft); color: var(--am-marine); }
.am-btn--danger { background: var(--am-danger-soft); color: var(--am-danger); }
.am-btn--link { min-height: 40px; padding: 0 var(--am-s-2); color: var(--am-marine); background: transparent; }
.am-btn--block { width: 100%; }
.am-btn--sm { min-height: 40px; padding: 0 var(--am-s-4); font-size: var(--am-fs-13); border-radius: 12px; }
.am-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.am-btn-row { display: flex; gap: var(--am-s-3); }
.am-btn-row > .am-btn { flex: 1 1 0; }

/* Spinner */
.am-spin {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: am-spin 0.8s linear infinite;
}
@keyframes am-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   6. Surfaces : cartes, listes, chips, badges
   ========================================================================== */
.am-card {
  background: var(--am-surface);
  border: 1px solid var(--am-line);
  border-radius: var(--am-r-card);
  padding: var(--am-s-5);
}
.am-card--flat { box-shadow: none; }
.am-card--tap { transition: transform var(--am-t-fast) var(--am-ease); -webkit-tap-highlight-color: transparent; cursor: pointer; }
.am-card--tap:active { transform: scale(0.99); }
.am-card--accent { background: var(--am-figuier-soft); border-color: transparent; }
.am-card--marine { background: var(--am-marine); border-color: transparent; color: #FFFFFF; }
.am-card--marine .am-small, .am-card--marine .am-body { color: rgba(255, 255, 255, 0.78); }
.am-card + .am-card { margin-top: var(--am-s-3); }
.am-stack > * + * { margin-top: var(--am-s-3); }
.am-stack--lg > * + * { margin-top: var(--am-s-5); }

.am-list { background: var(--am-surface); border: 1px solid var(--am-line); border-radius: var(--am-r-card); overflow: hidden; }
.am-row {
  display: flex; align-items: center; gap: var(--am-s-3);
  width: 100%;
  min-height: 60px;
  padding: var(--am-s-3) var(--am-s-4);
  text-align: left;
  color: var(--am-ink);
  -webkit-tap-highlight-color: transparent;
}
.am-row + .am-row { border-top: 1px solid var(--am-line); }
.am-row:active { background: var(--am-surface-2); }
.am-row__main { flex: 1 1 auto; min-width: 0; }
.am-row__title { font-weight: 700; font-size: var(--am-fs-15); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-row__sub { font-size: var(--am-fs-13); color: var(--am-muted); margin-top: 2px; }
.am-row__end { flex: 0 0 auto; color: var(--am-muted); display: inline-flex; align-items: center; gap: 6px; font-size: var(--am-fs-13); font-weight: 700; }
.am-row__end svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.am-chips { display: flex; gap: var(--am-s-2); flex-wrap: wrap; }
.am-chips--scroll {
  flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--am-s-4)); padding: 0 var(--am-s-4) var(--am-s-1);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.am-chips--scroll::-webkit-scrollbar { display: none; }
.am-chips-wrap { position: relative; }
.am-chips-wrap::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-end: calc(-1 * var(--am-s-4));
  width: 28px; pointer-events: none;
  background: linear-gradient(to left, var(--am-brume), transparent);
}
.am-chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 14px;
  border-radius: var(--am-r-chip);
  background: var(--am-surface);
  border: 1px solid var(--am-line-strong);
  color: var(--am-ink);
  font-size: var(--am-fs-13);
  font-weight: 700;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--am-t-fast), border-color var(--am-t-fast), color var(--am-t-fast);
}
.am-chip.is-on { background: var(--am-marine); border-color: var(--am-marine); color: var(--am-on-primary); }
.am-chip--soft { background: var(--am-marine-soft); border-color: transparent; color: var(--am-marine); min-height: 28px; padding: 0 10px; font-size: var(--am-fs-12); }
.am-chip--muted { background: var(--am-surface-2); border-color: transparent; color: var(--am-muted); min-height: 28px; padding: 0 10px; font-size: var(--am-fs-12); }

.am-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: var(--am-fs-12); font-weight: 800;
  line-height: 1.4;
}
.am-badge svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.am-badge--verified { background: var(--am-figuier-soft); color: var(--am-figuier-deep); }
.am-badge--pending { background: var(--am-warn-soft); color: var(--am-warn); }
.am-badge--danger { background: var(--am-danger-soft); color: var(--am-danger); }
.am-badge--neutral { background: var(--am-marine-soft); color: var(--am-marine); }

.am-avatar {
  width: 52px; height: 52px; flex: 0 0 auto;
  border-radius: var(--am-r-avatar);
  display: grid; place-items: center;
  background: var(--am-marine-soft);
  color: var(--am-marine);
  font-family: var(--am-font-display);
  font-weight: 700; font-size: var(--am-fs-20);
  overflow: hidden;
}
.am-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Les pictogrammes posés dans un médaillon sont des tracés, jamais des aplats. */
.am-avatar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.am-avatar--lg svg { width: 30px; height: 30px; }
.am-avatar--lg { width: 84px; height: 84px; font-size: var(--am-fs-30); }
.am-avatar--sm { width: 40px; height: 40px; font-size: var(--am-fs-15); }

.am-divider { height: 1px; background: var(--am-line); margin: var(--am-s-5) 0; }

/* ==========================================================================
   7. Formulaires
   ========================================================================== */
.am-field { display: block; }
.am-field + .am-field { margin-top: var(--am-s-4); }
.am-label { display: block; font-weight: 700; font-size: var(--am-fs-13); color: var(--am-ink-2); margin-bottom: 6px; }
.am-input, .am-select, .am-textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: var(--am-r-control);
  border: 1px solid var(--am-line-strong);
  background: var(--am-surface);
  color: var(--am-ink);
  font-size: var(--am-fs-15);
  transition: border-color var(--am-t-fast), box-shadow var(--am-t-fast);
  -webkit-appearance: none; appearance: none;
}
.am-textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.am-input:focus, .am-select:focus, .am-textarea:focus { outline: none; border-color: var(--am-marine); box-shadow: 0 0 0 3px var(--am-marine-soft); }
.am-input[aria-invalid="true"] { border-color: var(--am-danger); }
.am-hint { font-size: var(--am-fs-12); color: var(--am-muted); margin-top: 6px; }
.am-error { font-size: var(--am-fs-13); color: var(--am-danger); margin-top: 6px; font-weight: 700; }
.am-select-wrap { position: relative; }
.am-select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  width: 8px; height: 8px; border-right: 2px solid var(--am-muted); border-bottom: 2px solid var(--am-muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.am-select { padding-right: 40px; }

/* Cases à choix (grandes, tactiles) */
.am-choice {
  display: flex; align-items: center; gap: var(--am-s-3);
  width: 100%; min-height: 60px;
  padding: var(--am-s-3) var(--am-s-4);
  border-radius: var(--am-r-control);
  background: var(--am-surface);
  border: 1.5px solid var(--am-line);
  text-align: left;
  color: var(--am-ink);
  font-weight: 700;
  transition: border-color var(--am-t-fast), background var(--am-t-fast);
  -webkit-tap-highlight-color: transparent;
}
.am-choice + .am-choice { margin-top: var(--am-s-2); }
.am-choice__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--am-brume); color: var(--am-marine); flex: 0 0 auto; }
.am-choice__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.am-choice__text { flex: 1 1 auto; min-width: 0; }
.am-choice__sub { display: block; font-weight: 500; font-size: var(--am-fs-13); color: var(--am-muted); margin-top: 1px; }
.am-choice__check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--am-line-strong); flex: 0 0 auto; display: grid; place-items: center; transition: all var(--am-t-fast); }
.am-choice__check svg { width: 14px; height: 14px; stroke: #FFFFFF; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.am-choice.is-on { border-color: var(--am-marine); background: var(--am-marine-soft); }
.am-choice.is-on .am-choice__check { background: var(--am-marine); border-color: var(--am-marine); }
.am-choice.is-on .am-choice__check svg { opacity: 1; }

/* Interrupteur */
.am-switch {
  /* La zone tactile doit faire au moins 44 px de haut : on l'étend sans changer
     l'apparence de l'interrupteur, sinon le doigt rate la cible. */
  position: relative; width: 50px; height: 30px;
  box-sizing: content-box;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  background-clip: padding-box; border-radius: 999px; background: var(--am-line-strong); transition: background var(--am-t-fast); flex: 0 0 auto; }
.am-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; transition: transform var(--am-t-base) var(--am-ease); box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.am-switch[aria-checked="true"] { background: var(--am-figuier); background-clip: padding-box; }
.am-switch[aria-checked="true"]::after { transform: translateX(20px); }

/* ==========================================================================
   8. Écran d'entrée — le choix du rôle (l'élément mémorable)
   ========================================================================== */
.am-entry {
  display: flex; flex-direction: column;
  padding-top: var(--am-s-5);
}
.am-entry__mark {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  margin-bottom: var(--am-s-6);
}
.am-pub__logo { display: inline-flex; align-items: center; }
.am-pub__logo img { height: 34px; width: auto; display: block; }
.am-mark-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.am-install__icon .am-mark-img { width: 30px; height: 30px; }
.am-entry__mark svg { width: 32px; height: 32px; }
.am-entry__title { margin-bottom: var(--am-s-3); }
.am-entry__lead { margin-bottom: var(--am-s-6); max-width: 34ch; }
.am-doors { display: grid; gap: var(--am-s-3); margin-top: auto; }
.am-entry__mark { margin-bottom: var(--am-s-5); }
.am-door {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  min-height: 148px;
  padding: var(--am-s-5);
  border-radius: 24px;
  text-align: left;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--am-t-fast) var(--am-ease);
}
.am-door:active { transform: scale(0.985); }
.am-door--patient { background: var(--am-marine); color: #FFFFFF; }
.am-door--psy { background: var(--am-surface); color: var(--am-ink); border: 1px solid var(--am-line-strong); }
.am-door__eyebrow { font-size: var(--am-fs-13); font-weight: 700; opacity: 0.78; }
.am-door__title { font-family: var(--am-font-display); font-weight: 600; font-size: var(--am-fs-24); line-height: 1.15; letter-spacing: -0.01em; }
.am-door__arrow {
  position: absolute; top: var(--am-s-4); right: var(--am-s-4);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.14);
}
.am-door--psy .am-door__arrow { background: var(--am-brume); }
.am-door__arrow svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.am-door__glyph { position: absolute; right: -10px; bottom: -16px; width: 124px; height: 124px; opacity: 0.14; pointer-events: none; }
.am-door--psy .am-door__glyph { opacity: 0.08; color: var(--am-marine); }
.am-entry__foot { margin-top: var(--am-s-6); padding-bottom: calc(var(--am-safe-bottom) + var(--am-s-4)); text-align: center; }

/* ==========================================================================
   9. Parcours en étapes
   ========================================================================== */
.am-progress { display: flex; gap: 6px; margin: var(--am-s-2) 0 var(--am-s-6); }
.am-progress span { flex: 1 1 0; height: 4px; border-radius: 2px; background: var(--am-line); transition: background var(--am-t-base); }
.am-progress span.is-done { background: var(--am-marine); }
.am-step__q { margin-bottom: var(--am-s-2); }
.am-step__help { margin-bottom: var(--am-s-6); }
.am-cta {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  z-index: 22;
  padding: var(--am-s-3) var(--am-s-4) calc(var(--am-s-3) + var(--am-safe-bottom));
  background: var(--am-surface);
  border-top: 1px solid var(--am-line);
  box-shadow: 0 -6px 24px -18px rgba(23, 44, 63, 0.5);
}
.am-app.has-tabbar .am-cta { bottom: calc(var(--am-tabbar-h) + var(--am-safe-bottom)); padding-bottom: var(--am-s-3); }
.am-app.has-cta .am-main > .am-screen { padding-bottom: calc(var(--am-cta-h, 96px) + var(--am-s-5)); }
.am-app.has-cta.has-tabbar .am-main > .am-screen { padding-bottom: calc(var(--am-tabbar-h) + var(--am-safe-bottom) + var(--am-cta-h, 96px) + var(--am-s-5)); }

/* ==========================================================================
   10. Fiches psy, résultats, créneaux
   ========================================================================== */
.am-psy {
  display: flex; gap: var(--am-s-4);
  background: var(--am-surface);
  border: 1px solid var(--am-line);
  border-radius: var(--am-r-card);
  padding: var(--am-s-4);
  width: 100%; text-align: left; color: var(--am-ink);
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--am-t-fast) var(--am-ease);
}
.am-psy:active { transform: scale(0.99); }
.am-psy + .am-psy { margin-top: var(--am-s-3); }
.am-psy__body { flex: 1 1 auto; min-width: 0; }
.am-psy__name { font-weight: 800; font-size: var(--am-fs-17); display: flex; align-items: center; gap: 6px; }
.am-psy__name svg { width: 18px; height: 18px; color: var(--am-figuier); stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.am-psy__meta { font-size: var(--am-fs-13); color: var(--am-muted); margin-top: 2px; }
.am-psy__tags { margin-top: var(--am-s-2); display: flex; gap: 6px; flex-wrap: wrap; }
.am-psy__foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--am-s-3); font-size: var(--am-fs-13); }
.am-psy__price { font-weight: 800; color: var(--am-ink); }
.am-psy__next { color: var(--am-figuier-deep); font-weight: 700; }

.am-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: var(--am-s-4) 0 var(--am-s-5);
}
.am-hero .am-avatar { margin-bottom: var(--am-s-3); }
.am-hero__name { font-family: var(--am-font-display); font-weight: 600; font-size: var(--am-fs-24); letter-spacing: -0.01em; }
.am-hero__sub { color: var(--am-muted); font-size: var(--am-fs-13); margin-top: 4px; }
.am-hero .am-badge { margin-top: var(--am-s-3); }

.am-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--am-s-2); }
.am-fact { background: var(--am-surface); border: 1px solid var(--am-line); border-radius: 16px; padding: var(--am-s-3); text-align: center; }
.am-fact__v { font-weight: 800; font-size: var(--am-fs-17); }
.am-fact__k { font-size: var(--am-fs-12); color: var(--am-muted); margin-top: 2px; }

.am-days { display: flex; gap: var(--am-s-2); overflow-x: auto; margin: 0 calc(-1 * var(--am-s-4)); padding: 0 var(--am-s-4) var(--am-s-1); scrollbar-width: none; }
.am-days::-webkit-scrollbar { display: none; }
.am-day {
  flex: 0 0 auto; width: 62px; padding: 10px 0;
  border-radius: 16px; background: var(--am-surface); border: 1.5px solid var(--am-line);
  text-align: center; color: var(--am-ink);
  -webkit-tap-highlight-color: transparent;
}
.am-day__w { font-size: var(--am-fs-12); color: var(--am-muted); font-weight: 700; }
.am-day__d { font-family: var(--am-font-display); font-weight: 600; font-size: var(--am-fs-20); line-height: 1.1; margin-top: 2px; }
.am-day__n { font-size: 10px; color: var(--am-figuier-deep); font-weight: 800; margin-top: 3px; min-height: 12px; }
.am-day.is-on { background: var(--am-marine); border-color: var(--am-marine); color: var(--am-on-primary); }
.am-day.is-on .am-day__w, .am-day.is-on .am-day__n { color: inherit; opacity: 0.85; }
.am-day.is-empty { opacity: 0.45; }

.am-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--am-s-2); margin-top: var(--am-s-4); }
.am-slot {
  min-height: 46px; border-radius: 12px;
  background: var(--am-surface); border: 1.5px solid var(--am-line);
  font-weight: 800; font-size: var(--am-fs-15); color: var(--am-ink);
  -webkit-tap-highlight-color: transparent;
}
.am-slot.is-on { background: var(--am-marine); border-color: var(--am-marine); color: var(--am-on-primary); }
.am-slot--discovery { border-style: dashed; color: var(--am-figuier-deep); }
.am-slot--discovery.is-on { background: var(--am-figuier); border-color: var(--am-figuier); color: #fff; }

.am-summary { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--am-s-4); font-size: var(--am-fs-15); }
.am-summary dt { color: var(--am-muted); }
.am-summary dd { margin: 0; font-weight: 700; }

/* Statistiques psy */
.am-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--am-s-3); }
.am-stat { background: var(--am-surface); border: 1px solid var(--am-line); border-radius: var(--am-r-card); padding: var(--am-s-4); }
.am-stat__v { font-family: var(--am-font-display); font-weight: 600; font-size: var(--am-fs-30); line-height: 1; letter-spacing: -0.02em; }
.am-stat__k { font-size: var(--am-fs-13); color: var(--am-muted); margin-top: 6px; }
.am-stat--accent { background: var(--am-figuier-soft); border-color: transparent; }
.am-stat--accent .am-stat__v { color: var(--am-figuier-deep); }

/* Séance à venir (patient) */
.am-next {
  background: var(--am-marine); color: #FFFFFF;
  border-radius: var(--am-r-card); padding: var(--am-s-5);
  display: flex; flex-direction: column; gap: var(--am-s-3);
}
.am-next__when { font-family: var(--am-font-display); font-weight: 600; font-size: var(--am-fs-24); letter-spacing: -0.01em; line-height: 1.15; }
.am-next__who { opacity: 0.85; font-size: var(--am-fs-15); }
.am-next .am-btn--ghost { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.22); color: #FFFFFF; }

/* ==========================================================================
   11. Aide urgente (toujours accessible)
   ========================================================================== */
.am-sos-panel .am-h2 { color: var(--am-danger); }
.am-sos-line {
  display: flex; align-items: center; justify-content: space-between; gap: var(--am-s-3);
  padding: var(--am-s-3) 0;
}
.am-sos-line + .am-sos-line { border-top: 1px solid var(--am-line); }
.am-sos-line__num { font-family: var(--am-font-display); font-weight: 700; font-size: var(--am-fs-30); letter-spacing: -0.02em; color: var(--am-ink); }
.am-sos-line__k { font-size: var(--am-fs-13); color: var(--am-muted); }

/* ==========================================================================
   12. Feuilles, toasts, états
   ========================================================================== */
.am-scrim {
  position: absolute; inset: 0; z-index: 40;
  background: rgba(16, 26, 36, 0.45);
  opacity: 0; transition: opacity var(--am-t-base);
}
.am-scrim.is-open { opacity: 1; }
.am-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 41;
  max-height: 88%;
  display: flex; flex-direction: column;
  background: var(--am-surface);
  border-radius: 28px 28px 0 0;
  box-shadow: var(--am-shadow-sheet);
  transform: translateY(100%);
  transition: transform var(--am-t-slow) var(--am-ease);
  padding-bottom: var(--am-safe-bottom);
}
.am-sheet.is-open { transform: none; }
.am-sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: var(--am-line-strong); margin: 10px auto 4px; flex: 0 0 auto; }
.am-sheet__body { padding: var(--am-s-3) var(--am-s-5) var(--am-s-5); overflow-y: auto; min-height: 0; }
.am-sheet__title { font-family: var(--am-font-display); font-weight: 600; font-size: var(--am-fs-24); letter-spacing: -0.01em; margin-bottom: var(--am-s-2); }

.am-toast {
  position: absolute; left: var(--am-s-4); right: var(--am-s-4);
  top: calc(var(--am-safe-top) + var(--am-header-h) + var(--am-s-2));
  z-index: 60;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--am-ink);
  color: var(--am-brume);
  font-weight: 700; font-size: var(--am-fs-15);
  box-shadow: var(--am-shadow);
  transform: translateY(-120%); opacity: 0;
  transition: transform var(--am-t-base) var(--am-ease), opacity var(--am-t-base);
}
.am-toast.is-open { transform: none; opacity: 1; }
.am-toast--error { background: var(--am-danger); color: #FFFFFF; }
.am-toast--success { background: var(--am-figuier-deep); color: #FFFFFF; }

.am-empty {
  text-align: center;
  padding: var(--am-s-8) var(--am-s-5);
  flex: 1 1 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 45vh;
}
.am-empty__icon { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto var(--am-s-4); background: var(--am-surface); border: 1px solid var(--am-line); display: grid; place-items: center; color: var(--am-marine); }
.am-empty__icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.am-empty__title { font-weight: 800; font-size: var(--am-fs-17); }
.am-empty__text { color: var(--am-muted); margin-top: 6px; max-width: 30ch; margin-left: auto; margin-right: auto; }
.am-empty .am-btn { margin-top: var(--am-s-5); }

.am-skeleton { position: relative; overflow: hidden; background: var(--am-line); border-radius: 12px; }
.am-skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: translateX(-100%);
  animation: am-shimmer 1.3s infinite;
}
@keyframes am-shimmer { to { transform: translateX(100%); } }
.am-skel-psy { display: flex; gap: var(--am-s-4); padding: var(--am-s-4); background: var(--am-surface); border: 1px solid var(--am-line); border-radius: var(--am-r-card); }
.am-skel-psy + .am-skel-psy { margin-top: var(--am-s-3); }
.am-skel-psy .am-skeleton:first-child { width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto; }
.am-skel-lines { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.am-skel-lines .am-skeleton { height: 14px; }
.am-skel-lines .am-skeleton:nth-child(2) { width: 60%; }
.am-skel-lines .am-skeleton:nth-child(3) { width: 80%; height: 10px; }

.am-notice { display: flex; gap: var(--am-s-3); padding: var(--am-s-3) var(--am-s-4); border-radius: 16px; font-size: var(--am-fs-13); line-height: 1.45; }
.am-notice svg { width: 20px; height: 20px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.am-notice--info { background: var(--am-marine-soft); color: var(--am-marine); }
.am-notice--warn { background: var(--am-warn-soft); color: var(--am-warn); }
.am-notice--danger { background: var(--am-danger-soft); color: var(--am-danger); }
.am-notice--ok { background: var(--am-figuier-soft); color: var(--am-figuier-deep); }

/* Bannière d'installation */
.am-install {
  display: flex; align-items: center; gap: var(--am-s-3);
  padding: var(--am-s-3) var(--am-s-4);
  border-radius: 16px;
  background: var(--am-surface); border: 1px solid var(--am-line);
}
.am-install__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--am-marine); display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; }
.am-install__icon svg { width: 26px; height: 26px; }
.am-install__text { flex: 1 1 auto; min-width: 0; font-size: var(--am-fs-13); }
.am-install__text b { display: block; font-size: var(--am-fs-15); }

/* Modalités pratiques d'une séance confirmée */
.am-modality {
  background: var(--am-figuier-soft);
  border-radius: 16px;
  padding: var(--am-s-4);
  margin-top: var(--am-s-3);
}
.am-modality__k {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: var(--am-fs-13); color: var(--am-figuier-deep);
}
.am-modality__k svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.am-modality__v { margin-top: 6px; font-size: var(--am-fs-15); color: var(--am-ink); white-space: pre-line; word-break: break-word; }
.am-modality__v a { text-decoration: underline; }

/* Journal d'humeur (aperçu — lot 3) */
.am-mood { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--am-s-2); }
.am-mood button { aspect-ratio: 1; border-radius: 16px; background: var(--am-surface); border: 1.5px solid var(--am-line); font-size: 26px; }
.am-mood button.is-on { border-color: var(--am-marine); background: var(--am-marine-soft); }

/* Page d'attente si l'extension manque */
.am-fallback { min-height: 100vh; display: grid; place-items: center; padding: var(--am-s-8); text-align: center; }
.am-fallback code { background: var(--am-surface); border: 1px solid var(--am-line); padding: 2px 8px; border-radius: 8px; }

/* ==========================================================================
   13. Accessibilité mouvement
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .am-main { scroll-behavior: auto; }
}

/* ==========================================================================
   14. Visio de séance
   ========================================================================== */
.am-call {
  position: relative;
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  background: var(--am-marine-deep);
  color: #FFFFFF;
  min-height: 100%;
  padding-bottom: 0;
}
.am-call__top {
  flex: 0 0 auto;
  padding: calc(var(--am-safe-top) + var(--am-s-3)) var(--am-s-4) var(--am-s-2);
  display: flex; align-items: center; justify-content: space-between; gap: var(--am-s-3);
}
.am-call__who { font-weight: 800; font-size: var(--am-fs-15); }
.am-call__timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700; font-size: var(--am-fs-13);
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 10px; border-radius: 999px;
}
.am-call__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 var(--am-s-3);
  border-radius: 22px;
  overflow: hidden;
  background: #0C1620;
}
.am-call__stage--idle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--am-s-4); padding: var(--am-s-5); }
.am-call__remote { width: 100%; height: 100%; object-fit: cover; background: #0C1620; }
.am-call__local {
  position: absolute; right: 12px; bottom: 12px;
  width: 96px; aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: #0C1620;
}
.am-call__preview {
  width: 150px; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 18px; background: #0C1620;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.am-call__msg { text-align: center; max-width: 30ch; }
.am-call__msg .am-h3 { color: #FFFFFF; }
.am-call__msg .am-small { color: rgba(255, 255, 255, 0.72); }
.am-call__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(12, 22, 32, 0.72);
  color: #FFFFFF; font-weight: 700;
}
.am-call__admit { margin: var(--am-s-3) var(--am-s-4) 0; }
.am-call__bar {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; gap: var(--am-s-3);
  padding: var(--am-s-4) var(--am-s-4) var(--am-s-2);
}
.am-call__btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  transition: background var(--am-t-fast), transform var(--am-t-fast) var(--am-ease);
  -webkit-tap-highlight-color: transparent;
}
.am-call__btn:active { transform: scale(0.94); }
.am-call__btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.am-call__btn.is-off { background: #FFFFFF; color: var(--am-marine-deep); }
.am-call__btn--end { background: var(--am-danger); width: 64px; height: 64px; }
.am-call__btn--end svg { fill: currentColor; stroke: none; width: 28px; height: 28px; }
.am-call__note {
  flex: 0 0 auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 var(--am-s-5) calc(var(--am-safe-bottom) + var(--am-s-4));
}

/* ==========================================================================
   14. Pages publiques (indexables) — lisibles sans JavaScript
   ========================================================================== */
.am-body--pub { background: var(--am-brume); overflow-y: auto; }
.am-pub__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--am-s-3);
  max-width: 720px; margin: 0 auto;
  padding: calc(var(--am-safe-top) + var(--am-s-4)) var(--am-s-4) var(--am-s-3);
}
.am-pub__bar .am-brand { font-size: var(--am-fs-20); color: var(--am-ink); }
.am-pub__main { max-width: 720px; margin: 0 auto; padding: 0 var(--am-s-4) var(--am-s-10); }
.am-pub .am-h1 { margin-bottom: var(--am-s-2); }
.am-pub .am-h2 { margin: var(--am-s-8) 0 var(--am-s-3); font-size: var(--am-fs-20); }
.am-pub__head { text-align: center; padding: var(--am-s-4) 0 var(--am-s-6); }
.am-pub__head .am-avatar { margin: 0 auto var(--am-s-4); }
.am-pub__head .am-badge { margin-top: var(--am-s-3); }
.am-pub__sub { color: var(--am-muted); font-size: var(--am-fs-15); }
.am-pub__bio { color: var(--am-ink-2); line-height: 1.6; max-width: 68ch; }
.am-pub__tags { display: flex; flex-wrap: wrap; gap: var(--am-s-2); }
.am-pub__tags li { display: block; }
.am-pub__cta { margin: var(--am-s-8) 0 var(--am-s-4); }
.am-pub__more { margin-top: var(--am-s-5); }
.am-pub__list { margin-top: var(--am-s-5); border: 1px solid var(--am-line); border-radius: var(--am-r-card); overflow: hidden; background: var(--am-surface); }
.am-pub__item + .am-pub__item { border-top: 1px solid var(--am-line); }
.am-pub__item a {
  display: flex; align-items: center; gap: var(--am-s-3);
  padding: var(--am-s-3) var(--am-s-4); color: var(--am-ink);
}
.am-pub__item a:hover { background: var(--am-surface-2); }
.am-pub__item-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.am-pub__item-price { flex: 0 0 auto; font-weight: 800; font-size: var(--am-fs-13); }
.am-pub__foot {
  max-width: 720px; margin: 0 auto;
  padding: var(--am-s-6) var(--am-s-4) calc(var(--am-safe-bottom) + var(--am-s-8));
  border-top: 1px solid var(--am-line);
}
.am-pub__foot nav { display: flex; gap: var(--am-s-4); margin-bottom: var(--am-s-3); font-size: var(--am-fs-13); font-weight: 700; }
.am-body--pub .am-notice { margin-top: var(--am-s-4); }
