/* Écran d'ouverture : le hero animé, en plein écran, au-dessus de la toile.
   Il disparaît au clic sur « Commencer la présentation » (ou → / Espace / Entrée). */
.hero-ecran {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: #fcf4e4; overflow: hidden;
}
.hero-ecran .ik-hero { width: min(100vw, 177.78vh); }
/* La toile reste peinte sous l'écran d'ouverture (opaque) : au clic sur « Commencer », seul l'écran
   s'efface, sans tout peindre d'un coup. Elle est inerte tant que l'écran est là (prez-hero.js). */
html.hero-ouvert .hud, html.hero-ouvert .panneau { visibility: hidden; }

/* Le grain du papier couvre tout l'écran (pas seulement le cadre 16:9 du hero) : aucun raccord visible en 16:10 */
.hero-ecran::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .086  0 0 0 0 .075  0 0 0 0 .055  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
  
}
.hero-ecran .ik-hero { background: transparent; z-index: 1; }
.hero-ecran .ik-hero::before { display: none; }

/* Bouton d'entrée : dans l'indice du hero (ordinateur), dans une barre fixe (téléphone, tablette) */
.hero-ecran .ik-hero__indice { gap: 1.2cqw; }
.hero-go {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 44px; padding: .8em 1.6em; border: 0; border-radius: 999px; cursor: pointer;
  background: #c43a1f; color: #fcf4e4;
  font: 600 max(15px, 1.02cqw)/1.1 "Poppins", system-ui, sans-serif; letter-spacing: .01em;
  box-shadow: 0 12px 28px rgba(22, 19, 14, .24), 0 2px 6px rgba(22, 19, 14, .16);
  transition: transform .2s cubic-bezier(.4, 0, .2, 1), box-shadow .2s cubic-bezier(.4, 0, .2, 1);
}
.hero-go:hover, .hero-go:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(22, 19, 14, .3), 0 3px 8px rgba(22, 19, 14, .2); }
.hero-go:focus-visible { outline: 3px solid #16130e; outline-offset: 3px; }
.hero-go__fleche { transition: transform .2s cubic-bezier(.4, 0, .2, 1); }
.hero-go:hover .hero-go__fleche { transform: translateX(3px); }
.hero-astuce { display: inline-flex; align-items: center; gap: .6cqw; }
.hero-barre { display: none; }

@media (max-aspect-ratio: 1/1), (max-width: 760px), (pointer: coarse) {
  .hero-ecran { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .hero-ecran .ik-hero { width: 100%; margin-bottom: 96px; }
  .hero-ecran .ik-hero__indice { display: none !important; }
  .hero-barre {
    display: flex; justify-content: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, #fcf4e4 68%, rgba(252, 244, 228, 0));
    animation: heroBarre .6s cubic-bezier(.05, .7, .1, 1) 1.2s backwards;
  }
  .hero-barre .hero-go { width: 100%; max-width: 480px; justify-content: center; font-size: 16px; padding: 15px 20px; }
}
@media (min-aspect-ratio: 1/1) and (pointer: coarse) and (min-height: 600px) {   /* tablette à l'horizontale : le hero tient en 16:9 */
  .hero-ecran { display: grid; overflow: hidden; }
  .hero-ecran .ik-hero { width: min(100vw, 177.78vh); margin-bottom: 0; }
}
@keyframes heroBarre { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-go, .hero-go__fleche { transition: none; } .hero-barre { animation: none; } }

/* Téléphone : textes du schéma et petits libellés lisibles (le SVG est réduit de moitié) */
@container (max-width: 760px) {
  .ik-hero .t-cercle { font-size: 17px; }
  .ik-hero .t-inter, .ik-hero .t-centre-jp { font-size: 14px; }
  .ik-hero__kicker, .ik-hero__libelle { font-size: 3cqw; }
}

