/* ============================================================
   ATMOSPHERE — Aurora orange + rythme de page sans couture.

   Remplace l'ancien système de `.section-divider` diagonaux.
   Principe : les sections claires ne changent jamais de fond
   (canvas continu), les sections sombres sont des panneaux
   autonomes, et le relief vient de halos orange qui dérivent.
   ============================================================ */

/* ─── Couche aurora ───────────────────────────────────────
   Se place en premier enfant d'une section `position: relative;
   overflow: hidden`. Purement décorative → aria-hidden côté HTML. */
/* PAS de z-index ici. Un `z-index` sur un élément positionné crée un
   contexte d'empilement, et le `mix-blend-mode: screen` des halos ne
   se mélangerait plus qu'avec le vide à l'intérieur de `.aurora` —
   l'effet serait totalement inopérant. En z-index auto, les halos
   voient le fond du slab et l'éclairent vraiment.
   La superposition reste correcte car le contenu (`.container`)
   est explicitement remonté en z-index: 1 plus bas. */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  /* Le flou est appliqué à la couche une fois, puis la couche est
     transformée : le GPU compose sans re-rasteriser à chaque frame. */
  filter: blur(64px);
}

/* Le contenu passe systématiquement au-dessus de l'aurora. */
.section-hero > .container,
.section--dark > .container {
  position: relative;
  z-index: 1;
}

/* ─── Variante claire (hero) ──────────────────────────────
   Discrète : elle réchauffe le canvas beige sans jamais
   concurrencer le texte. */
/* Alphas volontairement très basses : sur un fond clair, l'orange
   ne « brille » pas, il TEINTE. Au-delà de ~0.12 le hero vire au
   pêche et le texte perd son contraste. On cherche une respiration,
   pas un lavis. */
.aurora--light .aurora__blob--1 {
  width: 620px;
  height: 620px;
  top: -200px;
  left: -180px;
  background: radial-gradient(circle, rgba(240, 160, 59, 0.11) 0%, rgba(240, 160, 59, 0) 68%);
  animation: auroraDrift1 26s ease-in-out infinite alternate;
}

.aurora--light .aurora__blob--2 {
  width: 540px;
  height: 540px;
  bottom: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(198, 116, 24, 0.09) 0%, rgba(198, 116, 24, 0) 70%);
  animation: auroraDrift2 32s ease-in-out infinite alternate;
}

.aurora--light .aurora__blob--3 {
  width: 420px;
  height: 420px;
  top: 40%;
  left: 52%;
  background: radial-gradient(circle, rgba(240, 160, 59, 0.05) 0%, rgba(240, 160, 59, 0) 72%);
  animation: auroraDrift3 22s ease-in-out infinite alternate;
}

/* ─── Variante sombre (slabs services + contact) ──────────
   C'est là que l'orange prend toute sa force : sur l'anthracite,
   les halos lisent comme la lampe frontale d'une intervention.

   `screen` est la clé : en mode normal, un orange semi-transparent
   posé sur du gris foncé donne un brun sale. En `screen`, il
   *éclaire* le fond au lieu de s'y mélanger. */
.aurora--dark .aurora__blob {
  mix-blend-mode: screen;
}

/* Cœur très lumineux + chute rapide. C'est la seule façon d'obtenir
   une LUMIÈRE et non une tache.
   Le calcul : en `screen`, un orange (255,180,84) à 44 % sur
   l'anthracite (33,37,42) donne (130,104,73) — du marron. À 78 %, il
   donne (210,159,98) — de l'ambre lumineux. Le cœur doit donc être
   quasi opaque, et c'est la chute qui fait le halo. */
.aurora--dark .aurora__blob--1 {
  width: 520px;
  height: 520px;
  top: -150px;
  left: -90px;
  background: radial-gradient(circle,
    rgba(255, 190, 110, 0.78) 0%,
    rgba(240, 160, 59, 0.26) 26%,
    rgba(240, 160, 59, 0.06) 50%,
    rgba(240, 160, 59, 0) 70%);
  animation: auroraDrift1 24s ease-in-out infinite alternate;
}

.aurora--dark .aurora__blob--2 {
  width: 460px;
  height: 460px;
  bottom: -140px;
  right: -70px;
  background: radial-gradient(circle,
    rgba(255, 176, 88, 0.72) 0%,
    rgba(198, 116, 24, 0.24) 26%,
    rgba(198, 116, 24, 0.05) 52%,
    rgba(198, 116, 24, 0) 72%);
  animation: auroraDrift2 30s ease-in-out infinite alternate;
}

.aurora--dark .aurora__blob--3 {
  width: 380px;
  height: 380px;
  top: 34%;
  left: 58%;
  background: radial-gradient(circle,
    rgba(255, 201, 122, 0.30) 0%,
    rgba(240, 160, 59, 0) 66%);
  animation: auroraDrift3 20s ease-in-out infinite alternate;
}

/* Délais négatifs : les trois halos démarrent déjà en cours de
   course, donc jamais alignés au chargement de la page. */
.aurora__blob--2 { animation-delay: -7s; }
.aurora__blob--3 { animation-delay: -13s; }

/* Grille technique très basse intensité, estompée sur les bords.
   Donne de la matière au slab sans le charger. */
.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(240, 160, 59, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 160, 59, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
}

/* ═══════════════════════════════════════════════════════════
   HERO — option A : composition centrée, portée par la typo.
   Aucune illustration : toutes les photos sources du projet sont
   des captures de téléphone en 600×800, aucune ne tient à cette
   échelle. Plutôt qu'un visuel médiocre, on assume le vide et on
   soigne le rythme. C'est déjà ce que voit tout le mobile.
   ═══════════════════════════════════════════════════════════ */
.hero__grid--centered {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.hero__grid--centered .hero__content {
  max-width: 860px;
  align-items: center;
}

/* Le titre devient le visuel : il faut donc qu'il porte. */
.hero__grid--centered .hero__title {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  letter-spacing: -0.035em;
}

.hero__grid--centered .hero__subtitle {
  margin-inline: auto;
  max-width: 34em;
}

.hero__grid--centered .hero__ctas,
.hero__grid--centered .hero__trust {
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   HERO — option B : panneau de réassurance.
   De l'interface, pas de l'illustration : sa qualité ne dépend
   d'aucune photo. Il répond aux 3 questions du visiteur paniqué —
   quand, par qui, combien.
   ═══════════════════════════════════════════════════════════ */
.hero-card {
  width: min(400px, 100%);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: 0 32px 70px -34px rgba(20, 22, 25, 0.30);
  text-align: left;
}

.hero-card__live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-success);
}

.hero-card__lead {
  margin: var(--space-md) 0 var(--space-lg);
  font-size: 1.05rem;
  line-height: var(--lh-snug);
  color: var(--text-primary);
}

.hero-card__lead strong {
  color: var(--brand-primary);
  font-weight: 700;
}

.hero-card__facts {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  border-top: 1px solid var(--border-subtle);
}

.hero-card__facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-card__fact-k {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--text-muted);
  white-space: nowrap;
}

.hero-card__fact-v {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.hero-card__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  padding: 0.7rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-accent);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.hero-card__phone:hover {
  background: rgba(var(--brand-primary-rgb), 0.08);
  border-color: var(--brand-primary);
}

/* ─── Dérives ─────────────────────────────────────────────
   Trois trajectoires volontairement désynchronisées (durées
   premières entre elles) : le motif ne se répète jamais à l'œil. */
@keyframes auroraDrift1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(80px, 60px, 0) scale(1.12); }
  100% { transform: translate3d(-40px, 110px, 0) scale(0.96); }
}

@keyframes auroraDrift2 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-90px, -50px, 0) scale(1.08); }
  100% { transform: translate3d(50px, -120px, 0) scale(1.18); }
}

@keyframes auroraDrift3 {
  0%   { transform: translate3d(-50%, -50%, 0) scale(1); }
  50%  { transform: translate3d(-60%, -38%, 0) scale(1.22); }
  100% { transform: translate3d(-38%, -58%, 0) scale(0.92); }
}

/* ─── Accessibilité ───────────────────────────────────────
   Sans mouvement, l'aurora reste présente mais figée : on garde
   l'ambiance, on retire la dérive. */
@media (prefers-reduced-motion: reduce) {
  .aurora__blob {
    animation: none !important;
  }
}
