/* ============================================================
   KICKOFF SITE OFFICIEL — CSS partagé
   Pages : Home, Tarifs, Fonctionnalités, Démo, FAQ, Contact
   Dark mode · Mobile-first · Sans framework
   ============================================================ */

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

:root {
  /* Couleurs */
  --bg: #0a0a0f;
  --bg-light: #14141c;
  --bg-card: #1c1c28;
  --bg-elevated: #242434;
  --text: #ffffff;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --primary: #ef4444;
  --primary-glow: #f87171;
  --primary-dark: #b91c1c;
  --accent: #fb923c;
  --success: #22c55e;
  --info: #6366f1;
  --warning: #eab308;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --gradient-1: linear-gradient(135deg, #ef4444, #fb923c);
  --gradient-2: linear-gradient(135deg, #1e293b, #0f172a);
  --gradient-mesh: radial-gradient(at 30% 0%, rgba(239,68,68,0.15) 0px, transparent 50%),
                   radial-gradient(at 80% 30%, rgba(251,146,60,0.10) 0px, transparent 50%),
                   radial-gradient(at 0% 80%, rgba(99,102,241,0.10) 0px, transparent 50%);

  /* Typo */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-brand: 'Russo One', 'Space Grotesk', sans-serif;

  /* Espacements */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
  --shadow-glow-red: 0 8px 28px rgba(239,68,68,0.5);
  --shadow-glow-soft: 0 4px 20px rgba(239,68,68,0.35);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01", "cv11"; /* chiffres + glyphes Inter raffinés */
  overflow-x: hidden;
}

/* 🆕 v147 — Courbes d'easing premium (réutilisées partout) */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);     /* sortie douce, type Apple */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* léger rebond */
}

/* 🆕 Anneau de focus accessible et élégant (clavier uniquement) */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--primary-glow);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 🆕 Sélection de texte aux couleurs de la marque */
::selection { background: rgba(239,68,68,0.28); color: #fff; }

/* 🆕 Icônes SVG (remplacent les émojis) — héritent de la couleur du texte */
.ico { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.ico svg { width: 1em; height: 1em; display: block; }

/* 🆕 Respecte les préférences d'accessibilité (mouvement réduit) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   NAV TOP
   ============================================================ */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,10,15,0.7);
  border-bottom: 1px solid var(--border);
  padding: env(safe-area-inset-top) 0 0;
  transition: all 0.2s;
}
nav.top .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-brand);
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand-icon { width: 32px; height: 32px; border-radius: 8px; }
.brand .off { color: var(--primary); }
.brand-stack { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-sub { font-size: 9px; letter-spacing: 0.32em; color: var(--primary); font-weight: 600; text-transform: uppercase; margin-top: 3px; font-family: var(--font-brand, 'Russo One', sans-serif); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-card); }
.nav-links a.active { color: var(--text); background: var(--bg-card); }

@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-1);
  color: white !important;
  box-shadow: var(--shadow-glow-soft);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow-red); }
.btn-ghost {
  background: var(--bg-card);
  color: var(--text) !important;
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-light); border-color: var(--border-strong); }
.btn-outline {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { background: var(--bg-card); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-xl { padding: 18px 36px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============================================================
   SECTIONS / CONTAINERS / TYPO
   ============================================================ */
section { padding: 100px 24px; position: relative; }
section.compact { padding: 60px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 800px; margin: 0 auto; }
.container-wide { max-width: 1440px; margin: 0 auto; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h1 .accent {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.section-eyebrow {
  color: var(--primary-glow);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 auto 16px;
  max-width: 800px;
}
.section-title .accent {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 60px;
}

/* ============================================================
   HERO STANDARD (réutilisable pour pages secondaires)
   ============================================================ */
.page-hero {
  padding: 140px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-mesh);
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -50%; left: 50%;
  width: 800px; height: 800px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(239,68,68,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .inner {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(32px, 6vw, 60px);
  margin-bottom: 20px;
}
.page-hero p.sub {
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
}
.card:hover { border-color: var(--border-strong); }
.card.glow:hover {
  transform: translateY(-4px);
  border-color: rgba(239,68,68,0.4);
  box-shadow: 0 20px 60px rgba(239,68,68,0.15);
}

/* ============================================================
   BADGES / PILLS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.badge-primary {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.25);
  color: var(--primary-glow);
}
.badge-success {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.25);
  color: #4ade80;
}

/* ============================================================
   FORMULAIRES
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.2s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-dim); }
.form-help { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

/* ============================================================
   ACCORDION (FAQ)
   ============================================================ */
.accordion details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s;
}
.accordion details[open] {
  border-color: rgba(239,68,68,0.3);
  background: var(--bg-elevated);
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  font-size: 24px;
  color: var(--primary-glow);
  font-weight: 300;
  transition: transform 0.2s;
  line-height: 1;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details > div {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================================
   GRILLES UTILES
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* ============================================================
   PRICING CARDS (pour Home et Tarifs)
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.price-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.price-card.featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box, var(--gradient-1) border-box;
  box-shadow: 0 20px 60px rgba(239,68,68,0.2);
}
.price-card.featured::before {
  content: "★ Le plus populaire";
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-1);
  color: white;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(239,68,68,0.4);
  white-space: nowrap;
}
.price-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.price-amount .euro { font-size: 26px; vertical-align: top; margin-right: 2px; }
.price-period { color: var(--text-dim); font-size: 13px; margin-bottom: 22px; }
.price-features { list-style: none; margin: 16px 0 22px; padding: 0; flex: 1; }
.price-features li {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.price-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.price-features li.muted { color: var(--text-dim); }
.price-features li.muted::before { content: "—"; color: var(--text-dim); }
.price-card .btn { width: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 60px 24px 30px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { font-size: 24px; margin-bottom: 14px; }
.footer-brand .tagline { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 13px;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@keyframes shimmer {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}
@keyframes float {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, -40px) scale(1.1); }
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-accent {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-6 { margin-top: 40px; }
.mt-8 { margin-top: 60px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-6 { margin-bottom: 40px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
