/* =============================================================
   style.css — Site web Video Downloader
   Redesign moderne 2026
   ============================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

/* ------------------------------------------------------------- */
/*  Reset & variables                                             */
/* ------------------------------------------------------------- */

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

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-deeper: #1e40af;
  --blue-light: #dbeafe;
  --blue-xlight: #eff6ff;
  --accent: #0ea5e9;
  --accent2: #6366f1;
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  --gradient-hero: linear-gradient(
    135deg,
    #1e3a8a 0%,
    #1d4ed8 45%,
    #0369a1 100%
  );
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 10px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.04), 0 24px 48px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "Fira Code", "Consolas", "Courier New", monospace;
  --nav-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------------------- */
/*  Typographie                                                   */
/* ------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--blue-xlight);
  border: 1px solid var(--blue-light);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--blue-dark);
}

kbd {
  font-family: var(--mono);
  font-size: 0.83em;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 5px;
  padding: 1px 7px;
  color: var(--text);
}

/* ------------------------------------------------------------- */
/*  Utilitaires layout                                            */
/* ------------------------------------------------------------- */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-xlight);
  border: 1px solid var(--blue-light);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ------------------------------------------------------------- */
/*  Boutons                                                       */
/* ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.2s;
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.07);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 12px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-white:hover {
  background: var(--blue-xlight);
  color: var(--blue-dark);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ------------------------------------------------------------- */
/*  Navbar                                                        */
/* ------------------------------------------------------------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  height: var(--nav-h);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition:
    box-shadow 0.3s var(--ease),
    background 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand svg {
  color: var(--blue);
}

.nav-brand:hover {
  color: var(--blue);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}

.nav-links a:hover {
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}

.nav-links a[href*="github"] {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}

.nav-links a[href*="github"]:hover {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  margin-left: auto;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
  display: block;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------------------------------------------- */
/*  Hero                                                          */
/* ------------------------------------------------------------- */

.hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: 96px 0 80px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 80% at 20% 50%,
      rgba(14, 165, 233, 0.22) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 60% at 80% 20%,
      rgba(99, 102, 241, 0.18) 0%,
      transparent 55%
    );
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

.hero-container--centered {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 760px;
}

.hero-text--centered .hero-desc {
  margin-left: auto;
  margin-right: auto;
}

.hero-text--centered .hero-actions {
  justify-content: center;
}

.hero-features-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-text h1 .accent {
  background: linear-gradient(90deg, #93c5fd 0%, #e0f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-compat {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.compat-pill {
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  padding: 4px 12px;
  color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  transition:
    background 0.15s,
    border-color 0.15s;
}

.compat-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Grille compacte de fonctionnalités */
.features-grid--compact {
  margin-top: 56px;
}

/* ------------------------------------------------------------- */
/*  Fonctionnalités                                               */
/* ------------------------------------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0) 0%,
    rgba(14, 165, 233, 0.03) 100%
  );
  opacity: 0;
  transition: opacity 0.25s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-light);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--bg, #eff6ff);
  color: var(--c, var(--blue));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ------------------------------------------------------------- */
/*  Steps (how-to)                                               */
/* ------------------------------------------------------------- */

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 240px;
  flex: 1;
  min-width: 180px;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.step-body h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.step-arrow {
  padding: 0 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 14px;
  opacity: 0.5;
}

.install-instructions {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.install-instructions h3 {
  font-size: 17px;
  margin-bottom: 20px;
}

.install-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.install-step {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.install-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ------------------------------------------------------------- */
/*  Outil web                                                     */
/* ------------------------------------------------------------- */

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tool-limitation-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff8e7;
  border: 1px solid #ffd87a;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: #7a5800;
  line-height: 1.5;
}

.tool-limitation-note svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #e6a817;
}

/* Formulaire */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.required {
  color: #e74c3c;
  font-size: 14px;
  line-height: 1;
}

.form-group input[type="url"],
.form-group input[type="text"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.12);
}

.form-group input::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.input-with-clear {
  position: relative;
}

.input-with-clear input {
  padding-right: 40px;
}

.btn-icon-clear {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition:
    background 0.15s,
    color 0.15s;
  padding: 0;
}

.btn-icon-clear:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.field-hint {
  font-size: 12px;
  color: #c05600;
  background: #fff8e7;
  border: 1px solid #ffd87a;
  border-radius: 6px;
  padding: 7px 10px;
  line-height: 1.5;
}

/* Info vidéo détectée */
.video-info {
  background: var(--blue-xlight);
  border: 1.5px solid var(--blue-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.info-label {
  color: var(--text-muted);
  font-weight: 500;
  min-width: 130px;
}

.info-value {
  font-weight: 600;
  color: var(--text);
}

.info-value.type-progressive {
  color: #16a34a;
}
.info-value.type-dash-video {
  color: #d97706;
}
.info-value.type-dash-audio {
  color: #7c3aed;
}
.info-value.type-unknown {
  color: var(--text-muted);
}

/* Feedback */
.feedback {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.feedback.success {
  background: #dcfce7;
  color: #14532d;
  border: 1px solid #86efac;
}

.feedback.error {
  background: #fee2e2;
  color: #7f1d1d;
  border: 1px solid #fca5a5;
}

.feedback.info {
  background: var(--blue-xlight);
  color: #1e3a5f;
  border: 1px solid var(--blue-light);
}

/* Script console copiable */
.guide-method-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}

.script-block {
  position: relative;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  padding-right: 80px;
  margin-bottom: 6px;
}

.script-block pre {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #94a3b8;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.55;
  margin: 0;
  max-height: 72px;
  overflow: hidden;
}

.btn-copy-script {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition:
    opacity 0.15s,
    transform 0.15s;
  white-space: nowrap;
}

.btn-copy-script:hover {
  opacity: 0.88;
}

.btn-copy-script.copied {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.guide-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0 0;
}

/* Guide latéral */
.tool-guide {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.tool-guide h3 {
  font-size: 15px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-guide h3 svg {
  color: var(--blue);
  flex-shrink: 0;
}

.guide-steps {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.guide-steps li strong {
  color: var(--text);
}

.guide-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}

.guide-tip:last-child {
  margin-bottom: 0;
}

.guide-tip svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #e67e22;
}

.guide-tip-ext svg {
  color: var(--blue);
}

/* ------------------------------------------------------------- */
/*  CTA install                                                   */
/* ------------------------------------------------------------- */

.section-cta {
  background: var(--gradient-hero);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 50% 80% at 10% 60%,
      rgba(14, 165, 233, 0.25) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 40% 60% at 90% 30%,
      rgba(99, 102, 241, 0.2) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.cta-card {
  text-align: center;
  color: #fff;
}

.cta-card h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 12px;
}

.cta-card p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

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

/* ------------------------------------------------------------- */
/*  Footer                                                        */
/* ------------------------------------------------------------- */

.footer {
  background: #0a0f1a;
  color: rgba(255, 255, 255, 0.6);
  padding: 44px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  margin-bottom: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.footer-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* ------------------------------------------------------------- */
/*  Animations                                                    */
/* ------------------------------------------------------------- */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 0.75s linear infinite;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-text {
  animation: fadeUp 0.7s var(--ease) both;
}

.hero-features-pills {
  animation: fadeUp 0.7s 0.15s var(--ease) both;
}

/* ------------------------------------------------------------- */
/*  Mode sombre                                                   */
/* ------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #60a5fa;
    --blue-dark: #3b82f6;
    --blue-light: rgba(96, 165, 250, 0.15);
    --blue-xlight: rgba(96, 165, 250, 0.07);
    --accent: #38bdf8;
    --accent2: #818cf8;
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #38bdf8 100%);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #334155;
    --bg: #0f172a;
    --card: #1e293b;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.2), 0 10px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 0 3px rgba(96, 165, 250, 0.2);
  }

  .navbar {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: rgba(51, 65, 85, 0.8);
  }

  .navbar.scrolled {
    background: rgba(15, 23, 42, 0.97);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.04),
      var(--shadow-md);
  }

  code,
  kbd {
    background: #1e293b;
    border-color: var(--border);
    color: #bfdbfe;
  }

  .tool-limitation-note {
    background: rgba(120, 53, 15, 0.3);
    border-color: rgba(180, 83, 9, 0.5);
    color: #fcd34d;
  }

  .field-hint {
    background: rgba(120, 53, 15, 0.2);
    border-color: rgba(180, 83, 9, 0.4);
    color: #fbbf24;
  }

  .video-info {
    background: rgba(96, 165, 250, 0.07);
    border-color: rgba(96, 165, 250, 0.2);
  }

  .card,
  .feature-card,
  .tool-card,
  .tool-guide {
    background: var(--card);
    border-color: var(--border);
  }

  .script-block {
    background: #020817;
    border-color: #0f172a;
  }

  .feedback.success {
    background: #052e16;
    color: #86efac;
    border-color: #166534;
  }

  .feedback.error {
    background: #450a0a;
    color: #fca5a5;
    border-color: #7f1d1d;
  }

  .feedback.info {
    background: rgba(96, 165, 250, 0.08);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.2);
  }

  .guide-tip {
    background: #0f172a;
    border-color: var(--border);
  }

  .install-instructions {
    background: #0f172a;
  }

  .menu-toggle span {
    background: var(--text);
  }

  .nav-links {
    background: rgba(15, 23, 42, 0.98);
    border-color: var(--border);
  }

  .section-label {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.2);
    color: #93c5fd;
  }

  .section-cta::before {
    opacity: 0.6;
  }
}

/* ------------------------------------------------------------- */
/*  Responsive                                                    */
/* ------------------------------------------------------------- */

@media (max-width: 940px) {
  .hero-text h1 {
    font-size: 2.3rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-layout {
    grid-template-columns: 1fr;
  }

  .tool-guide {
    position: static;
  }

  .install-steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--nav-h) - 1px);
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 15px;
    padding: 10px 14px;
  }

  .navbar {
    position: sticky;
  }

  .section {
    padding: 56px 0;
  }

  .section-header h2 {
    font-size: 1.65rem;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero-text h1 {
    font-size: 1.9rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  .cta-card h2 {
    font-size: 1.65rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-container {
    padding: 0 16px;
  }

  .hero-text h1 {
    font-size: 1.65rem;
  }

  .btn-lg {
    padding: 11px 18px;
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .tool-card {
    padding: 20px 16px;
  }
}
