/* Visuels produits « studio » : un objet de travail, une lumière douce, beaucoup d'air.
   Les produits se montrent comme un accès (espace membre), jamais comme un livre.
   Animation à la manière d'Apple : l'appareil se pose une fois quand il entre à l'écran (mouvement.js ajoute .vu),
   les cartes de l'écran arrivent l'une après l'autre, puis une légère parallaxe au défilement. */

:root { --st-encre: #16323C; --st-encre2: #41545b; --st-gris: #8a9497; --st-teal: #1D8286; --st-teal-d: #146a6e; --st-teal-l: #e6f2f1;
  --st-feuille: #FFFDF8; --st-jaune: #FFE27A; --st-ease: cubic-bezier(.16, 1, .3, 1); }

/* l'ancien livre en 3D n'est plus affiché nulle part */
.book-scene, .book-showcase, .mockup-duo, .cover-hero { display: none !important; }

/* ================= scène ordinateur (packs concours) : dessinée à 1200 x 720, mise à l'échelle ================= */
.studio { position: relative; width: 100%; max-width: 1040px; margin: 2.4rem auto 2rem; aspect-ratio: 1200 / 720; border-radius: 28px; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 38%, #fffdf9 0%, #f3eee5 55%, #e6dfd2 100%); font-family: Inter, system-ui, sans-serif; color: var(--st-encre);
  text-align: left; line-height: 1.4; box-shadow: 0 1px 0 rgba(255,255,255,.8) inset; }
.studio .toile { position: absolute; left: 0; top: 0; width: 1200px; height: 720px; transform-origin: 0 0; transform: scale(var(--echelle, .8)); }
.studio * { box-sizing: border-box; }
.st-sol { position: absolute; left: 20px; top: 640px; width: 910px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60,45,25,.32), transparent); filter: blur(6px); }
.st-mac { position: absolute; left: 70px; top: 70px; width: 780px; }
.st-bord { position: relative; background: linear-gradient(#20272a, #0c1113); border-radius: 22px 22px 6px 6px; padding: 16px 16px 22px; box-shadow: 0 0 0 1.5px #3b4448 inset, 0 1px 0 #59646a inset; }
.st-bord::before { content: ''; position: absolute; top: 5px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #2b3338; }
.st-ecr { position: relative; height: 470px; border-radius: 6px; overflow: hidden; background: var(--st-feuille); }
.st-ecr::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.18), rgba(255,255,255,0) 38%); pointer-events: none; }
.st-base { position: relative; height: 20px; margin: 0 -64px; background: linear-gradient(#e9e6e1, #c9c4bc 60%, #a7a198); border-radius: 2px 2px 16px 16px; box-shadow: 0 1px 0 #fff inset; }
.st-base::before { content: ''; position: absolute; left: 50%; top: 0; width: 130px; height: 8px; margin-left: -65px; background: linear-gradient(#cfcac2, #bdb7ae); border-radius: 0 0 10px 10px; }

.st-app { display: grid; grid-template-columns: 190px 1fr; height: 100%; font-size: 11px; }
.st-nav { background: var(--st-encre); color: #e9f0ef; padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; }
.st-marque { margin: 0 0 16px 4px; color: #FFFDF8; } .st-marque .st-hibou { height: 19px; width: auto; display: block; }
.st-titre { font: 700 9px Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #7f9aa0; margin: 6px 6px 5px; }
.st-it { display: flex; justify-content: space-between; gap: 6px; padding: 7px 8px; border-radius: 7px; color: #c9d6d5; }
.st-it.on { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.st-it em { font-style: normal; font-size: 9px; color: #7f9aa0; white-space: nowrap; }
.st-bas { margin-top: auto; font-size: 9.5px; color: #7f9aa0; padding: 0 6px; }
.st-corps { padding: 20px 24px; background: var(--st-feuille); overflow: hidden; }
.st-fil { font-size: 9.5px; color: var(--st-gris); margin-bottom: 5px; }
.studio h3, .studio-tab h3 { font: 600 21px Fraunces, Georgia, serif !important; letter-spacing: -.015em; margin: 0 0 4px !important; color: var(--st-encre) !important; }
.st-meta { color: var(--st-encre2); font-size: 10.5px; margin-bottom: 14px; } .st-meta b { color: var(--st-teal-d); }
.st-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-carte { background: #fff; border: 1px solid #ebe5d9; border-radius: 10px; padding: 11px 12px; box-shadow: 0 1px 2px rgba(22,50,60,.04); }
.st-carte.st-large { margin-top: 12px; }
.st-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 5px; }
.st-h b { font: 600 12.5px Fraunces, Georgia, serif; }
.st-tag { flex: none; font: 700 8.5px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: var(--st-teal-l); color: var(--st-teal-d); }
.st-tag.j { background: #fff3c4; color: #7a5d00; }
.st-carte p { margin: 0 !important; color: var(--st-encre2); font-size: 10px !important; line-height: 1.45 !important; }
.st-barre { height: 4px; border-radius: 3px; background: #eee8dc; margin-top: 8px; overflow: hidden; }
.st-barre i { display: block; height: 100%; width: var(--p); background: var(--st-teal); border-radius: 3px; }
.st-annee { display: flex; gap: 4px; margin-top: 6px; }
.st-annee span { flex: 1; height: 18px; border-radius: 4px; background: #f1ece2; font-size: 8px; color: var(--st-gris); display: flex; align-items: center; justify-content: center; }
.st-annee span.ici { background: var(--st-jaune); color: var(--st-encre); font-weight: 700; } .st-annee span.cle { background: var(--st-encre); color: #fff; }

/* téléphone (commun aux deux scènes) */
.st-tel { position: absolute; width: 212px; height: 436px; border-radius: 40px; background: linear-gradient(145deg, #3a4246, #101517); padding: 9px;
  box-shadow: 0 0 0 1.5px #5a656b inset, 0 40px 50px -20px rgba(30,25,15,.5), 0 14px 20px -10px rgba(30,25,15,.35); }
.studio .st-tel { left: 930px; top: 236px; }
.st-tel-ecr { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: var(--st-feuille); padding: 40px 14px 14px; font-size: 9.5px; color: var(--st-encre); text-align: left; }
.st-tel-ecr::before { content: ''; position: absolute; top: 10px; left: 50%; width: 62px; height: 18px; margin-left: -31px; border-radius: 12px; background: #0c1113; }
.st-tel-ecr::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.22), rgba(255,255,255,0) 40%); pointer-events: none; }
.st-k { font: 700 8px Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--st-teal-d); }
.st-tel h4 { font: 600 17px/1.15 Fraunces, Georgia, serif !important; margin: 4px 0 8px !important; letter-spacing: -.01em; color: var(--st-encre) !important; }
.st-gros { font: 500 40px Fraunces, Georgia, serif; letter-spacing: -.02em; margin: 4px 0 2px; }
.st-seg { display: flex; gap: 3px; margin: 8px 0 10px; } .st-seg span { flex: 4; height: 6px; border-radius: 3px; background: #e6e0d4; } .st-seg span.f { flex: 2; background: var(--st-teal); }
.st-tel ol { margin: 0 !important; padding-left: 15px !important; color: var(--st-encre2); line-height: 1.7; font-size: 9.5px; }
.st-tel ol li { margin: 0 !important; } .st-tel ol li b { color: var(--st-encre); }
.st-pied { margin: 10px 0 0 !important; color: var(--st-gris); font-size: 9px !important; line-height: 1.4 !important; }

/* ================= scène tablette (Séquences EPS) : à taille réelle ================= */
.studio-tab { position: relative; width: 100%; max-width: 470px; height: 520px; margin: 0 auto; font-family: Inter, system-ui, sans-serif; text-align: left; color: var(--st-encre); }
.studio-tab * { box-sizing: border-box; }
.studio-tab::after { content: ''; position: absolute; left: 6%; right: 18%; bottom: 0; height: 30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60,45,25,.28), transparent); filter: blur(6px); z-index: 0; }
.st-tab { position: absolute; left: 0; top: 10px; width: 360px; height: 480px; border-radius: 30px; background: linear-gradient(145deg, #2e363a, #0f1416); padding: 14px; z-index: 1;
  box-shadow: 0 0 0 1.5px #4d585e inset, 0 40px 60px -26px rgba(30,25,15,.5), 0 14px 22px -12px rgba(30,25,15,.3); }
.st-tab-ecr { position: relative; height: 100%; border-radius: 18px; overflow: hidden; background: var(--st-feuille); font-size: 10.5px; }
.st-tab-ecr::after { content: ''; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255,255,255,.2), rgba(255,255,255,0) 36%); pointer-events: none; }
.st-tab-haut { display: flex; align-items: center; justify-content: space-between; background: var(--st-encre); color: #FFFDF8; padding: 11px 16px; }
.st-tab-haut .st-hibou { height: 16px; width: auto; }
.st-tab-haut span { font: 700 8.5px Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #9fb6ba; }
.st-tab-corps { padding: 16px 18px; }
.st-onglets { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.st-onglets span { font: 600 9.5px Inter, sans-serif; padding: 4px 9px; border-radius: 999px; background: #f1ece2; color: var(--st-encre2); }
.st-onglets span.on { background: var(--st-encre); color: #fff; }
.st-ligne { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #eee8dc; color: var(--st-encre2); }
.st-ligne b { color: var(--st-encre); font-weight: 600; }
.st-ligne i { font-style: normal; font: 700 8.5px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--st-teal-d); background: var(--st-teal-l); padding: 2px 7px; border-radius: 4px; }
.studio-tab .st-tel { right: 0; left: auto; top: 120px; width: 180px; height: 370px; border-radius: 34px; z-index: 2; }
.studio-tab .st-tel-ecr { border-radius: 27px; padding: 36px 12px 12px; }

@media (max-width: 520px) {
  .studio { border-radius: 18px; margin: 1.6rem auto 1.4rem; }
  .studio-tab { height: 440px; max-width: 360px; }
  .st-tab { width: 290px; height: 400px; } .studio-tab .st-tel { width: 150px; height: 310px; top: 110px; }
  .st-tab-ecr { font-size: 9.5px; }
}

/* ================= animations (Apple) ================= */
/* l'appareil se pose : il monte, se redresse et s'éclaircit une seule fois */
.js-anim .studio .st-mac, .js-anim .st-tab { opacity: 0; translate: 0 50px; scale: .95; rotate: x 10deg;
  transition: opacity 1s var(--st-ease), translate 1.4s var(--st-ease), scale 1.4s var(--st-ease), rotate 1.4s var(--st-ease); }
.js-anim .st-tel { opacity: 0; translate: 40px 30px; transition: opacity 1s var(--st-ease) .25s, translate 1.4s var(--st-ease) .25s; }
.js-anim .st-carte, .js-anim .st-ligne, .js-anim .st-tel ol li { opacity: 0; translate: 0 10px; transition: opacity .7s var(--st-ease), translate .9s var(--st-ease); }
.js-anim .st-barre i { width: 0; transition: width 1.6s var(--st-ease) 1s; }
.js-anim .vu .st-mac, .js-anim .vu .st-tab, .js-anim .vu .st-tel { opacity: 1; translate: 0 0; scale: 1; rotate: x 0deg; }
.js-anim .vu .st-carte, .js-anim .vu .st-ligne, .js-anim .vu .st-tel ol li { opacity: 1; translate: 0 0; }
.js-anim .vu .st-barre i { width: var(--p); }
.vu .st-carte:nth-child(1), .vu .st-ligne:nth-of-type(1), .vu .st-tel li:nth-child(1) { transition-delay: .55s; }
.vu .st-carte:nth-child(2), .vu .st-ligne:nth-of-type(2), .vu .st-tel li:nth-child(2) { transition-delay: .65s; }
.vu .st-carte:nth-child(3), .vu .st-ligne:nth-of-type(3), .vu .st-tel li:nth-child(3) { transition-delay: .75s; }
.vu .st-carte:nth-child(4), .vu .st-ligne:nth-of-type(4), .vu .st-tel li:nth-child(4) { transition-delay: .85s; }
.vu .st-large, .vu .st-ligne:nth-of-type(5) { transition-delay: .95s; } .vu .st-ligne:nth-of-type(6) { transition-delay: 1.05s; }
/* la parallaxe : le téléphone glisse un peu plus vite que l'écran (variable --defile posée par mouvement.js) */
.studio .toile, .studio-tab { --defile: 0; }
.vu .st-tel { transform: translateY(calc(var(--defile) * -26px)); }
.vu .st-mac, .vu .st-tab { transform: translateY(calc(var(--defile) * -8px)); }
@media (prefers-reduced-motion: reduce) {
  .js-anim .studio .st-mac, .js-anim .st-tab, .js-anim .st-tel, .js-anim .st-carte, .js-anim .st-ligne, .js-anim .st-tel ol li { opacity: 1; translate: none; scale: none; rotate: none; transition: none; }
  .js-anim .st-barre i { width: var(--p); transition: none; } .vu .st-tel, .vu .st-mac, .vu .st-tab { transform: none; }
}

/* héros en deux colonnes (packs complets) : l'appareil prend la colonne de droite, sur toute la hauteur du texte */
.sale-hero > .studio { grid-column: 2; grid-row: 1 / span 6; align-self: center; margin: 0; }
@media (max-width: 900px) { .sale-hero > .studio { grid-column: 1; grid-row: auto; margin: 1.6rem 0; } }

/* ================= vraies pages des fiches ================= */
/* l'écran de l'ordinateur : la visionneuse de l'espace membre, ouverte sur une page du PDF */
.st-pdf { display: flex; flex-direction: column; background: #e9e4da; overflow: hidden; }
.st-pdf-barre { display: flex; justify-content: space-between; align-items: center; padding: 9px 16px; background: #fff; border-bottom: 1px solid #e4ddd0; font-size: 10.5px; color: var(--st-encre); }
.st-pdf-barre span { font-weight: 600; } .st-pdf-barre em { font-style: normal; color: var(--st-gris); }
.st-pdf-page { flex: 1; overflow: hidden; padding: 14px 40px 0; }
.st-pdf-page img { display: block; width: 100%; height: auto; border-radius: 2px; box-shadow: 0 6px 20px -8px rgba(30,25,15,.35); }
/* le téléphone : une autre page, en plein écran */
.st-tel-page { padding: 34px 0 0 !important; background: #fff !important; }
.st-tel-page img { display: block; width: 100%; height: auto; }
.js-anim .st-pdf-page img { translate: 0 30px; opacity: 0; transition: opacity 1s var(--st-ease) .5s, translate 1.4s var(--st-ease) .5s; }
.js-anim .vu .st-pdf-page img { translate: 0 0; opacity: 1; }
/* lente lecture : la page défile doucement dans la visionneuse, comme si on la parcourait */
@keyframes lecture { 0%, 12% { transform: translateY(0); } 50%, 62% { transform: translateY(-22%); } 100% { transform: translateY(0); } }
.vu .st-pdf-page img { animation: lecture 18s ease-in-out 2.4s infinite; }

/* l'ancienne couverture des barres latérales devient une vraie page */
img.page-reelle { display: block; width: 100%; max-width: 220px; margin: 0 auto; border-radius: 4px; box-shadow: 0 14px 28px -12px rgba(30,25,15,.4), 0 0 0 1px rgba(22,50,60,.08); }

/* ================= Feuilleter le pack : galerie horizontale, à la manière d'Apple ================= */
.feuilleter { max-width: 1160px; margin: 3.4rem auto; padding: 0 20px; font-family: Inter, system-ui, sans-serif; }
.fe-tete { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .3rem 1rem; margin-bottom: 1.4rem; }
.fe-k { grid-column: 1; font: 700 .72rem Inter, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--st-teal-d); }
.feuilleter h2 { grid-column: 1; margin: 0 !important; font: 600 clamp(1.8rem, 3.6vw, 2.6rem)/1.1 Fraunces, Georgia, serif !important; letter-spacing: -.02em; color: var(--st-encre) !important; text-align: left; }
.fe-nav { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: .5rem; }
.fe-nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #e8e2d6; color: var(--st-encre); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .2s; }
.fe-nav button:hover { background: #dcd4c4; }
.fe-piste { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 18px 4px 34px; scrollbar-width: none; }
.fe-piste::-webkit-scrollbar { display: none; }
.fe-page { flex: none; width: min(330px, 74vw); margin: 0; scroll-snap-align: start; }
.fe-zoom { display: block; width: 100%; padding: 0; border: 0; background: #fff; border-radius: 6px; cursor: zoom-in; overflow: hidden;
  box-shadow: 0 1px 1px rgba(0,0,0,.04), 0 24px 40px -18px rgba(30,25,15,.38); transition: translate .5s var(--st-ease), box-shadow .5s var(--st-ease); }
.fe-zoom img { display: block; width: 100%; height: auto; }
.fe-zoom:hover { translate: 0 -6px; box-shadow: 0 1px 1px rgba(0,0,0,.04), 0 34px 50px -20px rgba(30,25,15,.45); }
.fe-page figcaption { margin-top: .9rem; font-size: .82rem; color: var(--st-gris); }
.fe-page figcaption b { display: block; color: var(--st-encre); font-weight: 600; font-size: .92rem; margin-bottom: .1rem; }
.js-anim .fe-page { opacity: 0; translate: 40px 0; transition: opacity .9s var(--st-ease), translate 1.2s var(--st-ease); }
.js-anim .feuilleter.vu .fe-page { opacity: 1; translate: 0 0; }
.feuilleter.vu .fe-page:nth-child(2) { transition-delay: .08s; } .feuilleter.vu .fe-page:nth-child(3) { transition-delay: .16s; }
.feuilleter.vu .fe-page:nth-child(4) { transition-delay: .24s; } .feuilleter.vu .fe-page:nth-child(n+5) { transition-delay: .32s; }
/* une section sombre autour (pages packs complets) : la galerie reste lisible */
.sombre .feuilleter h2, [class*="dark"] .feuilleter h2 { color: #fff !important; }
.sombre .fe-page figcaption b, [class*="dark"] .fe-page figcaption b { color: #fff; }

/* la page agrandie */
.fe-loupe { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 3vh 4vw;
  background: rgba(22,30,32,.72); backdrop-filter: blur(14px); opacity: 0; pointer-events: none; transition: opacity .35s var(--st-ease); }
.fe-loupe.ouverte { opacity: 1; pointer-events: auto; cursor: zoom-out; }
.fe-loupe img { max-height: 94vh; max-width: 100%; border-radius: 6px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); scale: .94; transition: scale .45s var(--st-ease); }
.fe-loupe.ouverte img { scale: 1; }
@media (prefers-reduced-motion: reduce) {
  .js-anim .fe-page, .js-anim .st-pdf-page img { opacity: 1; translate: none; transition: none; } .vu .st-pdf-page img { animation: none; }
}
/* sur fond sombre (packs complets) */
.sombre .fe-k, [class*="dark"] .fe-k { color: #8fd3d1; }
.sombre .fe-page figcaption, [class*="dark"] .fe-page figcaption { color: #9fb2b5; }
.sombre .fe-nav button, [class*="dark"] .fe-nav button { background: rgba(255,255,255,.12); color: #fff; }
