/* ========== SHARED CSS — Landing Pages ========== */
/* Factorized from index.html, pro.html, starter.html */

/* ========== CUSTOM PROPERTIES ========== */
:root {
  --blue: #3B82F6;
  --blue-dark: #2563EB;
  --blue-light: #60A5FA;
  --blue-glow: rgba(59, 130, 246, 0.4);
  --green: #22C55E;
  --green-light: #4ADE80;
  --amber: #F59E0B;
  --amber-light: #FBBF24;
  --red: #EF4444;
  --red-light: #F87171;

  --bg-dark-1: #112244;
  --bg-dark-2: #0a1929;
  --bg-dark-card: rgba(12, 34, 66, 0.65);
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;

  --text-white: #F8FAFC;
  --text-gray-100: #F1F5F9;
  --text-gray-200: #E2E8F0;
  --text-gray-300: #CBD5E1;
  --text-gray-400: #94A3B8;
  --text-gray-500: #64748B;
  --text-gray-600: #475569;
  --text-gray-700: #334155;
  --text-gray-800: #1E293B;
  --text-gray-900: #0F172A;

  --border-dark: rgba(148, 163, 184, 0.1);
  --border-light: #E2E8F0;

  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 2px 8px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-blue: 0 0 30px rgba(59, 130, 246, 0.3);

  --nav-height: 72px;
  --section-padding: 120px;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-gray-800);
  background: var(--bg-white);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

@keyframes heroEntrance {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes btnShine {
  to { left: 100%; }
}

/* ========== ANIMATE ON SCROLL ========== */
.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.is-visible {
  animation: fadeInUp 0.7s ease forwards;
}

.animate-on-scroll.is-visible:nth-child(2) { animation-delay: 0.1s; }
.animate-on-scroll.is-visible:nth-child(3) { animation-delay: 0.2s; }
.animate-on-scroll.is-visible:nth-child(4) { animation-delay: 0.3s; }
.animate-on-scroll.is-visible:nth-child(5) { animation-delay: 0.4s; }
.animate-on-scroll.is-visible:nth-child(6) { animation-delay: 0.5s; }
.animate-on-scroll.is-visible:nth-child(7) { animation-delay: 0.6s; }
.animate-on-scroll.is-visible:nth-child(8) { animation-delay: 0.7s; }

.stagger-children .animate-on-scroll.is-visible:nth-child(1) { animation-delay: 0s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(2) { animation-delay: 0.1s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(3) { animation-delay: 0.15s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(4) { animation-delay: 0.2s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(5) { animation-delay: 0.25s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(6) { animation-delay: 0.3s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(7) { animation-delay: 0.35s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(8) { animation-delay: 0.4s; }

/* ========== GRADIENT TEXT ========== */
.gradient-text {
  background: linear-gradient(135deg, #60A5FA, #2563EB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== NOISE OVERLAY ========== */
.noise-overlay {
  display: none;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 0 var(--blue-glow);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.btn-primary:hover::after {
  animation: btnShine 0.6s ease;
}
.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 0 30px var(--blue-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1.5px solid var(--text-gray-400);
}
.btn-outline:hover {
  border-color: var(--text-white);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-gray-700);
  border: 1.5px solid var(--border-light);
}
.btn-outline-dark:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
  border-radius: var(--radius);
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(17, 34, 68, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-dark);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.5px;
}
.nav-logo span {
  font-weight: 900;
}
.nav-logo .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: super;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--text-gray-300);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text-white);
}

.nav-cta { margin-left: 12px; }

/* ========== TARIFS DROPDOWN ========== */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  color: var(--text-gray-300);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.nav-dropdown:hover .nav-dropdown-trigger { color: var(--text-white); }
.nav-dropdown-chevron { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background: rgba(10, 22, 48, 0.98);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; }
/* Bridge transparent pour couvrir le gap entre trigger et menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 7px;
  color: var(--text-gray-300) !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-white) !important;
}
.nav-dropdown-menu a span {
  display: block;
  font-size: 12px;
  color: var(--text-gray-500);
  font-weight: 400;
  margin-top: 1px;
}

/* Mobile tarifs sub-links */
.mobile-sub-link {
  display: block;
  padding: 10px 20px 10px 36px;
  color: var(--text-gray-400);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-sub-link:hover { color: var(--text-white); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(5px) translateX(5px);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px) translateX(5px);
}

.mobile-menu {
  display: flex;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(17, 34, 68, 0.99);
  backdrop-filter: blur(16px);
  padding: 0 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  border-bottom: 1px solid var(--border-dark);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}
.mobile-menu.open {
  max-height: 400px;
  opacity: 1;
  padding: 24px;
}
.mobile-menu a {
  color: var(--text-gray-200);
  font-size: 17px;
  font-weight: 500;
  padding: 8px 0;
}
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ========== HERO (shared base) ========== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%);
  overflow: hidden;
  padding-top: var(--nav-height);
  padding-bottom: 0;
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.15;
}

.hero-grid::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 120%;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 8s linear infinite;
  transform-origin: bottom center;
}

.hero-grid::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(180deg, transparent, var(--bg-dark-2));
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 100px;
  color: var(--blue-light);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 32px;
}

.hero h1 {
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--text-white);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-gray-400);
  line-height: 1.6;
  margin-bottom: 48px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-reassurance {
  font-size: 14px;
  color: var(--text-gray-500);
}

/* ========== SECTIONS SHARED ========== */
.section { padding: var(--section-padding) 0; }
.section-dark {
  background: linear-gradient(180deg, var(--bg-dark-1), var(--bg-dark-2));
  color: var(--text-white);
}
.section-light {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 18px;
  color: var(--text-gray-500);
  line-height: 1.6;
}
.section-dark .section-header p {
  color: var(--text-gray-400);
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq-item:hover {
  border-color: var(--blue);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-gray-900);
  cursor: pointer;
  gap: 16px;
}
.faq-question i {
  width: 20px;
  height: 20px;
  color: var(--text-gray-400);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-question i {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-gray-500);
  line-height: 1.7;
}

/* ========== FINAL CTA ========== */
.final-cta {
  background: linear-gradient(180deg, var(--bg-dark-1), var(--bg-dark-2));
  padding: var(--section-padding) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1), transparent 70%);
  pointer-events: none;
}

.final-cta .container { position: relative; z-index: 2; }

.final-cta h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--text-white);
  margin-bottom: 16px;
}

.final-cta-reassurance {
  font-size: 14px;
  color: var(--text-gray-500);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-dark-2);
  border-top: 1px solid var(--border-dark);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand {}
.footer-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}
.footer-logo span { font-weight: 900; }
.footer-logo .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: super;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-gray-500);
  line-height: 1.6;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray-400);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-gray-500);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-white); }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-gray-600);
}

/* ========== FEATURE TILES (shared component) ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.feature-tile {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.feature-tile:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 8px 24px rgba(59,130,246,0.12);
  transform: translateY(-4px);
}

.feature-tile .card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-radius: inherit;
}
.feature-tile:hover .card-glow {
  opacity: 1;
}

.feature-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.feature-tile-icon.blue { background: rgba(59,130,246,0.1); color: var(--blue); }
.feature-tile-icon.green { background: rgba(34,197,94,0.1); color: var(--green); }
.feature-tile-icon.amber { background: rgba(245,158,11,0.1); color: var(--amber); }
.feature-tile-icon.red { background: rgba(239,68,68,0.1); color: var(--red); }
.feature-tile-icon.purple { background: rgba(139,92,246,0.1); color: #8B5CF6; }

.feature-tile-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-gray-900);
  line-height: 1.3;
}

.feature-tile-desc {
  font-size: 12px;
  color: var(--text-gray-500);
  margin-top: 6px;
  line-height: 1.4;
}

/* Compact variant (Pro page — Starter features recap) */
.feature-tile-compact {
  padding: 16px 12px;
}
.feature-tile-compact .feature-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.feature-tile-compact .feature-tile-name {
  font-size: 13px;
}

/* ========== FEATURES BLOCK (shared) ========== */
.features-block {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.features-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray-400);
  margin-bottom: 20px;
}

.features-separator {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 500px;
  margin: 32px auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.features-separator::before,
.features-separator::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.3), transparent);
}

/* ========== RESPONSIVE (shared) ========== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); max-width: 600px; }
}

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

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
    --nav-height: 64px;
  }

  .nav-links { display: none; }
  .nav-cta.desktop { display: none; }
  .nav-hamburger { display: flex; }

  .hero-subtitle { font-size: 16px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; justify-content: center; max-width: 320px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
