/* Maquette des vitrines Booma — styles communs aux deux portes (version 2, audacieuse).
   Guide visuel : 5 couleurs, Bricolage Grotesque seule, boutons ronds,
   un seul bouton plein de couleur par écran. Aucune ressource externe. */

@font-face { font-family: "Bricolage"; font-weight: 400; font-display: swap; src: url(polices/bricolage-400.woff2) format("woff2"); }
@font-face { font-family: "Bricolage"; font-weight: 600; font-display: swap; src: url(polices/bricolage-600.woff2) format("woff2"); }
@font-face { font-family: "Bricolage"; font-weight: 800; font-display: swap; src: url(polices/bricolage-800.woff2) format("woff2"); }

:root {
  --orange: #FF741C; --tomate: #F23A3A; --ardoise: #4B5563; --encre: #2A1A0E; --creme: #F7F4EE; --blanc: #fff;
  --rebond: cubic-bezier(.34, 1.56, .64, 1);
  --glisse: cubic-bezier(.2, .8, .2, 1);
  --marge: clamp(20px, 4.4vw, 64px);
  --r: clamp(30px, 5vw, 76px);
  --p: .5; --e: 1; --mx: 0; --my: 0;
}

/* ---------- Les tons : chaque grande section choisit le sien ---------- */
.ton-creme, html[data-porte="pro"] { --fond: var(--creme); --texte: var(--encre); --doux: var(--ardoise); --ligne: rgba(42, 26, 14, .15); --creux: rgba(42, 26, 14, .06); --carte: var(--blanc); }
.ton-encre, html[data-porte="fun"] { --fond: var(--encre); --texte: var(--creme); --doux: rgba(247, 244, 238, .76); --ligne: rgba(247, 244, 238, .2); --creux: rgba(0, 0, 0, .32); --carte: #3a291c; }
.ton-orange { --fond: var(--orange); --texte: var(--encre); --doux: rgba(42, 26, 14, .8); --ligne: rgba(42, 26, 14, .28); --creux: rgba(42, 26, 14, .1); --carte: var(--creme); }
.ton-tomate { --fond: var(--tomate); --texte: var(--blanc); --doux: rgba(255, 255, 255, .88); --ligne: rgba(255, 255, 255, .34); --creux: rgba(42, 26, 14, .2); --carte: var(--encre); }
.ton-blanc { --fond: var(--blanc); --texte: var(--encre); --doux: var(--ardoise); --ligne: rgba(42, 26, 14, .15); --creux: rgba(42, 26, 14, .06); --carte: var(--creme); }
.ton-creme, .ton-encre, .ton-orange, .ton-tomate, .ton-blanc { background: var(--fond); color: var(--texte); }
html[data-porte="pro"] { --accent: var(--orange); --sur-accent: var(--encre); }
html[data-porte="fun"] { --accent: #D42A2A; /* tomate foncée : texte blanc lisible (4,6:1) */ --sur-accent: var(--blanc); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: "Bricolage", system-ui, sans-serif; font-size: 17px; line-height: 1.5;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 10px; }
[hidden] { display: none !important; }
.cache-visuel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.boite { width: min(100% - 2 * var(--marge), 1500px); margin-inline: auto; }

/* ---------- Boutons : ronds, en relief ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 600; font-size: 1.02rem; line-height: 1.2; text-decoration: none; text-align: center;
  padding: 16px 28px; border: 0; border-radius: 999px; cursor: pointer;
  transition: transform .18s var(--rebond), box-shadow .18s ease;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn:active { transform: translateY(2px) scale(.97); transition-duration: .05s; }
.btn-accent { background: var(--accent); color: var(--sur-accent); box-shadow: 0 6px 0 -1px color-mix(in srgb, var(--accent) 58%, var(--encre)); }
.btn-accent:hover { box-shadow: 0 10px 0 -1px color-mix(in srgb, var(--accent) 58%, var(--encre)); }
.btn-accent:active { box-shadow: 0 2px 0 -1px color-mix(in srgb, var(--accent) 58%, var(--encre)); }
.btn-plein { background: var(--texte); color: var(--fond); }
.btn-contour { background: transparent; color: var(--texte); box-shadow: inset 0 0 0 2px var(--texte); }
.btn-grand { font-size: clamp(1.05rem, 1.25vw, 1.18rem); padding: clamp(17px, 1.4vw, 20px) clamp(26px, 2.2vw, 34px); }
.btn-petit { font-size: .92rem; padding: 10px 18px; }
.btn .fleche { display: inline-block; transition: transform .2s var(--rebond); }
.btn:hover .fleche { transform: translateX(5px); }
.btn:hover .fleche.bas { transform: translateY(5px); }

/* ---------- Menu ---------- */
.entete { position: fixed; inset: 0 0 auto 0; z-index: 60; padding: clamp(16px, 2vw, 28px) var(--marge) clamp(10px, 1vw, 14px); transition: padding .25s var(--glisse), background-color .25s ease, box-shadow .25s ease; }
/* Le menu reste en haut : une fois qu'on descend, il devient compact et plein (on ne voit rien au travers). */
.logo .logo-colle { display: none; }
/* Une fois qu'on descend : une barre ronde qui flotte, encre texturée, avec une jauge orange qui suit la lecture de la page. */
.entete.colle { padding-block: 10px 0; }
.entete.colle .barre {
  position: relative; overflow: hidden; max-width: 1400px; margin-inline: auto; padding: 8px 8px 8px 24px; border-radius: 999px; color: var(--creme);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    radial-gradient(120% 220% at 0% 0%, #3d2817 0, var(--encre) 55%, #1a100a 100%);
  box-shadow: 0 0 0 1.5px rgba(247, 244, 238, .12), 0 18px 34px -16px rgba(26, 16, 10, .65);
  animation: barre-arrive .35s cubic-bezier(.2, 1.3, .4, 1);
}
.entete.colle .barre::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--lu, 0) * 100%); background: var(--accent); border-radius: 0 3px 3px 0; }
@keyframes barre-arrive { from { transform: translateY(-120%); } }
.entete.colle .logo img { height: clamp(24px, 2vw, 30px); }
.entete.colle .logo img:not(.logo-colle) { display: none; }
.entete.colle .logo .logo-colle { display: block; }
.entete.colle .menu a:not(.btn) { color: var(--creme); }
.entete.colle .menu .btn { padding: 10px 20px; background: var(--accent); color: var(--encre); }
html[data-porte="fun"] .entete.colle .menu .btn { color: var(--blanc); }
.logo img { transition: height .25s var(--glisse); }
.barre { display: flex; align-items: center; gap: 20px; }
.logo { display: block; flex: none; }
.logo img { height: clamp(26px, 2.4vw, 36px); width: auto; }
.menu { margin-left: auto; display: flex; align-items: center; gap: clamp(2px, .6vw, 10px); }
.menu a:not(.btn) { position: relative; font-weight: 600; font-size: 1rem; text-decoration: none; padding: 10px 12px; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2.5px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--glisse); }
.menu a:not(.btn):hover::after, .menu a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.menu .btn { margin-left: 10px; padding: 12px 22px; font-size: 1rem; }
.menu-porte { display: none; }
.burger { display: none; }
@media (max-width: 1180px) {
  .burger {
    display: grid; place-items: center; position: fixed; z-index: 3; top: 12px; right: 14px; width: 54px; height: 54px; border: 0; border-radius: 50%;
    background: var(--encre); color: var(--creme); cursor: pointer; box-shadow: 0 0 0 2px var(--creme), 0 8px 20px rgba(0, 0, 0, .25);
  }
  .burger i { grid-area: 1 / 1; width: 22px; height: 3px; border-radius: 2px; background: currentColor; transition: transform .25s var(--rebond); }
  .burger i:first-child { transform: translateY(-4.5px); }
  .burger i:last-child { transform: translateY(4.5px); }
  .ouvert .burger i:first-child { transform: rotate(45deg); }
  .ouvert .burger i:last-child { transform: rotate(-45deg); }
  .menu {
    position: fixed; inset: 0; z-index: 2; margin: 0; padding: 96px var(--marge) 34px;
    flex-direction: column; align-items: flex-start; gap: 0; overflow-y: auto;
    background: var(--accent); color: var(--sur-accent); visibility: hidden; clip-path: circle(0 at calc(100% - 41px) 39px);
    transition: clip-path .5s var(--glisse), visibility 0s .5s;
  }
  .ouvert .menu { visibility: visible; clip-path: circle(150% at calc(100% - 41px) 39px); transition: clip-path .5s var(--glisse); }
  .menu a:not(.btn) { font-weight: 800; font-size: clamp(2.2rem, 11vw, 3.4rem); letter-spacing: -.04em; line-height: 1.08; padding: 6px 0; }
  .menu a:not(.btn)::after { display: none; }
  .menu a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
  .menu .btn { margin: 24px 0 0; font-size: 1.1rem; padding: 17px 30px; background: var(--encre); color: var(--creme); }
  .menu-porte { display: block; margin-top: auto; padding-top: 28px; font-weight: 600; }
}

/* ---------- Titres ---------- */
.geant { font-weight: 800; letter-spacing: -.045em; line-height: .9; }
.geant .ligne { display: block; white-space: nowrap; }
.couleur { color: var(--accent); }
.t2 { font-weight: 800; letter-spacing: -.04em; line-height: .96; font-size: clamp(2.1rem, 5vw, 4.6rem); text-wrap: balance; }
.t3 { font-weight: 800; letter-spacing: -.025em; line-height: 1.05; font-size: clamp(1.5rem, 2.6vw, 2.3rem); }
.chapo { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.35; color: var(--doux); max-width: 30ch; text-wrap: pretty; }
.pastille { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.pastille i { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); animation: pouls 1.8s ease-in-out infinite; }
.section { padding-block: clamp(64px, 8vw, 120px); }
.tete { display: grid; gap: 20px; margin-bottom: clamp(36px, 5.5vw, 80px); }
.lien { font-weight: 600; font-size: 1.08rem; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.lien:hover { color: var(--accent); }
.suite { margin-top: clamp(28px, 4vw, 48px); }

/* Les grandes feuilles de couleur qui se recouvrent */
.feuille { position: relative; z-index: 1; border-radius: var(--r) var(--r) 0 0; margin-top: calc(-1 * var(--r)); }
.avant-feuille { padding-bottom: calc(var(--r) + clamp(64px, 8vw, 120px)); }
@keyframes pouls { 50% { transform: scale(1.6); opacity: .5; } }
@keyframes danse { from { transform: translateY(10px) rotate(-6deg); } to { transform: translateY(-16px) rotate(8deg) scale(1.06); } }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ---------- Accueil : le haut de page ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding-top: clamp(96px, 13vh, 150px); overflow: clip; }
.hero-texte { position: relative; z-index: 2; pointer-events: none; }
.hero-texte a, .hero-texte button { pointer-events: auto; }
.hero .geant { font-size: clamp(2.3rem, 10.4vw, 5rem); }
.hero-bas { display: grid; gap: clamp(18px, 2vw, 28px); justify-items: start; margin-top: clamp(22px, 3.4vh, 44px); }
.hero-gestes { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (min-width: 760px) { .hero .geant { font-size: min(8.2vw, 13vh); } }

.geant .ligne > span { display: inline-block; }
.pret .geant .ligne > span { animation: monte .9s var(--glisse) backwards; }
.geant .ligne:nth-child(2) > span { animation-delay: .09s; }
.geant .ligne:nth-child(3) > span { animation-delay: .18s; }
.geant .ligne:nth-child(4) > span { animation-delay: .27s; }
@keyframes monte { from { transform: translateY(.7em) rotate(4deg); opacity: 0; } }
.point { display: inline-block; color: var(--accent); transform-origin: 50% 100%; }
.pret .point { animation: tombe 1.1s .85s backwards; }
@keyframes tombe {
  0% { transform: translateY(-4.4em); opacity: 0; animation-timing-function: cubic-bezier(.5, 0, 1, .6); }
  10% { opacity: 1; }
  42% { transform: translateY(0) scale(1.5, .5); animation-timing-function: cubic-bezier(0, .5, .5, 1); }
  60% { transform: translateY(-.8em) scale(.88, 1.14); animation-timing-function: cubic-bezier(.5, 0, 1, .6); }
  78% { transform: translateY(0) scale(1.2, .78); }
  100% { transform: none; }
}

/* booma.pro : les bulles du lundi matin (la forme du « a » du logo) */
.bulles { position: relative; z-index: 3; display: grid; gap: 12px; justify-items: start; margin-top: 30px; padding-bottom: 60px; }
.bulle-flotte { translate: calc(var(--mx) * var(--f, 10) * 1px) calc(var(--my) * var(--f, 10) * 1px); transition: translate .5s var(--glisse); animation: flotte 5.5s ease-in-out infinite alternate; }
.bulle-flotte:nth-of-type(even) { animation-duration: 6.8s; animation-delay: -2s; }
.bulle-flotte.d { justify-self: end; }
.bulle {
  font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.15rem, 1.9vw, 1.9rem); line-height: 1.15; padding: .7em 1.1em;
  border-radius: 1.6em 1.6em 1.6em .25em; max-width: 15em; box-shadow: 0 22px 44px -20px rgba(42, 26, 14, .45);
  rotate: var(--a, 0deg); transform-origin: 0 100%;
}
.pret .bulle { animation: pop .65s var(--rebond) backwards; animation-delay: calc(.9s + var(--i) * .38s); }
.d .bulle { border-radius: 1.6em 1.6em .25em 1.6em; transform-origin: 100% 100%; }
.bulle.b-blanc { background: var(--blanc); color: var(--encre); }
.bulle.b-orange { background: var(--orange); color: var(--encre); }
.bulle.b-encre { background: var(--encre); color: var(--creme); }
.bulle.b-ardoise { background: var(--ardoise); color: var(--blanc); }
.bulle.ecrit { display: inline-flex; gap: 8px; padding: 1em 1.15em; }
.bulle.ecrit i { width: 11px; height: 11px; border-radius: 50%; background: var(--ardoise); animation: saute 1.2s ease-in-out infinite; }
.bulle.ecrit i:nth-child(2) { animation-delay: .15s; }
.bulle.ecrit i:nth-child(3) { animation-delay: .3s; }
@keyframes pop { from { transform: scale(.1) rotate(-14deg); opacity: 0; } }
@keyframes flotte { to { transform: translateY(-12px) rotate(1deg); } }
@keyframes saute { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-7px); } }
@media (min-width: 1000px) {
  .bulles { position: absolute; inset: 0; margin-block: 0; padding: 0; display: block; pointer-events: none; }
  .bulle-flotte { position: absolute; }
  .bulle { max-width: 11.5em; font-size: clamp(1.05rem, 1.6vw, 1.65rem); }
  .bulle-flotte:nth-of-type(1) { left: 73%; top: 33%; --f: 16; --a: 3deg; }
  .bulle-flotte:nth-of-type(2) { left: 55%; top: 46.5%; --f: -22; --a: -4deg; }
  .bulle-flotte:nth-of-type(3) { left: 70%; top: 61%; --f: 28; --a: 2.5deg; }
  .bulle-flotte:nth-of-type(4) { left: 61%; top: 75%; --f: -14; --a: -2deg; }
  .bulle-flotte:nth-of-type(5) { left: 82%; top: 84%; --f: 20; }
  .bulle-flotte:nth-of-type(2) .bulle { font-size: clamp(1.3rem, 2.1vw, 2.2rem); }
}

/* booma.pro sur téléphone : le premier écran plein orange, comme une affiche (approuvé par Yannick le samedi 21 novembre 2026) */
.logo .logo-blanc { display: none; }
@media (max-width: 759px) {
  html[data-porte="pro"]:has(.hero) .entete:not(.colle) .logo img:not(.logo-blanc) { display: none; }
  html[data-porte="pro"]:has(.hero) .entete:not(.colle) .logo .logo-blanc { display: block; }
  html[data-porte="pro"] .hero { min-height: 100vh; min-height: 100svh; background: var(--orange); color: var(--encre); padding: 104px 0 0; display: flex; flex-direction: column; border-radius: 0 0 34px 34px; }
  html[data-porte="pro"] .hero .geant { font-size: 12.5vw; line-height: .92; letter-spacing: -.045em; }
  html[data-porte="pro"] .hero .geant .couleur, html[data-porte="pro"] .hero .geant .point { color: var(--blanc); }
  html[data-porte="pro"] .hero .chapo { color: var(--encre); opacity: .82; font-size: 1.05rem; }
  html[data-porte="pro"] .hero .btn-accent { background: var(--encre); color: var(--creme); box-shadow: 0 6px 0 -1px #000; }
  html[data-porte="pro"] .hero .btn-contour { color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); }
  html[data-porte="pro"] .hero .hero-gestes { gap: 10px; }
  html[data-porte="pro"] .hero-bas { margin-top: 20px; gap: 18px; }
  /* Les bulles arrivent comme des notifications de collègues, dans le bas de l'écran */
  html[data-porte="pro"] .hero .bulles { position: relative; flex: 1; min-height: 250px; margin: 18px 0 0; padding: 0; display: block; }
  html[data-porte="pro"] .hero .bulle-flotte { position: absolute; }
  html[data-porte="pro"] .hero .bulle { font-size: 1rem; max-width: 12.5em; box-shadow: 0 18px 30px -16px rgba(42, 26, 14, .55); }
  html[data-porte="pro"] .hero .bulle.b-orange { background: var(--creme); }
  html[data-porte="pro"] .hero .bulle-flotte:nth-of-type(1) { left: 3%; top: 4%; --a: -3deg; }
  html[data-porte="pro"] .hero .bulle-flotte:nth-of-type(2) { right: 3%; top: 30%; --a: 3deg; }
  html[data-porte="pro"] .hero .bulle-flotte:nth-of-type(3) { left: 6%; top: 58%; --a: -2deg; }
  html[data-porte="pro"] .hero .bulle-flotte:nth-of-type(4) { display: none; }
  html[data-porte="pro"] .hero .bulle-flotte:nth-of-type(5) { right: 8%; top: 80%; }
  /* Un toucher sur le fond orange fait naître une bulle, qui monte puis s'efface (site.js) */
  .bulle-nee { position: absolute; z-index: 5; width: max-content; max-width: 13em; font-size: 1rem; translate: -50% -100%; pointer-events: none; animation: nait 2.6s var(--glisse) forwards; }
  @keyframes nait { 0% { scale: .2; opacity: 0; } 8% { scale: 1.06; opacity: 1; } 14% { scale: 1; } 80% { opacity: 1; translate: -50% -100%; } 100% { opacity: 0; translate: -50% -150%; } }
}

/* booma.fun : le tampon et les billes qu'on lance */
html[data-porte="fun"] .hero .geant { font-size: clamp(2.6rem, 12vw, 6rem); }
@media (min-width: 760px) { html[data-porte="fun"] .hero .geant { font-size: min(9.8vw, 15.5vh); } }
.tampon {
  display: inline-block; background: var(--tomate); color: var(--creme); padding: .02em .18em .1em; margin: .06em 0 0 -.06em;
  border-radius: .2em; transform: rotate(-3deg); box-shadow: 0 .12em 0 rgba(0, 0, 0, .35);
}
.pret .tampon { animation: tamponne .5s .75s var(--rebond) backwards; }
@keyframes tamponne { from { transform: rotate(-16deg) scale(2.8); opacity: 0; } }
html[data-porte="fun"] .hero { padding-bottom: clamp(250px, 40vh, 420px); }
html[data-porte="fun"].pret .hero { animation: secousse .35s 1.12s; }
@keyframes secousse { 20% { transform: translate(-7px, 5px); } 45% { transform: translate(6px, -4px); } 70% { transform: translate(-3px, 2px); } }
.bac { position: absolute; inset: 0; z-index: 1; pointer-events: none; --k: .44; }
.bille {
  position: absolute; left: 0; bottom: 0; width: calc(var(--d) * var(--k)); height: calc(var(--d) * var(--k)); border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; letter-spacing: -.03em; font-size: calc(var(--d) * var(--k) * .2);
  pointer-events: auto; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; will-change: transform;
}
.bille:active { cursor: grabbing; }
.bille.g { --d: 240px; } .bille.m { --d: 164px; } .bille.p { --d: 100px; }
.bille.c-tomate { background: var(--tomate); color: var(--creme); }
.bille.c-orange { background: var(--orange); color: var(--encre); }
.bille.c-creme { background: var(--creme); color: var(--encre); }
.bille.c-ardoise { background: var(--ardoise); color: var(--creme); }
.bille.anneau { background: none; border: calc(var(--d) * var(--k) * .2) solid var(--tomate); }
.bille.anneau.c-orange { border-color: var(--orange); }
.bille.anneau.c-creme { border-color: var(--creme); }
.bille.gout { border-radius: 50% 50% 12% 50%; }
.bac:not(.vivant) .bille:nth-child(1) { left: 2%; } .bac:not(.vivant) .bille:nth-child(2) { left: 24%; }
.bac:not(.vivant) .bille:nth-child(3) { left: 40%; } .bac:not(.vivant) .bille:nth-child(4) { left: 62%; }
.bac:not(.vivant) .bille:nth-child(5) { left: 80%; } .bac:not(.vivant) .bille:nth-child(n+6) { display: none; }
.bac.vivant .bille { bottom: auto; top: 0; }
@media (min-width: 620px) { .bac { --k: .66; } }
@media (min-width: 1000px) { .bac { --k: .76; } }
.hero-indice { position: absolute; z-index: 2; right: var(--marge); bottom: 18px; font-weight: 600; font-size: .9rem; color: var(--doux); pointer-events: none; }

/* ---------- booma.pro : l'énoncé « Sérieux / Festif » ---------- */
/* La bande orange se pose comme une feuille ; en entrant à l'écran, la règle se trace et les coches arrivent une à une (une seule fois). */
.enonce.a-venir .regle { transform: scaleX(0); }
.enonce.a-venir .coches li, .enonce.a-venir .confettis i { opacity: 0; translate: 0 14px; }
.enonce.vu .regle { transform-origin: 0 50%; transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.enonce.vu .coches li, .enonce.vu .confettis i { transition: opacity .3s ease, translate .4s cubic-bezier(.2, 1.4, .4, 1); }
.enonce.vu .coches li:nth-child(2) { transition-delay: .08s; } .enonce.vu .coches li:nth-child(3) { transition-delay: .16s; }
.enonce.vu .confettis i:nth-child(2) { transition-delay: .05s; } .enonce.vu .confettis i:nth-child(3) { transition-delay: .1s; } .enonce.vu .confettis i:nth-child(4) { transition-delay: .15s; } .enonce.vu .confettis i:nth-child(5) { transition-delay: .2s; } .enonce.vu .confettis i:nth-child(6) { transition-delay: .25s; }
.enonce { position: relative; z-index: 1; padding-block: clamp(70px, 9vw, 150px) calc(var(--r) + clamp(80px, 10vw, 160px)); }
.enonce-grille { display: grid; gap: clamp(50px, 8vw, 80px); }
@media (min-width: 900px) { .enonce-grille { grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 90px); } }
.enonce h2 { font-weight: 800; letter-spacing: -.045em; line-height: .92; font-size: clamp(2.3rem, 9.4vw, 4.4rem); }
@media (min-width: 900px) { .enonce h2 { font-size: min(4.8vw, 5.4rem); } }
.enonce h2 span { display: block; white-space: nowrap; }
.regle { height: 22px; margin: clamp(20px, 2.4vw, 34px) 0; border-top: 4px solid var(--encre); background: repeating-linear-gradient(90deg, var(--encre) 0 3px, transparent 3px 26px) 0 0 / 100% 12px no-repeat; }
.festif h2 span { display: inline-block; animation: danse-mot 1.5s ease-in-out infinite alternate; }
.festif h2 span:nth-child(1) { background: var(--creme); padding: 0 .16em .06em; border-radius: .2em; rotate: -5deg; }
.festif h2 span:nth-child(2) { rotate: 4deg; margin-left: .12em; animation-delay: -.5s; }
.festif h2 span:nth-child(3) { rotate: -3deg; animation-delay: -1s; }
.festif h2 span:nth-child(4) { background: var(--encre); color: var(--creme); padding: 0 .16em .06em; border-radius: .2em; rotate: 3deg; margin-left: .1em; animation-delay: -.25s; }
@keyframes danse-mot { from { transform: translateY(.08em) rotate(-2deg); } to { transform: translateY(-.12em) rotate(3deg); } }
.festif { position: relative; }
.confettis { height: 22px; margin: clamp(20px, 2.4vw, 34px) 0; display: flex; gap: 14px; align-items: center; }
.confettis i { width: 22px; height: 22px; border-radius: 50%; background: var(--encre); animation: saute 1s ease-in-out infinite; }
.confettis i:nth-child(2) { background: var(--creme); animation-delay: .1s; border-radius: 50% 50% 12% 50%; }
.confettis i:nth-child(3) { background: none; border: 6px solid var(--tomate); animation-delay: .2s; }
.confettis i:nth-child(4) { background: var(--tomate); animation-delay: .3s; }
.confettis i:nth-child(5) { background: var(--creme); animation-delay: .4s; }
.confettis i:nth-child(6) { background: none; border: 6px solid var(--encre); animation-delay: .5s; border-radius: 50% 50% 12% 50%; }
.coches { display: grid; gap: 14px; font-weight: 600; font-size: clamp(1.08rem, 1.6vw, 1.4rem); line-height: 1.25; }
.coches li { display: flex; gap: 14px; align-items: flex-start; }
.coches li::before { content: ""; flex: none; width: 1.25em; height: 1.25em; margin-top: .02em; border-radius: 50%; background: var(--encre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.3 2.3 4.6-5' fill='none' stroke='%23F7F4EE' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 62% no-repeat; }

/* ---------- Rubans de mots géants, portés par le défilement ---------- */
.rubans { overflow: clip; padding-block: clamp(30px, 5vw, 70px); display: grid; gap: clamp(6px, 1vw, 14px); }
.ruban { display: flex; width: max-content; align-items: center; font-weight: 800; letter-spacing: -.045em; line-height: 1; font-size: clamp(2.4rem, 7vw, 6.6rem); white-space: nowrap; will-change: transform; animation: ruban-g 60s linear infinite; }
.ruban.r2 { animation-name: ruban-d; animation-duration: 70s; }
@keyframes ruban-g { from { transform: translateX(0); } to { transform: translateX(-25%); } }
@keyframes ruban-d { from { transform: translateX(-25%); } to { transform: translateX(0); } }
html.calme .ruban { animation: none; }
.ruban li { display: flex; align-items: center; }
.ruban li::after { content: ""; flex: none; width: .42em; height: .42em; margin-inline: .3em; border-radius: 50%; background: var(--accent); }
.ruban li:nth-child(3n+2)::after { border-radius: 50% 50% 12% 50%; background: var(--texte); }
.ruban li:nth-child(3n)::after { background: none; border: .1em solid var(--accent); }
.ruban li:nth-child(even) { color: var(--fond); -webkit-text-stroke: clamp(3px, .34vw, 6px) var(--texte); paint-order: stroke fill; }
html[data-porte="fun"] .rubans { padding-block: clamp(50px, 8vw, 110px); gap: 0; margin-top: calc(-1 * clamp(40px, 6vw, 90px)); position: relative; z-index: 3; }
html[data-porte="fun"] .ruban-bande { background: var(--tomate); color: var(--creme); padding-block: clamp(10px, 1.4vw, 22px); rotate: -3deg; margin-inline: -4%; box-shadow: 0 10px 0 rgba(0, 0, 0, .25); }
html[data-porte="fun"] .ruban-bande + .ruban-bande { background: var(--creme); color: var(--encre); rotate: 2.2deg; margin-top: clamp(-34px, -2.4vw, -14px); }
html[data-porte="fun"] .ruban { font-size: clamp(1.8rem, 5vw, 4.6rem); text-transform: uppercase; }
html[data-porte="fun"] .ruban li:nth-child(even) { color: inherit; -webkit-text-stroke: 0; }
html[data-porte="fun"] .ruban li::after { background: currentColor; border: 0; }

/* ---------- La démo jouable : la salle s'allume ---------- */
.salle { --accent: var(--orange); overflow: clip; padding-block: clamp(64px, 8vw, 120px) calc(var(--r) + clamp(64px, 8vw, 120px)); }
.salle .t2 { max-width: 11em; }
.projos { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease; overflow: hidden; }
.projos i { position: absolute; top: -30%; width: 46vw; height: 150%; transform-origin: 50% 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--creme) 34%, transparent), transparent 82%); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); animation: balaie 3.4s ease-in-out infinite alternate; }
.projos i:nth-child(1) { left: -8%; --de: -18deg; --a: 22deg; }
.projos i:nth-child(2) { left: 28%; --de: 14deg; --a: -16deg; animation-duration: 2.7s; }
.projos i:nth-child(3) { left: 62%; --de: -10deg; --a: 20deg; animation-duration: 4s; }
@keyframes balaie { from { transform: rotate(var(--de)); } to { transform: rotate(var(--a)); } }
.salle.allumee .projos { opacity: 1; }
.demo-scene { position: relative; display: grid; gap: 26px; align-items: end; }
@media (min-width: 900px) { .demo-scene { grid-template-columns: 330px minmax(0, 1fr); gap: 0; } .tel { margin-right: -70px; margin-bottom: -40px; } .ecran { padding-left: clamp(100px, 9vw, 130px) !important; } }
.tel {
  position: relative; z-index: 2; border-radius: 46px; padding: 12px; background: #120a05; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 2px rgba(247, 244, 238, .22);
  width: min(100%, 350px); margin-inline: auto; transform: rotate(-4deg);
}
.tel-ecran { border-radius: 35px; background: var(--creme); color: var(--encre); padding: 22px 18px 20px; display: grid; gap: 12px; min-height: 440px; align-content: start; }
.tel-haut { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .8rem; color: var(--ardoise); }
.tel-haut b { font-weight: 800; font-size: 1.1rem; color: var(--encre); letter-spacing: -.03em; }
.tel-haut b i { font-style: normal; color: var(--orange); }
.tel-q { font-weight: 800; font-size: 1.45rem; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; margin-block: 4px 6px; }
.tel-choix { display: grid; gap: 9px; }
.choix {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font-weight: 600; font-size: 1.04rem;
  padding: 12px 16px 12px 12px; border: 0; border-radius: 999px; background: var(--blanc); color: var(--encre); cursor: pointer;
  box-shadow: 0 4px 0 rgba(42, 26, 14, .18), inset 0 0 0 1.5px rgba(42, 26, 14, .12);
  transition: transform .15s var(--rebond), box-shadow .15s ease, background .15s ease, color .15s ease, opacity .2s ease;
}
.choix b { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--creme); font-size: .88rem; font-weight: 800; }
.choix:hover:not(:disabled) { transform: translateY(-2px) rotate(-.6deg); box-shadow: 0 6px 0 rgba(42, 26, 14, .18), inset 0 0 0 2px var(--encre); }
.choix:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(42, 26, 14, .18), inset 0 0 0 2px var(--encre); }
.choix:disabled { cursor: default; }
.choix.bonne { background: var(--encre); color: var(--creme); box-shadow: none; animation: pop-doux .4s var(--rebond); }
.choix.bonne b { background: var(--creme); color: var(--encre); }
.choix.ratee { animation: secoue .4s ease; text-decoration: line-through; opacity: .6; box-shadow: inset 0 0 0 1.5px rgba(42, 26, 14, .12); }
.choix.autre { opacity: .42; box-shadow: inset 0 0 0 1.5px rgba(42, 26, 14, .12); }
@keyframes secoue { 25% { transform: translateX(-7px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
@keyframes pop-doux { from { transform: scale(.9); } }
.tel-suite { font-weight: 600; font-size: 1rem; line-height: 1.3; min-height: 2.6em; }
.tel-ecran .btn-contour { color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); justify-self: start; }

.ecran {
  --h: clamp(48px, 4.2vw, 60px); position: relative; border-radius: clamp(24px, 3vw, 44px); padding: clamp(18px, 3vw, 46px); background: #1c110a;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 2px rgba(247, 244, 238, .14); display: grid; gap: clamp(14px, 1.6vw, 24px); color: var(--creme);
  transition: box-shadow .5s ease;
}
.allume.ecran { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 90px -10px color-mix(in srgb, var(--orange) 70%, transparent), inset 0 0 0 2px rgba(247, 244, 238, .3); }
.ecran-tete { display: grid; gap: 4px; font-weight: 600; padding-right: clamp(80px, 10vw, 150px); }
.direct { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.8rem); letter-spacing: -.03em; }
.direct i { width: .5em; height: .5em; border-radius: 50%; background: rgba(247, 244, 238, .4); }
.allume .direct i { background: var(--tomate); animation: pouls 1.1s ease-in-out infinite; }
.ecran-etat { font-size: clamp(.92rem, 1.2vw, 1.1rem); color: rgba(247, 244, 238, .7); }
.rangs { position: relative; height: calc(5 * var(--h) + 4 * 10px); }
.rang {
  position: absolute; inset: 0 0 auto 0; height: var(--h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(8px, 1vw, 16px);
  padding: 0 clamp(16px, 2vw, 30px) 0 clamp(8px, .8vw, 12px); border-radius: 999px; background: rgba(247, 244, 238, .07); overflow: hidden; font-weight: 600;
  transform: translateY(calc(var(--rang) * (var(--h) + 10px))); transition: transform .8s var(--rebond);
}
.rang > * { position: relative; z-index: 1; }
.rang .jauge { position: absolute; z-index: 0; inset: 0; border-radius: 999px; transform-origin: 0 50%; transform: scaleX(var(--part)); transition: transform 1s var(--glisse), background .4s ease; background: rgba(247, 244, 238, .1); }
.allume .rang .jauge { background: color-mix(in srgb, var(--orange) 46%, #1c110a); }
.allume .rang.vous .jauge { background: var(--orange); }
.rang .pos { display: grid; place-items: center; width: calc(var(--h) - 18px); height: calc(var(--h) - 18px); border-radius: 50%; background: var(--creme); color: var(--encre); font-weight: 800; font-size: clamp(1rem, 1.6vw, 1.5rem); }
.rang .nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(1rem, 1.5vw, 1.3rem); letter-spacing: -.01em; }
.rang .pts { font-weight: 800; font-size: clamp(1.05rem, 1.6vw, 1.45rem); font-variant-numeric: tabular-nums; }
.rang.vous { z-index: 2; }
.rang.vous .nom { font-weight: 800; }
.allume .rang.vous { color: var(--encre); }
.ecran-pied { font-weight: 600; font-size: clamp(1.02rem, 1.7vw, 1.5rem); line-height: 1.25; color: rgba(247, 244, 238, .7); min-height: 2.5em; text-wrap: balance; }
.allume .ecran-pied { color: var(--creme); }
.medaille { position: absolute; z-index: 4; right: clamp(-10px, -1vw, -24px); top: clamp(-26px, -3vw, -50px); display: grid; place-content: center; width: clamp(90px, 9vw, 132px); aspect-ratio: 1; border-radius: 50%; background: var(--creme); color: var(--encre); font-weight: 800; letter-spacing: -.04em; line-height: .9; text-align: center; font-size: clamp(1.4rem, 2.4vw, 2.2rem); rotate: 12deg; box-shadow: 0 10px 0 rgba(0, 0, 0, .3); }
.medaille[hidden] { display: none; }
.medaille:not([hidden]) { animation: tamponne .45s var(--rebond) backwards; }
.medaille small { display: block; font-size: .36em; letter-spacing: 0; font-weight: 600; margin-top: .3em; }
.eclat { position: absolute; z-index: 5; left: 0; top: 0; border-radius: 50%; pointer-events: none; }

/* ---------- booma.fun : pour qui ---------- */
.lieux { display: grid; gap: 16px; }
@media (min-width: 600px) { .lieux { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 960px) { .lieux { grid-template-columns: repeat(3, 1fr); gap: 22px; row-gap: clamp(28px, 4vw, 64px); } }
.lieu { position: relative; border-radius: clamp(28px, 3vw, 44px); padding: clamp(24px, 2.6vw, 40px); min-height: clamp(240px, 27vw, 390px); display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; overflow: hidden; transition: transform .35s var(--rebond); }
.lieu:nth-child(3n+1) { rotate: -1.5deg; } .lieu:nth-child(3n+2) { rotate: 1deg; } .lieu:nth-child(3n) { rotate: -.6deg; }
@media (min-width: 960px) { .lieu:nth-child(3n+2) { translate: 0 clamp(0px, 3vw, 46px); } }
.lieu:hover { transform: rotate(-2.5deg) scale(1.03); }
.lieu:nth-child(3n+2):hover { transform: rotate(2.5deg) scale(1.03); }
.lieu h3 { position: relative; font-weight: 800; letter-spacing: -.04em; line-height: .95; font-size: clamp(1.8rem, 2.6vw, 2.5rem); text-wrap: balance; }
.lieu p { position: relative; font-weight: 600; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.3; max-width: 22ch; }
/* Le dessin du lieu : une pastille en haut à droite, qui danse; le texte reste en bas, jamais dessous. */
/* Hors norme : une grosse pastille qui déborde du coin de la carte, le dessin géant dedans. */
.lieu { min-height: clamp(320px, 31vw, 440px); }
.lieu-ic { position: absolute; top: -9%; right: -9%; width: 62%; max-width: 270px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--encre); color: var(--pastille, var(--creme)); animation: danse 3.2s ease-in-out infinite alternate; }
.lieu-ic svg { width: 54%; height: 54%; translate: -6% 8%; rotate: -8deg; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--rebond); }
.lieu:hover .lieu-ic svg { transform: rotate(14deg) scale(1.12); }
.lieu h3, .lieu p { z-index: 1; }
.lieu:nth-child(2n) .lieu-ic { border-radius: 50% 50% 14% 50%; animation-delay: -1s; }
.lieu:nth-child(3n) .lieu-ic { animation-delay: -2s; }
.lieu.l1, .lieu.l5 { background: var(--tomate); color: var(--blanc); --pastille: var(--tomate); }
.lieu.l2, .lieu.l6 { background: var(--creme); color: var(--encre); }
.lieu.l2 .lieu-ic, .lieu.l6 .lieu-ic { background: var(--orange); color: var(--encre); }
.lieu.l3, .lieu.l4 { background: var(--orange); color: var(--encre); --pastille: var(--orange); }
.lieu.l4 { background: var(--creme); }
.lieu.l4 .lieu-ic { background: var(--tomate); color: var(--blanc); }
.lieu.l5 { background: var(--orange); color: var(--encre); --pastille: var(--orange); }
.lieu.l6 { background: var(--tomate); color: var(--blanc); }
.lieu.l6 .lieu-ic { background: var(--encre); color: var(--tomate); }
@media (prefers-reduced-motion: reduce) { .lieu-ic { animation: none; } }

/* ---------- Un, deux, trois ---------- */
.pas { display: grid; gap: 34px; counter-reset: pas; }
@media (min-width: 860px) { .pas { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.4vw, 60px); } }
.pas li { counter-increment: pas; border-top: 4px solid var(--texte); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.pas li::before { content: counter(pas); font-weight: 800; font-size: clamp(5rem, 10vw, 9.5rem); line-height: .78; letter-spacing: -.07em; color: var(--accent); margin-bottom: .06em; }
.pas p { color: var(--doux); font-size: clamp(1.02rem, 1.3vw, 1.2rem); max-width: 30ch; }

/* ---------- Affiches « Bientôt » ---------- */
.cartes { display: grid; gap: 18px; perspective: 1400px; }
@media (min-width: 640px) { .cartes { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (min-width: 1100px) { .cartes { grid-template-columns: repeat(var(--col, 3), 1fr); gap: clamp(20px, 2vw, 30px); } }
.carte {
  position: relative; display: flex; flex-direction: column; border-radius: clamp(28px, 2.6vw, 42px); overflow: hidden; background: var(--af); color: var(--at);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--glisse), box-shadow .3s ease; transform-style: preserve-3d;
}
.carte:hover { box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .55); }
.aff-arcade { --af: var(--orange); --at: var(--encre); }
.aff-casino { --af: var(--encre); --at: var(--creme); }
html[data-porte="fun"] .aff-casino { --af: #120a05; box-shadow: inset 0 0 0 2px var(--ligne); }
.aff-tirage { --af: var(--creme); --at: var(--encre); }
html[data-porte="pro"] .aff-tirage { --af: var(--blanc); }
.aff-atelier { --af: var(--ardoise); --at: var(--blanc); }
.aff-idee { --af: var(--tomate); --at: var(--blanc); }
.carte-corps { padding: 4px clamp(22px, 2vw, 32px) clamp(24px, 2.2vw, 34px); display: grid; gap: 10px; flex: 1; align-content: end; }
.carte-nom { font-weight: 800; letter-spacing: -.045em; line-height: .9; font-size: clamp(2.6rem, 4.2vw, 4.2rem); }
.cartes.quatre .carte-nom { font-size: clamp(2.4rem, 3.4vw, 3.4rem); }
.carte-corps p { font-weight: 600; font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.3; max-width: 30ch; }
.carte-corps .lien { margin-top: 8px; justify-self: start; font-size: 1rem; }
.carte-corps .lien:hover { color: inherit; text-decoration-thickness: 4px; }
.carte-genre { font-weight: 600; font-size: .92rem; opacity: .85; }
.collant { position: absolute; z-index: 2; top: 14px; right: 14px; width: clamp(84px, 7.4vw, 112px); aspect-ratio: 1; border-radius: 50%; background: var(--creme); color: var(--encre); display: grid; place-items: center; rotate: 10deg; box-shadow: 0 5px 0 rgba(0, 0, 0, .22); }
.collant svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: tourne 9s linear infinite; }
.collant text { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 13.4px; letter-spacing: 1.2px; fill: currentColor; }
.collant i { width: 24%; aspect-ratio: 1; border-radius: 50%; background: var(--tomate); animation: pouls 1.4s ease-in-out infinite; }
.carte.large { margin-top: clamp(20px, 2vw, 30px); }
@media (min-width: 700px) { .carte.large { flex-direction: row; align-items: stretch; } .carte.large .art { flex: none; width: min(36%, 420px); aspect-ratio: auto; min-height: 260px; } .carte.large .carte-corps { align-content: center; padding: 34px clamp(24px, 4vw, 64px); } .carte.large p { max-width: 40ch; font-size: clamp(1.1rem, 1.5vw, 1.35rem); } }

/* Les « images » : formes animées dans les 5 couleurs */
.art { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.art i, .art b { position: absolute; display: block; }
.art-arcade .onde { left: 50%; top: 58%; width: 34%; aspect-ratio: 1; margin: -17% 0 0 -17%; border-radius: 50%; border: 4px solid var(--creme); animation: onde 1.8s ease-out infinite; }
.art-arcade .onde.o2 { animation-delay: -.9s; }
.art-arcade .socle { left: 50%; bottom: 12%; width: 50%; height: 22%; margin-left: -25%; border-radius: 999px; background: var(--encre); }
.art-arcade .dome { left: 50%; bottom: 24%; width: 36%; aspect-ratio: 1.25; margin-left: -18%; border-radius: 50% 50% 14% 14% / 78% 78% 22% 22%; background: var(--tomate); transform-origin: 50% 100%; animation: presse 1.8s var(--rebond) infinite; }
@keyframes onde { from { transform: scale(.7); opacity: .95; } to { transform: scale(2.8); opacity: 0; } }
@keyframes presse { 0%, 100% { transform: none; } 8% { transform: scaleY(.58) scaleX(1.08); } 22% { transform: scaleY(1.08); } 34% { transform: none; } }
.art-casino .carte-jeu { right: 15%; top: 14%; width: 25%; aspect-ratio: .7; border-radius: 12%; background: var(--creme); transform: rotate(14deg); animation: bascule 4s ease-in-out infinite alternate; }
.art-casino .carte-jeu::after { content: ""; position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1; margin: -21% 0 0 -21%; background: var(--tomate); border-radius: 50% 50% 12% 50%; transform: rotate(45deg); }
.art-casino .jeton { width: 32%; aspect-ratio: 1; border-radius: 50%; background: var(--tomate); border: clamp(4px, .5vw, 8px) dashed var(--creme); outline: clamp(4px, .5vw, 8px) solid var(--tomate); outline-offset: -1px; }
.art-casino .j1 { left: 11%; bottom: 8%; background: var(--orange); outline-color: var(--orange); animation: tourne 9s linear infinite; }
.art-casino .j2 { left: 29%; bottom: 26%; animation: tourne 7s linear infinite reverse; }
.art-casino .j3 { left: 45%; bottom: 5%; width: 21%; background: var(--ardoise); outline-color: var(--ardoise); animation: retourne 3.2s ease-in-out infinite; }
@keyframes retourne { 0%, 55%, 100% { transform: rotateY(0); } 75% { transform: rotateY(180deg) translateY(-22%); } }
@keyframes bascule { to { transform: rotate(-6deg) translateY(-6%); } }
.art-tirage .tambour { left: 50%; top: 58%; width: 48%; aspect-ratio: 1; margin: -24% 0 0 -24%; border-radius: 50%; border: clamp(6px, .7vw, 11px) solid var(--encre); animation: tourne 6s linear infinite; }
.art-tirage .tambour i { width: 24%; aspect-ratio: 1; border-radius: 50%; }
.art-tirage .tambour i:nth-child(1) { left: 14%; top: 22%; background: var(--tomate); }
.art-tirage .tambour i:nth-child(2) { right: 14%; top: 34%; background: var(--orange); }
.art-tirage .tambour i:nth-child(3) { left: 30%; bottom: 10%; background: var(--ardoise); }
.art-tirage .tambour i:nth-child(4) { right: 30%; top: 8%; width: 17%; background: var(--encre); }
.art-tirage .boule { left: 50%; top: 7%; width: 18%; aspect-ratio: 1; margin-left: -9%; border-radius: 50%; background: var(--orange); color: var(--encre); display: grid; place-items: center; font-weight: 800; font-size: clamp(1.1rem, 2.2vw, 1.9rem); animation: sort 3s var(--rebond) infinite; }
@keyframes sort { 0%, 18% { transform: translateY(170%) scale(.3); } 38%, 82% { transform: none; } 100% { transform: translateY(-180%) scale(.8); } }
.art-atelier i { width: 22%; aspect-ratio: 1; top: 58%; margin-top: -11%; }
.art-atelier .f1 { left: 28%; background: var(--creme); border-radius: 14%; animation: assemble-g 4s var(--glisse) infinite alternate; }
.art-atelier .f2 { left: 50%; background: var(--orange); border-radius: 0 100% 0 0; animation: assemble-d 4s var(--glisse) infinite alternate; }
.art-atelier .f3 { left: 50%; margin-top: -33%; background: var(--encre); border-radius: 50%; animation: assemble-h 4s var(--rebond) infinite alternate; }
.art-atelier .f4 { left: 28%; margin-top: -33%; background: var(--tomate); border-radius: 100% 0 0 0; animation: assemble-h 4s -.3s var(--rebond) infinite alternate; }
@keyframes assemble-g { 0%, 25% { transform: translateX(-90%) rotate(-25deg); } 60%, 100% { transform: none; } }
@keyframes assemble-d { 0%, 25% { transform: translateX(95%) rotate(40deg); } 60%, 100% { transform: none; } }
@keyframes assemble-h { 0%, 35% { transform: translateY(-130%) rotate(60deg); } 75%, 100% { transform: none; } }
.art-idee { display: grid; place-items: center; }
.art-idee b { position: relative; font-weight: 800; font-size: clamp(6rem, 13vw, 11rem); line-height: 1; color: var(--creme); animation: danse 1.7s ease-in-out infinite alternate; }
.art-idee i { width: 17%; aspect-ratio: 1; border-radius: 50%; background: var(--orange); left: 13%; top: 18%; animation: danse 2.2s -.5s ease-in-out infinite alternate; }
.art-idee i + i { left: auto; right: 13%; top: auto; bottom: 16%; width: 11%; background: var(--encre); }

/* ---------- Le grand final et le pied de page ---------- */
.final { overflow: clip; }
.appel { position: relative; padding-block: clamp(70px, 9vw, 140px) clamp(60px, 7vw, 110px); display: grid; gap: clamp(28px, 3.4vw, 50px); justify-items: start; }
.appel .t2 { font-size: clamp(2.6rem, 8vw, 7.6rem); line-height: .92; position: relative; z-index: 1; }
.appel .btn { position: relative; z-index: 1; }
.appel-formes { position: absolute; inset: 0; pointer-events: none; }
.appel-formes i { position: absolute; border-radius: 50%; animation: danse 4s ease-in-out infinite alternate; }
.appel-formes i:nth-child(1) { width: clamp(150px, 30vw, 520px); aspect-ratio: 1; right: -9%; bottom: -8%; background: var(--accent); translate: 0 calc((.5 - var(--p)) * 240px); }
.appel-formes i:nth-child(2) { width: clamp(56px, 9vw, 150px); aspect-ratio: 1; right: 27%; bottom: 5%; border: clamp(12px, 2vw, 34px) solid var(--orange); animation-delay: -2s; translate: 0 calc((.5 - var(--p)) * -70px); }
.appel-formes i:nth-child(3) { width: clamp(40px, 6vw, 100px); aspect-ratio: 1; right: 6%; top: 12%; background: var(--texte); border-radius: 50% 50% 12% 50%; animation-delay: -1s; }
html[data-porte="pro"] .appel-formes i:nth-child(2) { border-color: var(--creme); }
@media (max-width: 760px) { .appel { padding-bottom: clamp(190px, 52vw, 280px); } .appel-formes i:nth-child(2) { right: 46%; bottom: 7%; } }
.pied { padding: clamp(30px, 4vw, 60px) 0 30px; }
.pied-grille { display: grid; gap: 34px; border-top: 2px solid var(--ligne); padding-top: clamp(34px, 4vw, 60px); }
@media (min-width: 800px) { .pied-grille { grid-template-columns: 1.3fr 1fr 1fr; } }
.pied .logo img { height: clamp(34px, 3.4vw, 50px); }
.pied-mot { margin-top: 18px; color: var(--doux); max-width: 26ch; font-size: 1.05rem; }
.pied ul { display: grid; gap: 8px; }
.pied li a { text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.pied li a:hover { text-decoration: underline; text-decoration-thickness: 2.5px; text-underline-offset: 5px; }
.pied-bas { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; font-size: .95rem; color: var(--doux); }
.pied-bas a { color: var(--texte); font-size: .95rem; }
.calme-btn { border: 0; background: none; cursor: pointer; font-weight: 600; font-size: .92rem; padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--ligne); color: var(--texte); }

/* ---------- Pages intérieures ---------- */
.haut-page { position: relative; z-index: 0; padding-top: clamp(110px, 17vh, 180px); padding-bottom: clamp(50px, 7vw, 110px); display: grid; gap: clamp(20px, 2.4vw, 34px); justify-items: start; }
.haut-page .geant { font-size: min(var(--tg, 7.4vw), 7.6rem); }
.haut-page .chapo { max-width: 40ch; }
.haut-forme { position: absolute; z-index: -1; right: 4%; top: 16%; width: clamp(90px, 16vw, 260px); aspect-ratio: 1; border-radius: 50% 50% 12% 50%; background: var(--accent); animation: danse 4s ease-in-out infinite alternate; }

.marche { position: relative; overflow: clip; }
.marche-dans { position: relative; display: grid; gap: clamp(24px, 4vw, 70px); align-items: center; min-height: min(66vh, 600px); padding-block: clamp(50px, 6vw, 90px) calc(var(--r) + clamp(50px, 6vw, 90px)); }
@media (min-width: 860px) { .marche-dans { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } .marche:nth-child(even) .marche-texte { order: 2; } }
.marche-num { position: absolute; z-index: 0; right: -2%; bottom: -10%; font-weight: 800; font-size: clamp(13rem, 38vw, 36rem); line-height: .72; letter-spacing: -.08em; color: var(--texte); opacity: .09; pointer-events: none; translate: 0 calc((.5 - var(--p)) * 30%); }
.marche:nth-child(even) .marche-num { right: auto; left: -2%; }
.marche-texte { position: relative; z-index: 1; display: grid; gap: clamp(14px, 1.6vw, 24px); }
.marche-texte .t2 { font-size: clamp(2.1rem, 4.2vw, 4rem); }
.marche-texte p { color: var(--doux); font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.35; max-width: 32ch; }
.marche-etape { font-weight: 800; font-size: clamp(1rem, 1.3vw, 1.2rem); display: inline-flex; align-items: center; gap: 12px; }
.marche-etape b { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--texte); color: var(--fond); font-size: 1.2em; }
.vignette { position: relative; z-index: 1; aspect-ratio: 1; width: min(100%, 380px); justify-self: center; border-radius: clamp(28px, 4vw, 60px); overflow: hidden; background: var(--carte); rotate: 3deg; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.marche:nth-child(even) .vignette { rotate: -3deg; }
.vignette i, .vignette b { position: absolute; display: block; }
.v-message i { left: 14%; height: 15%; border-radius: 999px 999px 999px 20%; background: var(--texte); transform-origin: 0 100%; animation: pop-boucle 4s var(--rebond) infinite; }
.v-message i:nth-child(1) { top: 18%; width: 52%; }
.v-message i:nth-child(2) { top: 42%; width: 36%; left: auto; right: 14%; background: var(--orange); border-radius: 999px 999px 20% 999px; transform-origin: 100% 100%; animation-delay: .5s; }
.v-message i:nth-child(3) { top: 66%; width: 44%; animation-delay: 1s; }
@keyframes pop-boucle { 0% { transform: scale(0); } 12%, 88% { transform: none; } 100% { transform: scale(0); } }
.v-liste i { left: 14%; right: 14%; height: 17%; border-radius: 999px; background: color-mix(in srgb, var(--texte) 16%, var(--carte)); }
.v-liste i:nth-child(1) { top: 17%; } .v-liste i:nth-child(2) { top: 41.5%; } .v-liste i:nth-child(3) { top: 66%; }
.v-liste i::before { content: ""; position: absolute; left: 3.5%; top: 16%; height: 68%; aspect-ratio: 1; border-radius: 50%; background: var(--texte); animation: coche 4s var(--rebond) infinite both; }
.v-liste i:nth-child(2)::before { animation-delay: .5s; } .v-liste i:nth-child(3)::before { animation-delay: 1s; }
@keyframes coche { 0%, 10% { transform: scale(0); } 22%, 90% { transform: none; } 100% { transform: scale(0); } }
.v-code { display: grid; place-items: center; }
.v-code .qr { position: relative; width: 60%; aspect-ratio: 1; padding: 6%; border-radius: 14%; background: var(--creme); display: grid; grid-template-columns: repeat(7, 1fr); gap: 5%; animation: danse 3s ease-in-out infinite alternate; }
.v-code .qr i { position: static; border-radius: 26%; background: var(--encre); animation: clignote 2.6s ease-in-out infinite; }
.v-code .qr i:nth-child(3n) { animation-delay: -.9s; } .v-code .qr i:nth-child(4n+1) { animation-delay: -1.7s; }
.v-code .qr i.v { background: none; animation: none; }
@keyframes clignote { 50% { transform: scale(.5); } }
.v-salle { background: var(--encre); }
.v-salle i { bottom: 16%; width: 14%; border-radius: 999px 999px 10px 10px; background: var(--creme); transform-origin: 50% 100%; animation: pousse 2.4s ease-in-out infinite alternate; }
.v-salle i:nth-child(1) { left: 13%; height: 34%; }
.v-salle i:nth-child(2) { left: 33%; height: 62%; background: var(--tomate); animation-delay: -.8s; }
.v-salle i:nth-child(3) { left: 53%; height: 46%; background: var(--orange); animation-delay: -1.5s; }
.v-salle i:nth-child(4) { left: 73%; height: 26%; background: var(--ardoise); animation-delay: -.4s; }
@keyframes pousse { from { transform: scaleY(.5); } to { transform: scaleY(1.2); } }
.besoins { display: flex; flex-wrap: wrap; gap: 14px; }
.besoins li { font-weight: 800; letter-spacing: -.035em; line-height: 1; font-size: clamp(1.4rem, 3.2vw, 2.8rem); padding: .42em .7em .48em; border-radius: 999px; box-shadow: inset 0 0 0 3px var(--texte); }
.besoins li:nth-child(2) { background: var(--texte); color: var(--fond); box-shadow: none; rotate: -2.5deg; }
.besoins li:nth-child(3) { background: var(--accent); color: var(--sur-accent); box-shadow: none; rotate: 1.8deg; }

/* ---------- Nous écrire ---------- */
.ecrire { position: relative; z-index: 0; display: grid; gap: clamp(34px, 5vw, 80px); padding-top: clamp(120px, 18vh, 200px); padding-bottom: clamp(70px, 9vw, 140px); align-items: start; }
@media (min-width: 960px) { .ecrire { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ecrire-texte { position: sticky; top: 60px; } }
.ecrire-texte { position: relative; display: grid; gap: clamp(20px, 2.4vw, 32px); justify-items: start; }
.ecrire-texte { isolation: isolate; }
.ecrire-texte .geant { font-size: min(10vw, 5.2rem); }
@media (min-width: 960px) { .ecrire-texte .geant { font-size: min(4.8vw, 5.6rem); } }
.promesses { display: grid; gap: 12px; font-weight: 600; font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.promesses li { display: flex; gap: 14px; align-items: center; }
.promesses li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50% 50% 12% 50%; background: var(--accent); }
.fiche { position: relative; border-radius: clamp(30px, 4vw, 56px); padding: clamp(24px, 3.6vw, 54px); display: grid; gap: 22px; rotate: 1.2deg; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); }
@media (max-width: 700px) { .fiche { rotate: 0deg; } }
.champ { display: grid; gap: 8px; }
.champ > span, .champ > legend { font-weight: 600; font-size: 1.02rem; padding: 0; }
.champ small { font-weight: 400; color: var(--doux); }
.champ input, .champ textarea {
  width: 100%; font: inherit; font-size: 1.08rem; color: var(--texte); background: color-mix(in srgb, var(--texte) 9%, var(--fond)); border: 0; border-radius: 20px; padding: 16px 20px;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, .14), inset 0 0 0 2px var(--ligne); transition: box-shadow .15s ease;
}
.champ textarea { min-height: 140px; resize: vertical; border-radius: 24px; }
.champ input:focus, .champ textarea:focus { outline: none; box-shadow: inset 0 3px 5px rgba(0, 0, 0, .14), inset 0 0 0 3px var(--accent); }
.deux-champs { display: grid; gap: 22px; }
@media (min-width: 620px) { .deux-champs { grid-template-columns: 1fr 1fr; } }
fieldset.champ { border: 0; margin: 0; padding: 0; min-width: 0; }
.puces { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.puces label { position: relative; cursor: pointer; }
.puces input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.puces span { display: block; font-weight: 600; font-size: 1.02rem; padding: 12px 20px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--ligne), 0 4px 0 var(--ligne); transition: transform .15s var(--rebond), background .15s ease, color .15s ease; }
.puces label:hover span { transform: translateY(-2px) rotate(-1deg); }
.puces input:checked + span { background: var(--texte); color: var(--fond); box-shadow: none; transform: translateY(3px); }
.puces input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.fiche-bas { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.fiche-bas p { font-size: .92rem; color: var(--doux); max-width: 34ch; }
.recu { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); color: var(--sur-accent); display: grid; place-content: center; gap: 16px; padding: 30px; text-align: center; justify-items: center; }
.recu[hidden] { display: none; }
.recu:not([hidden]) { animation: ouvre .55s var(--glisse); }
.recu .t2 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
.recu p { font-weight: 600; max-width: 30ch; font-size: 1.1rem; }
.recu .btn-contour { color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
@keyframes ouvre { from { clip-path: circle(0 at 85% 92%); } to { clip-path: circle(150% at 85% 92%); } }

/* ---------- Avis de maquette ---------- */
.avis { position: fixed; z-index: 90; left: 50%; bottom: 22px; translate: -50% 0; background: var(--encre); color: var(--creme); font-weight: 600; font-size: .98rem; padding: 13px 22px; border-radius: 999px; box-shadow: 0 0 0 2px var(--creme), 0 20px 40px -10px rgba(0, 0, 0, .5); max-width: calc(100vw - 32px); text-align: center; animation: pop .35s var(--rebond); }

/* ---------- Page d'entrée de la maquette ---------- */
html[data-porte="entree"] { --fond: var(--creme); --texte: var(--encre); --accent: var(--orange); --ligne: rgba(42, 26, 14, .15); }
.entree { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr; }
.entree-tete { padding: 18px var(--marge); display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: baseline; font-size: .95rem; }
.entree-tete b { font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; }
.portes { display: grid; }
@media (min-width: 800px) { .portes { grid-template-columns: 1fr 1fr; } }
.porte { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(28px, 5vw, 64px) var(--marge); text-decoration: none; min-height: 44vh; }
.porte img { height: clamp(34px, 4vw, 52px); width: auto; align-self: flex-start; position: relative; z-index: 1; }
.porte-pro { background: var(--creme); color: var(--encre); box-shadow: inset 0 2px 0 var(--ligne); }
.porte-fun { background: var(--encre); color: var(--creme); }
.porte h2 { font-weight: 800; letter-spacing: -.045em; line-height: .92; font-size: clamp(2.4rem, 5.4vw, 5.6rem); position: relative; z-index: 1; text-wrap: balance; }
.porte p { position: relative; z-index: 1; font-weight: 600; margin-top: 16px; display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.porte p span { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: currentColor; transition: transform .25s var(--rebond); }
.porte p span::after { content: "→"; font-weight: 800; }
.porte-pro p span::after { color: var(--creme); } .porte-fun p span::after { color: var(--encre); }
.porte:hover p span { transform: translateX(10px) scale(1.12); }
.porte::before { content: ""; position: absolute; border-radius: 50%; width: clamp(200px, 32vw, 520px); aspect-ratio: 1; right: -8%; top: 14%; transition: scale .6s var(--rebond); animation: danse 5s ease-in-out infinite alternate; }
.porte-pro::before { background: var(--orange); border-radius: 50% 50% 12% 50%; }
.porte-fun::before { background: var(--tomate); animation-delay: -2s; }
.porte:hover::before { scale: 1.14; }
.entree-pages { grid-column: 1 / -1; padding: 22px var(--marge) 30px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-size: .92rem; }
.entree-pages a { font-weight: 600; text-decoration: none; padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ligne); }
.entree-pages a:hover { background: var(--encre); color: var(--creme); }
.entree-pages span { color: var(--ardoise); margin-right: 4px; }

/* ---------- Passage fluide entre les pages ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: passage .55s var(--glisse); mix-blend-mode: normal; }
@keyframes passage { from { clip-path: circle(0 at 50% 108%); } to { clip-path: circle(140% at 50% 108%); } }

/* ---------- Mouvement réduit : tout reste lisible, rien ne bouge ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  ::view-transition-new(root), ::view-transition-old(root) { animation: none !important; }
}
html.calme *, html.calme *::before, html.calme *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.calme::view-transition-new(root) { animation: none !important; }

/* Retouches des vignettes selon le ton de la section */
.v-code { background: var(--accent); }
.ton-encre .v-salle { background: #120a05; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5), inset 0 0 0 2px var(--ligne); }

html[data-porte="fun"] .hero-bas { margin-top: clamp(40px, 7vh, 76px); }

@media (max-width: 760px) { .appel-formes i:nth-child(3) { display: none; } }
@media (max-width: 1180px) { .menu a.menu-porte { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; text-decoration: underline; text-underline-offset: 5px; } }

/* booma.fun, grand écran : le texte d'appui monte à droite du titre, le bas de l'écran reste aux billes */
@media (min-width: 1100px) {
  html[data-porte="fun"] .hero { height: 100vh; height: 100svh; min-height: 640px; padding-bottom: 0; }
  html[data-porte="fun"] .hero-bas { position: absolute; right: 0; top: .5vw; width: 25vw; margin: 0; }
  html[data-porte="fun"] .hero-bas .chapo { font-size: clamp(1.05rem, 1.45vw, 1.5rem); }
  html[data-porte="fun"] .hero-gestes { display: grid; width: 100%; gap: 12px; }
  html[data-porte="fun"] .hero-gestes .btn { font-size: clamp(.95rem, 1.2vw, 1.2rem); padding: 16px 14px; }
}
@media (max-width: 619px) { html[data-porte="fun"] .hero { padding-bottom: 215px; } }

/* ================= Version « plein potentiel » ================= */

/* Le titre vivant : chaque lettre s'écarte du pointeur */
.lettre { display: inline-block; transition: transform .45s var(--rebond); will-change: transform; }

/* L'onde de choc du tampon */
.tampon { position: relative; }
.pret .tampon::after { content: ""; position: absolute; inset: -6%; border-radius: inherit; border: .06em solid var(--tomate); animation: choc .7s 1.1s ease-out both; pointer-events: none; }
@keyframes choc { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.5, 2.1); opacity: 0; } }

/* Le curseur maison */
.curseur { position: fixed; z-index: 200; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); pointer-events: none; opacity: 0; transition: transform .09s linear, opacity .2s ease; }
.curseur::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; transition: scale .25s var(--rebond), opacity .25s ease; }
.curseur { background: none; }
.curseur::after { background: var(--accent); }
.curseur.la { opacity: 1; }
.curseur.gros::after { scale: 3.4; opacity: .35; }
.curseur.efface::after { scale: 0; }

/* La phrase qui s'allume mot à mot */
.manifeste { padding-block: clamp(70px, 10vw, 150px); }
.manifeste p { font-weight: 800; letter-spacing: -.035em; line-height: 1.04; font-size: clamp(1.9rem, 4.6vw, 4.4rem); max-width: 17em; text-wrap: balance; }
.manifeste .fort { color: var(--accent); }
.manifeste .vivant span { opacity: 0; transition: opacity .3s ease, transform .45s var(--rebond); display: inline-block; transform: translateY(.45em) rotate(3deg); }
.manifeste .vivant span.lu { opacity: 1; transform: none; }
.manifeste .vivant span.fort.lu { animation: crie .5s .95s ease-in-out; }
@keyframes crie { 25% { transform: rotate(-4deg) scale(1.08); } 50% { transform: rotate(3deg) scale(1.1); } 75% { transform: rotate(-2deg) scale(1.04); } }

/* Le minuteur : les points fondent */
.minuteur { height: 10px; border-radius: 999px; background: rgba(42, 26, 14, .12); overflow: hidden; }
.minuteur i { display: block; height: 100%; border-radius: 999px; background: var(--orange); transform-origin: 0 50%; transform: scaleX(var(--reste, 1)); }
.minuteur.court i { animation: fond 10s linear forwards; }
.minuteur.court.boucle i { animation: fond 4s linear infinite; }
@keyframes fond { from { transform: scaleX(1); } 70% { background: var(--tomate); } to { transform: scaleX(0); background: var(--tomate); } }
.son { justify-self: start; display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: pointer; font-weight: 600; font-size: .92rem; padding: 9px 16px; border-radius: 999px; background: none; color: var(--creme); box-shadow: inset 0 0 0 2px rgba(247, 244, 238, .3); }
.son i { width: 10px; height: 10px; border-radius: 50%; background: rgba(247, 244, 238, .4); }
.son[aria-pressed="true"] { background: var(--creme); color: var(--encre); box-shadow: none; }
.son[aria-pressed="true"] i { background: var(--tomate); animation: pouls 1s ease-in-out infinite; }
.tel-ecran .btn-plein { background: var(--encre); color: var(--creme); justify-self: start; }

/* Une soirée en quatre temps */
.histoire { position: relative; z-index: 0; }
.histoire-scene { position: relative; padding: clamp(60px, 8vw, 120px) var(--marge) calc(var(--r) + clamp(60px, 8vw, 120px)); display: grid; gap: clamp(22px, 3vw, 40px); }
.histoire-titre { font-weight: 600; font-size: clamp(1rem, 1.3vw, 1.2rem); display: inline-flex; align-items: center; gap: 10px; }
.histoire-titre::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: currentColor; }
.histoire-temps { display: grid; gap: 18px; }
.temps { position: relative; overflow: hidden; display: grid; gap: 24px; align-items: center; border-radius: clamp(28px, 3vw, 44px); padding: clamp(26px, 4vw, 60px); background: var(--fond-temps); color: var(--texte-temps); }
@media (min-width: 860px) { .temps { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.temps-texte { position: relative; z-index: 1; display: grid; gap: clamp(12px, 1.4vw, 20px); }
.temps-texte .t2 { font-size: clamp(2.2rem, 5.4vw, 5.2rem); }
.temps-texte > p:last-child { font-size: clamp(1.1rem, 1.6vw, 1.5rem); line-height: 1.35; max-width: 30ch; opacity: .86; }
.temps-etape { font-weight: 800; font-size: clamp(.95rem, 1.2vw, 1.1rem); }
.temps-num { position: absolute; right: -2%; bottom: -16%; font-weight: 800; font-size: clamp(14rem, 34vw, 34rem); line-height: .72; letter-spacing: -.08em; opacity: .1; pointer-events: none; }
.histoire-fil, .histoire-lien { display: none; }
.tel.petit { width: min(100%, 290px); transform: rotate(3deg); margin: 0 auto; }
.tel.petit .tel-ecran { min-height: 0; aspect-ratio: 9 / 15.5; padding: 18px 16px; gap: 12px; align-content: start; }

/* … quand le défilement mène l'histoire */
.histoire.vivante { height: calc(var(--nb, 4) * 105vh); }
.vivante .histoire-scene { position: sticky; top: 0; height: 100vh; height: 100svh; padding: clamp(84px, 11vh, 120px) var(--marge) clamp(54px, 8vh, 80px); overflow: hidden; transition: background .6s var(--glisse), color .4s ease; grid-template-rows: auto 1fr auto; }
.vivante .histoire-temps { position: relative; display: block; }
.vivante .temps { position: absolute; inset: 0; background: none; color: inherit; padding: 0; border-radius: 0; overflow: visible; pointer-events: none; }
.vivante .temps-texte { opacity: 0; transform: translateY(60px); transition: opacity .4s ease, transform .6s var(--glisse); }
.vivante .temps.passe .temps-texte { transform: translateY(-60px); }
.vivante .temps.actif { pointer-events: auto; }
.vivante .temps.actif .temps-texte { opacity: 1; transform: none; transition-delay: .12s; }
.vivante .temps .tel { opacity: 0; transform: translateY(40%) rotate(14deg) scale(.86); transition: opacity .35s ease, transform .7s var(--rebond); }
.vivante .temps.passe .tel { transform: translateY(-40%) rotate(-10deg) scale(.86); }
.vivante .temps.actif .tel { opacity: 1; transform: rotate(3deg); }
.vivante .temps-num { right: auto; left: 38%; bottom: auto; top: 50%; translate: 0 -46%; opacity: 0; scale: .7; transition: opacity .5s ease, scale .8s var(--rebond); font-size: min(60vh, 46vw); }
.vivante .temps.actif .temps-num { opacity: .1; scale: 1; }
.vivante .histoire-fil { display: flex; gap: 8px; align-items: center; }
.vivante .histoire-fil i { height: 8px; flex: 0 0 34px; border-radius: 999px; background: currentColor; opacity: .25; transition: flex-basis .5s var(--rebond), opacity .3s ease; }
.vivante .histoire-fil i.actif { opacity: 1; flex-basis: 74px; }
.vivante .histoire-lien { display: inline-block; position: absolute; right: var(--marge); bottom: clamp(48px, 7.4vh, 74px); color: inherit; }
.vivante .histoire-lien:hover { color: inherit; text-decoration-thickness: 4px; }
@media (max-width: 859px) {
  .vivante .temps { grid-template-rows: auto 1fr; align-items: start; gap: 14px; }
  .vivante .temps-texte .t2 { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .vivante .temps-texte > p:last-child { font-size: 1.02rem; }
  .vivante .tel.petit { width: min(52vw, 32vh, 230px); align-self: center; border-radius: 34px; padding: 8px; }
  .vivante .tel.petit .tel-ecran { border-radius: 27px; padding: 12px 11px; gap: 8px; font-size: .74rem; }
  .vivante .temps-num { left: auto; right: -4%; top: auto; bottom: 0; translate: none; font-size: 60vw; }
  .vivante .histoire-lien { position: static; justify-self: start; }
  .vivante .histoire-scene { grid-template-rows: auto 1fr auto auto; }
}
.avant-histoire { padding-bottom: calc(var(--r) + 10px); }
.apres-histoire { padding-top: clamp(64px, 8vw, 120px); z-index: 2; }
html.calme .histoire-scene, .histoire:not(.vivante) .histoire-scene { background: var(--fond); }

/* Les quatre écrans du téléphone */
.mini { font-size: .88rem; line-height: 1.25; text-align: center; justify-items: center; }
.mini .tel-haut { justify-self: stretch; }
.mini-gros { font-weight: 800; font-size: 1.5em; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
.mini .qr { width: 78%; aspect-ratio: 1; padding: 7%; border-radius: 14%; background: var(--encre); display: grid; grid-template-columns: repeat(7, 1fr); gap: 5%; margin-block: 6% 2%; }
.mini .qr i { border-radius: 26%; background: var(--creme); animation: clignote 2.6s ease-in-out infinite; }
.mini .qr i:nth-child(3n) { animation-delay: -.9s; } .mini .qr i:nth-child(4n+1) { animation-delay: -1.7s; }
.mini .qr i.v { background: none; animation: none; }
.mini .minuteur { justify-self: stretch; }
.mini-question .mini-gros { text-align: left; justify-self: stretch; margin-block: 4% 2%; }
.mini-choix { justify-self: stretch; display: grid; gap: .6em; text-align: left; font-weight: 600; }
.mini-choix li { padding: .7em 1.1em; border-radius: 999px; background: var(--blanc); box-shadow: 0 3px 0 rgba(42, 26, 14, .16), inset 0 0 0 1.5px rgba(42, 26, 14, .12); }
.mini-choix li.pris { background: var(--encre); color: var(--creme); box-shadow: none; animation: appui 2.4s var(--rebond) infinite; }
@keyframes appui { 0%, 60%, 100% { transform: none; } 70% { transform: scale(.94); } 82% { transform: scale(1.04); } }
.mini-barres { justify-self: stretch; display: grid; gap: .6em; text-align: left; font-weight: 600; margin-top: 4%; }
.mini-barres li { position: relative; padding: .7em 1em; border-radius: 999px; background: rgba(42, 26, 14, .08); overflow: hidden; white-space: nowrap; }
.mini-barres li::before { content: ""; position: absolute; inset: 0; width: var(--l); border-radius: 999px; background: color-mix(in srgb, var(--orange) 45%, var(--creme)); transform-origin: 0 50%; animation: jauge 3.2s var(--glisse) infinite alternate; }
.mini-barres li:first-child::before { background: var(--orange); }
.mini-barres li:nth-child(2)::before { animation-delay: -.8s; } .mini-barres li:nth-child(3)::before { animation-delay: -1.6s; } .mini-barres li:nth-child(4)::before { animation-delay: -2.4s; }
.mini-barres span { position: relative; overflow: hidden; text-overflow: ellipsis; display: block; }
@keyframes jauge { from { transform: scaleX(.72); } to { transform: scaleX(1); } }
.mini-gagne { align-content: center !important; position: relative; }
.mini-medaille { display: grid; place-content: center; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--orange); font-weight: 800; font-size: 3.4em; letter-spacing: -.05em; line-height: 1; margin-block: 8% 4%; animation: danse 1.6s ease-in-out infinite alternate; }
.mini-medaille sup { font-size: .4em; }
.mini-confettis { position: absolute; inset: 0; pointer-events: none; }
.mini-confettis i { position: absolute; width: 8%; aspect-ratio: 1; border-radius: 50%; background: var(--tomate); animation: saute 1.2s ease-in-out infinite; }
.mini-confettis i:nth-child(1) { left: 10%; top: 22%; } .mini-confettis i:nth-child(2) { right: 12%; top: 18%; background: var(--orange); animation-delay: .2s; border-radius: 50% 50% 12% 50%; }
.mini-confettis i:nth-child(3) { left: 16%; top: 62%; background: var(--ardoise); animation-delay: .4s; } .mini-confettis i:nth-child(4) { right: 14%; top: 58%; animation-delay: .6s; width: 5%; }
.mini-confettis i:nth-child(5) { left: 8%; top: 84%; background: var(--orange); animation-delay: .3s; width: 5%; } .mini-confettis i:nth-child(6) { right: 9%; top: 82%; background: var(--encre); animation-delay: .5s; border-radius: 50% 50% 12% 50%; }
.mini-confettis i:nth-child(7) { left: 46%; top: 14%; background: var(--encre); animation-delay: .1s; width: 4%; }

@media (min-width: 860px) {
  .vivante .tel.petit { width: min(27vw, 36vh, 400px); border-radius: 52px; }
  .vivante .tel.petit .tel-ecran { border-radius: 41px; padding: 8% 7%; }
  .vivante .mini { font-size: clamp(.85rem, min(1.25vw, 1.7vh), 1.2rem); }
  .vivante .temps-texte .t2 { font-size: clamp(2.4rem, min(5.6vw, 9vh), 5.6rem); }
}
.mini-confettis i:nth-child(1) { top: 30%; } .mini-confettis i:nth-child(2) { top: 26%; } .mini-confettis i:nth-child(7) { top: 21%; }
.mini-confettis i:nth-child(3) { top: 72%; left: 10%; } .mini-confettis i:nth-child(4) { top: 70%; right: 9%; }

/* La bande orange se pose sous les bulles, sans les toucher */
.hero + .enonce { margin-top: clamp(50px, 7vw, 120px); }
@media (max-width: 1180px) { .entete.colle .barre { padding: 18px 80px 18px 22px; } }

/* ---------- Une activité en quatre temps : grand écran de la salle + téléphone, pastilles, onglets ---------- */
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pastilles li { font-weight: 600; font-size: clamp(.85rem, 1vw, .98rem); padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 2px currentColor; }
.pastilles li::before { content: "✓"; margin-right: 6px; font-weight: 800; }
@media (min-width: 860px) { .temps-duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.duo { position: relative; padding: 0 0 12% 10%; }
.grand-ecran { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; padding: 10px; background: #120a05; box-shadow: 0 0 0 2px rgba(247, 244, 238, .18), 0 40px 70px -30px rgba(0, 0, 0, .65); }
.grand-ecran::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 22%; height: 16px; translate: -50% 0; border-radius: 0 0 10px 10px; background: #120a05; }
.ge-in { height: 100%; border-radius: 9px; overflow: hidden; background: var(--encre); color: var(--creme); padding: clamp(14px, 2.2vw, 30px); display: grid; align-content: center; gap: clamp(8px, 1vw, 14px); font-size: clamp(.7rem, 1vw, 1rem); }
.ge-titre { font-weight: 800; font-size: 1.9em; letter-spacing: -.035em; line-height: 1.05; }
.ge-gros { font-weight: 800; font-size: 2.4em; letter-spacing: -.04em; line-height: 1; }
.ge-compte { font-weight: 600; color: rgba(247, 244, 238, .75); }
.ge-compte b { color: var(--orange); font-size: 1.3em; }
.ge-accueil { display: grid; grid-template-columns: 40% 1fr; gap: 7%; align-items: center; }
.ge-code .qr { aspect-ratio: 1; padding: 8%; border-radius: 12%; background: var(--creme); display: grid; grid-template-columns: repeat(7, 1fr); gap: 5%; }
.ge-code .qr i { border-radius: 26%; background: var(--encre); animation: clignote 2.6s ease-in-out infinite; }
.ge-code .qr i:nth-child(3n) { animation-delay: -.9s; } .ge-code .qr i.v { background: none; animation: none; }
.ge-code-txt { display: grid; gap: .7em; }
.ge-idees { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; }
.ge-idees li { font-weight: 700; padding: .8em 1em; border-radius: 14px; background: var(--creme); color: var(--encre); line-height: 1.15; }
.ge-idees li:nth-child(2) { background: var(--orange); } .ge-idees li:nth-child(4) { background: var(--ardoise); color: var(--blanc); }
.ge-barres { display: grid; gap: .8em; }
.ge-barres li { position: relative; display: flex; justify-content: space-between; gap: 1em; padding: .8em 1.1em; border-radius: 999px; background: rgba(247, 244, 238, .1); font-weight: 700; overflow: hidden; }
.ge-barres li::before { content: ""; position: absolute; inset: 0; width: var(--l); border-radius: 999px; background: color-mix(in srgb, var(--orange) 55%, var(--encre)); }
.ge-barres li:first-child::before { background: var(--orange); }
.ge-barres li:first-child { color: var(--encre); }
.ge-barres span, .ge-barres b { position: relative; }
.ge-rapport { background: var(--creme); color: var(--encre); border-radius: 10px; padding: 1.4em 1.6em; display: grid; gap: .6em; rotate: -1.5deg; box-shadow: 0 20px 30px -18px rgba(0, 0, 0, .6); }
.ge-rapport .ge-titre { font-size: 1.6em; }
.ge-sous { font-weight: 800; color: var(--tomate); }
.ge-rapport ol { display: grid; gap: .35em; counter-reset: p; font-weight: 600; }
.ge-rapport ol li { counter-increment: p; display: flex; gap: .6em; align-items: center; }
.ge-rapport ol li::before { content: counter(p); display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--orange); font-weight: 800; flex: none; }
.ge-lignes { display: grid; gap: .45em; margin-top: .3em; }
.ge-lignes i { height: .5em; border-radius: 9px; background: rgba(42, 26, 14, .12); } .ge-lignes i:nth-child(2) { width: 82%; } .ge-lignes i:nth-child(3) { width: 64%; }
.duo .tel.petit { position: absolute; left: 0; bottom: 0; width: 36%; min-width: 150px; margin: 0; z-index: 3; }
.duo .tel.petit .tel-ecran { font-size: clamp(.6rem, .8vw, .82rem); }
.mini-champ { justify-self: stretch; text-align: left; font-weight: 600; padding: .8em 1em; border-radius: 14px; background: var(--blanc); box-shadow: inset 0 0 0 2px var(--orange); }
.mini-curseur { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--encre); animation: clignote 1s steps(1) infinite; }
.mini-envoi { justify-self: stretch; font-weight: 800; padding: .8em; border-radius: 999px; background: var(--encre); color: var(--creme); }
.mini-courriel { display: grid; gap: .6em; justify-items: center; margin-top: 12%; }
.mini-enveloppe { width: 46%; aspect-ratio: 1.4; border-radius: 10px; background: var(--orange); position: relative; overflow: hidden; }
.mini-enveloppe::before { content: ""; position: absolute; inset: -40% 10% 30%; background: var(--creme); rotate: 45deg; border-radius: 6px; }
/* animations des écrans à l'arrivée d'une étape */
.vivante .temps-duo .grand-ecran { opacity: 0; transform: translateY(30px) scale(.96); transition: opacity .35s ease, transform .55s var(--rebond); }
.vivante .temps-duo.actif .grand-ecran { opacity: 1; transform: none; }
.vivante .temps-duo.actif .ge-idees li { animation: pop .45s var(--rebond) backwards; animation-delay: calc(.25s + var(--k) * .12s); }
.vivante .temps-duo.actif .ge-barres li::before { animation: jauge .9s var(--glisse) backwards; animation-delay: calc(.2s + var(--k) * .1s); }
.vivante .temps-duo .tel { transform: translateY(40%) rotate(-12deg) scale(.86); }
.vivante .temps-duo.actif .tel { transform: rotate(-4deg); }
.vivante .histoire-duo .temps-num { left: 30%; }
/* les onglets des étapes */
.histoire-onglets { display: none; }
.vivante .histoire-onglets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.onglet { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: .98rem; color: inherit; background: none; border: 0; cursor: pointer; padding: 8px 16px 8px 8px; border-radius: 999px; box-shadow: inset 0 0 0 2px currentColor; opacity: .55; transition: opacity .2s ease, background-color .25s ease, color .25s ease, transform .2s var(--rebond); }
.onglet b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: currentColor; }
.onglet b { color: inherit; }
.onglet b::first-letter { color: var(--scene-fond, var(--creme)); }
.onglet:hover { opacity: .9; transform: translateY(-2px); }
.onglet.actif { opacity: 1; background: currentColor; }
.onglet.actif, .onglet.actif b::first-letter { }
.vivante .histoire-duo .histoire-fil { display: none; }
@media (max-width: 859px) {
  .duo { padding: 0; display: grid; justify-items: center; }
  .duo .grand-ecran { display: none; }
  .duo .tel.petit { position: relative; width: min(52vw, 30vh, 220px); min-width: 0; }
  .onglet { font-size: 0; padding: 4px; gap: 0; }
  .onglet b { font-size: .9rem; }
}
/* Le carrousel (booma.pro) : la page défile normalement, les étapes avancent seules ou au clic. */
.histoire.vivante.carrousel { height: auto; }
.carrousel .histoire-scene { position: relative; height: clamp(640px, 92svh, 860px); grid-template-rows: auto 1fr auto; }
.carrousel .histoire-onglets { justify-content: flex-start; }
.carrousel .onglet { position: relative; overflow: hidden; }
.carrousel .onglet.actif::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--scene-fond, var(--creme)); opacity: .55; transform-origin: 0 50%; animation: minuterie var(--duree, 6s) linear; }
.carrousel.pause .onglet.actif::after { animation-play-state: paused; }
@keyframes minuterie { from { transform: scaleX(0); } }
.carrousel-fleches { display: inline-flex; gap: 8px; margin-left: 12px; }
.carrousel-fleches button { width: 44px; height: 44px; border-radius: 50%; border: 0; font: inherit; font-weight: 800; font-size: 1.2rem; cursor: pointer; background: currentColor; }
.carrousel-fleches button span { color: var(--scene-fond, var(--creme)); }
.carrousel-fleches button:hover { transform: translateY(-2px); }
.onglet.actif b::first-letter { color: currentColor; }
.onglet.actif { color: var(--scene-fond, var(--creme)); background: var(--texte-scene, var(--encre)); box-shadow: none; }
.onglet.actif b { background: var(--scene-fond, var(--creme)); color: var(--texte-scene, var(--encre)); }
.onglet.actif b::first-letter { color: var(--texte-scene, var(--encre)); }
/* Réglages du duo : le téléphone plus petit, en bas à droite, l'écran bien dégagé sous le menu */
.carrousel .histoire-scene { padding-top: clamp(110px, 14vh, 140px); }
@media (min-width: 860px) {
  .duo { padding: 0 6% 9% 0; }
  .duo .tel.petit { left: auto; right: 0; bottom: 0; width: 25%; min-width: 130px; }
  .ge-in { padding-right: 22%; }
  .ge-rapport { margin-right: -10%; }
}
/* Onglets : numéro lisible partout */
.onglet b { background: none; box-shadow: inset 0 0 0 2px currentColor; color: inherit; }
.onglet b::first-letter { color: inherit; }
.onglet.actif b { background: var(--scene-fond, var(--creme)); box-shadow: none; color: var(--texte-scene, var(--encre)); }
.onglet.actif b::first-letter { color: inherit; }
.carrousel .histoire-lien { position: static; margin-left: auto; display: inline-block; }
@media (min-width: 860px) { .ge-rapport { margin-right: 0; } }
@media (max-width: 859px) {
  .carrousel .histoire-scene { height: auto; min-height: 0; padding-bottom: 70px; grid-template-rows: auto auto auto; }
  .carrousel .histoire-temps { display: grid; }
  .carrousel .temps { position: relative; inset: auto; grid-area: 1 / 1; }
  .carrousel .temps:not(.actif) { visibility: hidden; }
  .carrousel .duo .tel.petit { width: min(44vw, 170px); }
  .carrousel .histoire-onglets { margin-top: 18px; }
}
/* De l'air sous les onglets : la feuille suivante ne les mange plus */
.carrousel .histoire-scene { height: auto; min-height: clamp(700px, 96svh, 960px); padding-bottom: calc(var(--r) + clamp(40px, 5vw, 70px)); }
@media (min-width: 860px) { .carrousel .histoire-onglets { margin-top: clamp(30px, 4vh, 50px); } .carrousel .duo { margin-bottom: 10px; } }
@media (min-width: 860px) { .carrousel .histoire-temps { min-height: min(38vw, 640px); } }
/* Le grand chiffre de l'étape prend une couleur (plus de blanc sur blanc) */
.histoire-duo .temps-num { color: var(--orange); }
.histoire-duo .temps:nth-child(2) .temps-num, .histoire-duo .temps:nth-child(4) .temps-num { color: var(--encre); }
.vivante.histoire-duo .temps.actif .temps-num { opacity: .3; }
/* Un léger grain sur les quatre fonds du carrousel */
.carrousel .histoire-scene::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.carrousel .histoire-scene > * { position: relative; }

/* ---------- Qui on est et questions fréquentes (accueil pro) ---------- */
.sur-titre { font-weight: 800; font-size: clamp(.95rem, 1.2vw, 1.1rem); color: var(--accent); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.sur-titre::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: currentColor; }
.qui, .faq { padding-top: clamp(80px, 10vw, 150px); scroll-margin-top: 90px; }
.qui-grille, .faq-grille { display: grid; gap: clamp(30px, 5vw, 80px); align-items: start; }
@media (min-width: 900px) { .qui-grille { grid-template-columns: 1.3fr 1fr; } .faq-grille { grid-template-columns: .9fr 1.3fr; } }
.qui-texte { display: grid; gap: 18px; }
.qui-texte p:not(.sur-titre) { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.45; max-width: 34em; color: var(--doux); }
.qui-gens { display: grid; gap: 16px; align-self: center; }
.qui-carte { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: center; padding: 18px 22px; border-radius: 26px; background: var(--blanc); box-shadow: 0 18px 30px -22px rgba(42, 26, 14, .5); transition: transform .25s var(--rebond); }
.qui-carte:nth-child(2) { rotate: 1.5deg; margin-left: 8%; } .qui-carte:first-child { rotate: -1.5deg; }
.qui-carte:hover { transform: translateY(-4px); }
.qui-initiale { grid-row: 1 / 3; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--orange); font-weight: 800; font-size: 1.8rem; color: var(--encre); }
.qui-carte:nth-child(2) .qui-initiale { background: var(--encre); color: var(--creme); }
.qui-carte b { font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; }
.qui-carte span:last-child { color: var(--doux); font-weight: 600; }
.faq-autre { margin-top: 20px; font-weight: 600; color: var(--doux); }
.faq-liste { display: grid; gap: 12px; }
.faq details { border-radius: 22px; background: var(--blanc); box-shadow: inset 0 0 0 1.5px var(--ligne); transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: inset 0 0 0 2px var(--encre), 0 14px 26px -20px rgba(42, 26, 14, .5); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 800; font-size: clamp(1.05rem, 1.4vw, 1.3rem); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); transition: rotate .25s var(--rebond); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 3px; margin: -1.5px 0 0 -7px; border-radius: 2px; background: var(--encre); }
.faq summary i::after { rotate: 90deg; }
.faq details[open] summary i { rotate: 45deg; }
.faq details p { padding: 0 24px 22px; font-size: 1.08rem; line-height: 1.5; color: var(--doux); max-width: 40em; }

/* ---------- Questions et Qui on est : chacune seule à l'écran, sur sa couleur, avec des formes Booma ---------- */
.ton-ardoise { --fond: var(--ardoise); --texte: var(--creme); --doux: rgba(247, 244, 238, .82); --ligne: rgba(247, 244, 238, .22); background: var(--fond); color: var(--texte); }
.plein { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; padding-block: clamp(110px, 14vh, 150px) calc(var(--r) + clamp(50px, 7vh, 90px)); overflow: clip; scroll-margin-top: 0; }
.qui.plein, .faq.plein { padding-top: clamp(110px, 14vh, 150px); }
.plein > .boite { position: relative; z-index: 1; }
.plein .sur-titre { color: var(--texte); }
.faq .faq-autre { color: var(--texte); }
.faq details { background: var(--creme); color: var(--encre); box-shadow: 0 10px 0 -4px rgba(42, 26, 14, .25); }
.faq details[open] { box-shadow: 0 0 0 2px var(--encre), 0 14px 0 -6px var(--encre); }
.faq details p { color: var(--ardoise); }
.faq summary i { background: var(--encre); } .faq summary i::before, .faq summary i::after { background: var(--orange); }
.qui .qui-carte { color: var(--encre); }
.qui .qui-carte span:last-child { color: var(--ardoise); }
.qui .qui-carte:nth-child(2) .qui-initiale { background: var(--tomate); color: var(--blanc); }
/* les formes qui flottent en fond */
.deco-formes { position: absolute; inset: 0; pointer-events: none; }
.deco-formes i { position: absolute; display: block; animation: flotte 7s ease-in-out infinite alternate; }
.deco-formes i:nth-child(1) { right: -6%; top: 8%; width: clamp(180px, 26vw, 420px); aspect-ratio: 1; border-radius: 50%; }
.deco-formes i:nth-child(2) { left: 4%; bottom: 12%; width: clamp(70px, 9vw, 140px); aspect-ratio: 1; border-radius: 50% 50% 12% 50%; rotate: -18deg; animation-duration: 9s; animation-delay: -3s; }
.deco-formes i:nth-child(3) { right: 30%; bottom: 6%; width: clamp(60px, 7vw, 110px); aspect-ratio: 1; border-radius: 50%; background: none !important; border: clamp(10px, 1.3vw, 18px) solid; animation-duration: 6s; animation-delay: -1s; }
.deco-formes i:nth-child(4) { left: 42%; top: 10%; width: clamp(80px, 10vw, 160px); aspect-ratio: 2; border-radius: 999px 999px 0 0; rotate: 12deg; animation-duration: 8s; }
.faq .deco-formes i:nth-child(1) { background: color-mix(in srgb, var(--tomate) 70%, var(--orange)); }
.faq .deco-formes i:nth-child(2) { background: var(--encre); }
.faq .deco-formes i:nth-child(3) { border-color: var(--creme); }
.faq .deco-formes i:nth-child(4) { background: var(--creme); opacity: .9; }
.qui .deco-formes i:nth-child(1) { background: var(--orange); }
.qui .deco-formes i:nth-child(2) { background: var(--tomate); }
.qui .deco-formes i:nth-child(3) { border-color: var(--creme); }
.qui .deco-formes i:nth-child(4) { background: var(--encre); }
@media (max-width: 899px) { .deco-formes { opacity: .45; } }
html.calme .deco-formes i { animation: none; }
.deco-formes i:nth-child(2) { left: -3%; bottom: 3%; }
.deco-formes i:nth-child(4) { left: 46%; top: 4%; }
/* la feuille suivante commence sous le bas de l'écran : rien n'empiète */
.plein { min-height: calc(100vh + var(--r)); min-height: calc(100svh + var(--r)); }

/* ---------- « Se connecter » et « J'ai un code » dans la barre du haut ---------- */
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
.connexion { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 1rem; text-decoration: none; padding: 10px 12px; opacity: .85; transition: opacity .15s ease; }
.connexion:hover { opacity: 1; }
.connexion .ic { width: 18px; height: 18px; }
.code-btn { flex: none; margin-left: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px 11px 14px; border-radius: 999px; font-weight: 800; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap; color: var(--encre); background: var(--blanc); box-shadow: inset 0 0 0 2px var(--encre), 0 4px 0 var(--encre); transition: transform .16s var(--rebond), box-shadow .16s ease; }
.code-btn:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--encre), 0 6px 0 var(--encre); }
.code-btn:hover .ic { animation: secoue .4s ease; }
.entete.colle .connexion { color: var(--creme); }
.entete.colle .code-btn { background: var(--creme); box-shadow: none; }
@media (max-width: 1180px) {
  .code-btn { margin-left: auto; margin-right: 66px; padding: 10px 14px 10px 12px; font-size: .92rem; position: relative; z-index: 3; }
  .connexion { font-weight: 800; font-size: clamp(1.6rem, 7vw, 2.2rem); padding: 6px 0; opacity: 1; }
  .connexion .ic { width: 28px; height: 28px; }
}
@media (max-width: 380px) { .code-btn .ic { display: none; } }

/* la petite fenêtre « J'ai un code » */
.fenetre { position: fixed; z-index: 80; inset: 0; display: none; }
.fenetre:target, .fenetre.ouverte { display: block; }
.fenetre-fond { position: absolute; inset: 0; background: rgba(26, 16, 10, .55); animation: fondu .14s ease both; }
.fenetre-boite { position: absolute; top: 84px; right: var(--marge); width: min(388px, calc(100vw - 24px)); max-height: calc(100dvh - 100px); display: grid; grid-template-rows: auto 1fr auto; border-radius: 26px; overflow: hidden; background: var(--creme); color: var(--encre); --doux: rgba(42, 26, 14, .74); --creux: rgba(42, 26, 14, .08); box-shadow: 0 40px 80px -24px #000, 0 0 0 1.5px rgba(247, 244, 238, .2); transform-origin: 88% 0; animation: surgit .16s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fondu { from { opacity: 0; } }
@keyframes surgit { from { opacity: 0; transform: scale(.9) translateY(-10px); } }
.fenetre-tete { display: flex; align-items: center; gap: 14px; padding: 18px 16px 16px 20px; background: color-mix(in srgb, var(--accent) 24%, var(--creme)); }
.fenetre-icone { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--accent); color: var(--encre); rotate: -6deg; }
.fenetre-icone .ic { width: 26px; height: 26px; }
.fenetre-mention { font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.fenetre-tete h2 { font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; line-height: 1.1; }
.fenetre-x { margin-left: auto; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none; font-size: 1.5rem; line-height: 1; background: rgba(42, 26, 14, .08); transition: background .14s ease, rotate .2s var(--rebond); }
.fenetre-x:hover { background: rgba(42, 26, 14, .16); rotate: 90deg; }
.fenetre-corps { display: grid; gap: 14px; padding: 18px 20px 6px; overflow-y: auto; font-size: .98rem; line-height: 1.35; }
.code-champ { display: grid; gap: 7px; }
.code-champ span { font-weight: 600; font-size: .9rem; }
.code-champ input { width: 100%; padding: 14px 10px 12px; border: 0; border-radius: 16px; background: var(--creux); box-shadow: inset 0 2px 5px rgba(42, 26, 14, .2), inset 0 0 0 1.5px rgba(42, 26, 14, .08); font: inherit; font-weight: 800; font-size: 1.9rem; letter-spacing: .26em; text-indent: .26em; text-align: center; text-transform: uppercase; color: var(--encre); outline: none; }
.code-champ input::placeholder { color: rgba(42, 26, 14, .22); }
.code-champ input:focus { background: var(--blanc); box-shadow: inset 0 1px 3px rgba(42, 26, 14, .16), 0 0 0 3px var(--accent); }
.code-champ input.long { font-size: 1.25rem; letter-spacing: .08em; text-indent: .08em; padding-block: 19px 17px; }
.code-suite { font-size: .9rem; color: var(--doux); min-height: 2.7em; }
.code-suite b { display: block; width: fit-content; margin: 6px 0 5px; padding: 3px 10px; border-radius: 999px; background: var(--encre); color: var(--creme); font-weight: 800; }
.fenetre-pied { display: flex; justify-content: flex-end; align-items: center; gap: 6px; padding: 12px 16px 16px; }
.fenetre-pied .btn-plein { background: var(--accent); color: var(--sur-accent); } /* orange sur pro, rouge sur fun */
.fenetre-pied .btn-doux { color: var(--encre); }
.tremble { animation: tremble .36s ease; }
@keyframes tremble { 20% { translate: -7px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 3px 0; } }
@media (max-width: 819px) { .fenetre-boite { top: 84px; right: 12px; } }

/* Barre du haut : un peu plus d'air entre les liens */
.menu { gap: clamp(2px, .4vw, 8px); }
.menu a:not(.btn) { padding-inline: 10px; }
.appel-sous { position: relative; z-index: 1; max-width: 30em; margin-block: clamp(14px, 2vw, 24px) clamp(22px, 3vw, 36px); font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.45; color: var(--doux); }
.qui-droite { display: grid; gap: 22px; align-self: center; }
.qui-lieux { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; margin-left: 4%; }
.qui-lieux b { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--creme); color: var(--encre); font-weight: 800; }
.qui-lieux b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.qui-lieux b + b::before { background: var(--tomate); }

/* ---------- Activités (pro) : la section « Sur mesure » ---------- */
.sur-mesure { position: relative; overflow: clip; padding-block: clamp(90px, 11vw, 160px) calc(var(--r) + clamp(70px, 9vw, 130px)); }
.sur-mesure .sur-titre { color: var(--orange); }
.mesure-grille { position: relative; z-index: 1; display: grid; gap: clamp(36px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .mesure-grille { grid-template-columns: 1fr 1fr; } }
.mesure-texte { display: grid; gap: 20px; justify-items: start; }
.mesure-texte > p:not(.sur-titre) { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.45; color: var(--doux); max-width: 30em; }
.mesure-texte .btn { margin-top: 8px; }
.mesure-exemples { display: grid; gap: 16px; }
.exemple { display: grid; gap: 6px; padding: 22px 26px; border-radius: 26px; color: var(--encre); box-shadow: 0 22px 34px -22px rgba(0, 0, 0, .7); transition: transform .25s var(--rebond); }
.exemple b { font-weight: 800; font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -.025em; line-height: 1.1; }
.exemple span { font-weight: 600; opacity: .85; }
.exemple.ex0 { background: var(--orange); rotate: -1.5deg; }
.exemple.ex1 { background: var(--creme); rotate: 1.2deg; margin-left: 7%; }
.exemple.ex2 { background: var(--tomate); color: var(--blanc); rotate: -.8deg; margin-left: 2%; }
.exemple:hover { transform: translateY(-4px) rotate(.6deg); }
.sur-mesure .deco-formes i:nth-child(1) { background: color-mix(in srgb, var(--orange) 22%, var(--encre)); }
.sur-mesure .deco-formes i:nth-child(2) { background: var(--ardoise); }
.sur-mesure .deco-formes i:nth-child(3) { border-color: var(--orange); }
.sur-mesure .deco-formes i:nth-child(4) { background: color-mix(in srgb, var(--creme) 14%, var(--encre)); }
.apres-mesure { position: relative; z-index: 2; margin-top: calc(-1 * var(--r)); padding-top: clamp(70px, 9vw, 130px); border-radius: var(--r) var(--r) 0 0; background: var(--creme); }
.final.feuille { z-index: 3; } /* la section finale passe par-dessus la boîte crème qui la précède */

/* ---------- Normes : accessibilité, petits écrans, impression (analyse du vendredi 20 novembre 2026) ---------- */
/* Contour de focus en double anneau : il se voit sur tous les fonds, pâles comme foncés. */
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; box-shadow: 0 0 0 6px var(--creme); }
.ton-encre :focus-visible, .ton-ardoise :focus-visible, .entete.colle :focus-visible, .fiche :focus-visible { outline-color: var(--creme); box-shadow: 0 0 0 6px var(--encre); }
.champ input:focus-visible, .champ textarea:focus-visible { outline: none; }
/* Lien « Aller au contenu » : visible dès qu'on y arrive au clavier. */
.cache-visuel[href]:focus { position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip-path: none; padding: 12px 20px; border-radius: 999px; background: var(--encre); color: var(--creme); font-weight: 700; text-decoration: none; }
/* Petits écrans : rien ne déborde. */
.faq-grille, .qui-grille { grid-template-columns: minmax(0, 1fr); }
.appel .t2 { overflow-wrap: anywhere; }
@media (max-width: 380px) { .appel .t2 { font-size: 2.15rem; } }
.pied-grille a { display: inline-block; padding-block: 4px; }
/* Liens de pages pas encore faites : du texte, pas un lien mort. */
.absent { opacity: .55; cursor: default; }
.menu .absent { display: none; } /* pas de section encore : rien dans la barre du haut */
/* Carrousel : bouton pause. */
.carrousel-fleches .carrousel-pause { display: inline-grid; place-items: center; }
.carrousel-pause svg { width: 15px; height: 15px; fill: var(--scene-fond, var(--creme)); }
.carrousel-pause .ic-lecture, .carrousel-pause[aria-pressed="true"] .ic-pause { display: none; }
.carrousel-pause[aria-pressed="true"] .ic-lecture { display: block; }
/* Formulaire : message d'erreur sous le champ. */
.champ-erreur { display: block; margin-top: 6px; font-size: .92rem; font-weight: 600; color: var(--orange); }
.champ-erreur:empty { display: none; }
.champ [aria-invalid="true"] { box-shadow: inset 0 3px 5px rgba(0, 0, 0, .14), inset 0 0 0 3px var(--orange); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Impression : la page à plat, sans menu fixe ni animation. */
@media print {
  .entete, .fenetre, .curseur, .bandes, .carrousel-fleches, .carrousel-pause, .calme-btn, .burger { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .temps { visibility: visible !important; opacity: 1 !important; position: static !important; transform: none !important; }
  body { background: #fff; }
}
/* Grands titres orange sur crème : un orange un peu plus foncé pour atteindre 3:1 (décidé le vendredi 20 novembre 2026). */
html[data-porte="pro"] .couleur { color: #E8640E; }
html[data-porte="pro"] :is(.ton-encre, .ton-ardoise, .ton-orange) .couleur { color: var(--accent); }
.fiche-erreur { flex-basis: 100%; font-weight: 600; color: var(--orange); }
.fiche-erreur:empty { display: none; }

/* booma.fun : grand écran des étapes « question » et « victoire » */
.ge-question .ge-idees li:nth-child(2) { background: var(--orange); }
.ge-in.ge-gagne { position: relative; }
.ge-victoire { display: grid; justify-items: center; text-align: center; gap: .35em; }
.ge-victoire > :not(.mini-confettis) { position: relative; z-index: 1; }
.ge-victoire .mini-medaille { width: 3em; font-size: 2em; margin: 0 0 .15em; }
.ge-victoire .ge-sous { color: var(--orange); }
.ge-victoire .ge-gros { font-size: 2.1em; }
.ge-victoire .mini-confettis i { width: 4%; }

/* Le vrai code QR (booma.fun) : noir sur blanc, bien net, pour qu'un téléphone le lise à l'écran. */
.qr.qr-vrai { display: block; padding: 0; background: #fff; overflow: hidden; border-radius: 10%; }
.qr.qr-vrai .qr-svg { display: block; width: 100%; height: auto; }

/* booma.fun : les rubans chevauchent le bas de l’accueil ; ils laissent passer les doigts vers les billes en dessous. */
html[data-porte="fun"] .rubans { pointer-events: none; }

/* L’indice des billes : une pastille foncée toujours lisible, par-dessus les billes et les rubans. */
.hero-indice { z-index: 4; color: var(--creme); background: var(--encre); padding: 8px 16px; border-radius: 999px; font-weight: 700; box-shadow: 0 0 0 2px rgba(247, 244, 238, .25), 0 10px 24px -8px rgba(0, 0, 0, .6); }
html[data-porte="fun"] .hero-indice { bottom: calc(clamp(40px, 6vw, 90px) + 14px); }

/* booma.fun : le mot gribouillé sous les boutons (police Caveat, licence OFL, servie chez nous) */
@font-face { font-family: "Gribouille"; src: url("polices/caveat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
.gribouille { position: relative; justify-self: end; margin: 4px 26px 0 0; font-family: "Gribouille", "Bricolage", cursive; font-weight: 700; font-size: clamp(1.7rem, 2.3vw, 2.2rem); line-height: .95; color: var(--orange); text-align: right; rotate: -5deg; pointer-events: none; }
.gribouille-fleche { position: absolute; right: calc(100% - 10px); top: 40%; width: clamp(64px, 6.5vw, 96px); height: auto; overflow: visible; }
.gribouille-fleche path { fill: none; stroke: var(--orange); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.gribouille-fleche .trait { stroke-dasharray: 190; stroke-dashoffset: 190; animation: gribouiller .9s 1.4s ease-out forwards; }
.gribouille-fleche .pointe { stroke-dasharray: 60; stroke-dashoffset: 60; animation: gribouiller .3s 2.25s ease-out forwards; }
@keyframes gribouiller { to { stroke-dashoffset: 0; } }
html.calme .gribouille-fleche path { animation: none; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .gribouille-fleche path { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 619px) { .gribouille { font-size: 1.55rem; margin-right: 8px; } .gribouille-fleche { width: 58px; } }
/* Un contour encre : le mot et la flèche restent lisibles même par-dessus les billes */
.gribouille span { -webkit-text-stroke: 7px var(--encre); paint-order: stroke fill; }
.gribouille-fleche { filter: drop-shadow(0 0 2px var(--encre)) drop-shadow(0 0 2px var(--encre)); }

/* booma.fun : chaque bande a la largeur de l’écran (le texte défile dedans), pour tourner autour du centre et se voir en entier. */
html[data-porte="fun"] .rubans { grid-template-columns: minmax(0, 1fr); }
html[data-porte="fun"] .ruban-bande { min-width: 0; overflow: clip; }
html[data-porte="fun"] .ruban-bande:first-child { position: relative; z-index: 1; } /* la bande rouge passe par-dessus : on la lit en entier */
html[data-porte="fun"] .ruban-bande + .ruban-bande { margin-top: clamp(-20px, -1.2vw, -8px); }
/* Retouches de Yannick : la bande crème descend de 40 px, le manifeste remonte de 50 px. */
html[data-porte="fun"] .ruban-bande + .ruban-bande { translate: 0 40px; }
html[data-porte="fun"] .rubans + .cache-visuel + .feuille .manifeste, html[data-porte="fun"] .avant-histoire > .manifeste:first-child { padding-top: calc(clamp(70px, 10vw, 150px) - 50px); }

/* booma.fun : le gros chiffre de chaque étape, bien contrasté sur sa couleur */
html[data-porte="fun"] .histoire-duo .temps:nth-child(1) .temps-num, html[data-porte="fun"] .histoire-duo .temps:nth-child(2) .temps-num { color: var(--encre); }
html[data-porte="fun"] .histoire-duo .temps:nth-child(3) .temps-num { color: var(--tomate); }
html[data-porte="fun"] .vivante.histoire-duo .temps.actif .temps-num { opacity: .55; }

/* booma.fun : sous les trois premiers jeux, « bien d'autres en route » et « un jeu juste pour vous » */
.plus-bande { display: grid; gap: 18px; margin-top: clamp(28px, 4vw, 56px); }
@media (min-width: 860px) { .plus-bande { grid-template-columns: 1fr 1fr; gap: 22px; } }
.plus-case { position: relative; overflow: hidden; border-radius: clamp(26px, 3vw, 40px); padding: clamp(26px, 3vw, 44px); display: grid; align-content: end; gap: 10px; min-height: clamp(200px, 20vw, 280px); }
.plus-case h3 { position: relative; font-weight: 800; letter-spacing: -.04em; line-height: .98; font-size: clamp(1.8rem, 2.8vw, 2.7rem); max-width: 14ch; text-wrap: balance; }
.plus-case p { position: relative; font-weight: 600; font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.35; max-width: 32ch; }
.plus-case .btn { position: relative; justify-self: start; margin-top: 8px; }
.plus-autres { background: var(--tomate); color: var(--blanc); }
.plus-signe { position: absolute; top: -.18em; right: .06em; font-weight: 800; font-size: clamp(9rem, 15vw, 14rem); line-height: 1; color: var(--encre); opacity: .9; animation: danse 3.2s ease-in-out infinite alternate; }
.plus-mesure { background: var(--creme); color: var(--encre); }
.plus-mesure::before { content: ""; position: absolute; width: 46%; aspect-ratio: 1; right: -12%; top: -22%; border-radius: 50%; border: clamp(18px, 2.4vw, 34px) solid var(--orange); animation: danse 3.6s ease-in-out infinite alternate; animation-delay: -1.2s; }
@media (prefers-reduced-motion: reduce) { .plus-signe, .plus-mesure::before { animation: none; } }
.plus-bande + * , .tete .chapo { max-width: 40ch; }
.plus-mesure::before { width: 34%; right: -10%; top: -26%; }
.plus-mesure p { max-width: 26ch; }

/* booma.pro : mêmes cases, aux couleurs pro (la section est sur fond crème) */
html[data-porte="pro"] .plus-autres { background: var(--orange); color: var(--encre); }
html[data-porte="pro"] .plus-autres .plus-signe { color: var(--encre); }
html[data-porte="pro"] .plus-mesure { background: var(--encre); color: var(--creme); }
/* Les réponses de la FAQ prennent toute la largeur de leur case (plus de retour à la ligne inutile) */
.faq details p { max-width: none; }
.faq details p .phrase { display: block; }
.faq details p .phrase + .phrase { margin-top: .35em; }

/* Qui on est : deux étiquettes « Bonjour, mon nom est », le nom écrit à la main */
.nom-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 3vw, 40px); padding-block: 10px; }
.nom-tag { width: min(100%, 300px); display: grid; border-radius: 18px; overflow: hidden; background: var(--blanc); color: var(--encre); text-align: center; box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .55); rotate: -4deg; transition: rotate .35s var(--rebond), translate .35s var(--rebond); }
.nom-tag:nth-child(2) { rotate: 3.5deg; margin-top: clamp(0px, 4vw, 46px); }
.nom-tag:hover { rotate: 0deg; translate: 0 -6px; }
.nom-tag-haut { background: var(--tomate); color: var(--blanc); padding: 14px 12px 12px; font-weight: 700; font-size: .95rem; line-height: 1.1; }
.nom-tag-haut b { display: block; font-weight: 800; font-size: 2rem; letter-spacing: -.03em; text-transform: uppercase; }
.nom-tag:nth-child(2) .nom-tag-haut, .nom-tag:nth-child(2) .nom-tag-bas { background: var(--orange); color: var(--encre); }
.nom-tag-nom { font-family: "Gribouille", "Bricolage", cursive; font-weight: 700; font-size: clamp(3.2rem, 5vw, 4.2rem); line-height: 1; padding: 18px 12px 12px; rotate: -3deg; color: var(--encre); }
.nom-tag-bas { background: var(--tomate); color: var(--blanc); padding: 8px; font-weight: 800; font-size: .95rem; }
/* Les deux étiquettes : exactement la même taille ; 50 px de moins au-dessus */
.nom-tags { margin-top: -50px; align-items: stretch; }
.nom-tag { flex: 0 0 min(100%, 280px); width: auto; grid-template-rows: auto 1fr auto; }
.nom-tag:nth-child(2) { margin-top: 0; translate: 0 clamp(0px, 3vw, 36px); }
.nom-tag:nth-child(2):hover { translate: 0 calc(clamp(0px, 3vw, 36px) - 6px); }

/* Téléphone de l'étape « rapport » : un petit graphique qui monte, au lieu de l'enveloppe */
.mini-graphe { width: 58%; height: auto; }
.mini-graphe rect { transform-box: fill-box; transform-origin: bottom; animation: pousse .8s var(--rebond) both; }
.mini-graphe rect:nth-child(2) { animation-delay: .12s; } .mini-graphe rect:nth-child(3) { animation-delay: .24s; } .mini-graphe rect:nth-child(4) { animation-delay: .36s; }
@keyframes pousse { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .mini-graphe rect { animation: none; } }

/* Le code court du jeu caché, sous le code QR */
.code-court { font-weight: 600; }
.code-court b { font-weight: 800; letter-spacing: .08em; padding: .1em .4em; border-radius: 6px; background: var(--creme); color: var(--encre); }
.mini .code-court { font-size: .9em; }
.mini .code-court b { background: var(--encre); color: var(--creme); }
.tel-logo { display: block; height: 1.05rem; width: auto; }

/* L'écran de l'étape « rapport » : l'écran reste droit, seule la feuille du rapport penche
   (la classe ge-rapport servait aux deux et faisait pencher tout l'écran). */
.ge-in.ge-rapport { rotate: none; background: var(--encre); box-shadow: none; border-radius: 9px; padding: clamp(14px, 2.2vw, 30px); }
/* Téléphones dessinés : coins un peu moins ronds, le logo ne touche plus le bord */
.duo .tel.petit { border-radius: 34px !important; }
.duo .tel.petit .tel-ecran { border-radius: 26px !important; }
a.qr.qr-vrai { cursor: pointer; transition: transform .3s var(--rebond); }
a.qr.qr-vrai:hover { transform: scale(1.06) rotate(-2deg); }

/* Étape du code : grand code QR, et les prénoms qui arrivent un à un */
.ge-accueil { grid-template-columns: 46% 1fr; gap: 7%; }
.ge-code-txt { gap: .9em; }
.ge-arrivees { display: flex; flex-wrap: wrap; gap: .45em; }
.ge-arrivees li { display: inline-flex; align-items: center; gap: .4em; padding: .3em .7em .3em .3em; border-radius: 999px; background: rgba(247, 244, 238, .1); font-weight: 700; font-size: .95em; }
.ge-arrivees i { display: grid; place-items: center; width: 1.7em; aspect-ratio: 1; border-radius: 50%; background: var(--orange); color: var(--encre); font-style: normal; font-weight: 800; font-size: .85em; }
.ge-arrivees li:nth-child(4n+2) i { background: var(--tomate); color: var(--blanc); }
.ge-arrivees li:nth-child(4n+3) i { background: var(--creme); }
.ge-arrivees li:nth-child(4n) i { background: var(--ardoise); color: var(--blanc); }
.ge-arrivees .ge-autres { padding: .3em .8em; background: var(--orange); color: var(--encre); }
.vivante .temps-duo.actif .ge-arrivees li { animation: pop .4s var(--rebond) backwards; animation-delay: calc(.3s + var(--k) * .18s); }
/* Le 4 sur fond tomate : plus marqué, sinon on ne le voit presque pas */
html[data-porte="pro"] .vivante.histoire-duo .temps.actif:nth-child(3) .temps-num { opacity: .4; }
html[data-porte="pro"] .vivante.histoire-duo .temps:nth-child(3) .temps-num { left: 22%; color: var(--encre); }

/* La victoire, sur le grand écran : ça doit flasher */
.ge-in.ge-gagne { padding: 0; overflow: hidden; background: radial-gradient(circle at 50% 42%, #6b2f10 0%, var(--encre) 62%); }
.ge-fete { position: absolute; inset: 0; display: grid; justify-items: center; grid-template-rows: 1fr auto; text-align: center; padding: 0 4%; }
.ge-fete-haut { align-self: center; display: grid; justify-items: center; padding-top: 4%; } /* moitié du haut : au-dessus du téléphone */
.ge-fete > :not(.ge-rayons, .ge-pluie) { position: relative; z-index: 1; }
.ge-rayons { position: absolute; left: 50%; top: 32%; width: 170%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 116, 28, .26) 0 9deg, transparent 9deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 58%); mask: radial-gradient(circle, #000 0 18%, transparent 58%); animation: tourne 22s linear infinite; }
.ge-pluie { position: absolute; inset: 0; pointer-events: none; }
.ge-pluie i { position: absolute; top: -8%; left: var(--x); width: .5em; height: .85em; border-radius: 2px; background: var(--c); animation: pluie var(--d) linear infinite; animation-delay: var(--t); }
.ge-pluie i:nth-child(3n) { width: .6em; height: .6em; border-radius: 50%; }
@keyframes pluie { to { transform: translateY(34em) rotate(720deg); } }
.ge-fete .ge-sous { color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .85em; }
.ge-champion { font-weight: 800; font-size: 3.1em; line-height: .95; letter-spacing: -.045em; color: var(--creme); margin: .12em 0 .45em; text-shadow: 0 0 .45em rgba(255, 116, 28, .65); animation: champion 1.3s ease-in-out infinite alternate; }
@keyframes champion { to { transform: scale(1.05) rotate(-1.5deg); } }
.ge-podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 5%; width: min(50%, 22em); }
.ge-podium li { display: grid; justify-items: center; gap: .35em; }
.ge-podium span { font-weight: 700; font-size: .82em; line-height: 1.1; color: rgba(247, 244, 238, .85); }
.ge-podium b { display: grid; justify-items: center; align-content: start; width: 100%; padding-top: .15em; border-radius: .35em .35em 0 0; font-weight: 800; font-size: 2.2em; line-height: 1; color: var(--encre); transform-origin: bottom; }
.ge-podium .p1 b { height: 2.7em; background: var(--orange); }
.ge-podium .p2 b { height: 1.8em; background: var(--creme); }
.ge-podium .p3 b { height: 1.25em; background: var(--tomate); color: var(--blanc); }
.ge-couronne { width: 2.6em; fill: #FFC93C; animation: danse 1.2s ease-in-out infinite alternate; }
.vivante .temps-duo.actif .ge-podium b { animation: podium .55s var(--rebond) backwards; animation-delay: calc(.2s + var(--k) * .15s); }
.vivante .temps-duo.actif .ge-champion { animation: tamponne .5s var(--rebond) .75s backwards, champion 1.3s ease-in-out 1.25s infinite alternate; }
@keyframes podium { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .ge-rayons, .ge-pluie i, .ge-champion, .ge-couronne { animation: none !important; } .ge-pluie { display: none; } }
/* Petit téléphone de l'étape « Tout le monde joue » : la question et ses 4 choix doivent tenir dans l'écran */
.duo .tel.petit .mini-question { gap: .3em; }
.duo .tel.petit .mini-question .mini-gros { font-size: 1.05em; margin-block: 2% 1%; }
.duo .tel.petit .mini-question .mini-choix { gap: .35em; }
.duo .tel.petit .mini-question .mini-choix li { padding: .45em .9em; }
/* Téléphone de la victoire : logo en haut comme les autres, confettis sur les bords, jamais sur les textes */
.tel-ecran.mini-gagne { align-content: stretch !important; grid-template-rows: auto 1fr auto auto auto 1fr; }
.mini-gagne > .tel-haut { grid-row: 1; }
.mini-gagne > .mini-medaille { grid-row: 3; }
.mini-gagne > .mini-gros { grid-row: 4; }
.mini-gagne > .mini-gros + p { grid-row: 5; }
.mini-gagne > :not(.mini-confettis) { position: relative; z-index: 1; }
.mini-gagne .mini-confettis i { width: 4.5%; }
.mini-gagne .mini-confettis i:nth-child(1) { left: 5%; top: 24%; } .mini-gagne .mini-confettis i:nth-child(2) { right: 5%; left: auto; top: 20%; }
.mini-gagne .mini-confettis i:nth-child(3) { left: 4%; top: 52%; } .mini-gagne .mini-confettis i:nth-child(4) { right: 4%; left: auto; top: 48%; }
.mini-gagne .mini-confettis i:nth-child(5) { left: 8%; top: 92%; } .mini-gagne .mini-confettis i:nth-child(6) { right: 8%; left: auto; top: 93%; }
.mini-gagne .mini-confettis i:nth-child(7) { left: 30%; top: 16%; }
.duo .tel.petit .mini-question .tel-haut { margin-bottom: .7em; } /* de l'air sous le logo */
/* Palmarès du grand écran : la barre s'arrête avant le chiffre, qui reste toujours entier et lisible */
.ge-barres li::before { width: max(2.4em, calc(var(--l) - 4.8em)); }
.ge-barres li:first-child { color: var(--creme); }
.ge-barres li:first-child span { color: var(--encre); }
.ge-barres b { min-width: 3.2em; text-align: right; }
/* Podium plus gros : il prend la place libre sous le nom */
.ge-podium { width: min(60%, 30em); gap: 4%; }
.ge-podium b { font-size: 2.9em; }
.ge-podium span { font-size: 1em; }
.ge-couronne { width: 3.4em; }

/* Fin d'activité sur booma.pro : « Bravo l'équipe! » et trois tuiles de résultats */
.ge-in.ge-rapport { padding: 0; overflow: hidden; background: radial-gradient(circle at 50% 30%, #4a2a17 0%, var(--encre) 65%); }
.ge-bilan { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; justify-items: center; text-align: center; padding: 0 4% 9%; }
.ge-bilan > :not(.ge-lueur, .ge-pluie) { position: relative; z-index: 1; }
.ge-lueur { position: absolute; left: 50%; top: 30%; width: 70%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 116, 28, .32), transparent 65%); animation: pouls 3s ease-in-out infinite; }
.ge-pluie-douce i { opacity: .75; }
.ge-bilan .ge-sous { color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .85em; }
.ge-tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; width: min(62%, 30em); }
.ge-tuiles li { display: grid; gap: .25em; padding: .8em .5em .9em; border-radius: .9em; background: var(--creme); color: var(--encre); line-height: 1.1; box-shadow: 0 .5em 1.2em -.4em rgba(0, 0, 0, .6); }
.ge-tuiles li:nth-child(2) { background: var(--orange); }
.ge-tuiles li:nth-child(3) { background: var(--tomate); color: var(--blanc); }
.ge-tuiles b { font-weight: 800; font-size: 2.3em; letter-spacing: -.04em; line-height: 1; }
.ge-tuiles span { font-weight: 700; font-size: .85em; }
.vivante .temps-duo.actif .ge-tuiles li { animation: pop .45s var(--rebond) backwards; animation-delay: calc(.8s + var(--k) * .2s); }
@media (prefers-reduced-motion: reduce) { .ge-lueur { animation: none; } }

/* Fin d'activité booma.pro, version « wow » : rayons, l'équipe qui saute de joie, chiffres qui comptent */
.ge-bilan > :not(.ge-lueur, .ge-pluie, .ge-rayons) { position: relative; z-index: 1; }
.ge-rayons-doux { top: 34%; background: repeating-conic-gradient(rgba(255, 116, 28, .2) 0 9deg, transparent 9deg 18deg); }
.ge-bilan .ge-champion { font-size: 3.4em; margin-bottom: .3em; }
.ge-equipe { display: flex; justify-content: center; gap: .35em; }
.ge-equipe li { display: grid; place-items: center; width: 2em; aspect-ratio: 1; border-radius: 50%; background: var(--orange); color: var(--encre); font-weight: 800; font-size: .9em; box-shadow: 0 0 0 .15em var(--encre); animation: saute 1s ease-in-out infinite; animation-delay: calc(var(--k) * .12s); }
.ge-equipe li:nth-child(4n+2) { background: var(--tomate); color: var(--blanc); }
.ge-equipe li:nth-child(4n+3) { background: var(--creme); }
.ge-equipe li:nth-child(4n) { background: var(--ardoise); color: var(--blanc); }
.ge-equipe .ge-equipe-plus { width: auto; aspect-ratio: auto; padding: 0 .6em; border-radius: 999px; background: rgba(247, 244, 238, .15); color: var(--creme); animation: none; }
.ge-tuiles { width: min(68%, 32em); }
.ge-tuiles b { font-size: 2.8em; }
@property --n { syntax: "<integer>"; initial-value: 0; inherits: false; }
.compte { --n: var(--fin); counter-reset: n var(--n); }
.compte::before { content: counter(n); }
.vivante .temps-duo.actif .compte { animation: compte 1.3s var(--glisse) backwards; animation-delay: calc(.9s + var(--k, 0) * .2s); }
@keyframes compte { from { --n: 0; } }
@media (prefers-reduced-motion: reduce) { .ge-equipe li, .compte { animation: none !important; } }
.ge-in.ge-rapport { position: relative; }
.ge-bilan > .ge-rayons { position: absolute; z-index: 0; }
.ge-bilan .ge-tuiles { width: min(60%, 30em); }
.ge-equipe li { width: 2.4em; font-size: 1em; }
.ge-bilan .ge-tuiles { width: 56%; gap: 3%; translate: -6% 0; } /* garde la 3e tuile hors du téléphone */
.ge-bilan .ge-tuiles b { font-size: 2.4em; }
.ge-bilan .ge-tuiles span { font-size: .8em; }
