/* ===== Variables ===== */
:root {
  --blue: #1a56db;
  --blue-dark: #1040a0;
  --blue-light: #dbeafe;
  --accent: #e8a838;
  --accent-light: #fef3c7;
  --text: #111827;
  --text-mid: #374151;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  line-height: 1.25;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-mid);
  color: var(--text);
}

.btn-white {
  background: #fff;
  color: var(--blue);
  font-weight: 700;
}

.btn-white:hover {
  box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}

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

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

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
  padding: 10px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.navbar-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.navbar-brand-text {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--blue);
}

.navbar-menu {
  display: flex;
  gap: 36px;
}

.navbar-menu a {
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  font-size: 0.92rem;
}

.navbar-menu a:hover {
  color: var(--text);
}

.navbar-cta {
  font-size: 0.88rem;
  padding: 9px 22px;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #fafbff;
  padding: 100px 0 60px;
}

/* Fond décoratif */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 500px 400px at 82% 12%, rgba(26, 86, 219, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 400px 350px at 8% 75%, rgba(232, 168, 56, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 300px 250px at 20% 20%, rgba(26, 86, 219, 0.04) 0%, transparent 70%);
}

/* Vague décorative en bas */
.hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* Formes flottantes */
.hero-deco {
  position: absolute;
  pointer-events: none;
}

.hero-deco-1 {
  top: 16%;
  left: 7%;
  width: 80px;
  height: 80px;
  border: 2.5px solid rgba(26, 86, 219, 0.12);
  border-radius: 20px;
  transform: rotate(20deg);
  animation: hero-float-1 7s ease-in-out infinite;
}

.hero-deco-2 {
  top: 14%;
  right: 9%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2.5px solid rgba(26, 86, 219, 0.08);
  animation: hero-float-2 9s ease-in-out infinite;
}

.hero-deco-2::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border-radius: 50%;
  border: 2px dashed rgba(26, 86, 219, 0.06);
}

.hero-deco-3 {
  bottom: 12%;
  left: 8%;
  width: 56px;
  height: 56px;
  background: rgba(26, 86, 219, 0.05);
  border-radius: 14px;
  transform: rotate(-15deg);
  animation: hero-float-3 8s ease-in-out infinite;
}

.hero-deco-4 {
  bottom: 8%;
  right: 7%;
  width: 44px;
  height: 44px;
  border: 2.5px solid rgba(232, 168, 56, 0.18);
  border-radius: 50%;
  animation: hero-float-2 6s ease-in-out infinite reverse;
}

.hero-deco-5 {
  top: 42%;
  left: 4%;
  width: 12px;
  height: 12px;
  background: rgba(26, 86, 219, 0.15);
  border-radius: 50%;
  animation: hero-float-1 5s ease-in-out infinite;
}

.hero-deco-6 {
  top: 50%;
  right: 5%;
  width: 10px;
  height: 10px;
  background: rgba(232, 168, 56, 0.18);
  border-radius: 50%;
  animation: hero-float-3 6s ease-in-out infinite;
}

.hero-deco-line {
  position: absolute;
  pointer-events: none;
}

.hero-deco-line-1 {
  top: 30%;
  left: 12%;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, rgba(26, 86, 219, 0.12), transparent);
  transform: rotate(-30deg);
}

.hero-deco-line-2 {
  bottom: 22%;
  right: 13%;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(232, 168, 56, 0.15));
  transform: rotate(20deg);
}

@keyframes hero-float-1 {
  0%, 100% { transform: translateY(0) rotate(20deg); }
  50% { transform: translateY(-16px) rotate(20deg); }
}

@keyframes hero-float-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes hero-float-3 {
  0%, 100% { transform: translateY(0) rotate(-15deg); }
  50% { transform: translateY(-18px) rotate(-15deg); }
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-accent {
  color: var(--blue);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.hero-proof-item {
  font-size: 0.92rem;
  color: var(--text-light);
}

.hero-proof-item strong {
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-proof-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.hero-scroll {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(26, 86, 219, 0.2);
  border-radius: 12px;
  margin: 24px auto 0;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--blue);
  border-radius: 2px;
  margin-top: 6px;
  animation: scroll-bounce 1.8s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(12px); opacity: 0.2; }
}

/* ===== Sections ===== */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-intro {
  margin-bottom: 56px;
}

.section-intro h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.section-intro p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 520px;
}

/* ===== Products ===== */

/* Carte principale - full width, layout horizontal */
.product-main {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 24px;
}

.product-main-content h3 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.product-main-content h3 span {
  color: var(--accent);
}

.product-main-content p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  line-height: 1.75;
  font-size: 1rem;
}

.product-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.product-main .product-platforms {
  border-top: none;
  padding-top: 0;
}

.product-main .platform-badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.product-main-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  list-style: none;
}

.product-main-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}

.product-main-features li i {
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Grille 3 apps mobiles */
.products-mobile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-icon-small {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 1.1rem;
}

.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.product-card h3 span {
  color: var(--blue);
}

.product-card > p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
}

.product-list li {
  font-size: 0.85rem;
  color: var(--text-mid);
  padding-left: 18px;
  position: relative;
}

.product-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.78rem;
}

.product-platforms {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--bg-alt);
}

.product-platforms a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.product-platforms a:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.product-platforms a.coming-soon {
  color: var(--text-light);
  pointer-events: none;
  opacity: 0.5;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.feature-item:hover {
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
  font-size: 1rem;
}

.feature-item h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== Why Major ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
  background: var(--bg);
}

.why-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.why-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ===== Steps ===== */
.steps {
  display: flex;
  gap: 32px;
  counter-reset: none;
}

.step {
  flex: 1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.step-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== CTA ===== */
.cta {
  padding: 80px 0 96px;
}

.cta-inner {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
}

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

.cta-inner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cta-contact {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-logo span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-light);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-light);
}

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

.footer-legal a {
  color: var(--text-light);
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--text);
}

/* ===== Legal pages ===== */
.legal-page {
  padding-top: 100px;
  padding-bottom: 80px;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-page .legal-date {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--blue);
}

.legal-page h3 {
  font-size: 1.05rem;
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-page p {
  margin-bottom: 14px;
  color: var(--text-mid);
}

.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}

.legal-page ul li {
  margin-bottom: 6px;
  color: var(--text-mid);
}

.legal-page a {
  color: var(--blue);
  text-decoration: underline;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 32px;
  transition: var(--transition);
}

.legal-back:hover {
  gap: 12px;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE - Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.6rem;
  }

  .product-main {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 28px;
  }

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

  .products-mobile-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

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

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

}

/* ============================================
   RESPONSIVE - Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hero-deco,
  .hero-deco-line {
    display: none;
  }

  .navbar-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
  }

  .navbar-menu.open {
    display: flex;
  }

  .navbar-menu a {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
  }

  .navbar-cta {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 64px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .hero-actions {
    margin-bottom: 40px;
  }

  .hero-proof {
    flex-direction: column;
    gap: 12px;
  }

  .hero-proof-sep {
    width: 40px;
    height: 1px;
  }

  .section {
    padding: 64px 0;
  }

  .section-intro {
    margin-bottom: 36px;
  }

  .section-intro h2 {
    font-size: 1.6rem;
  }

  .product-main {
    padding: 24px 20px;
    gap: 20px;
  }

  .product-main-content h3 {
    font-size: 1.4rem;
  }

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

  .products-mobile-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-card {
    padding: 22px 18px;
  }

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

  .feature-item {
    padding: 14px 16px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .why-card {
    padding: 22px 20px;
  }

  .steps {
    flex-direction: column;
    gap: 20px;
  }

  .cta {
    padding: 48px 0 64px;
  }

  .cta-inner {
    padding: 40px 20px;
  }

  .cta-inner h2 {
    font-size: 1.5rem;
  }

  .cta-contact {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .footer-top {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ============================================
   RESPONSIVE - Small mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

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

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

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

  .btn-lg {
    padding: 13px 24px;
    font-size: 0.92rem;
    width: 100%;
  }

  .section {
    padding: 48px 0;
  }

  .section-intro h2 {
    font-size: 1.4rem;
  }

  .section-intro p {
    font-size: 0.92rem;
  }

  .cta-inner {
    padding: 32px 16px;
  }

  .cta-inner h2 {
    font-size: 1.3rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== Touch fix ===== */
@media (hover: none) {
  .product-card:hover,
  .feature-item:hover,
  .why-card:hover {
    box-shadow: none;
    border-color: var(--border);
    background: transparent;
  }

  .section-alt .feature-item:hover {
    background: transparent;
  }

  .btn:active {
    transform: scale(0.97);
  }
}
