/* PIGraN — complément statique (aucun JavaScript).
   Remplace les comportements autrefois scriptés : menu mobile, sous-menu,
   carrousel, révélation au défilement. */

/* Tout est visible d'emblée (plus de révélation scriptée) */
html.pg-fx-on .pg-reveal, html.pg-fx-on .pg-reveal.is-in { opacity: 1 !important; transform: none !important; }

/* Menu mobile : case à cocher + étiquette */
.pg-nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
label.pg-burger { -webkit-user-select: none; user-select: none; }
.pg-nav-toggle:focus-visible + label.pg-burger { outline: 2px solid currentColor; outline-offset: 3px; }
.container-header:has(.pg-nav-toggle:checked) .container-nav { display: block; }
.container-header:has(.pg-nav-toggle:checked) .pg-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.container-header:has(.pg-nav-toggle:checked) .pg-burger span:nth-child(2) { opacity: 0; }
.container-header:has(.pg-nav-toggle:checked) .pg-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Sous-menu « Entreprises résidentes » au survol / au clavier */
.mod-menu .nav-item.parent { position: relative; }
.mod-menu .nav-item.parent > .mod-menu__sub { display: none; }
.mod-menu .nav-item.parent:hover > .mod-menu__sub,
.mod-menu .nav-item.parent:focus-within > .mod-menu__sub { display: block; }

/* Carrousel en CSS pur : fondu enchaîné sur 4 vues (24 s) */
.pg-carousel-slide { opacity: 0; }
.pg-carousel-slide:first-child { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .pg-carousel-slide { animation: pg-cf 24s infinite; opacity: 0; }
  .pg-carousel-slide:nth-child(2) { animation-delay: 6s; }
  .pg-carousel-slide:nth-child(3) { animation-delay: 12s; }
  .pg-carousel-slide:nth-child(4) { animation-delay: 18s; }
  .pg-carousel-slide:nth-child(5) { animation-delay: 24s; }
  .pg-carousel-dot { animation: pg-dot 24s infinite; }
  .pg-carousel-dot:nth-child(2) { animation-delay: 6s; }
  .pg-carousel-dot:nth-child(3) { animation-delay: 12s; }
  .pg-carousel-dot:nth-child(4) { animation-delay: 18s; }
}
@keyframes pg-cf { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pg-dot { 0%, 25% { background: #fff; } 25.01%, 100% { background: transparent; } }
span.pg-carousel-dot { display: inline-block; cursor: default; }

/* Ancien fond animé (canvas) : remplacé par un dégradé fixe */
.pg-hero .pg-fx-static { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 50% at 80% 20%, rgba(46,230,214,.10), transparent 70%),
              radial-gradient(50% 40% at 10% 90%, rgba(120,90,255,.08), transparent 70%); }

/* Lien « retour à l'équipe » des biographies */
.pg-bio-back { margin-top: 1.5rem; }
.pg-bio-back a { font-weight: 600; }
