/* =========================================================
   Pairali – feuille de style
   Charte : bleu nuit (fonds sombres) + bleu vif (accents)
   ========================================================= */

/* Couleurs et réglages communs, réutilisés partout dans le fichier */
:root {
  --navy-950: #0a1628;   /* bleu nuit très foncé : en-tête, accroche, devis */
  --navy-900: #0f2240;
  --blue-600: #2563eb;   /* bleu vif : boutons, accents (texte blanc lisible dessus) */
  --blue-700: #1d4ed8;   /* bleu vif foncé : survol des boutons */
  --blue-400: #60a5fa;   /* bleu clair : accents sur fond sombre */
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;    /* bleu très pâle : fonds de pastilles */
  --bg-alt: #f5f8ff;     /* fond des sections alternées */
  --text: #0f172a;       /* texte principal */
  --muted: #475569;      /* texte secondaire */
  --on-dark: #cbd5e1;    /* texte secondaire sur fond sombre */
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 24px 48px -20px rgba(15, 23, 42, 0.28);
}

/* ---------- Bases ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* défilement doux vers les ancres */
}

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

a {
  color: var(--blue-600);
}

/* Contour bien visible quand on navigue au clavier */
:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Lien « Aller au contenu » : caché tant qu'on n'y arrive pas au clavier */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--white);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 8px;
}

.skip-link:focus {
  left: 12px;
}

/* Largeur maximale du contenu, centré, avec une marge sur les côtés */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* ---------- Icônes (Lucide) ---------- */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor; /* l'icône prend la couleur du texte */
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

/* Pastille carrée arrondie qui entoure une icône */
.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  transition: background 0.2s, color 0.2s;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px; /* forme « pilule » */
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 12px 24px -10px rgba(37, 99, 235, 0.7);
}

.btn-primary:hover {
  background: var(--blue-700);
}

/* Bouton transparent, pour les fonds sombres */
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

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

/* ---------- Petite étiquette au-dessus des titres ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow-dark {
  background: rgba(96, 165, 250, 0.12);
  color: var(--blue-400);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

/* ---------- En-tête (reste visible en haut lors du défilement) ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(12px); /* effet verre dépoli */
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.header .btn {
  padding: 10px 16px;
  font-size: 0.95rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
}

.logo-mark .icon {
  width: 20px;
  height: 20px;
}

/* Menu : caché sur mobile, affiché sur grand écran */
.nav {
  display: none;
  gap: 28px;
}

.nav a {
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 500;
}

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

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

/* ---------- Accroche ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 72px 0 136px;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(59, 130, 246, 0.35), transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(37, 99, 235, 0.25), transparent 60%),
    var(--navy-950);
}

/* Quadrillage discret en fond, qui s'estompe sur les bords */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem); /* taille qui s'adapte à l'écran */
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 20px 0;
}

/* Mot mis en valeur avec un dégradé de bleu */
.highlight {
  background: linear-gradient(90deg, #93c5fd, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 560px;
  margin: 0 0 32px;
  color: var(--on-dark);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: var(--on-dark);
  font-size: 0.95rem;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust .icon {
  color: var(--blue-400);
}

/* Illustration et cartes flottantes */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.illus {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
  animation: float 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
}

.float-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.float-card-top {
  top: 24px;
  left: -16px;
}

.float-card-bottom {
  bottom: 32px;
  right: -16px;
  animation-delay: -3s;
}

@media (max-width: 600px) {
  .float-card {
    padding: 10px 12px;
  }

  .float-card .icon-tile {
    width: 36px;
    height: 36px;
  }

  .float-card-top {
    top: 10px;
    left: 10px;
  }

  .float-card-bottom {
    bottom: 10px;
    right: 10px;
  }
}

/* Animations de l'illustration */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.shine {
  animation: shine 5s ease-in-out infinite;
}

@keyframes shine {
  0% { transform: translateX(0); }
  55%, 100% { transform: translateX(420px); }
}

.sparkle {
  animation: twinkle 3s ease-in-out infinite;
}

.sparkle-2 {
  animation-delay: -1s;
}

.sparkle-3 {
  animation-delay: -2s;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* ---------- Bandeau d'engagements (chevauche le bas de l'accroche) ---------- */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -64px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px; /* l'espace laisse voir le fond gris : fines lignes de séparation */
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  background: var(--white);
  padding: 28px 20px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--blue-600);
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
  scroll-margin-top: 72px; /* l'en-tête fixe ne cache pas le titre après un clic sur le menu */
}

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

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 16px 0 12px;
}

h3 {
  line-height: 1.3;
}

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

/* Trait bleu qui se dessine en haut de la carte au survol */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 20px;
}

.service-card:hover .icon-tile {
  background: var(--blue-600);
  color: var(--white);
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

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

/* ---------- Méthode en 3 étapes ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

/* Grand numéro décoratif en haut à droite */
.step-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--blue-100);
}

.step .icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 20px;
  background: var(--blue-600);
  color: var(--white);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

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

/* ---------- Avantages + avant / après ---------- */
.split {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.features {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 24px;
}

.feature {
  display: flex;
  gap: 16px;
}

.feature h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

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

.compare {
  margin: 0;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  box-shadow: var(--shadow-lg);
}

.compare svg {
  display: block;
  width: 100%;
  height: auto;
}

.compare-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.chip-before {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-dark);
}

.chip-after {
  background: var(--blue-600);
  color: var(--white);
}

/* ---------- Devis ---------- */
.quote {
  color: var(--white);
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(59, 130, 246, 0.25), transparent 60%),
    var(--navy-950);
}

.quote-inner {
  display: grid;
  gap: 48px;
  align-items: start;
}

@media (min-width: 900px) {
  .quote-inner {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.quote-intro > p {
  color: var(--on-dark);
  font-size: 1.1rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 18px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-list .icon-tile {
  background: rgba(96, 165, 250, 0.12);
  color: var(--blue-400);
}

.contact-list small {
  display: block;
  color: #94a3b8;
  font-size: 0.85rem;
}

.contact-list a,
.contact-list span {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

/* Carte blanche du formulaire */
.form {
  display: grid;
  gap: 16px;
  background: var(--white);
  color: var(--text);
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

/* Deux champs côte à côte sur grand écran, l'un sous l'autre sur mobile */
.form-row {
  display: grid;
  gap: 16px;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.field input,
.field textarea {
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

/* Cadre bleu quand on clique dans un champ */
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  background: var(--white);
}

.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Champ anti-robots : jamais affiché */
.honeypot {
  display: none;
}

@media (max-width: 600px) {
  .form {
    padding: 20px;
  }
}

/* ---------- Pied de page ---------- */
.footer {
  background: #060f1d;
  color: #94a3b8;
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.footer-bottom {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Respect des personnes sensibles aux animations ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
