/* Masked Play : nouvelles sections de l'accueil + animations.
   Sans JavaScript ou avec « réduire les animations », tout reste visible et immobile. */

.sauter { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--creme); color: #111; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.sauter:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--rose-fort); outline-offset: 3px; border-radius: 6px; }
.bouton.grand { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.graine { color: #9a95a3 !important; }

/* ---------- héros ---------- */
.heros { position: relative; overflow: hidden; padding-bottom: 28px; }
.heros h1 { font-size: clamp(52px, 8.4vw, 112px); }
.heros h1 .em { color: var(--kraft-clair); }
.rassure { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--doux); }
.rassure li::before { content: "✓"; color: #7ad49b; font-weight: 800; margin-right: 8px; }
.scene .halo { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(242,134,122,.28), rgba(242,134,122,0) 65%); animation: respire 5s ease-in-out infinite; }
.etiquette-flot { position: absolute; background: var(--carte-2); border: 1px solid var(--bord); border-radius: 14px; padding: 10px 14px; display: grid; line-height: 1.15; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.etiquette-flot b { font-family: var(--titre); font-weight: normal; font-size: 24px; color: var(--kraft-clair); }
.etiquette-flot span { font-size: 12px; color: var(--doux); }
.etiquette-flot.e1 { left: 0; bottom: 22%; transform: rotate(-4deg); animation: flotte-b 4.2s ease-in-out infinite; }
.etiquette-flot.e2 { right: 0; bottom: 8%; transform: rotate(3deg); animation: flotte-b 4.8s ease-in-out -1.5s infinite; }
.rebours-heros { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 16px 22px; border: 1px solid var(--bord); border-radius: 18px; background: var(--carte); }
.rebours-heros .libelle { font-family: var(--mono); font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--doux); }
.chiffres-rebours { display: flex; align-items: center; gap: 8px; }
.chiffres-rebours > div { display: grid; justify-items: center; min-width: 58px; }
.chiffres-rebours b { font-family: var(--titre); font-weight: normal; font-size: 38px; line-height: 1; display: inline-block; }
.chiffres-rebours span { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--doux); text-transform: uppercase; }
.chiffres-rebours i { font-style: normal; font-family: var(--titre); font-size: 28px; color: var(--rose-fort); animation: clignote 1s steps(2) infinite; }

/* morceaux de papier qui flottent */
.bouts { position: absolute; inset: 0; pointer-events: none; }
.bouts i { position: absolute; width: 18px; height: 12px; background: var(--kraft); border-radius: 2px; opacity: .55; clip-path: polygon(0 12%, 100% 0, 92% 100%, 6% 86%); animation: papier 14s linear infinite; }
.bouts i:nth-child(1) { left: 8%; top: 70%; animation-duration: 16s; }
.bouts i:nth-child(2) { left: 46%; top: 82%; width: 12px; height: 9px; animation-duration: 12s; animation-delay: -4s; background: var(--rose-fort); }
.bouts i:nth-child(3) { left: 62%; top: 20%; animation-duration: 18s; animation-delay: -8s; }
.bouts i:nth-child(4) { left: 88%; top: 60%; width: 14px; animation-duration: 15s; animation-delay: -2s; background: var(--creme); opacity: .3; }
.bouts i:nth-child(5) { left: 30%; top: 12%; width: 10px; height: 8px; animation-duration: 20s; animation-delay: -11s; background: var(--rose-fort); }
.bouts i:nth-child(6) { left: 76%; top: 88%; animation-duration: 13s; animation-delay: -6s; }

/* ---------- confiance ---------- */
.confiance { padding: 56px 0 8px; }
.grille-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.preuve { background: var(--carte); border: 1px solid var(--bord); border-radius: 16px; padding: 18px; display: grid; gap: 6px; align-content: start; }
.preuve b { font-size: 15px; }
.preuve p { margin: 0; color: var(--doux); font-size: 13.5px; }
.pastille { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(242,134,122,.14); color: var(--rose-fort); font-weight: 800; margin-bottom: 4px; }

/* ---------- étapes ---------- */
ol.etapes { list-style: none; padding: 0; }
.avertir { max-width: 720px; margin: 28px auto 0; text-align: center; padding: 14px 18px; border-radius: 14px; border: 1px dashed #6b3328; background: rgba(242,134,122,.06); color: var(--creme); font-size: 15px; }

/* ---------- lots ---------- */
.sacs { align-items: end; }
.sac-carte.premier { border-color: var(--kraft); box-shadow: 0 0 0 1px var(--kraft) inset, 0 24px 70px rgba(242,134,122,.14); }
.sac-carte.premier .image { aspect-ratio: 1.05; }
.sac-carte .image img { transition: transform .4s ease; }
.sac-carte:hover .image img, .sac-carte:hover .point { animation: secoue-sac .6s ease; }
.echelle { max-width: 760px; margin: 28px auto 0; background: var(--carte); border: 1px solid var(--bord); border-radius: 16px; padding: 0 22px; }
.echelle summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.echelle summary::after { content: "+"; font-weight: 800; color: var(--kraft-clair); }
.echelle[open] summary::after { content: "–"; }
.echelle ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 28px; }
.echelle li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--bord); font-family: var(--mono); font-size: 14px; }
.echelle li b { color: var(--rose); }

.fond-rose { background: radial-gradient(900px 420px at 50% 30%, rgba(242,134,122,.10), transparent 70%); }
.marche.premier { animation: lueur 3.2s ease-in-out infinite; }

/* jeux scellés : tampon */
.tampon { display: inline-block; border: 3px solid #2a180c; padding: 2px 12px; border-radius: 8px; transform: rotate(-8deg); }
.jeu.vu .tampon { animation: tampon .5s cubic-bezier(.2,1.6,.4,1) both; animation-delay: calc(var(--d, 0ms) + 250ms); }

/* ---------- appel final ---------- */
.final { padding: 40px 0 110px; }
.final .conteneur { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; background: linear-gradient(135deg, var(--carte-2), var(--carte)); border: 1px solid var(--bord); border-radius: 28px; padding: 36px 48px; }
.final h2 { font-size: clamp(36px, 5vw, 58px); }
.final .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.perso-final { width: 160px; animation: coucou 3s ease-in-out infinite; transform-origin: 50% 100%; }

/* barre d'action fixe sur téléphone */
.barre-tel { display: none; }

/* ---------- mouvements ---------- */
.bouton.brille { position: relative; overflow: hidden; }
.bouton.brille::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); animation: balaye 4.5s ease-in-out infinite; }
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, border-color .2s ease; }
.tilt:hover { border-color: #3d3d47; }
.perso.saute { animation: saute .6s cubic-bezier(.3,1.6,.5,1); }
.bulle.pop { animation: pop .35s cubic-bezier(.3,1.8,.5,1); }
.bascule { animation: bascule .35s ease; }

html.js .revele { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
html.js .revele.vu { opacity: 1; transform: none; }
html.js .revele.tilt.vu { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity .7s ease var(--d, 0ms), transform .25s ease; }
html.js .titre-anime .mot { display: inline-block; opacity: 0; transform: translateY(-40px) rotate(-6deg); animation: tombe .7s cubic-bezier(.2,1.5,.4,1) forwards; animation-delay: calc(var(--i, 0) * 70ms + 100ms); }

@keyframes tombe { to { opacity: 1; transform: none; } }
@keyframes respire { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes flotte-b { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes clignote { 50% { opacity: .25; } }
@keyframes papier { 0% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-60px) rotate(180deg); } 100% { transform: translateY(0) rotate(360deg); } }
@keyframes balaye { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes saute { 0% { transform: scale(1, 1); } 25% { transform: scale(1.08, .9); } 55% { transform: translateY(-34px) scale(.95, 1.06) rotate(-4deg); } 80% { transform: scale(1.04, .96); } 100% { transform: none; } }
@keyframes pop { 0% { transform: rotate(4deg) scale(.6); } 100% { transform: rotate(4deg) scale(1); } }
@keyframes bascule { 0% { transform: translateY(-40%); opacity: .2; } 100% { transform: none; opacity: 1; } }
@keyframes secoue-sac { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-7deg) scale(1.04); } 50% { transform: rotate(6deg); } 75% { transform: rotate(-3deg); } }
@keyframes lueur { 0%,100% { box-shadow: 0 0 0 1px var(--kraft) inset, 0 20px 60px rgba(242,134,122,.10); } 50% { box-shadow: 0 0 0 1px var(--kraft) inset, 0 20px 80px rgba(242,134,122,.28); } }
@keyframes tampon { 0% { transform: rotate(-8deg) scale(2.2); opacity: 0; } 100% { transform: rotate(-8deg) scale(1); opacity: 1; } }
@keyframes coucou { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-6px); } }

/* ---------- téléphone ---------- */
@media (max-width: 900px) {
  .grille-4 { grid-template-columns: 1fr 1fr; }
  .final .conteneur { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; justify-items: center; }
  .final .actions { justify-content: center; }
  .rebours-heros { justify-content: center; text-align: center; }
  .heros .actions .bouton { flex: 1 1 100%; }
  .barre-tel { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(12,12,14,.92); backdrop-filter: blur(10px); border-top: 1px solid var(--bord); transform: translateY(110%); transition: transform .3s ease; }
  .barre-tel.visible { transform: none; }
  .barre-tel .bouton { width: 100%; height: 50px; }
  .pied { padding-bottom: 96px; }
  .haut .boutons .bouton.stake { display: none; }
  .etiquette-flot b { font-size: 19px; }
}
@media (max-width: 560px) {
  .grille-4 { grid-template-columns: 1fr; }
  .echelle ul { grid-template-columns: 1fr; }
  .chiffres-rebours > div { min-width: 44px; }
  .chiffres-rebours b { font-size: 30px; }
  .etiquette-flot { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .revele, html.js .titre-anime .mot { opacity: 1 !important; transform: none !important; transition: none !important; }
  .bouts { display: none; }
}

/* =================== passe « haut niveau » =================== */
h1, h2, h3, .marque, .jeu .date, .jeu .nom, .lot, .etiquette-flot b, .bandeau .piste { text-transform: uppercase; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* héros : projecteur de scène + parallaxe */
.heros::before { content: ""; position: absolute; top: -10%; right: 4%; width: 46%; height: 120%; pointer-events: none;
  background: conic-gradient(from 180deg at 50% 0%, transparent 160deg, rgba(244,233,218,.07) 172deg, rgba(244,233,218,.11) 180deg, rgba(244,233,218,.07) 188deg, transparent 200deg);
  animation: projecteur 7s ease-in-out infinite; transform-origin: 50% 0; }
.scene { --px: 0; --py: 0; }
.scene .perso { translate: calc(var(--px) * 14px) calc(var(--py) * 10px); transition: translate .2s ease-out; }
.scene .etiquette-flot.e1 { margin-left: calc(var(--px) * -22px); }
.scene .etiquette-flot.e2 { margin-right: calc(var(--px) * 22px); }
.scene .bulle { translate: calc(var(--px) * 8px) 0; }
@keyframes projecteur { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* bandeau : deux rubans de papier kraft qui se croisent */
.bandeau { position: relative; background: none; border: 0; height: 150px; overflow: hidden; margin: 10px 0; }
.bandeau .ruban { position: absolute; left: -5%; right: -5%; top: 50%; overflow: hidden; padding: 14px 0;
  clip-path: polygon(0 6%, 3% 0, 7% 8%, 12% 1%, 18% 7%, 24% 0, 31% 6%, 38% 1%, 45% 8%, 52% 0, 60% 7%, 67% 2%, 74% 8%, 81% 0, 88% 6%, 94% 1%, 100% 7%, 100% 94%, 96% 100%, 90% 92%, 84% 99%, 77% 93%, 70% 100%, 63% 94%, 56% 99%, 49% 92%, 42% 100%, 35% 93%, 28% 99%, 21% 94%, 14% 100%, 8% 93%, 3% 99%, 0 94%); }
.bandeau .ruban.kraft { transform: translateY(-50%) rotate(-2.2deg); z-index: 2; color: #2a180c;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.08)), repeating-linear-gradient(90deg, #c08a55 0 3px, #b98450 3px 7px, #c4905c 7px 9px); box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.bandeau .ruban.noir { transform: translateY(-50%) rotate(2deg); z-index: 1; background: #1b1b20; color: var(--rose-fort); opacity: .95; }
.bandeau .piste { display: flex; gap: 46px; width: max-content; animation: defile 34s linear infinite; font-family: var(--titre); font-size: 24px; letter-spacing: 1.5px; padding: 0; }
.bandeau .ruban.noir .piste { animation-direction: reverse; animation-duration: 40s; font-size: 20px; }
.bandeau .piste span::after { content: "✦"; margin-left: 46px; color: inherit; opacity: .55; }

/* titres de section : petit morceau de scotch */
.entete h2 { position: relative; }
.entete .surtitre { padding: 4px 12px; background: rgba(181,129,78,.14); border-radius: 4px; transform: rotate(-1.5deg); }
.entete .surtitre::before { display: none; }

/* étapes : gros chiffres */
.etape { position: relative; overflow: hidden; }
.etape small { position: absolute; right: 14px; top: 2px; font-family: var(--titre); font-size: 92px; letter-spacing: 0; color: rgba(181,129,78,.16); line-height: 1; }
.etape h3 { margin-top: 0; padding-right: 60px; }

/* cartes : bord lumineux au survol */
.preuve, .etape, .sac-carte, .jeu, .marche, .defi { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.preuve:hover, .etape:hover, .sac-carte:hover, .jeu:hover, .defi:hover { border-color: rgba(242,134,122,.45); box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(242,134,122,.15); }
.preuve:hover .pastille { transform: rotate(-8deg) scale(1.1); }
.pastille { transition: transform .25s ease; }

/* lots : halo derrière l'image */
.sac-carte .image::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(242,134,122,.25), transparent 65%); animation: respire 4s ease-in-out infinite; }
.sac-carte.premier .image::before { background: radial-gradient(circle, rgba(232,190,90,.35), transparent 65%); }
.sac-carte .image img { position: relative; width: 82%; height: 88%; filter: drop-shadow(0 16px 20px rgba(0,0,0,.5)); }
.sac-carte .image .point { animation: flotte-b 3.2s ease-in-out infinite; }

/* jeux scellés : reflet qui passe */
.jeu .visuel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%); transform: translateX(-100%); animation: balaye 5s ease-in-out infinite; }
.jeu:nth-child(2) .visuel::after { animation-delay: .8s; }
.jeu:nth-child(3) .visuel::after { animation-delay: 1.6s; }

/* bouton principal : anneau qui respire */
.bouton.rose.grand { animation: anneau 2.6s ease-out infinite; }
@keyframes anneau { 0% { box-shadow: 0 6px 0 #a9554b, 0 0 0 0 rgba(242,134,122,.45); } 70% { box-shadow: 0 6px 0 #a9554b, 0 0 0 16px rgba(242,134,122,0); } 100% { box-shadow: 0 6px 0 #a9554b, 0 0 0 0 rgba(242,134,122,0); } }

/* appel final */
.perso-final { width: 190px; height: auto; }
.final .conteneur { position: relative; overflow: hidden; background: radial-gradient(600px 300px at 20% 60%, rgba(242,134,122,.14), transparent 70%), linear-gradient(135deg, var(--carte-2), var(--carte)); }

@media (max-width: 900px) {
  .heros::before { width: 100%; right: 0; }
  .bandeau { height: 120px; }
  .bandeau .piste { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .heros::before { animation: none; } .bouton.rose.grand { animation: none; } }
@media (max-width: 900px) {
  .heros { padding-top: 24px; }
  .heros .scene { order: 0; min-height: 0; padding: 10px 0 0; }
  .heros .scene img.perso { width: min(210px, 52%); }
  .heros .scene .halo { width: 70%; }
  .etiquette-flot.e1 { left: 2%; bottom: 18%; }
  .etiquette-flot.e2 { right: 2%; bottom: 4%; }
  .bulle { right: 8%; top: 2%; font-size: 17px; }
}
.logo-pied { width: 110px; height: auto; opacity: .9; }
.scene img.perso, .marque img, .logo-pied { height: auto; }
.sac-carte .image { aspect-ratio: 1.05; }
.sac-carte .image img { width: auto; height: auto; max-width: 78%; max-height: 90%; }
@media (max-width: 900px) { .sacs .sac-carte.premier { order: -1; } }

/* décor dessiné du héros */
.heros { isolation: isolate; }
.heros .decor { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.heros .decor img { position: absolute; right: 0; top: 0; height: 100%; width: 100%; object-fit: cover; object-position: 70% 60%;
  transform: translate(calc(var(--px, 0) * -16px), calc(var(--py, 0) * -10px)) scale(1.06); transition: transform .3s ease-out; }
.heros .decor::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--fond) 0%, rgba(12,12,14,.92) 30%, rgba(12,12,14,.45) 58%, rgba(12,12,14,.15) 100%),
              linear-gradient(0deg, var(--fond) 0%, rgba(12,12,14,0) 28%), linear-gradient(180deg, rgba(12,12,14,.7) 0%, rgba(12,12,14,0) 18%); }
.heros .scene .halo { opacity: .7; }
@media (max-width: 900px) {
  .heros .decor img { object-position: 78% 50%; }
  .heros .decor::after { background: linear-gradient(180deg, rgba(12,12,14,.88) 0%, rgba(12,12,14,.78) 45%, rgba(12,12,14,.35) 70%, var(--fond) 100%); }
}
@media (max-width: 900px) {
  .heros .decor::after { background: linear-gradient(180deg, rgba(12,12,14,.9) 0%, rgba(12,12,14,.86) 55%, rgba(12,12,14,.4) 78%, var(--fond) 100%); }
}
