/* ==========================================================================
   Two Padel - les animations de l'accueil
   Chargee par index.html seul, apres styles.css. Le script qui l'anime est
   assets/anim/accueil.js. Aucune autre page n'en a besoin.

   Validee par le client le 6 octobre 2026, apres une semaine d'essais dans
   tests-animations/ (inspiration : les mouvements de noury-app.com, jamais
   ses couleurs ni son decor). Les regles qu'il a posees :
   1. les textes et la structure des titres restent les siens, au caractere
      pres. On n'ajoute que du mouvement, et des illustrations masquees aux
      lecteurs d'ecran : le telephone de l'application, la conversation
      WhatsApp, le tampon du complexe ;
   2. le fond reste continu : aucune bande ni coupure entre les sections ;
   3. les boutons gardent le soulevement du site (« les boutons 1 partout ») :
      pas d'ombre franche d'une autre couleur sous un bouton lime ;
   4. pas de rideau sur les photos ni sur la carte : elles apparaissent comme
      sur le reste du site.

   Sans JavaScript ou sous prefers-reduced-motion, rien n'est epingle et chaque
   bloc montre son etat final, celui du HTML : les etats de depart ne
   s'appliquent que sous html.nr, ou sous une classe que pose le script.
   ========================================================================== */

:root {
  --spring: cubic-bezier(.2, 1.6, .35, 1);
  --doux: cubic-bezier(.2, .8, .2, 1);
  /* les reponses de la FAQ s'ouvrent en douceur (navigateurs recents) */
  interpolate-size: allow-keywords;
}
.nr-n { font-style: normal; }

/* ======================================================= premier ecran */
/* « 20 min » garde son bleu de charte, dans une capsule de verre sombre qui
   flotte : trois mouvements independants (monter, deriver, pencher) sur des
   durees qui ne se recoupent pas, donc un trajet qui ne se repete jamais tout
   a fait. Le verre fonce le fond sous le mot : le bleu y gagne en contraste,
   quelle que soit la photo dessous. */
.hero-diag h1 em {
  display: inline-block;
  padding: .09em .17em .04em; line-height: 1;
  color: var(--blue); text-shadow: none;
  /* un verre plus dense, sans flou : un flou sur un element qui bouge sans
     arret se recalcule a chaque image et alourdissait tout le haut de page */
  background: rgba(0, 22, 40, .8);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
  border-radius: .3em;
  rotate: -2deg;
  animation: nr-fy 2.9s ease-in-out infinite alternate, nr-fx 4.3s ease-in-out infinite alternate, nr-fr 3.7s ease-in-out infinite alternate;
}
@keyframes nr-fy { from { translate: 0 .03em; } to { translate: 0 -.06em; } }
@keyframes nr-fx { from { transform: translateX(-.025em); } to { transform: translateX(.03em); } }
@keyframes nr-fr { from { rotate: -3deg; } to { rotate: -.6deg; } }

/* Les deux photos se posent (leger recul), la couture en diagonale se trace
   de haut en bas, le prochain creneau respire. Aucune teinte : seule
   l'echelle bouge, et la photo est peinte des le premier affichage. */
/* Remplissage « backwards » seulement : une fois jouee, l'animation lache
   l'element. Retenues (« both », « forwards »), les photos et leur filtre
   restaient des calques animes sous l'encadre de verre, a recomposer a chaque
   mouvement de la lueur. */
html.nr .hero-diag .diag img { animation: nr-pose 1.9s var(--doux) backwards; }
html.nr .hero-diag .diag .d-resto { animation-delay: .12s; }
@keyframes nr-pose { from { transform: scale(1.07); } to { transform: none; } }
html.nr .hero-diag .diag svg { animation: nr-couture 1.3s var(--doux) .55s backwards; }
@keyframes nr-couture { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
/* Le prochain creneau ne « respire » plus : un halo anime a l'interieur de
   l'encadre de verre obligeait a recalculer son flou a chaque image, et la
   lueur qui suit la souris saccadait dessus. Meme en pause, il coutait :
   mesure sur une carte Intel, le haut de page revient au niveau d'une page
   sans animations une fois retire (client, 6 octobre 2026). Ne pas remettre
   d'animation continue dans un element en verre. Son cadre lime suffit.
   Pendant que la souris bouge, la capsule « 20 min » s'arrete aussi
   (html.souris, pose par le script), et repart une seconde apres. */
html.souris .hero-diag h1 em { animation-play-state: paused; }

/* ===================================================== mots soulignes */
/* Le mot en avant de chaque titre de section recoit un trait bleu qui se
   tire de gauche a droite quand le titre arrive. */
html.nr .band h2 em {
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0% 3px no-repeat;
  padding-bottom: .03em;
  transition: background-size 1s var(--doux) .35s;
}
html.nr .band h2.nr-trait em { background-size: 100% 3px; }

/* ================================================ le tableau des creneaux */
/* Les lignes arrivent l'une apres l'autre depuis la droite, puis l'etiquette
   « Prochain » tombe en tampon. */
html.nr #board[data-vu] .slot {
  transition: opacity .5s var(--doux), transform .7s var(--spring), background .2s, border-color .2s;
  transition-delay: calc(var(--i, 0) * 60ms);
}
html.nr #board[data-vu]:not(.vu) .slot { opacity: 0; transform: translateX(36px); }
html.nr #board.fini .slot { transition-delay: 0s; }
/* Sur telephone, les lignes montent au lieu d'arriver de cote : venues de la
   droite, elles depassaient l'ecran de 20 px le temps de leur arrivee. */
@media (max-width: 760px) {
  html.nr #board[data-vu]:not(.vu) .slot { transform: translateY(16px); }
}
.board.will-stamp:not(.stamped) .slot.is-next .tag { opacity: 0; }
.board.stamped .slot.is-next .tag { animation: nr-stamp .55s cubic-bezier(.22, 1.4, .36, 1) .15s both; }
@keyframes nr-stamp {
  from { opacity: 0; transform: scale(2.4) rotate(10deg); }
  to { opacity: 1; transform: scale(1) rotate(-4deg); }
}

/* ================================== L'APPLICATION, DANS SON TELEPHONE ===== */
/* Trois colonnes : le texte, le telephone, le QR code. */
@media (min-width: 900px) {
  .appli { grid-template-columns: minmax(0, 1fr) auto auto; gap: clamp(32px, 4vw, 64px); }
}
/* Le geste en cours s'eclaire dans la liste. La marge negative rend le
   rembourrage : la mise en page de la liste ne bouge pas. */
.appli-gestes li { border-radius: 12px; padding: 8px 10px; margin: -8px -10px; transition: background .3s, box-shadow .3s; }
.appli-gestes li.on { background: rgba(0, 134, 255, .12); box-shadow: inset 0 0 0 1px rgba(0, 134, 255, .35); }

/* La scene, posee par le script quand l'encart tient sous l'en-tete : haute
   de 3,2 ecrans, elle garde l'encart fige le temps de la sequence, puis la
   page repart. Sans elle (telephone, ecran trop bas, pas de JavaScript),
   rien ne se fige et l'ecran du telephone joue seul. */
.ap-scene { position: relative; }
.ap-scene.on { height: 320vh; }
.ap-scene.on .ap-colle { position: sticky; top: calc(var(--header-h) + 18px); }

/* ----------------------------------------------------- le chassis du mobile */
/* L'ecran reprend l'interface reelle de l'application (Matchpoint aux
   couleurs Two Padel), relevee sur la video du client du 5 octobre 2026 :
   barre navy, carte d'accueil noire, cartes de match sur photo, pastilles
   vertes, barre d'onglets blanche. Les tailles sont en pixels, et le
   telephone entier est mis a l'echelle : dans une maquette en unites de
   conteneur, le texte tombait a une taille illisible.
   Le telephone (348 px) deborde de son cadre, puis la mise a l'echelle le
   ramene a sa largeur. Il est centre par sa marge, jamais par justify-self :
   dans un bloc ordinaire, Chrome sur ordinateur l'applique, mais Safari et
   tous les navigateurs d'iPhone l'ignorent. Le telephone partait alors du
   bord gauche du cadre et s'affichait 59 px trop a droite (client, iPhone,
   7 octobre 2026), alors que les mesures dans Chrome le donnaient centre. */
.mp-cadre { --k: .72; width: 252px; height: 516px; justify-self: center; }
@media (max-width: 899px) { .mp-cadre { --k: .66; width: 230px; height: 474px; } }
.mp-tel {
  width: 348px; margin-left: calc(50% - 174px);
  transform: scale(var(--k)); transform-origin: top center;
  border-radius: 42px; padding: 11px;
  background: linear-gradient(160deg, #2b3440, #0d1117 60%);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.mp-ecran {
  position: relative; border-radius: 32px; overflow: hidden;
  background: #fafbfc; height: 690px; display: flex; flex-direction: column;
  font-family: "Open Sans", system-ui, sans-serif; color: #1b2733;
}
/* Les icones du site (piste, badge) sont dessinees au trait par .ico : sans
   cette regle, elles sortaient en pave noir dans l'ecran. Celles propres a
   l'application portent leurs reglages dans leur symbole, qui priment ; les
   coches et la loupe, qui portent les leurs sur la balise, sont exclues. */
.mp-ecran svg:not([stroke]) { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }
/* la barre d'etat : l'heure, l'ilot, le reseau en trois barres */
.mp-haut { background: #0b2b52; color: #fff; }
.mp-etat {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 10px 18px 6px; font-size: 13px; font-weight: 700; letter-spacing: .01em;
}
.mp-etat > span:first-child { justify-self: start; }
.mp-etat > .mp-sig { justify-self: end; }
.mp-ile { width: 84px; height: 21px; border-radius: 99px; background: #000; }
.mp-sig { display: flex; align-items: flex-end; gap: 2px; }
.mp-sig i { width: 3px; background: #fff; border-radius: 1px; }
.mp-sig i:nth-child(1) { height: 5px; }
.mp-sig i:nth-child(2) { height: 8px; }
.mp-sig i:nth-child(3) { height: 11px; }

/* la barre de l'application */
.mp-nav { display: flex; align-items: center; gap: 14px; padding: 8px 18px 14px; }
.mp-burger { display: grid; gap: 4px; }
.mp-burger i { display: block; width: 19px; height: 2px; background: #fff; border-radius: 2px; }
.mp-nav img { height: 26px; width: auto; }

/* le corps de l'ecran : trois vues superposees (accueil, match, abonnement) */
.mp-corps { position: relative; flex: 1; overflow: hidden; padding: 0 12px 10px; display: grid; gap: 12px; align-content: start; }
.mp-vue {
  position: absolute; inset: 0; padding: 0 12px 10px; display: grid; gap: 12px; align-content: start;
  transition: transform .55s cubic-bezier(.3, .8, .25, 1), opacity .4s;
}

/* la carte d'accueil noire : texte blanc, comme dans l'application (heritee
   du gris de l'ecran, elle etait invisible, a 1,2:1 sur le noir) */
.mp-hero {
  position: relative; border-radius: 10px; background: #0a1420; color: #fff; overflow: hidden;
  display: grid; justify-items: center; gap: 9px; padding: 16px 16px 14px; min-height: 118px;
}
.mp-hero img { height: 34px; width: auto; }
.mp-hero b { font-family: var(--font-head); font-weight: 800; font-size: 19px; line-height: 1.15; text-align: center; letter-spacing: .005em; }
.mp-hero .mp-slide { position: absolute; inset: 0; display: grid; justify-items: center; align-content: center; gap: 11px; opacity: 0; transition: opacity .5s; }
.mp-hero .mp-slide.on { opacity: 1; }
.mp-points { display: flex; gap: 6px; }
.mp-points i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .34); transition: background .3s, width .3s; }
.mp-points i:first-child { background: #fff; }
.mp-points i.on { background: #fff; width: 15px; border-radius: 99px; }

/* les intitules de rubrique : de simples lignes, pas des titres de la page */
.mp-tete { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.mp-tete-t { font-family: "Open Sans", system-ui, sans-serif; font-weight: 400; font-size: 16px; line-height: 1.3; color: #3c4450; }
.mp-plus { background: #f1f2f4; color: #3c4450; border-radius: 6px; padding: 7px 12px; font-size: 12.5px; line-height: normal; }

.mp-rail { display: flex; gap: 10px; overflow: hidden; }
/* Comme dans l'appli : la photo occupe le haut de la carte, le bas est blanc
   et porte la pastille du terrain. La pastille horaire chevauche les deux. */
.mp-carte {
  position: relative; isolation: isolate; flex: 0 0 224px; height: 166px;
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 5px rgba(16, 32, 56, .14); display: flex; flex-direction: column;
  transition: transform .25s;
}
.mp-photo { position: relative; height: 116px; padding: 12px; color: #fff; }
.mp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mp-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 20, 40, .34), rgba(5, 20, 40, .12) 70%); }
.mp-pied { flex: 1; display: flex; align-items: center; gap: 7px; padding: 0 12px; }
.mp-carte.plein .mp-photo { height: 100%; }
.mp-carte.plein .mp-bas { bottom: 12px; }
.mp-carte .titre { font-family: var(--font-head); font-weight: 800; font-size: 19px; line-height: 1.05; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.mp-carte .niveau { font-size: 13px; margin-top: 4px; }
.mp-bas { position: absolute; left: 12px; right: 12px; bottom: -19px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; z-index: 2; }
.mp-heure {
  display: flex; align-items: center; gap: 8px; background: rgba(11, 43, 82, .92);
  border-radius: 8px; padding: 7px 10px;
}
.mp-heure svg { width: 17px; height: 17px; }
.mp-heure span { display: grid; line-height: 1.15; }
.mp-heure small { font-size: 10.5px; opacity: .85; }
.mp-heure b { font-family: var(--font-head); font-weight: 800; font-size: 15px; }
.mp-joueurs { display: flex; }
.mp-joueurs i {
  width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 10.5px; font-weight: 700; margin-left: -9px;
  border: 2px solid rgba(255, 255, 255, .18);
}
.mp-vert {
  display: inline-flex; align-items: center; gap: 6px; background: #19b24b; color: #fff;
  border-radius: 6px; padding: 4px 9px; font-size: 12.5px; font-weight: 700;
}
.mp-vert svg { width: 14px; height: 14px; }
.mp-rond { width: 25px; height: 25px; border-radius: 50%; background: #16305a; display: grid; place-items: center; }
.mp-rond svg { width: 13px; height: 13px; }

/* la barre d'onglets */
.mp-onglets {
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: #fff; color: #1b2733; padding: 7px 4px 9px; gap: 2px;
}
.mp-onglet { display: grid; justify-items: center; gap: 3px; font-size: 8.5px; text-align: center; line-height: 1.1; transition: background .3s; }
.mp-onglet svg { width: 22px; height: 22px; }
.mp-onglet.on { background: #e9ecef; border-radius: 16px; padding: 5px 2px; }
.mp-avatar { width: 22px; height: 22px; border-radius: 50%; background: #2f6fd0; color: #fff; display: grid; place-items: center; font-size: 8.5px; font-weight: 700; }

/* --------------------------------------------- la sequence, etape par etape */
/* Le script pose .etape-N sur .mp-ecran, tout le reste est ici : le carrousel
   tourne, un doigt touche un match, la fiche arrive par la droite, RESERVER
   est presse et les places libres se remplissent ; puis l'ecran
   d'abonnement, et PAYER devient « Abonne ». */
.mp-vue[data-vue="detail"] { transform: translateX(100%); opacity: 0; background: #fafbfc; color: #16212e; padding-top: 12px; }
.mp-ecran.etape-2 .mp-vue[data-vue="accueil"],
.mp-ecran.etape-3 .mp-vue[data-vue="accueil"] { transform: translateX(-24%); opacity: .2; }
.mp-ecran.etape-2 .mp-vue[data-vue="detail"],
.mp-ecran.etape-3 .mp-vue[data-vue="detail"] { transform: none; opacity: 1; }
.mp-ecran.etape-1 .mp-vue[data-vue="accueil"] .mp-carte:first-child { transform: scale(.965); }

.mp-doigt {
  position: absolute; z-index: 5; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .3); box-shadow: 0 0 0 2px rgba(255, 255, 255, .5) inset;
  left: 0; top: 0; opacity: 0; pointer-events: none;
  transition: transform .55s cubic-bezier(.3, .8, .25, 1), opacity .3s, background .2s;
}
.mp-doigt.vu { opacity: 1; }
.mp-doigt.tape { background: rgba(255, 255, 255, .72); }

.mp-fiche { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #dfe4ea; }
.mp-fiche .photo { width: 100%; height: 104px; object-fit: cover; display: block; }
.mp-fiche .corps { padding: 12px 14px 14px; display: grid; gap: 9px; }
.mp-fiche-t { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: #16212e; }
.mp-ligne { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #2a3a4d; }
.mp-ligne svg { width: 17px; height: 17px; color: #16305a; flex: none; }
.mp-places { display: flex; align-items: center; gap: 7px; margin-top: 3px; }
.mp-places i {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 11px; font-weight: 700; color: #fff;
}
.mp-places i.libre { background: transparent; border: 1.5px dashed #19b24b; color: #19b24b; font-size: 15px; transition: background .3s, color .3s, border-color .3s; }
.mp-ecran.etape-3 .mp-places i.libre { background: #19b24b; border-style: solid; color: #fff; font-size: 11px; }
.mp-paye { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid #dfe4ea; border-radius: 10px; padding: 11px 13px; font-size: 13px; color: #2a3a4d; }
.mp-paye b { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: #16212e; }
.mp-paye .tag { display: inline-block; background: #f6861f; color: #fff; border-radius: 4px; padding: 1px 7px; font-size: 10px; font-weight: 700; }
.mp-cta {
  position: relative; display: grid; place-items: center; height: 46px; border-radius: 8px;
  background: #16305a; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 15px;
  letter-spacing: .06em; transition: transform .2s, background .25s;
}
.mp-cta > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; transition: opacity .25s; }
.mp-cta .apres { opacity: 0; }
.mp-cta .apres svg { width: 18px; height: 18px; }
.mp-ecran.etape-3 .mp-cta { background: #19b24b; transform: scale(.985); }
.mp-ecran.etape-3 .mp-cta .avant { opacity: 0; }
.mp-ecran.etape-3 .mp-cta .apres { opacity: 1; }
.mp-ecran.etape-2 .mp-onglet.on, .mp-ecran.etape-3 .mp-onglet.on { background: transparent; }
.mp-ecran.etape-2 .mp-onglet:nth-child(2), .mp-ecran.etape-3 .mp-onglet:nth-child(2) { background: #e9ecef; border-radius: 16px; padding: 5px 2px; }

/* l'ecran d'abonnement */
.mp-vue[data-vue="abo"] { transform: translateX(100%); opacity: 0; background: #f0f2f5; color: #16212e; padding-top: 12px; }
.mp-ecran.etape-4 .mp-vue[data-vue="detail"],
.mp-ecran.etape-5 .mp-vue[data-vue="detail"] { transform: translateX(-24%); opacity: .2; }
.mp-ecran.etape-4 .mp-vue[data-vue="abo"],
.mp-ecran.etape-5 .mp-vue[data-vue="abo"] { transform: none; opacity: 1; }
.mp-ecran.etape-4 .mp-vue[data-vue="accueil"],
.mp-ecran.etape-5 .mp-vue[data-vue="accueil"] { transform: translateX(-24%); opacity: 0; }
.mp-cherche { background: #fff; border: 1px solid #dfe4ea; border-radius: 10px; padding: 9px 12px; font-size: 13px; color: #8a94a2; display: flex; gap: 8px; align-items: center; }
.mp-cherche svg { width: 15px; height: 15px; }
.mp-abo { background: #fff; border: 1px solid #dfe4ea; border-radius: 12px; overflow: hidden; }
.mp-abo-tete { display: flex; align-items: center; gap: 10px; padding: 12px 13px 10px; }
.mp-abo-tete img { width: 34px; height: 34px; border-radius: 50%; }
.mp-abo-tete b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 14.5px; color: #16212e; }
.mp-abo-tete small { font-size: 12px; color: #6b7684; }
.mp-abo-cond { margin: 0 13px; padding: 10px 12px; background: #f4f6f8; border: 1px solid #e6eaef; border-radius: 8px; font-size: 11.5px; line-height: 1.5; color: #46525f; }
.mp-abo-pied { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; margin-top: 12px; border-top: 1px solid #e6eaef; }
.mp-abo-prix { display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 15px; color: #16212e; }
.mp-abo-payer {
  position: relative; display: grid; place-items: center; padding: 13px 0;
  background: #16305a; color: #fff; font-family: var(--font-head); font-weight: 800;
  font-size: 13.5px; letter-spacing: .06em; transition: background .3s;
}
.mp-abo-payer > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 7px; transition: opacity .25s; }
.mp-abo-payer .apres { opacity: 0; }
.mp-abo-payer .apres svg { width: 15px; height: 15px; }
.mp-ecran.etape-5 .mp-abo-payer { background: #19b24b; }
.mp-ecran.etape-5 .mp-abo-payer .avant { opacity: 0; }
.mp-ecran.etape-5 .mp-abo-payer .apres { opacity: 1; }

/* ============================================ LE PAQUET DES RUBRIQUES == */
/* Cours, Academie, Seminaires, Tarifs : sur ordinateur, quatre pages que la
   suivante recouvre de droite a gauche, seulement quand chaque page tient a
   l'ecran sans etre reduite sous 74 %. Ailleurs, elles s'empilent. */
.deck.on .deck-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.deck.on .layer { position: absolute; inset: 0; overflow: hidden; }
.deck.on .layer + .layer { clip-path: inset(0 0 0 100%); }
.deck.on .layer:nth-child(2) { z-index: 2; }
.deck.on .layer:nth-child(3) { z-index: 3; }
.deck.on .layer:nth-child(4) { z-index: 4; }
.deck.on .layer > .band {
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 22px) 0 30px;
}
.deck.on .layer .band-head { margin-bottom: clamp(20px, 3.6vh, 46px); }
.deck.on .layer .acts[style] { margin-top: clamp(16px, 3vh, 34px) !important; }

/* Une page qui en recouvre une autre doit etre opaque. Elle repeint donc le
   champ de lumiere a l'identique, lueur de la souris comprise : sinon le
   client voyait une plaque figee au-dessus d'un fond vivant (5 octobre 2026).
   Les deux couches sont fixes, comme .field : elles restent calees sur
   l'ecran meme quand le paquet s'en va, et le clip-path de la page les
   decoupe a sa forme. Ce sont les regles de .field::before et ::after,
   recopiees : a reprendre si .field change. */
.deck.on .layer + .layer { background-color: var(--ground); }
/* Les deux fonds ne sont poses que sur une page visible a l'ecran (.is-peinte,
   posee par le script) : fixes, ils seraient sinon redessines a chaque
   mouvement de souris sur toute la page, paquet visible ou non (le site
   ramait le 6 octobre 2026). */
.deck.on .layer + .layer.is-peinte::before {
  content: ""; position: fixed; inset: -25%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(44vw 44vw at var(--mx, 26%) var(--my, 22%), var(--halo), var(--halo-fin) 62%),
    radial-gradient(70vw 64vw at 84% 74%, var(--halo-2), var(--halo-2-fin) 100%),
    radial-gradient(34vw 34vw at 8% 92%, var(--halo-3), var(--halo-3-fin) 80%);
}
.deck.on .layer + .layer.is-peinte::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,  var(--mesh) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, var(--mesh) 0 1px, transparent 1px 46px);
  -webkit-mask-image: radial-gradient(72% 62% at 50% 36%, #000 8%, transparent 78%);
          mask-image: radial-gradient(72% 62% at 50% 36%, #000 8%, transparent 78%);
}
/* le bord qui balaie : un trait blanc fin, le meme que la couture en
   diagonale du premier ecran. Il est porte par le cadre epingle, et le
   script y pose la position du bord de la page en cours (--edge). */
.deck.on .deck-pin::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 9;
  left: var(--edge, 100%); width: 3px; margin-left: -1px;
  background: rgba(255, 255, 255, .7); opacity: 0; pointer-events: none;
  box-shadow: 0 0 24px rgba(0, 134, 255, .8);
  transition: opacity .2s;
}
.deck.on .deck-pin.is-wiping::after { opacity: 1; }

/* Le contenu d'une page recouverte n'arrive qu'avec elle : titre et texte
   montent, les cartes de verre tombent en ressort, legerement de biais. */
.deck.on .layer + .layer:not(.is-shown) :is(.band-head > *, .cards > *, .acts, .duo > .frame, .duo > div:not(.band-head), .lien-table) { opacity: 0; }
.deck.on .layer + .layer.is-shown :is(.band-head > *, .acts, .duo > .frame, .duo > div:not(.band-head), .lien-table) {
  animation: nr-up .8s var(--doux) both;
  animation-delay: calc(var(--i, 0) * 70ms + 80ms);
}
.deck.on .layer + .layer.is-shown .cards > * {
  animation: nr-card 1s var(--spring) both;
  animation-delay: calc(var(--i, 0) * 70ms + 80ms);
}
.cards > :nth-child(odd) { --cr: 7deg; --cx: -40px; }
.cards > :nth-child(even) { --cr: -6deg; --cx: 40px; }
@keyframes nr-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes nr-card {
  from { opacity: 0; transform: translate(var(--cx, 0), 90px) rotate(var(--cr, 6deg)) scale(.86); }
  to { opacity: 1; transform: none; }
}

/* ============================================================ l'academie */
/* Les trois reperes arrivent en pastilles. */
html.nr .faits[data-vu] span { transition: opacity .3s, transform .7s var(--spring); transition-delay: calc(var(--i, 0) * 110ms + 200ms); }
html.nr .faits[data-vu]:not(.vu) span { opacity: 0; transform: translateY(14px) scale(.6); }

/* ======================================= LE COMPLEXE, COCHE LIGNE A LIGNE */
/* Chaque ligne se coche, puis le tampon « 1 400 m² » tombe sur la liste. On
   ne raye rien : ce sont des equipements, pas des corvees. Le filet bleu qui
   se remplissait au-dessus de chaque ligne a ete retire : six traits qui
   s'allumaient l'un apres l'autre faisaient clignoter la section. */
.spec { position: relative; }
.spec.is-live .spec-row { position: relative; }
.spec.is-live .spec-row::after {
  content: ""; position: absolute; left: 15px; top: calc(var(--s-3) - 10px);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001628' stroke-width='3.4' stroke-linecap='square'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 0 0 3px var(--ground);
  transform: scale(0); transition: transform .5s var(--spring);
}
.spec.is-live .spec-row.done::after { transform: scale(1); }
.spec-stamp {
  position: absolute; right: 0; bottom: -30px; z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 20px 9px 9px; border-radius: 999px;
  background: rgba(0, 22, 40, .72); color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  font-family: var(--font-head); font-weight: 800; font-variation-settings: "wdth" 78;
  font-size: clamp(1rem, 1.9vw, 1.45rem); letter-spacing: .01em; line-height: 1;
  text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 0 0 3px var(--blue), 0 0 40px rgba(0, 134, 255, .45), 0 26px 50px -16px rgba(0, 0, 0, .7);
  transform: rotate(-7deg);
}
.spec-stamp i {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #001628;
}
.spec-stamp .ico { width: 20px; height: 20px; }
.spec-stamp b { font: inherit; font-variant-numeric: tabular-nums; }
.spec-stamp .u { text-transform: none; }
/* Le tampon grossit depuis son bord droit, colle a celui de la page : agrandi
   depuis son centre, il debordait de 77 px et creait un defilement lateral. */
.spec.is-live .spec-stamp {
  transform-origin: 92% 50%;
  opacity: 0; transform: scale(1.7) rotate(0deg);
  transition: opacity .2s, transform .5s cubic-bezier(.22, 1.4, .36, 1);
}
.spec.is-live .spec-stamp.on { opacity: 1; transform: scale(1) rotate(-7deg); }
#club .mosaic { margin-top: 74px; }
@media (max-width: 600px) {
  .spec-stamp { right: 4px; bottom: -34px; font-size: .9rem; padding: 7px 14px 7px 7px; }
  .spec-stamp i { width: 28px; height: 28px; }
  .spec-stamp .ico { width: 16px; height: 16px; }
}

/* ============================================================ les avis */
/* Les cinq etoiles du bouton s'allument l'une apres l'autre. */
html.nr .avis-entete[data-vu] .stars .ico { transition: transform .5s var(--spring); transition-delay: calc(var(--i, 0) * 90ms + 300ms); }
html.nr .avis-entete[data-vu]:not(.vu) .stars .ico { transform: scale(0) rotate(-40deg); }

/* ============================================================== la FAQ */
/* Les reponses s'ouvrent et se ferment en glissant (navigateurs recents ;
   ailleurs elles s'ouvrent d'un coup, comme avant). */
.fold::details-content {
  block-size: 0; overflow: clip;
  transition: block-size .45s var(--doux), content-visibility .45s allow-discrete;
}
.fold[open]::details-content { block-size: auto; }

/* ============================================ WHATSAPP : LA CONVERSATION */
/* Un message, quelqu'un ecrit, une reponse, la partie est complete. Le bloc
   se fige au milieu de l'ecran le temps de la conversation (scene posee par
   le script), puis reprend sa course. Illustration, masquee aux lecteurs
   d'ecran : le texte a cote dit tout. Les bulles gardent la taille de texte
   du site : dans une maquette de telephone, elles devenaient illisibles. */
.wa-txt { display: grid; justify-items: center; gap: var(--s-2); }
.wa-chat {
  position: relative; width: min(420px, 100%);
  display: grid; gap: 10px; padding: 16px 16px 32px; border-radius: var(--r);
  background: rgba(0, 22, 40, .6); border: 1px solid var(--line);
  text-align: left;
}
.wa-chat-h {
  display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 2px;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--font-head); font-weight: 800; font-size: .7rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2);
}
.wa-chat-h .ico { width: 18px; height: 18px; color: #25d366; }
.wa-msg { display: flex; align-items: flex-end; gap: 8px; }
.wa-msg > i, .wa-typing > i {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #003565; color: #ffffff; font-style: normal;
  font-family: var(--font-head); font-weight: 800; font-size: .74rem;
}
.wa-msg p {
  max-width: 30ch; padding: 9px 13px; border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, .12); color: #ffffff; font-size: .9rem; line-height: 1.45;
}
.wa-msg.out { justify-content: flex-end; }
.wa-msg.out p { background: #005c4b; border-radius: 16px 16px 4px 16px; }
.wa-duo-slot { display: grid; }
.wa-duo-slot > * { grid-area: 1 / 1; }
.wa-typing { display: flex; align-items: flex-end; gap: 8px; }
.wa-typing span {
  display: inline-flex; gap: 5px; padding: 13px 15px; border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, .12);
}
.wa-typing b { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .8); animation: nr-dot 1s ease-in-out infinite; }
.wa-typing b:nth-child(2) { animation-delay: .15s; }
.wa-typing b:nth-child(3) { animation-delay: .3s; }
@keyframes nr-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.wa-stamp {
  position: absolute; left: 50%; bottom: -18px; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 16px 9px 11px; border-radius: 999px;
  background: #25d366; color: #04240f;
  font-family: var(--font-head); font-weight: 800; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 0 0 4px #001628, 0 20px 40px -14px rgba(0, 0, 0, .6);
  transform: rotate(-4deg);
}
.wa-stamp .ico { width: 16px; height: 16px; }
.wa-chat.is-live .wa-msg:not(.on),
.wa-chat.is-live .wa-typing:not(.on) {
  opacity: 0; transform: translateY(14px) scale(.94);
}
.wa-chat.is-live .wa-msg, .wa-chat.is-live .wa-typing {
  transform-origin: left bottom;
  transition: opacity .3s, transform .6s var(--spring);
}
.wa-chat.is-live .wa-msg.out { transform-origin: right bottom; }
.wa-chat.is-live .wa-stamp { opacity: 0; transform: scale(1.9) rotate(0deg); transition: opacity .2s, transform .5s cubic-bezier(.22, 1.4, .36, 1); }
.wa-chat.is-live .wa-stamp.on { opacity: 1; transform: scale(1) rotate(-4deg); }
.wa-scene { position: relative; }
.wa-scene.on .wa-block { position: sticky; top: var(--wa-top, 20vh); }
@media (min-width: 900px) {
  .wa-block.wa-duo { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); justify-items: start; align-items: center; text-align: left; gap: var(--s-5); }
  .wa-duo .wa-txt { justify-items: start; }
  .wa-duo .wa-chat { justify-self: end; }
}
@media (max-width: 899px) { .wa-duo .wa-chat { margin-top: var(--s-3); } }

/* ============================================================== l'acces */
/* Les jours de la semaine arrivent en cascade. */
html.nr .hours[data-vu] .hours-row { transition: opacity .4s, transform .6s var(--doux); transition-delay: calc(var(--i, 0) * 60ms); }
html.nr .hours[data-vu]:not(.vu) .hours-row { opacity: 0; transform: translateX(-18px); }

/* ============================================= mouvements reduits ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-diag h1 em, .wa-typing b { animation: none; }
  .fold::details-content { transition: none; }
  .mp-vue, .mp-doigt, .mp-cta, .mp-carte, .mp-hero .mp-slide, .mp-places i { transition: none !important; }
  .mp-doigt { display: none; }
}
