/* ═══════════════════════════════════════════════════════════════════════════
   VideoDown — style.css v2
   Palette : Bleu acier #1e5fa8 · Bleu ciel #60a5fa · Blanc · Gris perle
═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  /* Palette principale */
  --blue-900:  #0f2d5e;
  --blue-800:  #1a4a96;
  --blue-700:  #1e5fa8;
  --blue-600:  #2575cc;
  --blue-500:  #3b82f6;
  --blue-400:  #60a5fa;
  --blue-300:  #93c5fd;
  --blue-100:  #dbeafe;
  --blue-50:   #eff6ff;

  /* Neutres */
  --white:     #ffffff;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-300:  #cbd5e1;
  --gray-400:  #94a3b8;
  --gray-500:  #64748b;
  --gray-600:  #475569;
  --gray-700:  #334155;
  --gray-900:  #0f172a;

  /* Sémantiques */
  --primary:        var(--blue-700);
  --primary-dark:   var(--blue-800);
  --primary-light:  var(--blue-400);
  --accent:         var(--blue-500);
  --bg-body:        var(--white);
  --bg-section:     var(--gray-50);
  --bg-alt:         var(--blue-50);
  --text-main:      var(--gray-900);
  --text-soft:      var(--gray-600);
  --text-muted:     var(--gray-400);
  --border:         var(--gray-200);
  --shadow-sm:      0 1px 3px rgba(15,45,94,.08), 0 1px 2px rgba(15,45,94,.06);
  --shadow-md:      0 4px 16px rgba(15,45,94,.10), 0 2px 6px rgba(15,45,94,.08);
  --shadow-lg:      0 10px 40px rgba(15,45,94,.14), 0 4px 16px rgba(15,45,94,.10);
  --shadow-xl:      0 20px 60px rgba(15,45,94,.18);
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;
  --radius-xl:      32px;
  --radius-full:    9999px;
  --font:           'Inter', system-ui, -apple-system, sans-serif;
  --transition:     all .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, button { outline-offset: 3px; }
input:focus-visible, button:focus-visible { outline: 2px solid var(--blue-500); }

/* ── Orbes de fond ─────────────────────────────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 20s ease-in-out infinite alternate;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(96,165,250,.18) 0%, transparent 70%);
  top: -200px; left: -150px;
  animation-duration: 22s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,117,204,.15) 0%, transparent 70%);
  top: 40%; right: -180px;
  animation-duration: 28s;
  animation-delay: -8s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(30,95,168,.10) 0%, transparent 70%);
  bottom: 10%; left: 30%;
  animation-duration: 18s;
  animation-delay: -4s;
}
@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.08); }
}

/* ── Navbar ─────────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
  backdrop-filter: blur(0);
}
.navbar.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
}
.logo strong { font-weight: 800; }
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-400));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .95rem;
  box-shadow: 0 4px 12px rgba(37,117,204,.35);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-menu a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
}
.nav-menu a:hover {
  color: var(--primary);
  background: var(--blue-50);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gray-600);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 45%, var(--blue-500) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.hero-text { margin-bottom: 48px; }
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.pill-badge i { color: #fbbf24; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hl {
  background: linear-gradient(90deg, #93c5fd, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Download Card ─────────────────────────────────────────────────────────── */
.dl-card {
  background: rgba(255,255,255,.97);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.15);
  padding: 32px;
  margin-bottom: 40px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.4);
  text-align: left;
}

/* Input Row */
.dl-input-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.dl-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.dl-icon {
  position: absolute;
  left: 18px;
  color: var(--gray-400);
  font-size: .95rem;
  pointer-events: none;
  z-index: 1;
}
.dl-input {
  width: 100%;
  height: 58px;
  padding: 0 50px 0 46px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-main);
  background: var(--white);
  transition: var(--transition);
  font-family: var(--font);
}
.dl-input::placeholder { color: var(--gray-400); }
.dl-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}
.paste-btn {
  position: absolute;
  right: 12px;
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.paste-btn:hover { background: var(--blue-100); color: var(--primary); }
.analyze-btn {
  height: 58px;
  padding: 0 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(37,117,204,.4);
  flex-shrink: 0;
}
.analyze-btn:hover {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(37,117,204,.5);
}
.analyze-btn:active { transform: translateY(0); }

/* Loader */
.dl-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 0 8px;
  color: var(--text-soft);
  font-size: .95rem;
  font-weight: 500;
}
.loader-ring {
  width: 28px; height: 28px;
  border: 3px solid var(--blue-100);
  border-top-color: var(--blue-500);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Error */
.dl-error {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 500;
}
.dl-error i { flex-shrink: 0; font-size: 1.1rem; }
.dl-error span { flex: 1; }
#dl-error-close {
  background: none;
  color: #b91c1c;
  padding: 4px;
  border-radius: var(--radius-sm);
  opacity: .7;
}
#dl-error-close:hover { opacity: 1; }

/* Result Separator */
.result-sep {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}
.result-sep::before, .result-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.result-sep span {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Video Card */
.video-card {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--blue-100);
}
.vc-thumb-wrap {
  position: relative;
  width: 180px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-200);
  aspect-ratio: 16/9;
  align-self: flex-start;
}
#vc-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
}
.vc-duration {
  position: absolute;
  bottom: 6px; right: 6px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.vc-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.25);
  color: #fff;
  font-size: 1.6rem;
  opacity: 0;
  transition: var(--transition);
}
.vc-thumb-wrap:hover .vc-play { opacity: 1; }
.vc-info { flex: 1; min-width: 0; }
.vc-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vc-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vc-author {
  font-size: .85rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.vc-stats { display: flex; gap: 16px; }
.vc-stats span {
  font-size: .82rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Format Picker */
.fmt-section { margin-bottom: 20px; }
.fmt-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.fmt-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.fmt-chip {
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.fmt-chip:hover {
  border-color: var(--blue-400);
  color: var(--primary);
  background: var(--blue-50);
}
.fmt-chip.selected {
  border-color: var(--blue-600);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: #fff;
  box-shadow: 0 4px 12px rgba(37,117,204,.3);
}
.fmt-chip .chip-badge {
  font-size: .7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,.25);
  font-weight: 700;
}
.fmt-chip:not(.selected) .chip-badge {
  background: var(--gray-100);
  color: var(--gray-500);
}

/* Download Button */
.dl-btn {
  width: 100%;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 6px 22px rgba(37,117,204,.4);
  letter-spacing: .02em;
}
.dl-btn:not(:disabled):hover {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,117,204,.5);
}
.dl-btn:disabled {
  background: var(--gray-200);
  color: var(--gray-400);
  box-shadow: none;
  cursor: not-allowed;
}

/* Progress */
.dl-progress {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dp-bar-wrap {
  height: 8px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.dp-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  width: 0%;
  transition: width .5s ease;
  position: relative;
  overflow: hidden;
}
.dp-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.4) 50%, transparent 100%);
  animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.dp-label { font-size: .85rem; font-weight: 600; color: var(--text-soft); }

/* Success */
.dl-success {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  font-weight: 600;
  animation: slide-in .4s ease;
}
@keyframes slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero Stats */
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-full);
  padding: 0 8px;
  backdrop-filter: blur(10px);
}
.hs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 22px;
}
.hs-item strong { font-size: 1.25rem; font-weight: 900; color: #fff; }
.hs-item span   { font-size: .72rem; color: rgba(255,255,255,.7); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.hs-sep { width: 1px; height: 32px; background: rgba(255,255,255,.2); }

/* Wave */
.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
}
.hero-wave svg { display: block; width: 100%; height: 80px; }

/* ── Sections communes ──────────────────────────────────────────────────────── */
.section { padding: 100px 24px; background: var(--bg-section); }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 60px; }
.s-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  letter-spacing: -.02em;
}
.section-head p {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Platforms Grid ─────────────────────────────────────────────────────────── */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
}
.plat-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px 28px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}
.plat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}
.plat-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}
.pi-yt   { background: #fee2e2; color: #dc2626; }
.pi-ig   { background: linear-gradient(135deg,#fdf2f8,#fce7f3); color: #db2777; }
.pi-tt   { background: #f0fdf4; color: #0f172a; }
.pi-tw   { background: #f0f9ff; color: #0369a1; }
.pi-fb   { background: #eff6ff; color: #1d4ed8; }
.pi-more { background: var(--blue-50); color: var(--blue-600); }
.plat-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.plat-card p  { font-size: .82rem; color: var(--text-soft); }
.plat-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: .7rem;
  font-weight: 800;
  padding: 3px 8px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: #fff;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Features Grid ─────────────────────────────────────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}
.feat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-400));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(37,117,204,.35);
}
.feat-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feat-card p  { font-size: .9rem; color: var(--text-soft); line-height: 1.65; }

/* ── Steps ─────────────────────────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  justify-content: center;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  flex: 1;
  max-width: 300px;
  transition: var(--transition);
  position: relative;
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}
.step-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--blue-100);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -.04em;
}
.step-ico {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-400));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 20px;
  box-shadow: 0 6px 18px rgba(37,117,204,.35);
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step p  { font-size: .88rem; color: var(--text-soft); line-height: 1.65; }
.step-arrow {
  color: var(--blue-300);
  font-size: 1.2rem;
  padding-top: 90px;
  flex-shrink: 0;
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--blue-300); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
}
.faq-q:hover { color: var(--primary); }
.faq-q i {
  color: var(--blue-400);
  font-size: .85rem;
  transition: transform .3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .3s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p {
  padding: 0 24px 20px;
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.8);
  padding: 64px 24px 32px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--blue-300); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}
.footer-warn { display: flex; align-items: center; gap: 7px; }
.footer-warn i { color: #fbbf24; }

/* ── Back to Top ───────────────────────────────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 30px; right: 30px;
  z-index: 999;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: var(--transition);
}
.back-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { padding-top: 0; transform: rotate(90deg); }
  .step { max-width: 100%; width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 16px; border-radius: var(--radius-sm); }
  .hero { padding: 100px 16px 60px; }
  .dl-card { padding: 20px 16px; }
  .dl-input-row { flex-direction: column; }
  .analyze-btn { width: 100%; justify-content: center; height: 52px; }
  .video-card { flex-direction: column; }
  .vc-thumb-wrap { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hs-item { padding: 12px 14px; }
  .hs-item strong { font-size: 1rem; }
}

@media (max-width: 400px) {
  .hero-stats { flex-direction: column; border-radius: var(--radius-lg); width: 100%; }
  .hs-sep { width: 80%; height: 1px; }
}

/* ── Animations d'entrée ───────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: none; }
