/* ============================================================
   LANDING — hero, blocs de section, process.

   Le hero respire (logo, nom, promesse, prix, action) sans occuper
   un plein écran inutile : sur un site de réservation, le calendrier
   doit rester à une impulsion de pouce.
   ============================================================ */

/* ---------- HERO ---------- */

.hero {
  text-align: center;
  padding: var(--space-12) var(--space-4) var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

/* Le logo est noir sur fond transparent : en thème sombre il faut
   l'inverser, sinon il disparaît. Règle partagée par toutes ses
   apparitions (hero, tableau de bord, pied de page). */
.logo {
  width: auto;
  display: block;
}

@media (prefers-color-scheme: dark) {
  .logo {
    filter: invert(1);
  }
}

.hero__logo {
  height: 84px;
}

.hero h1 {
  margin: 0;
}

.hero__promesse {
  color: var(--muted);
  font-size: var(--text-lg);
  max-width: 30ch;
  text-wrap: balance;
}

/* Tarif : une ligne de données, pas une carte entière. */
.hero__tarif {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero__prix {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hero__duree {
  color: var(--muted);
}

.hero__actions {
  margin-top: var(--space-2);
}

.hero__points {
  display: flex;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  flex-wrap: wrap;
  list-style: none;
  margin-top: var(--space-2);
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted);
}

.hero__points .ico {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--tint);
}

/* Indice de défilement : un lien réel, pas un ornement. */
.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-6);
  padding: var(--space-2) var(--space-4);
  color: var(--muted);
  font-size: var(--text-xs);
  text-decoration: none;
  border-radius: 999px;
  transition: color var(--dur) var(--ease);
}

.scroll-hint:hover {
  color: var(--ink);
}

.scroll-hint__fleche {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: hint-descend 2s var(--ease) infinite;
}

@keyframes hint-descend {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.45;
  }
  50% {
    transform: rotate(45deg) translate(3px, 3px);
    opacity: 1;
  }
}

/* ---------- BLOCS DE SECTION ----------
   Pas de « carte » autour de tout : les sections éditoriales
   respirent à même le fond, seules les zones d'action sont cadrées. */

.bloc {
  margin-bottom: var(--space-12);
}

.bloc__oeil {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

.bloc__titre {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}

/* ---------- PROCESS ---------- */

.process {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  counter-reset: etape-process;
}

.process__etape {
  position: relative;
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.process__etape:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
}

.process__etape h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.process__etape p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.process__etape p span {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Entrées en cascade ----------
   Les blocs apparaissent au défilement, décalés de 60 ms.
   `animation-timeline` n'est pas partout : on part d'un état visible
   et JS ajoute la classe, donc aucun contenu ne peut rester caché. */

.reveal-up {
  opacity: 0;
  transform: translateY(14px);
}

.reveal-up.is-in {
  animation: monte-in 0.5s var(--ease) forwards;
  animation-delay: var(--reveal-i, 0ms);
}

@keyframes monte-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (min-width: 768px) {
  .hero {
    padding-top: calc(var(--space-12) * 1.5);
  }

  .hero__logo {
    height: 96px;
  }

  .process {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-8) var(--space-2) var(--space-6);
  }

  .hero__logo {
    height: 68px;
  }

  .process__etape {
    padding: var(--space-4);
  }
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  .scroll-hint__fleche {
    animation: none;
  }

  /* Filet de sécurité : jamais de contenu laissé invisible. */
  .reveal-up,
  .reveal-up.is-in {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ---------- Impression ---------- */

@media print {
  .scroll-hint,
  .hero__actions {
    display: none !important;
  }

  .reveal-up {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Logo du pied de page ---------- */

.site-footer__logo {
  height: 48px;
  opacity: 0.55;
  transition: opacity var(--dur) var(--ease);
}

.site-footer__logo:hover {
  opacity: 0.85;
}

@media (max-width: 480px) {
  .site-footer__logo {
    height: 40px;
  }
}
