:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef2ff;
  --text: #171717;
  --muted: #525252;
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e5e5e5;
  --radius: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --primary-soft: rgba(99, 102, 241, 0.15);
    --text: #f5f5f5;
    --muted: #a3a3a3;
    --bg: #0a0a0a;
    --surface: #171717;
    --border: #262626;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-align: center;
  margin-bottom: 2.5rem;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, transform 0.15s;
}

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

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: #4f46e5;
  color: #fff;
}

.btn-primary:hover {
  background: #4338ca;
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.btn-light {
  background: #fff;
  color: #4338ca;
}

.btn-outline-light {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* En-tête */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #4f46e5;
}

/* Accroche */

.hero {
  padding: 4rem 0 3rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 80% 20%, var(--primary-soft), transparent 60%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.02em;
}

.lead {
  margin: 1.25rem 0 2rem;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hint {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-phones {
  position: relative;
  height: 560px;
}

.phone {
  border: 8px solid #171717;
  border-radius: 36px;
  overflow: hidden;
  background: #171717;
  box-shadow: 0 30px 60px -20px rgba(30, 27, 75, 0.45);
}

.hero-phones .phone {
  position: absolute;
  width: 250px;
}

.phone-front {
  left: 8%;
  top: 0;
  z-index: 2;
}

.phone-back {
  right: 4%;
  top: 60px;
  transform: rotate(5deg);
  opacity: 0.95;
}

/* Fonctionnalités */

.features,
.gallery,
.steps {
  padding: 4.5rem 0;
}

.feature-grid,
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

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

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.3rem;
}

.feature h3,
.step-list h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.feature p,
.step-list p {
  margin: 0;
  color: var(--muted);
}

/* Captures */

.gallery {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-weight: 600;
}

/* Étapes */

.step-list {
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: #4f46e5;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Qui sommes-nous */

.about {
  padding: 4.5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  max-width: 720px;
}

.about h2 {
  margin-bottom: 1.5rem;
}

.about p {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--muted);
  text-align: center;
}

.about strong {
  color: var(--text);
}

/* Crédits */

.credits {
  padding: 4.5rem 0;
}

.credits h2 {
  margin-bottom: 1rem;
}

.credits-intro,
.credits-note {
  margin: 0 auto 2rem;
  max-width: 40rem;
  text-align: center;
  color: var(--muted);
}

.credits-note {
  margin: 2rem auto 0;
  font-size: 0.85rem;
}

.credit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.credit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.credit h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.credit h3 a {
  text-decoration: none;
}

.credit p {
  margin: 0;
  color: var(--muted);
}

/* Appel final */

.cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta h2 {
  margin-bottom: 1.5rem;
}

.footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Téléphone et tablette */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-phones {
    height: 440px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-phones .phone {
    width: 200px;
  }

  .feature-grid,
  .step-list {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-row,
  .credit-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 2.5rem;
  }

  .hero-phones {
    height: 380px;
  }

  .hero-phones .phone {
    width: 170px;
    border-width: 6px;
    border-radius: 28px;
  }

  .phone-front {
    left: 2%;
  }

  .phone-back {
    right: 2%;
  }

  .feature-grid,
  .step-list,
  .credit-list {
    grid-template-columns: 1fr;
  }

  .gallery-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .gallery .phone {
    border-width: 5px;
    border-radius: 22px;
  }
}
