/* Invitation à défiler — trois signes, du plus discret au plus franc, tant que le visiteur n'a pas bougé.
   1. Le point de l'invitation (en bas à gauche) descend le long de son trait, en boucle.
   2. Après quelques secondes, le point sauge de « Voyez. » respire et lance une onde.
   3. S'il ne se passe toujours rien, l'iris s'entrouvre seul, puis se referme (invitation.js ; pas sur mobile).
   Et le point de « Voyez. » se clique : la page descend seule, lentement, pour montrer l'animation.
   Tout s'arrête au premier défilement. Rien n'est joué si le visiteur a réduit les animations.
   Les délais se règlent en tête de invitation.js. Pour tout retirer : enlever les deux lignes
   invitation.css et invitation.js de index.html. */

/* L'invitation écrite est un peu plus lisible. */
.hybrid .opening .scroll-cue small { font-size: 14px; }
@media (max-width: 680px) {
  .hybrid .opening .scroll-cue small { font-size: 13px; max-width: 270px; }
}

/* Le point de « Voyez. » se clique : la page descend lentement jusqu'à la section suivante. */
.invitation-cible { fill: transparent; pointer-events: all; cursor: pointer; }

.invitation-onde {
  fill: none;
  stroke: #75A17F;
  stroke-width: 1.6;
  opacity: 0;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

@media (prefers-reduced-motion: no-preference) {
  /* 1 — la goutte */
  .opening.invite .scroll-cue span::after {
    animation: invitation-goutte 1.9s cubic-bezier(.55, 0, .6, 1) infinite;
  }
  /* 2 — le point qui respire */
  .opening.invite-souffle #voyez-point {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: invitation-souffle 2.6s ease-in-out infinite;
  }
  .opening.invite-souffle .invitation-onde {
    animation: invitation-onde 2.6s ease-out infinite;
  }
}

@keyframes invitation-goutte {
  0% { transform: translateY(-30px); opacity: 0; }
  18% { opacity: 1; }
  78% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes invitation-souffle {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.2); }
}
@keyframes invitation-onde {
  0% { transform: scale(1); opacity: .55; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}

/* 4 — à l'arrivée après le clic sur le point : « il y a une suite ».
   Posée au bas de « Si peu. Et pourtant… », juste au-dessus de la section qui dépasse. */
.invitation-hote { position: relative; }
.invitation-suite {
  --suite-bas: 26px;                 /* distance au bas de la section */
  position: absolute;
  left: 50%;
  bottom: var(--suite-bas);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 44px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .5s ease;
}
.invitation-suite small { font-size: 14px; line-height: 1.4; }
.invitation-suite span { position: relative; width: 1px; height: 30px; background: var(--ardoise); opacity: .8; }
.invitation-suite span::after { content: ''; position: absolute; bottom: -3px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--sauge); }
.invitation-suite--partie { opacity: 0; pointer-events: none; }
@media (max-width: 680px) {
  .invitation-suite { --suite-bas: 12px; gap: 7px; }
  .invitation-suite small { font-size: 13px; }
  .invitation-suite span { height: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .invitation-suite { animation: invitation-suite-entree .8s ease both; }
  .invitation-suite span::after { animation: invitation-suite-goutte 1.9s cubic-bezier(.55, 0, .6, 1) infinite; }
}
@keyframes invitation-suite-entree {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes invitation-suite-goutte {
  0% { transform: translateY(-30px); opacity: 0; }
  18% { opacity: 1; }
  78% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}
