/* ==========================================================================
   LUMIRA — Design system
   "La clarté, quand vous en avez besoin."
   --------------------------------------------------------------------------
   Premium, nocturne, confidentiel. Fond bleu nuit, violet profond, or discret.
   Typo : Fraunces (display) + Outfit (texte/UI), chargées dans header.php.
   Breakpoints : 640px (mobile) / 960px (tablette).
   Contrat : voir SPEC.md section "Design system" — classes exactes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */

:root {
  /* Fonds */
  --bg:           #0b0e1a;
  --bg-2:         #0d1024;
  --surface:      #131830;
  --surface-2:    #1a2040;
  --border:       rgba(168, 178, 230, 0.14);

  /* Texte */
  --text:         #eef0fa;
  --muted:        #98a0c4;

  /* Accents */
  --gold:         #d4af6a;
  --gold-soft:    rgba(212, 175, 106, 0.15);
  --violet:       #7d5cf6;
  --violet-deep:  #2a1f4d;
  --accent-grad:  linear-gradient(135deg, #6d4aff 0%, #9b6cff 100%);
  --cta-grad:     linear-gradient(135deg, #ffe6ab 0%, #e2ad58 46%, #b96a46 100%);
  --cta-ink:      #1b1420;

  /* Formes & lumière */
  --radius:       12px;
  --radius-lg:    20px;
  --shadow-card:  0 18px 48px rgba(3, 5, 16, 0.48), 0 1px 0 rgba(255, 255, 255, 0.025) inset;
  --halo:         0 0 64px rgba(212, 175, 106, 0.16);

  /* Typo */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Internes (non contractuelles) */
  --gold-grad:    linear-gradient(120deg, #ecd9ab 0%, #d4af6a 45%, #b88b46 100%);
  --header-h:     72px;
  --container:    1180px;
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast:       0.18s var(--ease);
  --t-med:        0.3s var(--ease);
  --ok:           #5fce9b;
  --warn:         #e2a14e;
  --danger:       #e2607b;
}

/* --------------------------------------------------------------------------
   2. Reset moderne
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image:
    linear-gradient(145deg, #101427 0%, #090b15 46%, #0d1122 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(900px 520px at 50% -12%, rgba(236, 217, 171, 0.20), transparent 58%),
    radial-gradient(780px 560px at 88% 12%, rgba(61, 91, 122, 0.26), transparent 60%),
    radial-gradient(820px 580px at 8% 22%, rgba(65, 51, 99, 0.34), transparent 62%),
    radial-gradient(920px 680px at 55% 82%, rgba(5, 10, 20, 0.82), transparent 66%),
    linear-gradient(145deg, #101427 0%, #080a14 52%, #0d1122 100%);
}

body::after {
  z-index: -1;
  opacity: 0.78;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(238, 240, 250, 0.07) 1px, transparent 1.7px),
    radial-gradient(ellipse 88% 48% at 50% -11%, transparent 63%, rgba(212, 175, 106, 0.075) 64%, transparent 65%),
    radial-gradient(ellipse 108% 62% at 52% 0%, transparent 70%, rgba(168, 178, 230, 0.04) 71%, transparent 72%),
    radial-gradient(circle at 18% 27%, rgba(236, 217, 171, 0.08), transparent 2px),
    radial-gradient(circle at 72% 18%, rgba(236, 217, 171, 0.075), transparent 2px),
    radial-gradient(circle at 84% 44%, rgba(168, 178, 230, 0.06), transparent 1.8px),
    radial-gradient(circle at 36% 68%, rgba(168, 178, 230, 0.045), transparent 1.8px);
  background-size:
    34px 34px,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%;
}

main {
  flex: 1 0 auto;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

p,
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   3. Typographie
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 480;
  line-height: 1.14;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; font-weight: 500; letter-spacing: 0.01em; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  font-weight: 320;
  max-width: 58ch;
}

.muted  { color: var(--muted); }
.small  { font-size: 0.875rem; }
.gold-text { color: var(--gold); }
.text-center { text-align: center; }

em.gold,
.title-accent {
  font-style: italic;
  font-family: var(--font-display);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

::selection {
  background: var(--gold);
  color: #14101e;
}

/* Scrollbar fine */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 92, 246, 0.35) transparent;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(125, 92, 246, 0.4), rgba(42, 31, 77, 0.8));
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(125, 92, 246, 0.55); }

/* Focus accessible */
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   4. Layout : container, sections
   -------------------------------------------------------------------------- */

.container {
  width: min(var(--container), 100% - 2 * clamp(18px, 4vw, 40px));
  margin-inline: auto;
}

.section {
  padding-block: clamp(56px, 9vw, 104px);
  position: relative;
}

.section--tight { padding-block: clamp(36px, 6vw, 64px); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.6vw, 2.4rem);
  font-weight: 480;
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin-bottom: 14px;
  text-wrap: balance;
}

.section-sub {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: clamp(28px, 4vw, 44px);
  font-weight: 320;
}

.section-head--center { text-align: center; }
.section-head--center .section-sub { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: transform var(--t-fast), box-shadow var(--t-med),
              background-color var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), opacity var(--t-fast);
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn[disabled],
.btn.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.btn svg { width: 17px; height: 17px; flex: none; }

/* Primaire — CTA chaud, lumineux et très lisible */
.btn-primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 42%) padding-box,
    var(--cta-grad) border-box;
  border-color: rgba(255, 230, 171, 0.72);
  color: var(--cta-ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
  box-shadow:
    0 12px 30px rgba(185, 106, 70, 0.32),
    0 4px 18px rgba(226, 173, 88, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -18px 28px rgba(113, 55, 47, 0.20);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(108deg, transparent 0 35%, rgba(255, 255, 255, 0.46) 48%, transparent 64%);
  opacity: 0.7;
  transform: translateX(-135%);
  transition: transform 0.62s var(--ease);
}

.btn-primary:hover {
  box-shadow:
    0 16px 38px rgba(185, 106, 70, 0.42),
    0 8px 28px rgba(226, 173, 88, 0.32),
    0 0 0 1px rgba(255, 232, 178, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -18px 28px rgba(113, 55, 47, 0.16);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  transform: translateX(135%);
}

/* Or — discret, pour les CTA "valeur" (crédits, offre) */
.btn-gold {
  background: var(--gold-soft);
  border-color: rgba(212, 175, 106, 0.4);
  color: var(--gold);
}

.btn-gold:hover {
  background: rgba(212, 175, 106, 0.24);
  border-color: rgba(212, 175, 106, 0.65);
  box-shadow: 0 4px 22px rgba(212, 175, 106, 0.18);
  transform: translateY(-1px);
}

/* Ghost — contour discret */
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(125, 92, 246, 0.55);
  background: rgba(125, 92, 246, 0.08);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   6. Badges
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.5;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
}

.badge--gold {
  background: var(--gold-soft);
  border-color: rgba(212, 175, 106, 0.35);
  color: var(--gold);
}

.badge--violet {
  background: rgba(125, 92, 246, 0.14);
  border-color: rgba(125, 92, 246, 0.38);
  color: #b6a3ff;
}

.badge--soft {
  background: rgba(168, 178, 230, 0.08);
  border-color: transparent;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   7. Chips (filtres)
   -------------------------------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(19, 24, 48, 0.6);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 450;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.chip:hover {
  border-color: rgba(125, 92, 246, 0.5);
  color: var(--text);
}

.chip.is-active,
.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(109, 74, 255, 0.22), rgba(155, 108, 255, 0.14));
  border-color: rgba(125, 92, 246, 0.65);
  color: #cfc2ff;
  box-shadow: 0 0 18px rgba(109, 74, 255, 0.18);
}

.chip .chip__count {
  font-size: 0.74rem;
  opacity: 0.7;
}

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

@media (max-width: 640px) {
  .chips-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-inline: calc(-1 * clamp(18px, 4vw, 40px));
    padding-inline: clamp(18px, 4vw, 40px);
    -webkit-overflow-scrolling: touch;
  }
}

/* --------------------------------------------------------------------------
   8. Status dot
   -------------------------------------------------------------------------- */

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  background: var(--muted);
  vertical-align: middle;
}

.status-dot.on {
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(95, 206, 155, 0.55);
  animation: dot-pulse 2.2s var(--ease) infinite;
}

.status-dot.busy { background: var(--warn); }

.status-dot.off { background: rgba(152, 160, 196, 0.55); }

@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(95, 206, 155, 0.5); }
  60%  { box-shadow: 0 0 0 7px rgba(95, 206, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 206, 155, 0); }
}

/* --------------------------------------------------------------------------
   9. Étoiles de notation
   --------------------------------------------------------------------------
   <span class="stars" style="--note: 4.9" aria-label="4,9 sur 5"></span>
   -------------------------------------------------------------------------- */

.stars {
  position: relative;
  display: inline-block;
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 2px;
  color: rgba(168, 178, 230, 0.22);
  vertical-align: -1px;
}

.stars::before {
  content: "★★★★★";
}

.stars::after {
  content: "★★★★★";
  position: absolute;
  inset: 0;
  width: calc(var(--note, 5) / 5 * 100%);
  overflow: hidden;
  white-space: nowrap;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */

.card {
  background:
    linear-gradient(165deg, rgba(28, 35, 67, 0.66), rgba(13, 16, 36, 0.92)) padding-box,
    linear-gradient(145deg, rgba(236, 217, 171, 0.18), rgba(168, 178, 230, 0.08), rgba(212, 175, 106, 0.05)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.card--flat {
  background: var(--surface);
  box-shadow: none;
}

/* ---- Carte médium ----------------------------------------------------- */

.card-medium {
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.card-medium:hover,
.card-medium:focus-within {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 106, 0.34);
  box-shadow: var(--shadow-card), 0 0 48px rgba(212, 175, 106, 0.14);
}

/* ---- Photo en grand format (cover plein cadre) ---- */
.card-medium__cover {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(150deg, var(--violet-deep), var(--bg-2));
}

.card-medium__cover-link {
  display: block;
  width: 100%;
  height: 100%;
}

.card-medium__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card-medium:hover .card-medium__cover img,
.card-medium:focus-within .card-medium__cover img {
  transform: scale(1.06);
}

/* Voile dégradé pour la lisibilité du nom en surimpression */
.card-medium__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 10, 22, 0.92) 0%,
    rgba(8, 10, 22, 0.55) 24%,
    rgba(8, 10, 22, 0.08) 48%,
    transparent 64%
  );
  pointer-events: none;
}

.card-medium__cover-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.card-medium__cover-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 30px 20px 16px;
  pointer-events: none;
}

.card-medium__cover-cap a { pointer-events: auto; }

.avatar-ph {
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--violet-deep), var(--surface-2));
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}

/* ---- Pastille de statut, superposée en haut de la photo ---- */
.card-medium__statut {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 24px);
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 14, 26, 0.58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgba(238, 240, 250, 0.88);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.card-medium__statut .status-dot {
  width: 7px;
  height: 7px;
}

.card-medium__statut--on {
  border-color: rgba(95, 206, 155, 0.45);
  background: rgba(13, 38, 30, 0.62);
  color: #c8f3dd;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), 0 0 18px rgba(95, 206, 155, 0.22);
}

.card-medium__statut--busy {
  border-color: rgba(226, 161, 78, 0.45);
  background: rgba(48, 33, 14, 0.62);
  color: #f3d6a8;
}

.card-medium__statut .is-on { color: inherit; }

/* Drapeau FR (médium francophone), aligné en haut à droite avec la pastille de statut */
.card-medium__flag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 14, 26, 0.58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

/* ---- Nom en surimpression sur la photo ---- */
.card-medium__name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.16;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.card-medium__name a {
  color: inherit;
  transition: color var(--t-fast);
}
.card-medium__name a:hover { color: #f0e6c4; }

/* ---- Corps de carte ---- */
.card-medium__body {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 16px 20px 20px;
  flex: 1;
}

/* ---- Spécialité mise en avant ---- */
.card-medium__spec {
  align-self: flex-start;
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 100%;
  margin-top: -2px;
  padding: 7px 14px 7px 11px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 106, 0.40);
  background: linear-gradient(135deg, rgba(212, 175, 106, 0.20), rgba(212, 175, 106, 0.06));
  color: #f1e2bd;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.3;
  text-wrap: balance;
  box-shadow: 0 0 22px rgba(212, 175, 106, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card-medium__spec-icon {
  flex: none;
  margin-top: 2px;
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(212, 175, 106, 0.5));
}

.card-medium__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.card-medium__meta strong {
  color: var(--text);
  font-weight: 550;
}

.card-medium__meta .sep { opacity: 0.45; }

.card-medium__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-medium__accroche {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
  font-size: 0.98rem;
  color: rgba(238, 240, 250, 0.82);
  line-height: 1.5;
}

.card-medium__accroche::before { content: "« "; color: var(--gold); }
.card-medium__accroche::after  { content: " »"; color: var(--gold); }

.card-medium__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-medium__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.card-medium__price strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-medium__cta { width: 100%; }

/* ---- Grille des médiums ------------------------------------------------ */

.grid-mediums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}

/* --------------------------------------------------------------------------
   11. Formulaires
   -------------------------------------------------------------------------- */

.form-card {
  max-width: 460px;
  margin-inline: auto;
  background: linear-gradient(170deg, rgba(26, 32, 64, 0.6), rgba(13, 16, 36, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 5vw, 42px);
  box-shadow: var(--shadow-card);
}

.form-card .section-title { font-size: 1.6rem; }

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.label {
  font-size: 0.85rem;
  font-weight: 480;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.input {
  width: 100%;
  background: rgba(11, 14, 26, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 380;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
  appearance: none;
}

.input::placeholder { color: rgba(152, 160, 196, 0.55); }

.input:hover { border-color: rgba(168, 178, 230, 0.28); }

.input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(125, 92, 246, 0.18);
  background: rgba(11, 14, 26, 0.9);
}

textarea.input {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}

select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%2398a0c4' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.input.is-invalid,
.field--error .input {
  border-color: rgba(226, 96, 123, 0.65);
  box-shadow: 0 0 0 3px rgba(226, 96, 123, 0.12);
}

.field-error {
  font-size: 0.82rem;
  color: var(--danger);
}

.form-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.form-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.form-sep::before,
.form-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --------------------------------------------------------------------------
   12. Stat big (chiffres clés)
   -------------------------------------------------------------------------- */

.stat-big {
  text-align: center;
}

.stat-big .stat-big__value,
.stat-big strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-big .stat-big__label,
.stat-big span {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 420;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
}

/* --------------------------------------------------------------------------
   13. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(48px, 6.5vw, 86px) clamp(22px, 4vw, 42px);
  overflow: hidden;
  isolation: isolate;
}

/* Halo respirant */
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(940px, 118vw);
  aspect-ratio: 1.72;
  left: 50%;
  top: -28%;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(236, 217, 171, 0.20), rgba(57, 91, 126, 0.14) 46%, rgba(42, 31, 77, 0.08) 62%, transparent 78%);
  animation: halo-breathe 9s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Constellation */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../img/constellation.svg") center top / min(1200px, 130%) auto no-repeat;
  opacity: 0.48;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 35%, transparent 92%);
}

@keyframes halo-breathe {
  from { opacity: 0.75; transform: translateX(-50%) scale(0.97); }
  to   { opacity: 1;    transform: translateX(-50%) scale(1.05); }
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 106, 0.35);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 480;
  letter-spacing: 0.05em;
  margin-bottom: 22px;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero .lead {
  margin-inline: auto;
  margin-bottom: 30px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero__note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   14. Steps (3 étapes)
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 32px);
  counter-reset: step;
}

.steps .step {
  counter-increment: step;
  position: relative;
  background: linear-gradient(165deg, rgba(26, 32, 64, 0.45), rgba(19, 24, 48, 0.85));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  transition: transform var(--t-med), border-color var(--t-med);
}

.steps .step:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 92, 246, 0.4);
}

.steps .step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 550;
  color: var(--gold);
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    conic-gradient(from 200deg, var(--gold), #6d4aff, var(--gold)) border-box;
  border: 1.5px solid transparent;
}

.steps .step h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.steps .step p {
  font-size: 0.93rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(19, 24, 48, 0.55);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}

.faq-item:hover { border-color: rgba(125, 92, 246, 0.35); }

.faq-item[open] {
  border-color: rgba(125, 92, 246, 0.45);
  background: rgba(26, 32, 64, 0.6);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 480;
  font-size: 1.02rem;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1.5px 12px no-repeat;
  transition: transform var(--t-med);
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .faq-body,
.faq-item summary ~ * {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 70ch;
}

/* --------------------------------------------------------------------------
   16. Toasts
   -------------------------------------------------------------------------- */

.toast-stack {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 120;
  width: min(440px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  width: 100%;
  background: rgba(26, 32, 64, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-size: 0.92rem;
  color: var(--text);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-med), transform var(--t-med);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--success { border-left-color: var(--ok); }
.toast--error   { border-left-color: var(--danger); }
.toast--gold,
.toast--credits { border-left-color: var(--gold); }

/* --------------------------------------------------------------------------
   17. Modal
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--t-med), visibility var(--t-med);
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 18, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal__box {
  position: relative;
  width: min(480px, 100%);
  max-height: min(86dvh, 720px);
  overflow-y: auto;
  background: linear-gradient(170deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-card), var(--halo);
  transform: translateY(14px) scale(0.98);
  transition: transform var(--t-med);
}

.modal.is-open .modal__box {
  transform: translateY(0) scale(1);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  transition: background-color var(--t-fast), color var(--t-fast);
}

.modal__close:hover {
  background: rgba(168, 178, 230, 0.1);
  color: var(--text);
}

.modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   18. Chat
   -------------------------------------------------------------------------- */

.chat-layout {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--header-h));
  width: min(880px, 100%);
  margin-inline: auto;
}

/* Desktop : le fil de conversation est délimité du fond de page. */
@media (min-width: 920px) {
  .chat-layout {
    border-inline: 1px solid var(--border);
    background: rgba(13, 16, 36, 0.35);
  }
}

/* En-tête de conversation */
.chat-header {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(16px, 3vw, 24px);
  background: rgba(13, 16, 36, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.chat-header__avatar {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 210deg, var(--gold), #6d4aff, var(--gold));
}

.chat-header__avatar img,
.chat-header__avatar .avatar-ph {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--bg-2);
  font-size: 1rem;
}

.chat-header__id { min-width: 0; flex: 1; }

.chat-header__name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-header__statut {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

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

/* Fil de messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px) clamp(14px, 3vw, 24px);
  scroll-behavior: smooth;
}

.chat-day {
  align-self: center;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(168, 178, 230, 0.07);
}

/* Rangée médium (avatar + bulle) */
.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 100%;
}

.chat-row--user { justify-content: flex-end; }

.chat-row__avatar {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
}

.chat-row__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Bulles */
.bubble {
  max-width: min(76%, 560px);
  padding: 12px 16px;
  font-size: 0.97rem;
  font-weight: 380;
  line-height: 1.55;
  border-radius: var(--radius-lg);
  white-space: pre-wrap;
  animation: bubble-in 0.35s var(--ease) both;
}

.bubble--user {
  align-self: flex-end;
  background: linear-gradient(140deg, rgba(109, 74, 255, 0.38), rgba(82, 56, 180, 0.45));
  border: 1px solid rgba(125, 92, 246, 0.38);
  color: var(--text);
  border-bottom-right-radius: 6px;
}

.bubble--medium {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 6px;
}

.bubble__time {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(238, 240, 250, 0.45);
  text-align: right;
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Indicateur d'état du médium ("se concentre…") */
.chat-states {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  border-bottom-left-radius: 6px;
  background: rgba(26, 32, 64, 0.7);
  border: 1px solid var(--border);
  animation: bubble-in 0.35s var(--ease) both;
}

.chat-states__dots {
  display: inline-flex;
  gap: 5px;
}

.chat-states__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  animation: state-dot 1.5s ease-in-out infinite;
}

.chat-states__dots span:nth-child(2) { animation-delay: 0.22s; }
.chat-states__dots span:nth-child(3) { animation-delay: 0.44s; }

@keyframes state-dot {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  35%      { opacity: 1;    transform: translateY(-2px); }
}

.chat-states__label {
  font-style: italic;
  font-size: 0.86rem;
  color: var(--muted);
  transition: opacity 0.4s ease;
}

.chat-states__label.is-fading { opacity: 0; }

/* Accusé de réception sous votre dernier message ("Envoyé", "Lu", "Transmis") */
.chat-receipt {
  align-self: flex-end;
  margin-top: -8px;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: rgba(238, 240, 250, 0.4);
  animation: bubble-in 0.35s var(--ease) both;
}

/* Notice d'absence du médium ("vous répondra à son retour…") */
.chat-notice {
  align-self: center;
  max-width: min(86%, 520px);
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px dashed var(--border);
  background: rgba(168, 178, 230, 0.06);
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
  color: var(--muted);
  animation: bubble-in 0.35s var(--ease) both;
}

/* Zone de saisie */
.chat-input {
  flex: none;
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 14px clamp(14px, 3vw, 24px) max(14px, env(safe-area-inset-bottom));
  background: rgba(13, 16, 36, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}

.chat-input textarea {
  flex: 1;
  min-height: 48px;
  max-height: 160px;
  resize: none;
  background: rgba(11, 14, 26, 0.7);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 12px 18px;
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.5;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.chat-input textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(125, 92, 246, 0.16);
}

.chat-input textarea::placeholder { color: rgba(152, 160, 196, 0.55); }

.chat-send {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 16px rgba(109, 74, 255, 0.35);
  transition: transform var(--t-fast), box-shadow var(--t-med), opacity var(--t-fast);
}

.chat-send svg { width: 20px; height: 20px; }

.chat-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(109, 74, 255, 0.55);
}

.chat-send:active { transform: scale(0.96); }

.chat-send[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* Astuce clavier : discrète ligne sous le bandeau de coût. */
.chat-input__hint {
  display: block;
  margin-top: 5px;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  opacity: 0.65;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .bubble { max-width: 86%; }
  .chat-layout { height: calc(100dvh - var(--header-h)); }
}

/* --------------------------------------------------------------------------
   19. Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 21, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(236, 217, 171, 0.08);
  box-shadow: 0 12px 34px rgba(3, 5, 16, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand svg {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 5px 14px rgba(212, 175, 106, 0.12));
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  flex: 1;
  justify-content: flex-end;
}

.nav-links > a {
  font-size: 0.94rem;
  font-weight: 420;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color var(--t-fast);
  position: relative;
}

.nav-links > a:hover { color: var(--text); }

.nav-links > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1.5px;
  background: var(--gold);
  transition: right var(--t-med);
}

.nav-links > a:hover::after { right: 0; }

.nav-auth {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: clamp(4px, 1vw, 12px);
}

.nav-auth > a:not(.btn):not(.credits-pill) {
  font-size: 0.94rem;
  color: var(--muted);
  transition: color var(--t-fast);
}

.nav-auth > a:not(.btn):not(.credits-pill):hover { color: var(--text); }

/* Pastille solde crédits */
.credits-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(212, 175, 106, 0.38);
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 480;
  transition: background-color var(--t-fast), box-shadow var(--t-med), transform var(--t-fast);
}

.credits-pill:hover {
  background: rgba(212, 175, 106, 0.24);
  box-shadow: 0 2px 16px rgba(212, 175, 106, 0.2);
  transform: translateY(-1px);
}

.credits-pill svg { width: 14px; height: 14px; }
.credits-pill strong { font-weight: 600; }

/* Drapeau FR réutilisable (pur CSS, sans collision d'ID) */
.flag-fr {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  flex: none;
  background: linear-gradient(
    to right,
    #2342a0 0 33.34%,
    #f4f5fb 33.34% 66.67%,
    #d0353f 66.67% 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

/* Sélecteur de langue (décoratif : laisse croire qu'on peut changer de langue) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(236, 217, 171, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: default;
  flex: none;
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
}

.lang-switch:hover {
  border-color: rgba(236, 217, 171, 0.32);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.lang-switch__code { line-height: 1; }
.lang-switch__chev { opacity: 0.6; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius);
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--t-med), opacity var(--t-fast);
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: flex; }

  .nav-links {
    /* NB : position absolute (et non fixed) car le backdrop-filter du
       .site-header en fait le bloc conteneur des descendants fixed. */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 26px clamp(18px, 5vw, 32px) 40px;
    background: rgba(9, 11, 22, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity var(--t-med), transform var(--t-med), visibility var(--t-med);
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-links > a {
    font-size: 1.15rem;
    font-family: var(--font-display);
    font-weight: 450;
    color: var(--text);
    padding: 14px 4px;
    border-bottom: 1px solid rgba(168, 178, 230, 0.08);
  }

  .nav-links > a::after { display: none; }

  .nav-auth {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin: 22px 0 0;
    text-align: center;
  }

  .nav-auth .btn { width: 100%; }

  .credits-pill { justify-content: center; padding-block: 12px; }

  /* Colle le sélecteur de langue à droite, juste avant le burger */
  .lang-switch { margin-left: auto; margin-right: 4px; }

  body.nav-open { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: auto;
  background: linear-gradient(180deg, transparent, rgba(13, 16, 36, 0.85));
  border-top: 1px solid rgba(168, 178, 230, 0.09);
  padding-top: clamp(48px, 7vw, 76px);
}

.site-footer .brand svg {
  width: 30px;
  height: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 520;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 9px; }

.footer-col a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color var(--t-fast);
}

.footer-col a:hover { color: var(--text); }

.footer-col--brand .brand { margin-bottom: 14px; }

.footer-col--brand p {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 32ch;
}

.footer-reassurance li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.footer-reassurance li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2.5 7.5 5.5 10.5 11.5 3.5' stroke='%23d4af6a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footer-legal {
  border-top: 1px solid rgba(168, 178, 230, 0.08);
  padding-block: 20px;
}

.footer-legal p {
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: rgba(152, 160, 196, 0.7);
  text-align: center;
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   21. Animations & reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Décalage en cascade : appliquer .reveal aux enfants et --reveal-delay inline,
   ou utiliser les utilitaires ci-dessous. */
.reveal-d1 { --reveal-delay: 0.08s; }
.reveal-d2 { --reveal-delay: 0.16s; }
.reveal-d3 { --reveal-delay: 0.24s; }
.reveal-d4 { --reveal-delay: 0.32s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   22. Utilitaires divers
   -------------------------------------------------------------------------- */

.flow > * + * { margin-top: var(--flow, 1em); }

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.row--between { justify-content: space-between; }
.row--center  { justify-content: center; }

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin-block: clamp(28px, 4vw, 44px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Encadré "offre découverte" réutilisable */
.offer-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
  padding: 13px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 106, 0.3);
  background: linear-gradient(120deg, rgba(212, 175, 106, 0.1), rgba(109, 74, 255, 0.08));
  font-size: 0.93rem;
}

.offer-strip strong { color: var(--gold); font-weight: 550; }
