@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');

:root {
  --color-bg: #0a0a0a;
  --color-bg-card: #111;
  --color-bg-alt: #161616;
  --color-accent: #00d4ff;
  --color-accent-dark: #009ec2;
  --color-text: #fff;
  --color-text-secondary: rgba(255,255,255,0.55);
  --color-border: rgba(255,255,255,0.08);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --skew: -4deg;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ─── STRIPES ─── */
.stripes { display: inline-flex; gap: 4px; }
.stripes span {
  display: block; width: 6px; height: 28px;
  background: var(--color-accent);
  transform: skewX(var(--skew));
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 40px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.3s;
}
nav.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}
nav.nav-solid {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-logo-icon {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2px;
  width: 28px; height: 28px;
}
.nav-logo-icon span { background: var(--color-accent); border-radius: 2px; }
.nav-logo-icon span:nth-child(1) { grid-column: 1; grid-row: 1; }
.nav-logo-icon span:nth-child(2) { grid-column: 2; grid-row: 1; }
.nav-logo-icon span:nth-child(3) { grid-column: 1; grid-row: 2; }
.nav-logo-icon span:nth-child(4) { grid-column: 2; grid-row: 2; }
.nav-logo-icon span:nth-child(5) { grid-column: 3; grid-row: 2; }
.nav-brand {
  font-family: var(--font-display);
  font-size: 24px; letter-spacing: 5px;
  color: var(--color-text); text-decoration: none;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500; text-decoration: none;
  color: var(--color-text-secondary);
  text-transform: uppercase; letter-spacing: 1.5px;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--color-accent); }
.nav-cta-btn {
  background: var(--color-accent) !important;
  color: #000 !important;
  padding: 10px 24px !important;
  font-weight: 700 !important;
  transform: skewX(var(--skew));
  transition: all 0.2s !important;
}
.nav-cta-btn:hover { background: #fff !important; }
.nav-cta-btn span { display: inline-block; transform: skewX(4deg); }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 9999;
  background: none;
  border: none;
  padding: 10px;
  position: relative;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-text, #fff);
  transition: all 0.3s ease;
  transform-origin: center center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ─── MOBILE MENU ─── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  background: var(--color-bg, #0a0a0a);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 32px; letter-spacing: 4px;
  color: var(--color-text); text-decoration: none;
  opacity: 0; transform: translateY(20px); animation: fadeUp 0.4s forwards;
}
.mobile-menu a:nth-of-type(1) { animation-delay: 0.05s; }
.mobile-menu a:nth-of-type(2) { animation-delay: 0.1s; }
.mobile-menu a:nth-of-type(3) { animation-delay: 0.15s; }
.mobile-menu a:nth-of-type(4) { animation-delay: 0.2s; }
.mobile-menu a:nth-of-type(5) { animation-delay: 0.25s; }
.mobile-menu a:nth-of-type(6) { animation-delay: 0.3s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ─── CLOSE BUTTON (inside mobile menu) ─── */
.close-menu {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-menu span {
  position: absolute;
  width: 28px;
  height: 2px;
  background: var(--color-accent, #00d4ff);
}
.close-menu span:first-child { transform: rotate(45deg); }
.close-menu span:last-child { transform: rotate(-45deg); }
.close-menu:hover span { background: #fff; }

/* ─── BUTTONS ─── */
.btn-skew {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  text-decoration: none; border: none; cursor: pointer;
  transform: skewX(var(--skew)); transition: all 0.2s;
}
.btn-skew span { display: inline-block; transform: skewX(4deg); }
.btn-accent { background: var(--color-accent); color: #000; }
.btn-accent:hover { background: #fff; }
.btn-ghost {
  background: transparent; color: var(--color-text);
  border: 2px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-dark { background: #000; color: var(--color-accent); }
.btn-dark:hover { background: #222; }

/* ─── CONTAINER ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 40px; }

/* ─── PAGE HERO (secondary pages) ─── */
.page-hero { padding: 160px 0 60px; text-align: center; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-style: italic; letter-spacing: 2px; line-height: 1;
}
.page-hero .tag {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 4px;
  color: var(--color-accent); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px; justify-content: center;
}
.page-hero .tag::before,
.page-hero .tag::after { content: ''; width: 40px; height: 2px; background: var(--color-accent); }
.page-hero p {
  font-size: 16px; color: var(--color-text-secondary);
  margin-top: 16px; max-width: 520px; margin-left: auto; margin-right: auto;
}
.update-date { font-size: 13px; color: var(--color-text-secondary); text-align: center; margin-top: 8px; }

/* ─── SECTION COMMON ─── */
section { padding: 120px 0; overflow-x: hidden; max-width: 100vw; }
footer { overflow-x: hidden; }
.section-header { margin-bottom: 64px; }
.section-label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 4px;
  color: var(--color-accent); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 40px; height: 2px; background: var(--color-accent); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-style: italic; line-height: 1; letter-spacing: 2px;
}
.section-subtitle {
  font-size: 16px; line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 500px; margin-top: 16px;
}

/* ─── LEGAL CONTENT ─── */
.legal-content { padding: 0 0 120px; }
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 28px; font-style: italic; letter-spacing: 2px;
  color: var(--color-accent); margin: 48px 0 16px;
  padding-top: 16px; border-top: 1px solid var(--color-border);
}
.legal-content h2:first-of-type { border-top: none; margin-top: 0; }
.legal-content p { font-size: 15px; line-height: 1.8; color: var(--color-text-secondary); margin-bottom: 12px; }
.legal-content strong { color: var(--color-text); }
.legal-content ul { list-style: none; margin: 12px 0 20px; }
.legal-content li {
  font-size: 14px; line-height: 1.7; color: var(--color-text-secondary);
  padding: 6px 0 6px 20px; position: relative;
}
.legal-content li::before { content: '›'; color: var(--color-accent); position: absolute; left: 0; font-weight: 700; }

/* ─── FAQ ─── */
.faq-item {
  border: 1px solid var(--color-border);
  padding: 20px 24px; cursor: pointer; transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--color-accent); }
.faq-q {
  font-weight: 700; font-size: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: '+'; color: var(--color-accent); font-size: 20px; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  max-height: 0; overflow: hidden;
  font-size: 14px; line-height: 1.7; color: var(--color-text-secondary);
  transition: all 0.3s;
}
.faq-item.open .faq-a { max-height: 200px; padding-top: 12px; }

/* ─── FOOTER (simple — secondary pages) ─── */
.footer-simple { background: var(--color-bg); border-top: 1px solid var(--color-border); padding: 40px 0; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--color-text-secondary); flex-wrap: wrap; gap: 16px;
}
.footer-inner a { color: var(--color-text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-inner a:hover { color: var(--color-accent); }
.footer-links { display: flex; gap: 24px; }

/* ─── SCROLL ANIMATIONS (bidirectionnelles) ─── */
.anim {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim.anim--left  { transform: translateX(-60px) translateY(0); }
.anim.anim--right { transform: translateX(60px) translateY(0); }
.anim.anim--scale { transform: scale(0.9); }
.anim.show {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.anim-group > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-group.show > *:nth-child(1) { transition-delay: 0.05s; }
.anim-group.show > *:nth-child(2) { transition-delay: 0.15s; }
.anim-group.show > *:nth-child(3) { transition-delay: 0.25s; }
.anim-group.show > *:nth-child(4) { transition-delay: 0.35s; }
.anim-group.show > *:nth-child(5) { transition-delay: 0.45s; }
.anim-group.show > *:nth-child(6) { transition-delay: 0.55s; }
.anim-group.show > * {
  opacity: 1;
  transform: translateY(0);
}
.anim-group:not(.show) > * {
  transition-delay: 0s !important;
}

/* ─── REVEAL (secondary pages) ─── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }

.reveal-left {
  opacity: 0; transform: translateX(-60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0; transform: translateX(60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-line {
  border-top-color: transparent !important;
  background-image: linear-gradient(var(--color-border), var(--color-border));
  background-size: 0% 1px;
  background-position: left top;
  background-repeat: no-repeat;
  transition: background-size 0.8s ease-out;
}
.reveal-line.visible { background-size: 100% 1px; }
.legal-content h2:first-of-type.reveal-line.visible { background-size: 0% 1px; }

/* ─── ACCESSIBILITY ─── */
@media (prefers-reduced-motion: reduce) {
  .anim, .anim-group > *,
  .reveal, .reveal-stagger > *, .reveal-left, .reveal-right, .reveal-line {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    background-size: 100% 1px !important;
  }
}

/* ─── PLAN TABLE (terms) ─── */
.plan-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plan-table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; }
.plan-table th, .plan-table td { padding: 12px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--color-border); }
.plan-table th { color: var(--color-accent); font-family: var(--font-display); font-size: 16px; font-style: italic; letter-spacing: 2px; }
.plan-table td { color: var(--color-text-secondary); }

/* ─── INFO GRID (legal) ─── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0; }
.info-card { border: 1px solid var(--color-border); padding: 28px 24px; }
.info-card h3 { font-family: var(--font-display); font-size: 18px; font-style: italic; letter-spacing: 2px; color: var(--color-accent); margin-bottom: 8px; }
.info-card p { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 4px; }

/* ═══════════════════════════════════════════
   TABLETTE (max-width: 900px)
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none !important; }
  .hamburger { display: flex !important; }

  .container { padding: 0 24px; }
  .container-narrow { padding: 0 24px; }
  section { padding: 80px 0; }

  .hero { grid-template-columns: 1fr !important; min-height: auto; }
  .hero-left { padding: 120px 32px 40px; }
  .hero-right { height: 280px; }
  .hero-stripes { top: 20px; right: 24px; }
  .hero-bottom-bar { display: none; }

  .intro-section { grid-template-columns: 1fr !important; }
  .intro-left { padding: 60px 32px; }
  .intro-right { height: 220px; }
  .intro-cards { grid-template-columns: 1fr !important; }

  .challenges-grid { grid-template-columns: 1fr !important; }

  .why-grid { grid-template-columns: 1fr !important; }
  .why-left { padding-right: 0; }
  .why-right { height: 220px; min-height: auto; }

  .pricing-grid { grid-template-columns: 1fr !important; }
  .plan-card { border-right: 1px solid var(--color-border) !important; }
  .plan-card.featured { transform: none !important; }

  .deals-grid { grid-template-columns: 1fr !important; gap: 40px; }

  .testimonials-grid { grid-template-columns: 1fr !important; }

  .contact-grid { grid-template-columns: 1fr !important; }

  .faq-grid { grid-template-columns: 1fr !important; }

  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 40px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .page-hero { padding: 120px 0 40px; }
  .page-hero h1 { font-size: clamp(32px, 8vw, 64px); }

  .legal-content h2 { font-size: 24px; margin: 36px 0 12px; }

  .info-grid { grid-template-columns: 1fr !important; }

  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 10px 8px; }

  .plan-table th, .plan-table td { padding: 8px 10px; font-size: 12px; }

  .cta-section { padding: 100px 0; }
}

/* ═══════════════════════════════════════════
   MOBILE (max-width: 600px)
   ═══════════════════════════════════════════ */
@media (max-width: 600px) {
  nav { padding: 14px 16px; }
  .nav-brand { font-size: 20px; letter-spacing: 3px; }

  .container { padding: 0 16px; }
  .container-narrow { padding: 0 16px; }
  section { padding: 60px 0; }

  .hero-left { padding: 100px 20px 32px; }
  .hero h1 { font-size: clamp(40px, 14vw, 80px) !important; }
  .hero p { font-size: 14px; }
  .hero-right { height: 200px; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn-skew { width: 100%; justify-content: center; }

  .section-title { font-size: clamp(32px, 9vw, 56px) !important; }
  .section-subtitle { font-size: 14px; }
  .section-label { font-size: 11px; letter-spacing: 3px; }

  .challenge-number { font-size: 48px; min-width: 60px; }
  .challenge-text h3 { font-size: 18px; }
  .challenge-text p { font-size: 13px; }

  .intro-left { padding: 48px 20px; }
  .intro-card { padding: 16px 20px; }

  .plan-card { padding: 36px 24px; }
  .plan-price { font-size: 36px; }
  .plan-name { font-size: 28px; }

  .deal-card { padding: 20px 24px; }
  .deal-card h4 { font-size: 17px; }

  .testimonial-card { padding: 28px 20px; }
  .testimonial-quote { font-size: 14px; }

  .cta-buttons { flex-direction: column; width: 100%; padding: 0 20px; }
  .cta-buttons .btn-skew { width: 100%; justify-content: center; }

  .contact-icon { width: 44px; height: 44px; font-size: 18px; }
  .contact-form input, .contact-form textarea { padding: 12px 14px; }

  .faq-item { padding: 16px 18px; }
  .faq-section { padding: 60px 0 80px; }

  .footer-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-brand-text { font-size: 24px; }
  .footer-inner { padding: 0 16px; }

  .page-hero { padding: 100px 0 32px; }
  .page-hero h1 { font-size: clamp(28px, 10vw, 48px) !important; }
  .page-hero p { font-size: 14px; padding: 0 8px; }

  .legal-content p { font-size: 14px; }
  .legal-content h2 { font-size: 22px; margin: 32px 0 10px; }
  .legal-content li { font-size: 13px; }

  .compare-section { overflow-x: auto; }
  .compare-table { min-width: 500px; }

  .marquee-track { gap: 32px; }
  .marquee-track span { font-size: 14px; }

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

  .hero-bottom-stripes,
  .cta-stripes { display: none; }
}

/* ═══════════════════════════════════════════
   PETIT MOBILE (max-width: 380px)
   ═══════════════════════════════════════════ */
@media (max-width: 380px) {
  .hero h1 { font-size: 36px !important; }
  .section-title { font-size: 28px !important; }
  .plan-price { font-size: 32px; }
  .challenge-number { font-size: 40px; min-width: 50px; }
  .page-hero h1 { font-size: 26px !important; }
  .nav-brand { font-size: 18px; letter-spacing: 2px; }
  .mobile-menu a { font-size: 26px; }
}
