/* (11.11.2026, demandé par Mathieu, réglé avec lui pas à pas dans un essai) l'intro de l'accueil, dans le thème néon : la voile du logo se
   trace en rose, « 2FORFLY » s'allume, la voile glisse jusqu'à la voile de parakite de la photo Progress, puis l'accueil s'allume pièce par
   pièce. Elle ne joue que si la page l'a décidé avant l'affichage (classe « intro-joue » sur <html>, voir pages/accueil.blade.php) :
   première visite, ou plus d'une semaine sans venir ; jamais connecté ; rien si l'appareil demande moins d'animations. Le déroulé :
   public/js/intro.js. */
#intro { display: none; }
html.intro-joue #intro { display: block; position: fixed; inset: 0; z-index: 1000; background: #07060B; color: #FFFFFF;
  transition: background-color 0.3s linear, opacity 0.3s ease; }
html.intro-joue #intro.transparent { background-color: rgba(7, 6, 11, 0); }
html.intro-joue #intro.fini { opacity: 0; pointer-events: none; }

/* 1. le logo : le contour de la grande partie de la voile se trace, puis le bout, puis la voile s'allume ; les lettres une à une.
   Le trait se dessine (un tiret plus court que l'écart : rien ne dépasse avant le départ), puis devient un trait plein (rien ne manque à
   la jonction) ; le bout n'apparaît qu'une fois la grande partie finie. */
#intro .logo { position: absolute; left: 50%; top: 43%; width: min(84vw, 560px); transform: translate(-50%, -50%); overflow: visible; }
#intro .aile { filter: drop-shadow(0 0 1.5px #FF2BD6) drop-shadow(0 0 5px #FF2BD6) drop-shadow(0 0 13px #FF2BD6AA); animation: intro-clignote 0.5s linear 1.15s both; }
#intro .aile path { fill: rgba(255, 43, 214, 0); stroke: #FFD6F6; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: butt; stroke-dasharray: 1 2; stroke-dashoffset: 1;
  animation: intro-trace 0.8s cubic-bezier(0.45, 0, 0.25, 1) 0.1s both, intro-plein 0.01s linear 0.9s forwards, intro-remplit 0.4s ease 1.15s forwards; }
#intro .aile path.bout { opacity: 0;
  animation: intro-montre 0.01s linear 0.9s forwards, intro-trace 0.25s cubic-bezier(0.45, 0, 0.25, 1) 0.9s both, intro-plein 0.01s linear 1.15s forwards, intro-remplit 0.4s ease 1.15s forwards; }
#intro .lettres { filter: drop-shadow(0 0 1px #FFFFFF) drop-shadow(0 0 6px #FF2BD6) drop-shadow(0 0 16px #FF2BD688); animation: intro-sort 0.4s ease 2.25s forwards; }
#intro .lettre { font: 700 92px 'Space Grotesk', sans-serif; fill: #FFFFFF; opacity: 0; animation: intro-lettre 0.4s linear forwards; }
#intro .lettre:nth-child(1) { animation-delay: 1.25s; }
#intro .lettre:nth-child(2) { animation-delay: 1.33s; }
#intro .lettre:nth-child(3) { animation-delay: 1.41s; }
#intro .lettre:nth-child(4) { animation-delay: 1.49s; }
#intro .lettre:nth-child(5) { animation-delay: 1.57s; }
#intro .lettre:nth-child(6) { animation-delay: 1.65s; }
#intro .lettre:nth-child(7) { animation-delay: 1.73s; }

/* 2. la voile qui glisse jusqu'à la voile de parakite de la photo (dessinée par le script, sur tout l'écran, en trait lisse) */
#intro .vol { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
  filter: drop-shadow(0 0 1.5px #FF2BD6) drop-shadow(0 0 5px #FF2BD6) drop-shadow(0 0 13px #FF2BD6AA); }
#intro .vol path { fill: rgba(255, 43, 214, 0.26); stroke: #FFD6F6; stroke-linejoin: round; }

/* 3. sur l'accueil : « DEUX FAÇONS » en haut à gauche, puis « DE VOLER » plus bas à droite, sur le noir pendant que la voile glisse ;
   puis une phrase sous TANDEM et une au-dessus de PROGRESS (placées par le script). Au plus petit 14 px : sur un téléphone de 320 px,
   « DEUX FAÇONS » touchait la ligne. */
#intro .deux { position: absolute; margin: 0; font: 700 clamp(14px, 4.4vw, 34px)/1 'Space Grotesk', sans-serif; letter-spacing: 0.14em; white-space: nowrap;
  color: #FFFFFF; text-shadow: 0 0 12px rgba(255, 255, 255, 0.35), 0 1px 8px rgba(0, 0, 0, 0.9); opacity: 0; }
#intro .deux-a { left: 10vw; top: 30vh; }
#intro .deux-b { right: 10vw; top: 60vh; }
#intro .phrase { position: absolute; margin: 0; font: 700 clamp(15px, 4.2vw, 22px)/1.25 'Space Grotesk', sans-serif; opacity: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.9); }
#intro .phrase b { color: var(--c); }
#intro .phrase-t { --c: #FF8BEA; }
#intro .phrase-p { --c: #8DF3FF; }

/* (Mathieu : en paysage, « les textes sont trop grands, ils se superposent » ; TANDEM et PROGRESS gardent leur taille) téléphone tenu à
   l'horizontale seulement : le logo, « DEUX FAÇONS », « DE VOLER » et les deux phrases à la mesure de la hauteur de l'écran */
@media (orientation: landscape) and (max-height: 500px) {
  #intro .logo { width: min(84vw, 560px, 70vh); }
  #intro .deux { font-size: clamp(13px, 4.4vh, 20px); }
  #intro .deux-a { top: 38vh; }
  #intro .phrase { font-size: clamp(13px, 4.2vh, 18px); }
}

@keyframes intro-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes intro-plein { to { stroke-dasharray: none; } }
@keyframes intro-montre { to { opacity: 1; } }
@keyframes intro-remplit { to { fill: rgba(255, 43, 214, 0.26); } }
@keyframes intro-clignote { 0% { opacity: 1; } 15% { opacity: 0.2; } 30% { opacity: 1; } 45% { opacity: 0.45; } 60%, 100% { opacity: 1; } }
@keyframes intro-lettre { 0% { opacity: 0; } 20% { opacity: 1; } 32% { opacity: 0.15; } 48% { opacity: 1; } 62% { opacity: 0.55; } 78%, 100% { opacity: 1; } }
@keyframes intro-sort { to { opacity: 0; transform: translateY(14px); } }
