/* Accueil, premiere diapo : fond sombre a effets CSS + rond vert derriere la mascotte.
   D'apres zp-fonds.css livre le 26/11/2026 (zappeur-fonds-sombres.zip), avec deux ecarts :
   - les regles de texte du modele (police Inter, tailles du H1/H2, bouton) sont retirees : le H1, le H2,
     la ligne Boites | Depots et le bouton gardent les classes et le style du site ;
   - les ondes utilisent :nth-of-type (avec :nth-child, les 4 ondes partaient en meme temps).
   L'effet se choisit dans index.php ($zpFx). */
/* ================= Première diapo : base commune ================= */
.zp-hero{position:relative;overflow:hidden;isolation:isolate;min-height:min(100vh,860px);display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:clamp(24px,5vw,72px);padding:32px clamp(20px,6vw,96px) 48px;background:#0b0f1a;color:#fff}
.zp-hero__fx,.zp-hero__fx2,.zp-hero__vignette{position:absolute;inset:0;z-index:-1;pointer-events:none}
.zp-hero__vignette{background:radial-gradient(110% 90% at 50% 50%,transparent 45%,rgba(11,15,26,.9) 100%),linear-gradient(90deg,rgba(11,15,26,.6) 0%,rgba(11,15,26,.2) 40%,rgba(11,15,26,0) 60%)}
@media (prefers-reduced-motion:reduce){.zp-hero *{animation:none!important}}


/* mascotte + rond vert */
.zp-hero__scene{position:relative;width:min(100%,520px,calc((100vh - 200px) * .669));aspect-ratio:400/598;margin:0 auto}
.zp-hero__scene::before{content:"";position:absolute;inset:8% -4% 2% -6%;border-radius:50%;background:#60ff00;box-shadow:0 0 140px rgba(96,255,0,.28);z-index:0}
.zp-hero__scene svg{position:relative;z-index:1;width:100%;height:auto;display:block;overflow:visible;--ink:#141417;--paper:#fff;--zap:#ffd21f;--flash:#fff}
.zp-hero__scene .ink{fill:var(--ink)}.zp-hero__scene .paper{fill:var(--paper)}.zp-hero__scene .zap{fill:var(--zap)}.zp-hero__scene .flash{fill:var(--flash)}
.zp-hero__scene .glow{fill:none;stroke:var(--zap);stroke-linejoin:round}.zp-hero__scene .ring{fill:none;stroke:var(--zap);stroke-linecap:round}
.zp-hero__scene .shadow{fill:#000;opacity:.25}.zp-hero__scene .lid{fill:none;stroke:var(--ink);stroke-width:2.6;stroke-linecap:round}
.zp-hero__scene .speed{fill:none;stroke:#fff;stroke-width:5;stroke-linecap:round}.zp-hero__scene .dust{fill:#fff}
@media (max-width:900px){.zp-hero{grid-template-columns:1fr;text-align:center;min-height:0;padding-top:16px}.zp-hero__copy{order:2}.zp-hero__scene{width:min(100%,340px)}}

.zp-fx-trame .zp-hero__fx{background:radial-gradient(circle,#60ff00 0 2.2px,transparent 2.6px) 0 0/16px 16px;opacity:.32;
  -webkit-mask-image:radial-gradient(60% 80% at 72% 50%,#000 20%,transparent 75%);mask-image:radial-gradient(60% 80% at 72% 50%,#000 20%,transparent 75%);animation:zpBreathe 9s ease-in-out infinite}
.zp-fx-trame .zp-hero__fx2{background:radial-gradient(circle,#fff 0 1px,transparent 1.4px) 8px 8px/16px 16px;opacity:.06}
@keyframes zpBreathe{0%,100%{transform:scale(1);opacity:.32}50%{transform:scale(1.06);opacity:.42}}

.zp-fx-rayons .zp-hero__fx{inset:-60% -30%;background:repeating-conic-gradient(from 0deg at 50% 50%,rgba(96,255,0,.16) 0 7deg,transparent 7deg 18deg);
  -webkit-mask-image:radial-gradient(circle at 50% 50%,#000 10%,transparent 48%);mask-image:radial-gradient(circle at 50% 50%,#000 10%,transparent 48%);
  left:30%;animation:zpSpin 90s linear infinite}
@keyframes zpSpin{to{transform:rotate(360deg)}}
.zp-fx-rayons .zp-hero__fx2{background:radial-gradient(60% 70% at 72% 50%,rgba(96,255,0,.14),transparent 70%)}

.zp-fx-particules .zp-hero__fx{background:
  radial-gradient(circle,rgba(96,255,0,.9) 0 1.5px,transparent 2px) 0 0/170px 190px,
  radial-gradient(circle,rgba(255,255,255,.7) 0 1px,transparent 1.5px) 60px 90px/230px 260px,
  radial-gradient(circle,rgba(96,255,0,.6) 0 2.5px,transparent 3px) 120px 40px/310px 350px;
  animation:zpRise 40s linear infinite}
.zp-fx-particules .zp-hero__fx2{background:
  radial-gradient(circle,rgba(96,255,0,.45) 0 3.5px,transparent 4.5px) 40px 120px/420px 460px,
  radial-gradient(circle,rgba(255,255,255,.35) 0 2px,transparent 2.6px) 200px 20px/360px 400px;
  filter:blur(1.5px);animation:zpRise 70s linear infinite}
@keyframes zpRise{to{background-position:0 -1140px,60px -1470px,120px -1360px,40px -1260px,200px -1580px}}

.zp-fx-ondes .zp-hero__fx{background:radial-gradient(55% 65% at 72% 50%,rgba(96,255,0,.12),transparent 70%)}
.zp-fx-ondes .zp-onde{position:absolute;left:72%;top:50%;width:40vmin;height:40vmin;margin:-20vmin 0 0 -20vmin;border-radius:50%;border:2px solid rgba(96,255,0,.7);opacity:0;z-index:-1;pointer-events:none;animation:zpOnde 7s cubic-bezier(.2,.6,.3,1) 2.3s infinite}
.zp-fx-ondes .zp-onde:nth-of-type(2){animation-delay:3.55s}.zp-fx-ondes .zp-onde:nth-of-type(3){animation-delay:4.85s}.zp-fx-ondes .zp-onde:nth-of-type(4){animation-delay:7.55s}
@keyframes zpOnde{0%{transform:scale(.6);opacity:.8;border-width:3px}30%{opacity:0;transform:scale(4);border-width:1px}100%{opacity:0;transform:scale(4)}}

.zp-fx-grille .zp-hero__fx{top:52%;height:70%;transform-origin:50% 0;transform:perspective(600px) rotateX(62deg);
  background:linear-gradient(90deg,rgba(96,255,0,.35) 1px,transparent 1px) 0 0/80px 80px,linear-gradient(0deg,rgba(96,255,0,.35) 1px,transparent 1px) 0 0/80px 80px;
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 25%,#000 100%);mask-image:linear-gradient(180deg,transparent 0,#000 25%,#000 100%);
  animation:zpGrid 3s linear infinite}
@keyframes zpGrid{to{background-position:0 80px,0 80px}}
.zp-fx-grille .zp-hero__fx2{background:linear-gradient(180deg,transparent 40%,rgba(96,255,0,.22) 52%,transparent 60%)}

.zp-fx-bandes .zp-hero__fx{inset:-20%;background:repeating-linear-gradient(115deg,#111726 0 140px,#0b0f1a 140px 280px)}
.zp-fx-bandes .zp-hero__fx2{inset:-20%;background:linear-gradient(115deg,transparent 0 44%,rgba(96,255,0,.16) 44% 52%,transparent 52%);animation:zpSlide 14s ease-in-out infinite alternate}
@keyframes zpSlide{to{transform:translateX(18%)}}

/* ================= Integration dans l'accueil (26/11/2026 : plus de diaporama) ================= */
/* le hero : 80 % de la hauteur de l'ecran, entre 640 et 780 px et jamais plus que l'ecran (26/11 : il prenait tout l'ecran et
   laissait trop de vide au-dessus du titre) ; la scene se calcule sur cette hauteur (76 px en haut + 40 px en bas) */
.zp-hero--top{--zp-h:min(100vh,clamp(640px,80vh,780px));box-sizing:border-box;width:100%;height:var(--zp-h);min-height:560px;padding:76px clamp(20px,6vw,96px) 40px}
.zp-hero--top .zp-hero__scene{width:min(100%,520px,calc((var(--zp-h) - 116px) * .669));align-self:end}
/* le rideau du titre (classes slider-overlay2 / slider-fade du theme) part quand la page est prete, comme avant sur la diapo active */
.zp-hero--top.is-pret .slider-overlay2:before{transform:translateX(1%)}
.zp-hero--top.is-pret .slider-fade{opacity:1;transform:translateY(0)}
/* le texte passe au-dessus de la trame de points de la scene */
.zp-hero__copy{position:relative;z-index:3;min-width:0}
/* les 4 ondes restent dans la page quel que soit l'effet (pour ?fx=) : hors de la grille meme sans zp-fx-ondes */
.zp-hero .zp-onde{position:absolute;opacity:0;pointer-events:none}
/* les SVG de la mascotte ont une marge autour du dessin (viewBox -60 -90 480 680 au lieu de 0 -50 400 598) pour que l'eclair
   et les sauts ne soient plus coupes : l'image deborde de la scene, cadree pour que le dessin reste au meme endroit */
.zp-hero__scene .zp-hero__anime,.zp-hero__scene .zp-hero__fixe{position:absolute;z-index:1;display:block;left:-15%;top:-6.689%;width:120%;max-width:none;height:auto}
/* la trame de points des grands visuels du site sur le rond ET sur tout le personnage (chaussures, casquette, eclair, qui
   depassent du rond) : un rectangle plus grand que la scene. Meme trame que img/gridtile.png (2 x 2, un point sur quatre),
   mais en gris tres sombre et en fusion « darken » : le point ne se voit que la ou le dessin est plus clair que lui
   (rond vert, personnage), jamais sur le fond sombre autour, donc pas de rectangle visible */
.zp-hero__scene::after{content:"";position:absolute;inset:-10% -16% -10% -16%;z-index:2;pointer-events:none;mix-blend-mode:darken;background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAD0lEQVR42mPQMNH4z4AMABZEAYR2G7THAAAAAElFTkSuQmCC')}
.zp-hero--city .zp-hero__scene::after{inset:10% 2% 4% 2%;border-radius:50%;z-index:0}
.zp-hero__fixe{display:none!important}
@media (prefers-reduced-motion:reduce){.zp-hero__anime{display:none!important}.zp-hero__fixe{display:block!important}}
/* les sections plus bas (Zap & Go, Zap City) : meme fond, hauteur selon le contenu */
.zp-hero--bande{box-sizing:border-box;width:100%;min-height:0;padding:110px clamp(20px,6vw,96px)}
.zp-hero--go{grid-template-columns:1fr}
/* Zap & Go : le titre a gauche, les deux canaux en grand a droite (un mot detoure, un mot vert, comme les titres du site) */
.zp-hero--go .zp-hero__copy{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 clamp(24px,5vw,80px);align-items:end}
.zp-hero--go .zp-hero__copy > h2,.zp-hero--go .zp-hero__copy > h3{grid-column:1}
.zp-hero--go .zp-hero__copy > .div-block{grid-column:2;grid-row:1 / span 2;margin:0}
.zp-go-canaux{margin:0;font:700 clamp(40px,5.6vw,96px)/.95 Oswald,sans-serif;text-transform:uppercase;letter-spacing:-.005em;color:#60ff00}
.zp-go-canaux span{display:block}
.zp-go-canaux span:first-child{color:transparent;-webkit-text-stroke:2px rgba(255,255,255,.85)}
.zp-go-canaux i{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (max-width:900px){
  .zp-hero--top{height:auto;min-height:0;gap:20px;padding:100px 20px 56px;text-align:left}
  .zp-hero--top .zp-hero__scene{width:min(300px,100%);align-self:center}
  .zp-hero--bande{padding:80px 20px;text-align:left}
  .zp-hero--go .zp-hero__copy{grid-template-columns:1fr}.zp-hero--go .zp-hero__copy > .div-block{grid-column:1;grid-row:auto;margin-top:28px}
}
/* trop etroite pour une scene d'au moins 220 px : on la masque plutot que de la reduire */
@media (max-width:259px){.zp-hero__scene{display:none}}
