/* =============================================================
   styles.css — Doxa landing page & composants partagés
   Dernière mise à jour : 2026-05-24 (T-016 nettoyage)
   ============================================================= */

/* ── Root ────────────────────────────────────────────────────── */
:root {
  /* Palette */
  --bg-0: #0B0B12;
  --bg-1: #1A1A2E;
  --text: #F1F1F1;
  --muted: #B0B0C3;
  --accent1: #F50CA0; /* identité Maya uniquement — cf. T-017 */
  --accent2: #00FFC6; /* identité Léo uniquement — cf. T-017 */
  --accent-yellow: #F9D030;
  --violet: #951ABE;
  --focus-ring: var(--accent-yellow); /* anneau de focus universel — cf. T-017 */
  --cta: var(--violet); /* CTA génériques (hub, boutons globaux) — cf. T-017 */
  --border: #FFFFFF1A;

  /* Radius */
  --radius-16: 16px;
  --radius-20: 20px;
  --radius-xxl: 24px;

  /* Shadows */
  --shadow-cyan: 0 0 32px #00FFC610;
  --shadow-none: 0 0 0 rgba(0,0,0,0);

  /* Layout */
  --gutter: 24px;
  --container: 1200px;

  /* Espacement sections — valeurs compactes définitives */
  --section-pad: clamp(28px, 4vw, 48px);
  --section-gap: clamp(14px, 2.5vw, 28px);

  /* Alias rétro-compat */
  --pad-y: var(--section-pad);
  --gap-between: var(--section-gap);
  --flow-gap: var(--section-gap);
}

@media (max-width: 768px) {
  :root {
    --section-pad: clamp(20px, 3vw, 40px);
    --section-gap: clamp(12px, 2vw, 20px);
  }
}

/* ── Reset & base ────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Exo 2', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background-color: #121223;
  background-image:
    radial-gradient(80% 60% at 50% -10%, rgba(149,26,190,.04) 0%, transparent 70%),
    linear-gradient(180deg, rgba(26,26,46,.12) 0%, rgba(18,18,35,.12) 100%);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: calc(3rem + var(--cookie-banner-space, 0px));
  transition: padding-bottom .4s cubic-bezier(.34,1.2,.64,1);
}

img, picture, video, canvas { display: block; max-width: 100%; }
svg { display: inline-block; }
a { color: inherit; text-decoration: none; }

.font-display { font-family: 'Orbitron', ui-rounded, system-ui, sans-serif; }
.text-muted { color: var(--muted); }

h1, h2, h3 { letter-spacing: .02em; margin: 0 0 .5rem; }
h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.1; }
h2 { font-size: clamp(24px, 3.5vw, 40px); line-height: 1.15; }
h3 { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.2; }
p { margin: 0 0 1rem; }

.kicker {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .875rem;
  margin-bottom: .5rem;
}

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Section : fond transparent, pas de bordures parasites */
.section {
  padding-block: var(--section-pad);
  position: relative;
  isolation: isolate;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Pas de pseudo-éléments sur les sections (évite les liserets) */
.section::before,
.section::after { content: none; display: none; }

/* Espacement entre sections consécutives */
.section + .section { margin-top: var(--section-gap); }

/* Section-flow : variante pour les sections qui se suivent dans <main> */
.section.section-flow { padding-block: var(--section-pad); }
.section.section-flow::before,
.section.section-flow::after { content: none; display: none; }

/* Divider masqué (remplacé par margin-top des sections) */
.section-divider { display: none; }

/* Grilles */
.grid-12 { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
.grid-3  { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
.grid-2  { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }

@media (min-width: 480px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-3  { grid-template-columns: repeat(2, 1fr); }
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hero-grid .hero-copy  { grid-column: span 6; }
  .hero-grid .hero-media { grid-column: span 6; }
  .prefooter-inner { grid-template-columns: 1fr auto; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .hero-grid .hero-copy  { grid-column: 1 / span 6; }
  .hero-grid .hero-media { grid-column: 7 / span 6; }
}

/* ── Header sticky ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid transparent;
}
.site-header .logo  { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .04em; }
.logo-emblem { width: 64px; height: 50px; object-fit: cover; object-position: 50% 40%; }
.logo-word { font-family: 'Orbitron', ui-rounded, system-ui, sans-serif; font-size: 1.4rem; color: var(--text); }
.logo-word-ia { color: var(--cta); }
.hero-accent { color: var(--cta); }
.hero-note { margin-top: .75rem; font-size: .9rem; }
.facts-bar {
  list-style: none; margin: 0; padding: 1.25rem 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 3rem;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  color: var(--text-muted, #bcb9d6);
}
.facts-bar strong { color: var(--cta); font-weight: 600; }
.site-header .nav   { display: flex; gap: 1rem; }
.site-header .nav a { padding: .4rem .6rem; border-radius: 10px; border: 1px solid transparent; }
.site-header .nav a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.site-header.scrolled { background: #0B0B12CC; border-bottom: 1px solid #FFFFFF14; }
@supports (backdrop-filter: blur(6px)) {
  .site-header.scrolled { backdrop-filter: blur(6px); }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  box-shadow: none;
}
.hero-grid    { align-items: center; }
.hero-copy .sub { margin-top: .5rem; max-width: 56ch; }
.cta-row { display: flex; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }

.hero-media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-20);
  position: relative;
  overflow: hidden;
}

/* Image du hero */
.hero-media .mockup {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  filter: saturate(115%);
  transform: translateY(var(--parallax, 0px));
  will-change: transform;
}

/* Mockup UI interne */
.mockup-topbar  { display: flex; align-items: center; justify-content: space-between; }
.mockup-brand   { font-family: 'Orbitron', sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: #00FFC6; opacity: .9; }
.mockup-dots    { display: flex; gap: .35rem; }
.mockup-dots span { width: 6px; height: 6px; border-radius: 50%; background: #ffffff18; }
.mockup-dots span:nth-child(1) { background: #F50CA066; }
.mockup-dots span:nth-child(2) { background: #F9D03066; }
.mockup-dots span:nth-child(3) { background: #00FFC666; }
.mockup-divider { height: 1px; background: rgba(255,255,255,.06); }
.mockup-cards   { display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.mockup-footer  { display: flex; align-items: center; justify-content: space-between; padding-top: .25rem; }
.mockup-plan-txt { font-size: .6rem; color: #6b6b8a; }
.mockup-pill { font-size: .6rem; font-weight: 700; color: #F9D030; background: rgba(249,208,48,.1); border: 1px solid rgba(249,208,48,.25); padding: .2rem .6rem; border-radius: 99px; }

.mac { display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.mac-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mac-dot.cyan   { background: #00FFC6; box-shadow: 0 0 6px #00FFC688; }
.mac-dot.rose   { background: #F50CA0; box-shadow: 0 0 6px #F50CA088; }
.mac-dot.violet { background: #951ABE; box-shadow: 0 0 6px #951ABE88; opacity: .6; }
.mac-info  { display: flex; flex-direction: column; gap: .1rem; flex: 1; }
.mac-name  { font-size: .7rem; font-weight: 600; color: #e8e8f0; font-family: 'Orbitron', sans-serif; letter-spacing: .06em; }
.mac-domain { font-size: .65rem; color: #6b6b8a; }
.mac-badge { font-size: .6rem; font-weight: 700; padding: .15rem .5rem; border-radius: 99px; letter-spacing: .06em; flex-shrink: 0; }
.mac-badge.active { background: rgba(0,255,198,.12); color: #00FFC6; border: 1px solid rgba(0,255,198,.25); }
.mac-badge.soon   { background: rgba(149,26,190,.12); color: #951ABE; border: 1px solid rgba(149,26,190,.2); }

/* ── Cards ───────────────────────────────────────────────────── */
.cards { align-items: stretch; }
.card {
  background: rgba(0,255,198,.05);
  border: 1px solid rgba(0,255,198,.12);
  border-radius: 20px;
  padding: 1.25rem;
  min-height: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
  backdrop-filter: blur(6px);
  line-height: 1.2;
}
.card:hover {
  transform: translateY(-6px) rotateX(1deg);
  box-shadow: 0 14px 40px rgba(0,0,0,.38);
}
.card--accent { background: rgba(0,255,198,.08); border: 1px solid rgba(0,255,198,.18); }
.card--accent:hover { box-shadow: 0 14px 40px rgba(0,0,0,.40), 0 0 40px rgba(0,255,198,.28); }
.card:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.card-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.card-head svg { color: var(--accent2); }

/* Bordures colorees reutilisables sur n'importe quelle .card (pas seulement .agent-card) */
.card.accent-cyan   { border-color: rgba(0,255,198,.35);   box-shadow: 0 0 24px rgba(0,255,198,.12); }
.card.accent-rose   { border-color: rgba(245,12,160,.35);  box-shadow: 0 0 24px rgba(245,12,160,.12); }
.card.accent-violet { border-color: rgba(149,26,190,.35);  box-shadow: 0 0 24px rgba(149,26,190,.12); }
.card.accent-jaune  { border-color: rgba(249,208,48,.45);  box-shadow: 0 0 24px rgba(249,208,48,.14); }
.card.accent-vert   { border-color: rgba(0,198,122,.35);   box-shadow: 0 0 24px rgba(0,198,122,.12); }
.card.accent-cyan   .card-head svg { color: #00FFC6; }
.card.accent-rose   .card-head svg { color: #F50CA0; }
.card.accent-violet .card-head svg { color: #951ABE; }
.card.accent-jaune  .card-head svg { color: #F9D030; }
.card.accent-vert   .card-head svg { color: #00C67A; }

/* Désactive effets lourds sur petits écrans */
@media (max-width: 479.98px) {
  .cta-row { width: 100%; }
  .cta-row .btn { flex: 1 1 auto; }
  .card { backdrop-filter: none; }
  .card:hover { transform: none; box-shadow: var(--shadow-none); }
}

/* ── Agent cards (landing) ───────────────────────────────────── */
.agents-grid { align-items: start; }
.agents-grid .agent-card { display: flex; flex-direction: column; gap: .75rem; min-height: 0; }
.agent-head { display: flex; align-items: center; justify-content: space-between; }
.agent-shot { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.bullets li { line-height: 1; }
.pill { font-size: .75rem; padding: .25rem .5rem; border: 1px solid #FFFFFF26; border-radius: 999px; color: var(--text); }
.pill.soon { background: #FFFFFF12; }

.agent-card {
  position: relative;
  background: rgba(255,255,255,.02);
  border: 1px solid #ffffff14;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
}
.agent-card:hover { transform: translateY(-4px); }

/* Accents */
.agent-card.accent-rose   { border-color: rgba(245,12,160,.35);  box-shadow: 0 0 24px rgba(245,12,160,.12); }
.agent-card.accent-violet { border-color: rgba(149,26,190,.35);  box-shadow: 0 0 24px rgba(149,26,190,.12); }
.agent-card.accent-cyan   { border-color: rgba(0,255,198,.35);   box-shadow: 0 0 24px rgba(0,255,198,.12); }
.agent-card.accent-jaune  { border-color: rgba(249,208,48,.45);  box-shadow: 0 0 24px rgba(249,208,48,.14); }
.agent-card.accent-vert   { border-color: rgba(0,198,122,.35);   box-shadow: 0 0 24px rgba(0,198,122,.12); }

.agent-card.accent-cyan:hover   { box-shadow: 0 14px 40px rgba(0,0,0,.38), 0 0 36px rgba(0,255,198,.22); }
.agent-card.accent-rose:hover   { box-shadow: 0 14px 40px rgba(0,0,0,.38), 0 0 36px rgba(245,12,160,.22); }
.agent-card.accent-violet:hover { box-shadow: 0 14px 40px rgba(0,0,0,.38), 0 0 36px rgba(149,26,190,.22); }
.agent-card.accent-jaune:hover  { box-shadow: 0 14px 40px rgba(0,0,0,.38), 0 0 36px rgba(249,208,48,.24); }
.agent-card.accent-vert:hover   { box-shadow: 0 14px 40px rgba(0,0,0,.38), 0 0 36px rgba(0,198,122,.22); }

/* Avatar */
.agent-avatar { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: .75rem; flex-shrink: 0; }
.agent-card.accent-cyan   .agent-avatar { background: rgba(0,255,198,.1);  color: #00FFC6; }
.agent-card.accent-rose   .agent-avatar { background: rgba(245,12,160,.1); color: #F50CA0; }
.agent-card.accent-violet .agent-avatar { background: rgba(149,26,190,.1); color: #951ABE; }
.agent-card.accent-jaune  .agent-avatar { background: rgba(249,208,48,.1); color: #F9D030; }
.agent-card.accent-vert   .agent-avatar { background: rgba(0,198,122,.1);  color: #00C67A; }

/* Nom + description */
.agent-head-info { display: flex; flex-direction: column; }
.agent-name { font-family: 'Orbitron', sans-serif; font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .1rem; }
.agent-card.accent-cyan   .agent-name { color: #00FFC6; }
.agent-card.accent-rose   .agent-name { color: #F50CA0; }
.agent-card.accent-violet .agent-name { color: #951ABE; }
.agent-card.accent-jaune  .agent-name { color: #F9D030; }
.agent-card.accent-vert   .agent-name { color: #00C67A; }
.agent-desc { font-size: .84rem; line-height: 1.2; margin: 0; }

.pill:not(.soon) { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.35); }
.agent-soon       { opacity: .72; }
.agent-soon:hover { opacity: .88; }

/* ── Pricing (landing) ───────────────────────────────────────── */
.price-card h3 { margin-bottom: .25rem; }
.pricing-grid  { align-items: stretch; }
.price-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.price-features li { font-size: .875rem; color: #a0a0c0; padding-left: 1.2rem; position: relative; line-height: 1; }
.price-features li::before { content: "✓"; position: absolute; left: 0; color: var(--cta); font-weight: 700; }

.price-card:not(.featured) {
  border-color: #951ABE;
  box-shadow: 0 0 0 1px #951ABE4D, 0 0 28px #951ABE1A;
}
.price-card.featured {
  position: relative;
  border-color: #F9D030;
  box-shadow: 0 0 0 1px #F9D03066, 0 0 32px #F9D03026;
}

/* ── Boutons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.25rem;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 14px; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { box-shadow: 0 0 28px rgba(149,26,190,.35); }

/* CTA d'un compagnon (carte Léo/Maya) : reprend sa couleur d'identité, pas le CTA générique */
.agent-card.accent-cyan .btn-primary { background: #00FFC6; color: #000; }
.agent-card.accent-cyan .btn-primary:hover { box-shadow: 0 0 28px rgba(0,255,198,.22); }
.agent-card.accent-rose .btn-primary { background: #F50CA0; color: #0a0615; }
.agent-card.accent-rose .btn-primary:hover { box-shadow: 0 0 28px rgba(245,12,160,.28); }

.btn-ghost { background: transparent; color: var(--text); border-color: #951ABE; }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: #FFFFFF2e; }

/* ── Animations ──────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: .34s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Timeline ────────────────────────────────────────────────── */
.timeline { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; }
.timeline li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; }
.step-num { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: #FFFFFF12; border: 1px solid var(--border); font-weight: 600; }
.step-body h3 { margin: 0 0 .25rem; }

/* ── Titles & misc ───────────────────────────────────────────── */
.section-title { margin-bottom: 1rem; }

.prefooter-inner { display: grid; gap: 1rem; align-items: center; }
.prefooter .pf-copy p { margin: .25rem 0 0; }

.footer { padding: 32px 0; border-top: 1px solid var(--border); color: var(--muted); }

/* ── Container (section .container) — même style que .facts-bar : plat, sans cadre ── */
.section .container {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(16px, 3vw, 28px);
  position: relative;
  z-index: 1;
  margin-inline: auto;
  max-width: var(--container);
}

/* Hero : sans cadre (maquette) */
.section.hero .container { border: 0; }

/* ── Accessibilité ───────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 14px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── Boutons Auth (header landing) ──────────────────────────── */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 3vw, 2rem);
  margin-left: auto;
  flex-wrap: nowrap;
}
.header-right .nav {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2.5vw, 1.5rem);
}
.header-right .header-auth {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 2vw, .85rem);
}
.header-right .header-auth .auth-btn { white-space: nowrap; }
.header-right .nav a:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 4px;
  border-radius: 999px;
}

.auth-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem 1.6rem;
  border-radius: 999px;
  font-family: 'Orbitron', ui-rounded, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .78rem;
  line-height: 1;
  border: 1px solid rgba(149,26,190,.6);
  background: rgba(7,9,28,.45);
  color: var(--cta);
  box-shadow: 0 0 18px rgba(149,26,190,.25);
  transition: color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease;
  backdrop-filter: blur(18px);
}
.auth-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.auth-btn:hover {
  color: #c98cf0;
  background: rgba(7,9,28,.65);
  box-shadow: 0 0 26px rgba(149,26,190,.45);
  transform: translateY(-2px);
}
.auth-btn.primary {
  border-color: transparent;
  background: linear-gradient(120deg, #951ABE 0%, #b23fe0 50%, #951ABE 100%);
  color: #fff;
  box-shadow: 0 0 24px rgba(149,26,190,.45);
}
.auth-btn.primary:hover {
  box-shadow: 0 0 32px rgba(149,26,190,.65);
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .header-right { gap: clamp(.75rem, 2.5vw, 1.5rem); }
  .header-right .nav { gap: clamp(.6rem, 2vw, 1.1rem); }
}

/* Sur mobile : on masque TOUT header-right (margin-left:auto sinon écrase le hamburger)
   Le drawer #mobile-nav prend le relais.
   Note : dashboard.css redéfinit .header-right → flex après styles.css, donc le
   dashboard garde son header-right. Cette règle n'affecte que la landing page. */
@media (max-width: 767.98px) {
  .header-right { display: none; }
  .site-header .header-inner { padding: 10px 0; }
  /* hamburger-btn display:flex est déclaré APRÈS .hamburger-btn{display:none}
     — voir le @media répété plus bas, après la définition du composant */
}

/* ── Footer commun df2 (dashboard, pricing, profile) ─────────── */
.df2 {
  background: #0D0E1A;
  padding: 1.25rem 2rem;
  border-top: .5px solid rgba(127,119,221,.18);
  font-family: 'Exo 2', sans-serif;
  text-align: center;
  margin-top: auto;
}
.df2-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: .875rem;
}
.df2-logo { font-family: 'Orbitron', sans-serif; font-size: 15px; font-weight: 600; color: #E8E6FF; letter-spacing: .1em; }
.df2-agents { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: .875rem; }
.df2-agent {
  font-size: 11px;
  color: #7F77DD;
  background: rgba(127,119,221,.1);
  border: .5px solid rgba(127,119,221,.3);
  border-radius: 999px;
  padding: 2px 10px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.df2-agent:hover { background: rgba(127,119,221,.2); color: #A89EFF; }
.df2-divider { height: .5px; background: rgba(127,119,221,.18); margin-bottom: .875rem; }
.df2-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin-bottom: .875rem;
}
.df2-link { font-size: 12px; color: #6B6A8A; text-decoration: none; transition: color .2s ease; }
.df2-link:hover { color: #E8E6FF; }
.df2-bottom { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; }
.df2-copy { font-size: 11px; color: #3A3860; }
.df2-sep  { font-size: 11px; color: #3A3860; }
.df2-status { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #6B6A8A; }
.df2-dot { width: 5px; height: 5px; border-radius: 50%; background: #1D9E75; flex-shrink: 0; }
.df2-socials { display: flex; gap: 8px; }
.df2-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: .5px solid rgba(127,119,221,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B6A8A;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}
.df2-icon:hover { color: #E8E6FF; border-color: rgba(127,119,221,.5); }

@media (max-width: 480px) {
  .df2 { padding: 1rem 1.25rem; }
  .df2-nav { gap: 0.25rem 1rem; }
}

/* ── Cookie Banner RGPD ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: -120px;
  left: 0;
  right: 0;
  z-index: 9000;
  padding: 1rem var(--gutter);
  background: rgba(11,11,18,.97);
  border-top: 1px solid rgba(0,255,198,.15);
  backdrop-filter: blur(14px);
  transition: bottom .4s cubic-bezier(.34,1.2,.64,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,.5);
}
.cookie-banner.visible { bottom: 0; }
.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cookie-text { font-size: .875rem; color: var(--muted); margin: 0; flex: 1; min-width: 200px; line-height: 1.5; }
.cookie-link { color: var(--cta); text-decoration: underline; }
.cookie-link:hover { color: #fff; }
.cookie-actions { display: flex; gap: .625rem; flex-shrink: 0; }
.cookie-btn {
  padding: .5rem 1.1rem;
  border-radius: 10px;
  font-size: .825rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
  letter-spacing: .02em;
}
.cookie-btn--primary { background: var(--cta); color: #fff; border-color: var(--cta); }
.cookie-btn--primary:hover { box-shadow: 0 0 18px rgba(149,26,190,.4); }
.cookie-btn--ghost { background: transparent; color: var(--muted); border-color: rgba(255,255,255,.15); }
.cookie-btn--ghost:hover { background: rgba(255,255,255,.06); color: var(--text); }

@media (max-width: 480px) {
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

/* ── Hamburger mobile (T-021) ────────────────────────────────── */
.hamburger-btn {
  display: none; /* affiché via le @media 767.98px ci-dessus */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s ease, border-color .2s ease;
}
.hamburger-btn:hover { background: rgba(0,255,198,.08); border-color: rgba(0,255,198,.3); }
.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer mobile — ouverture animée (glissement + fondu) plutôt qu'un
   display:none/flex instantané, pour accompagner l'icône hamburger qui,
   elle, s'anime déjà en croix (retour test mobile A1.2, 2026-08-16). */
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
  border-top: 1px solid transparent;
  background: rgba(11,11,18,.99);
  gap: .25rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: max-height .3s ease, opacity .25s ease, transform .25s ease,
              padding .3s ease, border-color .3s ease;
}
.mobile-nav.open {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
  padding: .75rem var(--gutter) 1.25rem;
  border-top-color: rgba(255,255,255,.07);
  pointer-events: auto;
}
.mobile-nav-links { display: flex; flex-direction: column; }
.mobile-nav-links a {
  padding: .75rem .25rem;
  font-size: 1rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color .2s ease;
}
.mobile-nav-links a:hover { color: var(--text); }
.mobile-nav-auth { display: flex; gap: .625rem; margin-top: .875rem; }
.mobile-nav-auth .auth-btn { flex: 1; text-align: center; }

/* ⚠️ Ce @media DOIT rester APRÈS .hamburger-btn { display:none } (cascade CSS)
   Même sélecteur, même spécificité [0,1,0] → la dernière déclaration l'emporte.
   Déplacer ce bloc avant la définition du composant casserait de nouveau le menu. */
@media (max-width: 767.98px) {
  .hamburger-btn { display: flex; }
}

/* ── User chip (T-013) ───────────────────────────────────────── */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .75rem .3rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  font-size: .8rem;
  color: var(--muted);
  max-width: 180px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.user-chip-name {
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.user-chip-badge {
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 99px;
  letter-spacing: .05em;
  flex-shrink: 0;
  background: rgba(100,100,100,.2);
  color: #a0a0c0;
  border: 1px solid rgba(100,100,100,.3);
}
.user-chip-badge.pro {
  background: rgba(0,255,198,.12);
  color: #00FFC6;
  border-color: rgba(0,255,198,.3);
}

@media (max-width: 479px) {
  .user-chip { display: none; }
}

/* Icône Aura Coin (static/img/aura-coin-flat.svg), partout où le texte
   affichait auparavant le caractère "◈" — nouveau design du 2026-10-03.
   display: inline par défaut sur un <img> laisse un espace sous la ligne de
   base (gap typographique) ; middle l'aligne proprement avec le chiffre
   adjacent quelle que soit la taille de police du conteneur. */
.aura-coin-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  margin: 0 .15em;
  flex-shrink: 0;
}
