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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #0b1220;
  color: #e5e7eb;
  line-height: 1.6;
}

h1, h2, h3, .hero-stat-num, .metric-num {
  font-family: 'Syne', system-ui, sans-serif;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 20px;
  background: rgba(10,15,30,0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(56,189,248,0.4));
}

.burger {
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* NAV MOBILE */
.nav {
  position: absolute;
  top: 60px;
  right: 20px;
  background: #111827;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  padding: 10px;
  width: 180px;
}

.nav a {
  padding: 10px;
  text-decoration: none;
  color: white;
  border-radius: 8px;
}

.nav a:hover {
  background: #1f2937;
}

.nav.active {
  display: flex;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 130px 20px 80px;
  text-align: center;
  overflow: hidden;
  background: #0b1220;
}

/* Grille de fond */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* Orbes colorés */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(30,58,138,0.6);
  top: -100px;
  left: 50%;
  transform: translateX(-60%);
}
.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(56,189,248,0.2);
  bottom: 0;
  right: 10%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeUp 0.9s ease both;
}

/* Badge animé */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid rgba(56,189,248,0.25);
  border-radius: 999px;
  font-size: 13px;
  color: #93c5fd;
  margin-bottom: 28px;
  background: rgba(56,189,248,0.05);
  letter-spacing: 0.01em;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-highlight {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 16px;
  color: rgba(229,231,235,0.75);
  font-weight: 300;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* Boutons CTA */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #fff;
  box-shadow: 0 4px 20px rgba(56,189,248,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56,189,248,0.4);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: #e5e7eb;
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
}

/* Stats hero */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

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

.hero-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(229,231,235,0.5);
  margin-top: 2px;
}

.hero-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.35;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, #38bdf8, transparent);
  animation: scrollDown 1.8s ease infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

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

/* ===================== SECTIONS ===================== */
.section {
  padding: 80px 20px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 14px;
  font-weight: 500;
}

.section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 15px;
  color: rgba(229,231,235,0.6);
  font-weight: 300;
  line-height: 1.7;
}

/* ===================== GRID & CARDS ===================== */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  position: relative;
  background: rgba(17,24,39,0.8);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 28px 24px;
  border-radius: 20px;
  text-align: left;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(56,189,248,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.card p {
  font-size: 14px;
  color: rgba(229,231,235,0.65);
  line-height: 1.7;
  margin-bottom: 18px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(229,231,235,0.6);
}

/* Carte featured */
.card-featured {
  background: linear-gradient(135deg, rgba(30,58,138,0.4), rgba(17,24,39,0.9));
  border-color: rgba(56,189,248,0.3);
}

.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56,189,248,0.15);
  color: #38bdf8;
  border: 1px solid rgba(56,189,248,0.3);
}

/* ===================== ABOUT ===================== */
.about-section {
  background: #0f172a;
  max-width: 100%;
  padding: 80px 20px;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.about-left {
  text-align: left;
}

.about-left h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 14px 0 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.about-left > p {
  font-size: 15px;
  color: rgba(229,231,235,0.65);
  line-height: 1.75;
  margin-bottom: 24px;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(229,231,235,0.8);
}

/* Métriques */
.about-right {
  position: relative;
}

.about-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.metric-card {
  background: rgba(17,24,39,0.8);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-card-accent {
  background: linear-gradient(135deg, rgba(30,58,138,0.5), rgba(17,24,39,0.9));
  border-color: rgba(56,189,248,0.25);
}

.metric-num {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.metric-plus {
  font-size: 20px;
  color: #38bdf8;
}

.metric-label {
  font-size: 13px;
  color: rgba(229,231,235,0.5);
}

.about-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: #38bdf8;
  filter: blur(100px);
  opacity: 0.1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ===================== CONTACT ===================== */
.contact-section {
  position: relative;
  padding: 100px 20px;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.15), transparent 30%),
    radial-gradient(circle at bottom right, rgba(59,130,246,0.15), transparent 30%),
    #070d18;
  overflow: hidden;
}

.contact-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

.contact-info {
  position: relative;
}

.contact-badge {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: #38bdf8;
  backdrop-filter: blur(10px);
}

.contact-info h2 {
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: white;
  font-family: 'Syne', system-ui, sans-serif;
}

.contact-info p {
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  font-size: 18px;
}

.contact-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: #38bdf8;
  filter: blur(120px);
  opacity: 0.2;
  top: -50px;
  left: -50px;
  z-index: 0;
}

/* FORM */
.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 35px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 25px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 10px 40px rgba(0,0,0,0.3),
    inset 0 1px 1px rgba(255,255,255,0.05);
}

.input-group {
  position: relative;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 20px 15px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  color: white;
  font-size: 16px;
  outline: none;
  transition: 0.3s;
  font-family: 'Inter', system-ui, sans-serif;
}

.input-group textarea {
  min-height: 140px;
  resize: vertical;
}

.input-group label {
  position: absolute;
  top: 16px;
  left: 15px;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
  transition: 0.25s;
  font-family: 'Inter', system-ui, sans-serif;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56,189,248,0.2);
}

.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
  top: 6px;
  font-size: 12px;
  color: #38bdf8;
}

/* BUTTON */
.submit-btn {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-family: 'Inter', system-ui, sans-serif;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(56,189,248,0.35);
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.6s;
}

.submit-btn:hover::before {
  left: 100%;
}

/* ===================== FOOTER ===================== */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  background: #020617;
}

/* ===================== POPUP ===================== */
.popup {
  position: fixed;
  top: 30px;
  right: 30px;
  padding: 16px 22px;
  border-radius: 14px;
  color: white;
  font-weight: 600;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(10px);
  transform: translateX(150%);
  transition: 0.4s ease;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.popup.show { transform: translateX(0); }
.popup.success { border-left: 5px solid #22c55e; }
.popup.error { border-left: 5px solid #ef4444; }

/* ===================== RESPONSIVE TABLET ===================== */
@media (min-width: 768px) {

  .burger { display: none; }

  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    background: transparent;
    width: auto;
    padding: 0;
  }

  .nav a { margin-left: 15px; }

  .hero h1 { font-size: 52px; }

  .hero-actions { flex-direction: row; justify-content: center; }

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

  .section h2 { font-size: 38px; }

  .about-left h2 { font-size: 38px; }

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

  .contact-info h2 { font-size: 56px; }

  .hide-mobile { display: inline; }
}

/* ===================== RESPONSIVE DESKTOP ===================== */
@media (min-width: 1024px) {

  .hero {
    padding: 170px 20px 110px;
  }

  .hero h1 { font-size: 68px; }

  .about-container { grid-template-columns: 1fr 1fr; }
}
