/* ===== Variables ===== */
:root {
  --primary: #1a2b4a;
  --primary-light: #2d4a7a;
  --accent: #3b82f6;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
  --max-width: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

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

.section {
  padding: 80px 0;
}

.section--light { background: var(--bg-light); }
.section--white { background: #fff; }
.section--dark { background: var(--primary); color: #fff; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 48px;
}

.section--dark .section-subtitle { color: rgba(255,255,255,0.7); }

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo span { color: var(--accent); }

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

.nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav a.active { color: var(--accent); }

/* ===== Boutons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--white {
  background: #fff;
  color: var(--primary);
}
.btn--white:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 100px 0 120px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__visual {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.hero__visual h3 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.9);
}

.hero__stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.hero__stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* ===== Cards / Grid ===== */
.grid {
  display: grid;
  gap: 24px;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== Tarifs ===== */
.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.2s;
}

.pricing-card--featured {
  border: 2px solid var(--accent);
  position: relative;
}

.pricing-card--featured::before {
  content: "Le plus choisi";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
}

.pricing-card:hover { box-shadow: var(--shadow-lg); }

.pricing-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pricing-card .desc { color: var(--text-light); font-size: 0.9rem; margin-bottom: 24px; }

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }

.pricing-features {
  list-style: none;
  margin: 24px 0;
  text-align: left;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}

.contact-info p { margin-bottom: 16px; color: var(--text-light); }

.contact-info strong { color: var(--text); display: block; margin-bottom: 4px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font);
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.form-group textarea { min-height: 120px; resize: vertical; }

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer ul a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

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

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav { display: none; }
  
  .hero__inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  
  .contact-grid { grid-template-columns: 1fr; }
  
  .footer__grid { grid-template-columns: 1fr; }
  
  .section { padding: 48px 0; }
  .section-title { font-size: 1.5rem; }
}