
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── PALETTE WCAG AA ─── */
:root {
  /* Brand – assombris pour contraste sur fond clair */
  --blue:        #1456A0;  /* 7.3:1 sur blanc ✓ */
  --blue-dark:   #0F4485;
  --blue-light:  #1E6FC0;
  --blue-bg:     #EBF2FA;
  --orange:      #B84A00;  /* 5.2:1 sur blanc ✓ */
  --orange-warm: #C05500;
  --orange-bg:   #FEF3E9;

  /* Fond */
  --bg:      #F8F6F2;
  --bg-card: #FFFFFF;

  /* Texte – tous ≥ 4.5:1 sur fond */
  --text:       #111827;  /* 19.6:1 ✓ */
  --text-muted: #374151;  /* 10.7:1 ✓ */
  --text-faint: #6B7280;  /*  5.1:1 ✓ */

  /* Bordures & ombres */
  --border:     #E5E7EB;
  --border-med: #D1D5DB;
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.06);
  --shadow:     0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 8px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg:  0 12px 28px rgba(0,0,0,0.09), 0 4px 8px rgba(0,0,0,0.05);

  /* Sémantiques */
  --green:    #15803D;  /* 5.1:1 ✓ */
  --green-bg: #F0FDF4;
  --amber:    #92400E;  /* 5.9:1 ✓ */
  --amber-bg: #FFFBEB;
  --red:      #B91C1C;  /* 5.9:1 ✓ */
  --red-bg:   #FEF2F2;
  --gold:     #854D0E;  /* 5.4:1 ✓ */
  --gold-bg:  #FEFCE8;

  /* Mockup téléphone – body noir, écran clair */
  --phone-bg:     #1a1a1a;
  --phone-screen: #f8fafc;
}

/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute; top: -48px; left: 16px;
  background: var(--blue); color: #fff;
  padding: 10px 18px; border-radius: 0 0 8px 8px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.9rem;
  text-decoration: none; z-index: 9999; transition: top 0.15s;
}
.skip-link:focus { top: 0; outline: 3px solid var(--orange); outline-offset: 2px; }

/* ─── FOCUS GLOBAL ─── */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── FOND DÉCORATIF ─── */
.bg-layer {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.bg-layer::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,86,160,0.06) 0%, transparent 70%);
  top: -250px; right: -150px;
}
.bg-layer::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,74,0,0.05) 0%, transparent 70%);
  bottom: -80px; left: -80px;
}
.bg-vline {
  position: fixed; top: 0; bottom: 0; width: 1px;
  background: rgba(0,0,0,0.04); z-index: 0; pointer-events: none;
}
.bg-vline:nth-child(1) { left: 25%; }
.bg-vline:nth-child(2) { left: 50%; }
.bg-vline:nth-child(3) { left: 75%; }

/* ─── LAYOUT ─── */
.page { position: relative; z-index: 10; min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }

/* ─── HEADER ─── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 108px;
  overflow: hidden;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-end { display: flex; align-items: center; }

/* ─── HEADER NAV ─── */
.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.header-nav a {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--blue); }
@media (max-width: 920px) { .header-nav { display: none; } }
.btn-nav-cta {
  background: var(--blue); color: #fff !important;
  padding: 7px 18px; border-radius: 100px;
  font-size: 0.78rem !important;
  transition: background 0.2s, transform 0.15s !important;
  box-shadow: 0 2px 8px rgba(20,86,160,0.25);
}
.btn-nav-cta:hover { background: var(--blue-light) !important; transform: translateY(-1px); }

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-wrap:focus-visible { border-radius: 12px; outline-offset: 4px; }
.logo-img {
  width: 168px; height: 168px;
  border-radius: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.logo-text-img {
  height: 58px; width: auto;
  object-fit: contain;
  display: block;
}

/* ─── LOGO HTML ─── */
.logo-text-html {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
  user-select: none;
  margin-left: -14px;
}
.logo-wordmark {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: #111827;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.logo-a-tri {
  height: 0.68em;
  width: auto;
  display: inline-block;
  vertical-align: baseline;
  margin: 0 0.01em;
}
.logo-app-sfx {
  color: #9CA3AF;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.logo-tagline-html {
  font-family: 'Nunito', sans-serif;
  font-size: 0.62rem;
  color: #6B7280;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ─── RESPONSIVE HEADER ─── */
@media (max-width: 920px) {
  header { padding: 0 20px; height: 80px; }
  .logo-img { width: 120px; height: 120px; border-radius: 20px; }
  .logo-text-img { height: 47px; }
  .logo-wordmark { font-size: 1.5rem; }
  .logo-wrap { gap: 2px; }
  .header-event-cta { padding: 7px 12px; font-size: 0.65rem; gap: 7px; }
}
@media (max-width: 600px) {
  header { padding: 0 14px; height: 58px; justify-content: flex-start; }
  .logo-img { width: 80px; height: 80px; border-radius: 14px; }
  .logo-text-img { height: 36px; }
  .logo-wordmark { font-size: 1.1rem; }
  .logo-tagline-html { font-size: 0.52rem; }
  .logo-wrap { gap: 2px; width: 100%; position: relative; }
  .logo-wrap .logo-text-html { position: absolute; left: 0; right: 0; margin-left: 0; pointer-events: none; }
  .header-event-cta { display: none; }
  .header-nav { display: none; }
  .header-end { display: none; }
}

.header-event-cta,
.header-nav .header-event-cta {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #1456a0 0%, #1e40af 100%);
  color: #fff !important; text-decoration: none;
  border-radius: 14px; padding: 9px 16px;
  box-shadow: 0 4px 18px rgba(20,86,160,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.header-event-cta:hover,
.header-nav .header-event-cta:hover { color: #fff !important; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,86,160,0.45); }
.hec-star { font-size: 1rem; flex-shrink: 0; }
.hec-text { display: flex; flex-direction: column; gap: 0; }
.hec-title { font-family: 'Nunito', sans-serif; font-size: 0.72rem; font-weight: 800; line-height: 1.2; }
.hec-date  { font-family: 'Nunito', sans-serif; font-size: 0.65rem; font-weight: 600; opacity: 0.85; }
.hec-arrow { font-size: 0.9rem; opacity: 0.8; margin-left: 2px; }

/* ─── HERO ─── */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 60px 56px 44px;
  min-height: calc(100vh - 200px);
}
.hero-left { padding-right: 64px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--orange); margin-bottom: 20px;
  opacity: 0; animation: fadeUp 0.7s 0.1s ease forwards;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--orange); border-radius: 1px; }

h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15; color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  opacity: 0; animation: fadeUp 0.7s 0.2s ease forwards;
}
h1 em { font-style: italic; color: var(--text-faint); }
h1 .hl { color: var(--blue); font-style: normal; }

.hero-desc {
  font-size: 1rem; line-height: 1.75; color: var(--text-muted);
  max-width: 440px; font-weight: 400; margin-bottom: 40px;
  opacity: 0; animation: fadeUp 0.7s 0.3s ease forwards;
}

/* ─── WAITLIST FORM ─── */
.waitlist-form {
  opacity: 0; animation: fadeUp 0.7s 0.4s ease forwards;
}
.form-section-label {
  display: block; font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-faint); margin-bottom: 10px;
}
.input-row { display: flex; gap: 10px; margin-bottom: 10px; }

.input-field {
  flex: 1;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 13px 16px;
  font-family: 'Nunito', sans-serif; font-size: 0.9rem; color: var(--text);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.input-field::placeholder { color: var(--text-faint); }
.input-field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20,86,160,0.15);
  outline: none;
}
.input-field[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(185,28,28,0.12); }

.select-field {
  flex: 1;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 13px 16px;
  font-family: 'Nunito', sans-serif; font-size: 0.9rem; color: var(--text-muted);
  outline: none; appearance: none; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: border-color 0.2s, box-shadow 0.2s;
}
.select-field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20,86,160,0.15);
  outline: none;
}
/* Bouton type-picker */
.type-picker-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; border: none;
}
.type-picker-btn[data-filled="true"] { color: var(--text); }
.type-picker-arrow { font-size: 0.75rem; opacity: 0.5; flex-shrink: 0; margin-left: 8px; }
/* Modal type-picker */
.tp-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(3px);
}
.tp-overlay.open { display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 601px) { .tp-overlay.open { align-items: center; } }
.tp-modal {
  background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 480px;
  padding: 24px 20px 36px;
}
@media (min-width: 601px) { .tp-modal { border-radius: 20px; } }
.tp-modal-title {
  font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 16px; text-align: center;
}
.tp-options { display: flex; flex-direction: column; gap: 8px; }
.tp-option {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 13px 16px; cursor: pointer;
  font-family: 'Nunito', sans-serif; font-size: 0.9rem; font-weight: 700;
  color: var(--text); transition: border-color 0.15s, background 0.15s, color 0.15s;
  text-align: left; width: 100%;
}
.tp-option:hover { border-color: var(--blue); background: var(--blue-bg); color: var(--blue); }
.tp-option.selected { border-color: var(--blue); background: var(--blue-bg); color: var(--blue); }
.tp-option-icon { font-size: 1.2rem; flex-shrink: 0; }
.tp-close {
  display: block; width: 100%; margin-top: 12px; padding: 10px;
  background: none; border: 1px solid var(--border); border-radius: 10px;
  font-family: 'Nunito', sans-serif; font-size: 0.82rem; font-weight: 700;
  color: var(--text-faint); cursor: pointer; transition: background 0.15s;
}
.tp-close:hover { background: var(--bg); }

.btn-primary {
  width: 100%; background: var(--blue); color: #fff; border: none;
  border-radius: 12px; padding: 15px 24px;
  font-family: 'Nunito', sans-serif; font-size: 0.95rem; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(20,86,160,0.3);
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(20,86,160,0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn-arrow { transition: transform 0.2s; display: inline-block; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.form-note { font-size: 0.7rem; color: var(--text-faint); text-align: center; line-height: 1.5; }

.error-msg {
  display: none; color: var(--red); background: var(--red-bg);
  border: 1px solid rgba(185,28,28,0.2); border-radius: 8px;
  font-size: 0.78rem; font-weight: 700; padding: 8px 12px;
  margin-bottom: 10px;
}
.error-msg.show { display: block; }

/* Message succès */
.success-box {
  display: none;
  text-align: center; padding: 28px 20px;
  background: var(--green-bg);
  border: 1.5px solid rgba(21,128,61,0.25);
  border-radius: 16px;
}
.success-box .success-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.success-box .success-title { font-family: 'Poppins', sans-serif; font-size: 1.5rem; color: var(--text); margin-bottom: 8px; }
.success-box .success-sub { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ─── HERO RIGHT — MOCKUP ─── */
.hero-right {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.phone-wrap { position: relative; width: 280px; }

/* Float chips – style clair */
.float-chip {
  position: absolute;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 9px 13px;
  display: flex; align-items: center; gap: 9px;
  box-shadow: var(--shadow-md); white-space: nowrap;
}
.float-chip.tl { top: 60px; left: -110px; animation: float1 5s ease-in-out infinite; }
.float-chip.br { bottom: 80px; right: -100px; animation: float2 5s 1.5s ease-in-out infinite; }
@keyframes float1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.fc-ico { font-size: 18px; }
.fc-main { display: block; font-size: 0.68rem; font-weight: 800; color: var(--text); }
.fc-sub  { display: block; font-size: 0.6rem; color: var(--text-muted); }

/* Téléphone – body noir, écran mode clair */
.phone {
  width: 280px; background: var(--phone-bg);
  border-radius: 44px; padding: 14px;
  border: 2px solid #111;
  box-shadow: 0 0 0 1px #333, var(--shadow-lg), 0 30px 60px rgba(0,0,0,0.25);
  position: relative; z-index: 2;
  animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.phone-notch {
  width: 80px; height: 22px; background: var(--phone-bg);
  border-radius: 0 0 14px 14px; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
}
.phone-camera {
  width: 9px; height: 9px; border-radius: 50%;
  background: #DC2626;
  box-shadow: 0 0 0 2px #1a1a1a, 0 0 8px 2px rgba(220,38,38,0.7);
  animation: camBlink 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes camBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 2px #1a1a1a, 0 0 10px 3px rgba(220,38,38,0.8); }
  45%, 55% { opacity: 0.15; box-shadow: 0 0 0 2px #1a1a1a, 0 0 0 0 rgba(220,38,38,0); }
}
.phone-screen { background: var(--phone-screen); border-radius: 32px; overflow: hidden; min-height: 520px; display: flex; flex-direction: column; position: relative; }

.app-header { background: #fff; border-bottom: 1px solid #E5E7EB; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; }
.app-logo-wrap { display: flex; align-items: center; gap: 4px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.app-logo-wrap * { pointer-events: none; }
.app-logo-icon { width: 58px; height: 58px; border-radius: 12px; object-fit: contain; flex-shrink: 0; }
.app-logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.app-logo-tri {
  height: 0.68em;
  width: auto;
  display: inline-block;
  vertical-align: baseline;
}
.app-logo-app { color: #9CA3AF; font-weight: 500; }
.app-icon { width: 26px; height: 26px; background: #F3F4F6; border: 1px solid #E5E7EB; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* ─── PHONE MENU — REAL APP SIDEBAR ─── */
.phone-menu {
  position: absolute; inset: 0; z-index: 20;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  border-radius: 32px; overflow: hidden;
  pointer-events: none;
}
.phone-menu.open { transform: translateX(0); pointer-events: auto; }
.phone-menu-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 8px;
}
.phone-menu-close {
  width: 22px; height: 22px; border-radius: 50%;
  background: #F1F5F9; border: 1px solid #E2E8F0;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; cursor: pointer; color: #64748B;
  flex-shrink: 0; font-family: sans-serif; line-height: 1;
  margin-bottom: auto;
}
/* OrgSwitcher */
.pm-org {
  display: flex; align-items: center; gap: 7px;
  margin: 0 8px 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #F1F5F9;
  cursor: pointer;
}
.pm-org-logo { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; flex-shrink: 0; }
.pm-org-name { flex: 1; font-family: 'Nunito', sans-serif; font-size: 0.54rem; font-weight: 700; color: #334155; }
.pm-org-chevron { color: #94A3B8; font-size: 9px; }
/* Nav */
.pm-nav { flex: 1; overflow-y: auto; padding: 2px 8px; }
.pm-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: 10px;
  font-family: 'Nunito', sans-serif; font-size: 0.58rem; font-weight: 600; color: #64748B;
  cursor: pointer; transition: background 0.15s, color 0.15s;
  margin-bottom: 1px; border: 1px solid transparent;
}
.pm-item:active, .pm-item:hover { background: #F1F5F9; color: #1E293B; }
.pm-item.active { background: rgba(16,185,129,0.08); color: #059669; border-color: rgba(16,185,129,0.2); }
.pm-item.ardoise-item { color: #D97706; }
.pm-item.ardoise-item:hover { background: rgba(245,158,11,0.06); }
.pm-item.ardoise-item.active { background: rgba(245,158,11,0.08); color: #D97706; border-color: rgba(245,158,11,0.2); }
.pm-ico { width: 14px; height: 14px; flex-shrink: 0; }
.pm-dot { width: 5px; height: 5px; border-radius: 50%; background: #F59E0B; margin-left: auto; }
/* Footer */
.pm-footer { padding: 6px 8px 14px; border-top: 1px solid #E2E8F0; }
.pm-footer-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: 10px;
  font-family: 'Nunito', sans-serif; font-size: 0.56rem; font-weight: 600; color: #64748B;
  cursor: pointer; transition: background 0.15s; margin-bottom: 1px;
}
.pm-footer-btn:hover { background: #F1F5F9; }
.pm-footer-btn.logout:hover { background: #FEF2F2; color: #DC2626; }

.app-body { flex: 1; padding: 10px; overflow: hidden; }
/* ── Bottom tab bar mockup ── */
.app-bottombar {
  background: rgba(255,255,255,0.92);
  border-top: 1px solid #e5e7eb;
  padding: 4px 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.tab-item {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 34px;
}
.tab-item svg { display: block; }
.tab-lbl { font-size: 0.42rem; font-weight: 600; color: #94a3b8; }
.tab-item.active .tab-lbl { color: #10b981; }
.tab-fab-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.tab-fab-btn {
  background: #f59e0b;
  border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: -10px;
  box-shadow: 0 0 14px rgba(245,158,11,0.5);
  border: 3px solid #f8fafc;
  position: relative; z-index: 1;
}
.tab-fab-lbl { font-size: 0.42rem; font-weight: 600; color: #f59e0b; margin-top: 12px; }

/* ─── DEMO STEPS ─── */
.demo-steps-bar { display: flex; gap: 4px; justify-content: center; padding: 6px 10px 4px; background: #fff; }
.ds-dot { height: 3px; flex: 1; border-radius: 2px; background: #E5E7EB; transition: background 0.4s; }
.ds-dot.active { background: var(--blue); }

.demo-screen { display: none; flex-direction: column; flex: 1; animation: dsFade 0.35s ease; }
.demo-screen.ds-active { display: flex; }
@keyframes dsFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Screen 1 – Scanning */
.scan-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 14px; gap: 8px; }
.scan-brain { font-size: 30px; animation: brainPulse 0.9s ease-in-out infinite; }
@keyframes brainPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }
.scan-title { font-family:'Poppins',sans-serif; font-size: 0.64rem; font-weight: 700; color: var(--text); text-align: center; }
.scan-sub { font-size: 0.5rem; color: var(--text-faint); text-align: center; }
.scan-bar { width: 82%; height: 5px; background: #E5E7EB; border-radius: 100px; overflow: hidden; }
.scan-fill { height: 100%; background: linear-gradient(90deg, #10b981, #34d399); border-radius: 100px; animation: fillBar 2.4s ease-in-out forwards; }
@keyframes fillBar { 0%{width:4%} 100%{width:90%} }
.scan-log { width: 82%; display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.scan-log-item { display: flex; align-items: center; gap: 6px; font-size: 0.48rem; color: var(--text-muted); opacity: 0; animation: logIn 0.3s ease forwards; }
.scan-log-item:nth-child(1){animation-delay:0.3s} .scan-log-item:nth-child(2){animation-delay:0.8s} .scan-log-item:nth-child(3){animation-delay:1.3s}
@keyframes logIn { to{opacity:1} }
.scan-dot { width: 5px; height: 5px; border-radius: 50%; background: #10b981; flex-shrink: 0; }

/* ─── STATS ─── */
.stats-strip {
  display: flex; gap: 32px; padding: 32px 56px 48px;
  opacity: 0; animation: fadeUp 0.7s 0.5s ease forwards;
  border-top: 1px solid var(--border);
}
.stat { display: flex; align-items: center; gap: 12px; }
.stat-divider { width: 1px; height: 28px; background: var(--border); }
.stat-num { font-family: 'Poppins', sans-serif; font-size: 1.7rem; color: var(--blue); line-height: 1; font-weight: 700; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; max-width: 90px; }

/* ─── SECTION ÉVÉNEMENT ─── */
.event-section {
  padding: 60px 56px 80px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.event-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }

.event-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold-bg); border: 1px solid rgba(133,77,14,0.25);
  border-radius: 100px; padding: 5px 14px;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gold); margin-bottom: 20px;
}

h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  line-height: 1.15; color: var(--text); margin-bottom: 18px;
}
h2 em { font-style: italic; color: var(--text-faint); }

.event-desc { font-size: 0.95rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 28px; }

/* Countdown */
.countdown { display: flex; align-items: center; gap: 4px; margin-bottom: 28px; }
.cd-block {
  display: flex; flex-direction: column; align-items: center; min-width: 58px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 8px 8px;
  box-shadow: var(--shadow-sm);
}
.cd-num { font-family: 'Poppins', sans-serif; font-size: 1.8rem; line-height: 1; color: var(--blue); font-weight: 700; }
.cd-label { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin-top: 4px; font-weight: 800; }
.cd-sep { font-family: 'Poppins', sans-serif; font-size: 1.4rem; color: var(--text-faint); padding: 0 2px; margin-top: -8px; }

/* Détails événement */
.event-details { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.event-detail { display: flex; align-items: center; gap: 12px; }
.ed-icon {
  width: 34px; height: 34px;
  background: var(--blue-bg); border: 1px solid rgba(20,86,160,0.15);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.ed-label { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin-bottom: 1px; font-weight: 800; }
.ed-value { font-size: 0.88rem; font-weight: 700; color: var(--text); }

/* Programme */
.programme { display: flex; flex-direction: column; margin-bottom: 28px; }
.prog-item { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.prog-item:last-child { border-bottom: none; }
.prog-time { font-size: 0.7rem; font-weight: 800; color: var(--text-faint); min-width: 38px; padding-top: 2px; }
.prog-title { font-size: 0.85rem; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.prog-sub { font-size: 0.72rem; color: var(--text-muted); }

/* ─── FORMULAIRE ÉVÉNEMENT ─── */
.event-form-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 24px; padding: 32px;
  position: sticky; top: 88px;
  box-shadow: var(--shadow-lg);
}
.form-title { font-family: 'Poppins', sans-serif; font-size: 1.5rem; color: var(--text); margin-bottom: 6px; }
.form-sub { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }

/* Jauge places */
.spots-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.spots-text { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }
.spots-count { font-size: 0.72rem; font-weight: 800; color: var(--orange); }
.progress-track { width: 100%; height: 6px; background: var(--border); border-radius: 100px; margin-bottom: 22px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-light)); border-radius: 100px; transition: width 0.8s ease; }

/* Champs */
.form-group { margin-bottom: 12px; }
.field-label {
  display: block; font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin-bottom: 6px;
}
.field-input {
  width: 100%; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 11px 13px;
  font-family: 'Nunito', sans-serif; font-size: 0.88rem; color: var(--text); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-input::placeholder { color: var(--text-faint); }
.field-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20,86,160,0.15);
  outline: none;
}
.field-input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(185,28,28,0.12); }

.field-select {
  width: 100%; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 11px 13px;
  font-family: 'Nunito', sans-serif; font-size: 0.88rem; color: var(--text-muted);
  outline: none; appearance: none; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20,86,160,0.15);
  outline: none;
}

.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; cursor: pointer; }
.checkbox-group input {
  width: 18px; height: 18px; margin-top: 1px; cursor: pointer;
  accent-color: var(--blue); flex-shrink: 0;
}
.checkbox-label { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

.btn-orange {
  width: 100%; background: var(--orange); color: #fff; border: none;
  border-radius: 12px; padding: 15px;
  font-family: 'Nunito', sans-serif; font-size: 0.95rem; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(184,74,0,0.3);
}
.btn-orange:hover { background: var(--orange-warm); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(184,74,0,0.35); }
.btn-orange:active { transform: translateY(0); }
.btn-orange:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-orange:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.register-note { text-align: center; font-size: 0.68rem; color: var(--text-faint); margin-top: 10px; line-height: 1.5; }

/* ─── FEATURES ─── */
.features-section {
  padding: 88px 56px 80px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.features-inner { max-width: 1080px; margin: 0 auto; }
.features-intro { text-align: center; margin-bottom: 56px; }
.features-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--blue); margin-bottom: 18px;
}
.features-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--blue); border-radius: 1px; }
.features-intro h2 { margin-bottom: 10px; }
.features-intro .feat-lead {
  font-size: 1rem; color: var(--text-muted); max-width: 500px; margin: 0 auto; line-height: 1.7;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.feat-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow);
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-med);
}
.feat-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.feat-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.feat-icon--blue   { background: var(--blue-bg);   border: 1px solid rgba(20,86,160,0.12);  }
.feat-icon--orange { background: var(--orange-bg); border: 1px solid rgba(184,74,0,0.12);   }
.feat-icon--green  { background: var(--green-bg);  border: 1px solid rgba(21,128,61,0.12);  }
.feat-icon--red    { background: var(--red-bg);    border: 1px solid rgba(185,28,28,0.12);  }
.feat-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 4px; margin-top: 2px;
}
.feat-badge {
  display: inline-block;
  font-size: 0.56rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 100px;
  background: var(--blue-bg); color: var(--blue);
}
.feat-desc {
  font-size: 0.84rem; line-height: 1.75;
  color: var(--text-muted); margin-bottom: 18px;
}
.feat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feat-tag {
  font-size: 0.6rem; font-weight: 700;
  background: var(--bg); border: 1px solid var(--border-med);
  border-radius: 100px; padding: 3px 10px;
  color: var(--text-faint);
}
@media (max-width: 920px) {
  .features-section { padding: 60px 20px; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 22px 56px;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; }
.footer-brand .logo-wordmark { font-size: 1rem; color: var(--text-muted); }
.footer-brand .logo-tagline-html { display: none; }
.footer-brand .logo-app-sfx { color: var(--text-faint); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 0.78rem; color: var(--text-faint); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-muted); }
.footer-dev { font-size: 0.72rem; color: var(--text-faint); }
.footer-dev a { color: var(--text-faint); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.footer-dev a:hover { color: var(--text-muted); }
/* Mentions légales modal */
.ml-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(3px);
}
.ml-overlay.open { display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 601px) { .ml-overlay.open { align-items: center; } }
.ml-modal {
  background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 640px;
  max-height: 80vh; overflow-y: auto; padding: 32px 28px 48px;
}
@media (min-width: 601px) { .ml-modal { border-radius: 20px; padding: 40px; } }
.ml-modal h2 { font-family: 'Poppins', sans-serif; font-size: 1.25rem; margin-bottom: 20px; color: var(--text); }
.ml-modal h3 { font-family: 'Poppins', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--text); margin: 20px 0 6px; }
.ml-modal p, .ml-modal li { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; }
.ml-modal ul { padding-left: 18px; margin: 0; }
.ml-modal a { color: var(--blue); }
.ml-close {
  float: right; background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--text-muted); line-height: 1; padding: 0 0 8px 12px;
}
.ml-close:hover { color: var(--text); }

/* ─── SITE SIDEBAR (same design as real app) ─── */
.site-menu-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background 0.3s;
}
.site-menu-overlay.open { background: rgba(0,0,0,0.35); pointer-events: auto; }

.site-menu-drawer {
  position: fixed; left: 0; top: 0; bottom: 0; width: 280px;
  background: #fff;
  border-right: 1px solid #E2E8F0;
  z-index: 301;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 4px 0 32px rgba(0,0,0,0.12);
  overflow-y: auto;
}
.site-menu-drawer.open { transform: translateX(0); }

.sm-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 10px;
}
.sm-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: #F1F5F9; border: 1px solid #E2E8F0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; cursor: pointer; color: #64748B; flex-shrink: 0;
}
.sm-close:hover { background: #E2E8F0; }

.sm-org {
  display: flex; align-items: center; gap: 10px;
  margin: 0 12px 10px; padding: 10px 12px;
  border-radius: 12px; background: #F1F5F9; cursor: pointer;
}
.sm-org-logo { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; flex-shrink: 0; }
.sm-org-name { flex: 1; font-family: 'Nunito', sans-serif; font-size: 0.82rem; font-weight: 700; color: #334155; }
.sm-org-chevron { color: #94A3B8; font-size: 12px; }

.sm-nav { flex: 1; padding: 2px 12px; }
.sm-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 12px;
  font-family: 'Nunito', sans-serif; font-size: 0.88rem; font-weight: 700; color: #64748B;
  cursor: pointer; transition: background 0.15s, color 0.15s;
  margin-bottom: 2px; border: 1px solid transparent;
}
.sm-item:hover { background: #F1F5F9; color: #1E293B; }
.sm-item.active { background: rgba(16,185,129,0.08); color: #059669; border-color: rgba(16,185,129,0.2); }
.sm-item.sm-ardoise { color: #D97706; }
.sm-item.sm-ardoise:hover { background: rgba(245,158,11,0.06); }
.sm-item.sm-ardoise.active { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); }
.sm-ico { width: 20px; height: 20px; flex-shrink: 0; }
.sm-dot { width: 7px; height: 7px; border-radius: 50%; background: #F59E0B; margin-left: auto; }

.sm-footer { padding: 10px 12px 24px; border-top: 1px solid #E2E8F0; }
.sm-footer-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 12px;
  font-family: 'Nunito', sans-serif; font-size: 0.85rem; font-weight: 700; color: #64748B;
  cursor: pointer; transition: background 0.15s; margin-bottom: 2px;
}
.sm-footer-btn:hover { background: #F1F5F9; }
.sm-footer-btn.sm-logout:hover { background: #FEF2F2; color: #DC2626; }

/* ─── MOBILE EVENT CTA (fixed bottom bar) ─── */
.mobile-event-cta {
  display: none;
}
@media (max-width: 600px) {
  .mobile-event-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 16px;
    left: 12px;
    right: 12px;
    z-index: 200;
    background: linear-gradient(135deg, #1456a0 0%, #1e40af 100%);
    color: #fff;
    border-radius: 16px;
    padding: 13px 16px;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(20,86,160,0.45), 0 2px 8px rgba(0,0,0,0.18);
    animation: mec-bounce 2.4s ease-in-out infinite;
  }
  @keyframes mec-bounce {
    0%, 100% { transform: translateY(0); box-shadow: 0 8px 28px rgba(20,86,160,0.45), 0 2px 8px rgba(0,0,0,0.18); }
    50% { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(20,86,160,0.55), 0 4px 12px rgba(0,0,0,0.2); }
  }
  .mec-star { font-size: 1.3rem; flex-shrink: 0; }
  .mec-text { display: flex; flex-direction: column; gap: 1px; }
  .mec-title { font-family: 'Nunito', sans-serif; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.01em; }
  .mec-date { font-family: 'Nunito', sans-serif; font-size: 0.68rem; font-weight: 600; opacity: 0.82; }
  .mec-sub { font-family: 'Nunito', sans-serif; font-size: 0.7rem; font-weight: 600; opacity: 0.88; }
  /* leave space so fixed bar doesn't overlap footer */
  footer { padding-bottom: 90px; }
}

/* ─── EVENT HERO PREMIER ─── */
.event-hero-first {
  border-top: none !important;
  min-height: calc(100vh - 108px);
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--bg-card) 55%, var(--blue-bg) 100%);
}
.event-hero-first .event-inner { align-items: center; width: 100%; }

/* ─── APP TEASER ─── */
.app-teaser-section {
  padding: 80px 56px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.app-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.app-teaser-left { padding-right: 32px; }
.app-teaser-right { display: flex; justify-content: center; }

/* ─── WAITLIST SECTION ─── */
.waitlist-section {
  padding: 80px 56px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.waitlist-section-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.waitlist-section-intro { padding-right: 16px; }
.wl-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  line-height: 1.15; color: var(--text);
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.wl-intro-desc { font-size: 0.95rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 12px; }
.wl-bullets { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.wl-bullet { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.wl-bullet-icon { width: 26px; height: 26px; background: var(--blue-bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; margin-top: 1px; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ─── RESPONSIVE ─── */
@media (max-width: 920px) {
  header, .stats-strip, footer { padding-left: 20px; padding-right: 20px; }
  .event-section { padding-left: 20px; padding-right: 20px; }
  .event-hero-first { min-height: auto; padding-top: 40px; padding-bottom: 40px; }
  .event-inner { grid-template-columns: 1fr; gap: 32px; }
  .event-form-card { position: static; }
  .app-teaser-section { padding: 60px 20px; }
  .app-teaser-inner { grid-template-columns: 1fr; gap: 32px; }
  .app-teaser-right { display: none; }
  .app-teaser-left { padding-right: 0; }
  .waitlist-section { padding: 60px 20px; }
  .waitlist-section-inner { grid-template-columns: 1fr; gap: 28px; }
  .waitlist-section-intro { padding-right: 0; }
  .stats-strip { flex-wrap: wrap; gap: 16px; padding: 28px 20px 32px; }
  .float-chip { display: none; }
  .input-row { flex-direction: column; }
  /* Legacy hero kept for phones */
  .hero { grid-template-columns: 1fr; padding: 40px 20px; }
  .hero-left { padding-right: 0; }
  .hero-right { display: flex; justify-content: center; padding: 40px 0 20px; }
  .phone-wrap { transform: scale(0.78); transform-origin: top center; }
}

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