/* =====================================================================
   Écran d'intro IKA — « l'eau ne saute pas, elle coule »
   Le vrai logo se construit comme un réseau : l'eau parcourt la maison
   corail, puis la bleue ; la feuille pousse, « ika » se pose, la goutte
   tombe. Puis l'écran s'écoule vers le haut et révèle la page.
   Tout en CSS : aucune dépendance, affiché dès le premier octet.
   ===================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: #fff;
  /* filet de sécurité : si le JS ne tourne pas, l'intro s'en va seule */
  animation: intro-auto-out .8s cubic-bezier(.65,0,.35,1) 6s forwards;
  clip-path: inset(0 0 0 0 round 0);
}
.intro__logo { width: min(62vw, 340px); height: auto; overflow: visible; }
.intro__line { position: absolute; left: 50%; bottom: max(48px, 9vh); width: 120px; height: 2px; margin-left: -60px; border-radius: 2px; background: #EAF5FB; overflow: hidden; }
.intro__line i { display: block; height: 100%; width: 100%; background: #1E86BC; transform-origin: left; transform: scaleX(0); transition: transform .6s cubic-bezier(.22,1,.36,1); }
.intro__skip { position: absolute; right: 16px; top: 16px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: #7E93A6; font: 600 13px/1 Inter, system-ui, sans-serif; cursor: pointer; opacity: 0; animation: intro-fade .4s ease 1.2s forwards; }
.intro__skip:hover, .intro__skip:focus-visible { color: #0F2231; background: #F2F7FA; }

/* --- construction du logo --- */
.intro .lg-red, .intro .lg-blue { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro .lg-red  { animation: intro-draw 1.15s cubic-bezier(.45,.05,.25,1) .15s forwards; }
.intro .lg-blue { animation: intro-draw 1.15s cubic-bezier(.45,.05,.25,1) .45s forwards; }
.intro .lg-cap  { transform-box: fill-box; transform-origin: center; transform: scaleY(0); animation: intro-cap .35s cubic-bezier(.22,1,.36,1) forwards; }
.intro .lg-cap:nth-of-type(1) { animation-delay: .2s; }
.intro .lg-cap:nth-of-type(2) { animation-delay: 1.5s; }
.intro .lg-leaf { transform-box: fill-box; transform-origin: 0% 100%; transform: scale(0) rotate(-20deg); animation: intro-leaf .8s cubic-bezier(.22,1,.36,1) 1.2s forwards; }
.intro .lg-ika  { opacity: 0; transform: translateY(26px); animation: intro-rise .8s cubic-bezier(.22,1,.36,1) 1.05s forwards; }
.intro .lg-dot  { opacity: 0; transform: translateY(-60px); animation: intro-dot .7s cubic-bezier(.33,0,.2,1) 1.4s forwards; }
.intro .lg-plombier { opacity: 0; letter-spacing: 6px; animation: intro-fade .7s ease 1.45s forwards; }
.intro .lg-drop { transform-box: fill-box; transform-origin: 50% 0; opacity: 0; transform: translateY(-46px) scale(.6); animation: intro-drop .6s cubic-bezier(.55,0,1,.45) 1.55s forwards; }
.intro .lg-ripple { opacity: 0; transform-box: fill-box; transform-origin: center; animation: intro-ripple 1s cubic-bezier(.22,1,.36,1) 2.12s forwards; }
.intro .lg-base { opacity: 0; transform: translateY(10px); animation: intro-rise .7s cubic-bezier(.22,1,.36,1) 1.75s forwards; }

@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-cap { to { transform: scaleY(1); } }
@keyframes intro-leaf { to { transform: scale(1) rotate(0); } }
@keyframes intro-rise { to { opacity: 1; transform: none; } }
@keyframes intro-dot { 0% { opacity: 1; transform: translateY(-60px); } 100% { opacity: 1; transform: none; } }
@keyframes intro-drop { 0% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes intro-ripple { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes intro-fade { to { opacity: 1; letter-spacing: 1px; } }

/* --- sortie : l'écran s'écoule vers le haut --- */
.intro.is-out { animation: intro-out .85s cubic-bezier(.65,0,.35,1) forwards; pointer-events: none; }
.intro.is-out .intro__logo { animation: intro-logo-out .6s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes intro-out { to { clip-path: inset(0 0 100% 0 round 0 0 50% 50%); } }
@keyframes intro-auto-out { to { clip-path: inset(0 0 100% 0 round 0 0 50% 50%); visibility: hidden; } }
@keyframes intro-logo-out { to { opacity: 0; transform: translateY(-40px) scale(.94); } }

/* déjà vue dans la session, ou mouvement réduit : pas d'intro */
html.intro-off .intro { display: none; }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }
