/* ══════════════════════════════════════════════
   ResaFlow — Feuille de styles principale
   ══════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARIABLES ── */
:root {
  --bg:          #080810;
  --bg2:         #0d0d1a;
  --card:        #111120;
  --border:      rgba(255,255,255,0.07);
  --cyan:        #00d4ff;
  --cyan-dim:    rgba(0,212,255,0.11);
  --purple:      #9b50ff;
  --purple-dim:  rgba(155,80,255,0.11);
  --green:       #00e87a;
  --green-dim:   rgba(0,232,122,0.1);
  --gold:        #ffc840;
  --gold-dim:    rgba(255,200,64,0.1);
  --red:         #ff3355;
  --text:        #dde6ff;
  --text-dim:    rgba(221,230,255,0.52);
  --r:           12px;
  --r-lg:        20px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── ACCESSIBILITY ── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--cyan); color: #000;
  padding: .5rem 1.2rem; border-radius: 0 0 8px 8px;
  font-weight: 700; z-index: 9999; text-decoration: none;
}
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { line-height: 1.18; font-weight: 800; letter-spacing: -.025em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }
p  { color: var(--text-dim); }
a  { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── LAYOUT ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 6rem 0; }

.section-head { text-align: center; margin-bottom: 4rem; }
.section-head p { max-width: 520px; margin: .9rem auto 0; font-size: 1.05rem; }

.section-label {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan); background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.2);
  padding: .3rem .85rem; border-radius: 100px; margin-bottom: 1rem;
}

/* ── GRADIENT TEXT ── */
.g-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.75rem; border-radius: 100px;
  font-weight: 700; font-size: .93rem; font-family: inherit;
  cursor: pointer; border: none; letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #006fcc);
  color: #000;
  box-shadow: 0 0 22px rgba(0,212,255,.3);
}
.btn-primary:hover { box-shadow: 0 0 34px rgba(0,212,255,.45); }

.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ── HEADER / NAV ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,8,16,.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: .9rem 1.5rem; gap: 1rem;
}
.nav-logo {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; white-space: nowrap;
}
nav ul { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
nav ul a { color: var(--text-dim); font-size: .875rem; font-weight: 500; transition: color .15s; }
nav ul a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--cyan-dim);
  color: var(--cyan) !important;
  border: 1px solid rgba(0,212,255,.25);
  padding: .45rem 1.15rem; border-radius: 100px;
  font-weight: 700 !important; font-size: .82rem !important;
  transition: background .15s, color .15s !important;
}
.nav-cta:hover { background: var(--cyan) !important; color: #000 !important; }

/* Mobile nav (CSS-only) */
#nav-open  { display: none; }
.nav-burger {
  display: none; cursor: pointer;
  padding: .45rem; border: 1px solid var(--border);
  border-radius: 8px; background: transparent; line-height: 0;
}
.nav-burger svg { width: 20px; height: 20px; color: var(--text); }

@media (max-width: 760px) {
  .nav-burger { display: block; }
  nav ul {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem; gap: 0;
  }
  nav ul li a { display: block; padding: .65rem 0; border-bottom: 1px solid var(--border); }
  nav ul li:last-child a { border-bottom: none; }
  #nav-open:checked ~ ul { display: flex; }
}

/* ── HERO ── */
.hero {
  padding: 6.5rem 0 4.5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse, rgba(0,212,255,.07) 0%, transparent 65%);
  pointer-events: none; user-select: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan); background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,.22);
  padding: .3rem .9rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  animation: badgePulse 2.2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,212,255,.5); }
  50%       { opacity: .6; box-shadow: 0 0 0 5px rgba(0,212,255,0); }
}

.hero h1 { margin-bottom: 1.2rem; line-height: 1.12; }
.hero-sub {
  font-size: 1.05rem; line-height: 1.74; max-width: 480px; margin-bottom: 1.6rem;
}

/* Proof items */
.hero-proof {
  list-style: none; display: flex; flex-direction: column; gap: .55rem;
  margin-bottom: 2.2rem;
}
.hero-proof li {
  display: flex; align-items: center; gap: .55rem;
  font-size: .88rem; font-weight: 500; color: var(--text-dim);
}
.hero-proof li svg { color: var(--green); flex-shrink: 0; }

.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* Visual */
.hero-visual {
  position: relative;
}
.hero-visual::before {
  content: ''; position: absolute; inset: -20px;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,212,255,.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
  animation: visualGlow 4s ease-in-out infinite;
}
@keyframes visualGlow {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.04); }
}
.hero-visual svg {
  width: 100%; height: auto;
  border-radius: var(--r-lg);
  filter: drop-shadow(0 24px 64px rgba(0,0,0,.75));
  position: relative;
}

/* Scroll indicator */
.hero-scroll {
  display: flex; justify-content: center;
  padding: 2rem 0 .5rem;
  color: rgba(255,255,255,.2);
  animation: scrollBounce 2.2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0);   opacity: .3; }
  50%       { transform: translateY(6px); opacity: .7; }
}

@media (max-width: 880px) {
  .hero { padding: 4rem 0 2rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin: 0 auto; }
  .hero-visual::before { display: none; }
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.stats-list { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; }
.stat-item {
  flex: 1; min-width: 150px; max-width: 200px;
  text-align: center; padding: .75rem 1.2rem;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em;
  line-height: 1; margin-bottom: .25rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-lbl { font-size: .8rem; color: var(--text-dim); }

@media (max-width: 480px) {
  .stat-item { min-width: 120px; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
}

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.7rem;
  transition: border-color .2s, transform .2s;
  position: relative; overflow: hidden;
}
.feat-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,.25), transparent);
  opacity: 0; transition: opacity .2s;
}
.feat-card:hover { border-color: rgba(0,212,255,.18); transform: translateY(-3px); }
.feat-card:hover::after { opacity: 1; }

.feat-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .95rem;
}
.feat-icon svg { width: 20px; height: 20px; }
.ic-c { background: var(--cyan-dim);   color: var(--cyan); }
.ic-p { background: var(--purple-dim); color: var(--purple); }
.ic-g { background: var(--green-dim);  color: var(--green); }
.ic-o { background: var(--gold-dim);   color: var(--gold); }

.feat-card h3 { margin-bottom: .45rem; }
.feat-card p  { font-size: .88rem; }
.feat-disclaimer {
  margin-top: .65rem !important;
  font-size: .76rem !important;
  color: rgba(221,230,255,.35) !important;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: .55rem;
}

@media (max-width: 880px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .features-grid { grid-template-columns: 1fr; } }

/* ── HOW IT WORKS ── */
.how-section {
  background: linear-gradient(180deg, transparent 0%, var(--bg2) 15%, var(--bg2) 85%, transparent 100%);
}
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; position: relative; }
.steps::before {
  content: ''; position: absolute;
  top: 27px; left: calc(16.66% + 1rem); right: calc(16.66% + 1rem);
  height: 1px;
  background: linear-gradient(90deg, rgba(0,212,255,.2), rgba(155,80,255,.2), rgba(0,212,255,.2));
}
.step { text-align: center; }
.step-n {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.4rem; font-size: 1.15rem; font-weight: 800;
  position: relative; z-index: 1;
}
.step:nth-child(1) .step-n { background: var(--cyan-dim);   color: var(--cyan);   border: 1px solid rgba(0,212,255,.3); }
.step:nth-child(2) .step-n { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(155,80,255,.3); }
.step:nth-child(3) .step-n { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(0,232,122,.3); }
.step h3 { margin-bottom: .5rem; }
.step p  { font-size: .88rem; }

@media (max-width: 660px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}

/* ── ROLES ── */
.roles-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
.role-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.6rem 1.8rem;
  display: flex; gap: 1.1rem; align-items: flex-start;
}
.role-ico {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.ri-a { background: var(--gold-dim); }
.ri-d { background: var(--purple-dim); }
.ri-c { background: var(--cyan-dim); }
.ri-s { background: var(--green-dim); }

.role-tag {
  display: inline-block; font-size: .65rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 100px; margin-bottom: .35rem;
}
.rt-a { background: var(--gold-dim);   color: var(--gold); }
.rt-d { background: var(--purple-dim); color: var(--purple); }
.rt-c { background: var(--cyan-dim);   color: var(--cyan); }
.rt-s { background: var(--green-dim);  color: var(--green); }

.role-card h3 { margin-bottom: .35rem; }
.role-card p  { font-size: .86rem; }

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

.roles-note {
  display: flex; align-items: flex-start; gap: .55rem;
  margin-top: 2rem;
  padding: .9rem 1.2rem;
  background: rgba(0,212,255,.05);
  border: 1px solid rgba(0,212,255,.14);
  border-radius: var(--r);
  font-size: .85rem; color: var(--text-dim); line-height: 1.55;
}
.roles-note svg { flex-shrink: 0; color: var(--cyan); margin-top: 2px; }

/* ── TESTIMONIAL ── */
.quote-wrap { max-width: 700px; margin: 0 auto; }
.quote-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2.8rem 3rem; position: relative;
}
.quote-mark {
  position: absolute; top: -.8rem; left: 1.5rem;
  font-size: 5.5rem; line-height: 1; color: var(--cyan);
  opacity: .1; font-weight: 900; user-select: none;
}
blockquote { font-size: 1.15rem; font-style: italic; color: var(--text); line-height: 1.72; margin-bottom: 1.4rem; }
.quote-author { font-size: .84rem; color: var(--text-dim); font-weight: 600; }

@media (max-width: 560px) { .quote-card { padding: 2rem 1.5rem; } }

/* ── CTA ── */
.cta-section {
  padding: 7rem 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  bottom: -40%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(155,80,255,.09) 0%, transparent 65%);
  pointer-events: none;
}
.cta-section h2 { margin-bottom: .9rem; }
.cta-section > .container > p { font-size: 1.05rem; margin-bottom: 2.4rem; }

.cta-form {
  display: flex; gap: .7rem; justify-content: center;
  flex-wrap: wrap; max-width: 460px; margin: 0 auto;
}
.cta-input {
  flex: 1; min-width: 210px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 100px; padding: .75rem 1.35rem;
  color: var(--text); font-size: .92rem; font-family: inherit;
  outline: none; transition: border-color .15s;
}
.cta-input:focus { border-color: rgba(0,212,255,.4); }
.cta-input::placeholder { color: var(--text-dim); }
.cta-note { margin-top: .9rem; font-size: .8rem; }

/* Honeypot — caché pour les humains, attrapé côté serveur */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Feedback formulaire */
.form-success {
  display: none; flex-direction: column; align-items: center; gap: .6rem;
  background: var(--green-dim); border: 1px solid rgba(0,232,122,.25);
  border-radius: var(--r-lg); padding: 1.8rem 2.5rem;
  max-width: 420px; margin: 0 auto;
}
.form-success svg    { color: var(--green); }
.form-success strong { color: var(--green); font-size: 1.05rem; }
.form-success p      { font-size: .9rem; text-align: center; margin: 0; }
.form-error { margin-top: .75rem; font-size: .85rem; color: #ff8899; display: none; }

/* ── DEMO ANIMÉE ── */
.section-demo { background: linear-gradient(180deg, var(--bg) 0%, rgba(0,212,255,.022) 50%, var(--bg) 100%); }
.demo-wrap { max-width: 660px; margin: 0 auto; }

/* Étapes */
.demo-steps {
  display: flex; align-items: center; justify-content: center;
  gap: .25rem; flex-wrap: wrap; margin-bottom: 1.75rem;
}
.ds-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  color: var(--text-dim); padding: .32rem .85rem; border-radius: 100px;
  transition: all .35s;
}
.ds-item.active { color: var(--cyan); background: var(--cyan-dim); }
.ds-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .4; flex-shrink: 0; transition: all .35s;
}
.ds-item.active .ds-dot { opacity: 1; box-shadow: 0 0 7px currentColor; }
.ds-sep { width: 20px; height: 1px; background: var(--border); flex-shrink: 0; }

/* Fenêtre app */
.app-win {
  background: #09091a;
  border: 1px solid rgba(0,212,255,.12);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 28px 80px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.04);
}
.aw-bar {
  display: flex; align-items: center; gap: .75rem;
  padding: .62rem 1rem;
  background: rgba(0,0,0,.45); border-bottom: 1px solid rgba(255,255,255,.05);
}
.aw-dots { display: flex; gap: .38rem; }
.aw-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.1); }
.aw-dots span:nth-child(1) { background: rgba(255,80,80,.45); }
.aw-dots span:nth-child(2) { background: rgba(255,180,0,.4); }
.aw-dots span:nth-child(3) { background: rgba(0,200,100,.4); }
.aw-title { flex: 1; text-align: center; font-size: .68rem; font-weight: 700; color: var(--text-dim); letter-spacing: .06em; }
.aw-bell { position: relative; color: var(--text-dim); display: flex; align-items: center; }
.aw-badge {
  position: absolute; top: -5px; right: -7px;
  background: var(--red); color: #fff;
  font-size: .5rem; font-weight: 800;
  width: 12px; height: 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .4s;
}
.aw-badge.show { opacity: 1; }

/* Corps */
.aw-body { display: flex; }
.aw-floor { flex: 1; padding: .9rem; min-width: 0; }
.fl-zone-label {
  font-size: .52rem; font-weight: 700; letter-spacing: .2em;
  color: rgba(255,255,255,.18); text-transform: uppercase; margin-bottom: .38rem;
}
.fl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .42rem; }
.fl-tbl { border-radius: 8px; border: 1.5px solid; padding: .42rem .52rem; transition: all .5s ease; }
.fl-n { font-size: .64rem; font-weight: 800; }
.fl-d { margin-top: .12rem; }
.fl-d b { display: block; font-size: .57rem; font-weight: 600; }
.fl-d em { display: block; font-size: .54rem; font-style: normal; opacity: .75; }
.fl-libre { opacity: .28; }
.fl-imp { color: var(--red) !important; font-style: normal !important; font-weight: 700; opacity: 1 !important; }

.fl-gold   { background: rgba(255,200,64,.07); border-color: rgba(255,200,64,.4); }
.fl-gold   .fl-n { color: var(--gold); } .fl-gold .fl-d b { color: rgba(255,200,64,.7); } .fl-gold .fl-d em { color: rgba(255,200,64,.5); }
.fl-green  { background: rgba(0,232,122,.06); border-color: rgba(0,232,122,.3); }
.fl-green  .fl-n { color: var(--green); } .fl-green .fl-d b { color: rgba(0,232,122,.65); }
.fl-red    { background: rgba(255,51,85,.07); border-color: rgba(255,51,85,.35); }
.fl-red    .fl-n { color: var(--red); } .fl-red .fl-d b { color: rgba(255,100,130,.7); }
.fl-free   { background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.08); }
.fl-free   .fl-n { color: rgba(255,255,255,.3); } .fl-free .fl-d b { color: rgba(255,255,255,.25); }
.fl-purple { background: rgba(155,80,255,.08); border-color: rgba(155,80,255,.4); }
.fl-purple .fl-n { color: var(--purple); } .fl-purple .fl-d b { color: rgba(155,80,255,.7); }

.fl-tbl.selected { outline: 2px solid var(--cyan); outline-offset: 2px; box-shadow: 0 0 16px rgba(0,212,255,.2); }

@keyframes tblPulse {
  0%, 100% { box-shadow: none; }
  50%       { box-shadow: 0 0 14px rgba(0,212,255,.28); border-color: rgba(0,212,255,.32); }
}
.fl-tbl.pulsing { animation: tblPulse 1.6s ease-in-out infinite; }

/* Panneau d'action (droite) */
.aw-panel {
  width: 180px; flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,.05);
  position: relative; overflow: hidden; min-height: 180px;
}
.ap-scene {
  position: absolute; inset: 0; padding: .8rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px);
  transition: opacity .38s, transform .38s; pointer-events: none;
}
.ap-scene.active { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Légende */
.ap-legend { display: flex; flex-direction: column; gap: .52rem; width: 100%; }
.ap-leg-row { display: flex; align-items: center; gap: .52rem; font-size: .66rem; color: var(--text-dim); }
.ap-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }

/* Formulaire */
.ap-form { display: flex; flex-direction: column; gap: .55rem; width: 100%; }
.af-title { font-size: .76rem; font-weight: 800; color: var(--cyan); margin-bottom: .1rem; }
.af-field { display: flex; flex-direction: column; gap: .18rem; }
.af-field label { font-size: .57rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.af-input {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; padding: .28rem .52rem;
  font-size: .66rem; color: var(--text); min-height: 24px; display: flex; align-items: center;
}
.af-cur { animation: blink .7s step-start infinite; color: var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }
.af-chips { display: flex; gap: .28rem; flex-wrap: wrap; }
.af-chip {
  font-size: .57rem; padding: .16rem .52rem; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.1); color: var(--text-dim); background: transparent;
}
.af-chip.on { background: var(--cyan-dim); border-color: rgba(0,212,255,.3); color: var(--cyan); }
.af-save {
  background: rgba(0,212,255,.1); border: 1px solid rgba(0,212,255,.3);
  border-radius: 8px; color: var(--cyan); font-size: .66rem; font-weight: 700;
  padding: .38rem; cursor: default; text-align: center; transition: all .35s; margin-top: .1rem;
}
.af-save.saved { background: rgba(0,232,122,.12); border-color: rgba(0,232,122,.35); color: var(--green); }

/* Succès */
.ap-success { text-align: center; }
.as-check { font-size: 1.6rem; color: var(--green); animation: popIn .4s cubic-bezier(.16,1,.3,1); }
@keyframes popIn { from { transform: scale(.3); opacity: 0; } }
.as-msg { font-size: .8rem; font-weight: 800; margin-top: .5rem; }
.as-sub { font-size: .62rem; color: var(--text-dim); margin-top: .3rem; line-height: 1.4; }

/* Notification */
.ap-notif {
  background: rgba(0,212,255,.05); border: 1px solid rgba(0,212,255,.18);
  border-top: 2px solid var(--cyan); border-radius: 10px; padding: .7rem; width: 100%;
}
.an-hd {
  display: flex; align-items: center; gap: .38rem;
  font-size: .65rem; font-weight: 800; color: var(--cyan); margin-bottom: .45rem;
}
.an-tbl { font-size: .68rem; font-weight: 700; }
.an-detail { font-size: .6rem; color: var(--text-dim); margin-top: .18rem; }
.an-btn {
  margin-top: .55rem; display: inline-block;
  background: rgba(0,232,122,.12); border: 1px solid rgba(0,232,122,.3);
  border-radius: 6px; color: var(--green);
  font-size: .6rem; font-weight: 700; padding: .26rem .65rem; cursor: default;
}

/* Barre de stats */
.aw-footer {
  display: flex; gap: .6rem; flex-wrap: wrap;
  padding: .5rem 1rem; border-top: 1px solid rgba(255,255,255,.05);
  background: rgba(0,0,0,.25); font-size: .6rem; font-weight: 600;
}
#dLibre { color: rgba(255,255,255,.35); transition: color .4s; }
#dRes   { color: var(--gold);  transition: color .4s; }
.mf-occ { color: var(--green); }
.mf-red { color: var(--red); }

/* Légende dynamique */
.demo-caption {
  text-align: center; font-size: .88rem; color: var(--text-dim);
  margin-top: 1.4rem; min-height: 2.5rem; transition: opacity .3s;
}

/* Mobile : cacher le panneau latéral si trop étroit */
@media (max-width: 480px) {
  .aw-panel { display: none; }
  .fl-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── FOOTER ── */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 3rem 0 2rem; }
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem;
}
.footer-logo {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: .4rem;
}
.footer-tagline { font-size: .84rem; color: var(--text-dim); max-width: 230px; }
.footer-nav { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 {
  font-size: .73rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: .75rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .38rem; }
.footer-col ul a { color: var(--text-dim); font-size: .86rem; transition: color .15s; }
.footer-col ul a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .75rem;
}
.footer-bottom p { font-size: .8rem; color: var(--text-dim); }
