/* Page d'accueil publique : le village en 2D, bien visible, avec des personnages qui bougent. */
.scene { position: relative; min-height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; background: #8fc75a; }
.scene-carte { position: absolute; inset: 0; background: #8fc75a url('/village-entier.png') 50% 50% / 2048px auto no-repeat; image-rendering: pixelated; }
.scene-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25, 13, 61, .28) 0%, rgba(25, 13, 61, 0) 22%, rgba(25, 13, 61, 0) 78%, rgba(247, 246, 254, .9) 100%); pointer-events: none; }
.scene-haut { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; max-width: 1180px; width: calc(100% - 32px); margin: 18px auto 0; padding: 8px 8px 8px 10px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .7); border-radius: 16px; box-shadow: 0 10px 30px rgba(25, 13, 61, .14); }
.pastille-logo { display: block; width: 38px; height: 38px; }
.scene-texte { position: relative; z-index: 3; align-self: center; justify-self: center; text-align: center; width: min(760px, calc(100% - 32px)); margin: 40px 0 120px; padding: 40px 44px 34px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .8); border-radius: 24px; box-shadow: 0 24px 60px rgba(25, 13, 61, .22); }
.scene-texte h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; color: var(--encre); margin-bottom: 16px; }
.scene-texte .accent { color: var(--violet); }
.scene-texte .chapo { font-size: 17px; color: var(--encre-douce); max-width: 580px; margin: 0 auto 26px; }
.pastille-verre { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--violet); background: var(--lavande-2); border-radius: 999px; padding: 6px 14px; margin: 0 0 18px; }
.point-vert { width: 8px; height: 8px; border-radius: 50%; background: #12bd96; box-shadow: 0 0 0 3px rgba(18, 189, 150, .2); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--discret); margin: 18px 0 0; }
.bouton-verre { background: #fff; color: var(--encre); border-color: var(--bord); }
.bouton-verre:hover { border-color: #cfc9ea; }

/* Personnages (sprites 32 px affichés en 64 px) */
.scene-persos { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.perso { position: absolute; width: 64px; height: 64px; background-size: 192px 256px; background-repeat: no-repeat; image-rendering: pixelated; background-position: -64px 0; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .18)); }
.perso::before { content: attr(data-nom); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 2px; white-space: nowrap; font: 600 11px 'Manrope', sans-serif; color: #fff; background: rgba(25, 13, 61, .78); padding: 2px 8px 2px 16px; border-radius: 999px; background-image: radial-gradient(circle at 8px 50%, #12bd96 3px, transparent 3.5px); }
.perso-marche-droite { left: 0; background-position-y: -128px; animation: pas .5s steps(3) infinite, vers-droite 32s linear infinite; }
.perso-marche-gauche { right: 0; background-position-y: -64px; animation: pas .5s steps(3) infinite, vers-gauche 40s linear infinite; }
@keyframes pas { from { background-position-x: 0; } to { background-position-x: -192px; } }
@keyframes vers-droite { from { transform: translateX(-10vw); } to { transform: translateX(110vw); } }
@keyframes vers-gauche { from { transform: translateX(10vw); } to { transform: translateX(-110vw); } }
.bulle { position: absolute; max-width: 230px; font: 600 12.5px/1.35 'Manrope', sans-serif; color: var(--encre); background: #fff; padding: 9px 12px; border-radius: 12px 12px 12px 4px; box-shadow: 0 6px 18px rgba(25, 13, 61, .2); animation: bulle 9s ease-in-out infinite; }
.bulle-2 { border-radius: 12px 12px 4px 12px; animation-delay: 4.5s; }
@keyframes bulle { 0%, 8% { opacity: 0; transform: translateY(6px); } 14%, 46% { opacity: 1; transform: none; } 54%, 100% { opacity: 0; transform: translateY(-4px); } }

@media (max-width: 860px) {
  .scene-texte { padding: 28px 20px; margin: 24px 0 110px; }
  .bulle { display: none; }
}
@media (max-width: 600px) {
  .scene-haut { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; padding: 0; }
  .scene-texte { align-self: end; margin: 0 0 20px; padding: 20px 18px 18px; border-radius: 20px; }
  .scene-texte .pastille-verre, .scene-texte .chapo, .scene-texte .hero-note { display: none; }
  .scene-texte h1 { font-size: 30px; margin-bottom: 14px; }
  .scene-texte .hero-actions { flex-direction: column; gap: 8px; }
  .scene-texte .bouton-grand { width: 100%; padding: 13px 18px; font-size: 15px; }
  .perso-marche-droite { bottom: 64% !important; }
  .perso-marche-gauche { bottom: 76% !important; }
  .perso-debout:nth-of-type(3) { left: 8% !important; bottom: 48% !important; }
  .perso-debout:nth-of-type(4) { left: 26% !important; bottom: 48% !important; }
  .perso-debout:nth-of-type(5) { right: 24% !important; bottom: 56% !important; }
  .perso-debout:nth-of-type(6) { right: 6% !important; bottom: 56% !important; }
}
@media (prefers-reduced-motion: reduce) {
  .perso, .bulle { animation: none !important; }
  .perso-marche-droite { left: 20%; } .perso-marche-gauche { right: 20%; }
}

/* Bento : ce qui se passe au Salon */
.bento-section { max-width: 1180px; margin: 0 auto; padding: 72px 16px 24px; text-align: center; }
.surtitre-sombre { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.titre-bento { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.035em; max-width: 760px; margin: 0 auto 14px; }
.titre-bento .accent { color: var(--violet); }
.chapo-bento { color: var(--encre-douce); font-size: 17px; max-width: 640px; margin: 0 auto 40px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.b-carte { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bord); border-radius: 20px; box-shadow: 0 15px 48px rgba(0, 0, 0, .06); overflow: hidden; }
.b-large { grid-column: span 2; }
.b-texte { padding: 26px 26px 0; }
.b-texte h3 { font-size: 21px; margin: 0 0 8px; }
.b-texte p { color: var(--encre-douce); font-size: 14.5px; margin: 0; }
.b-visuel { position: relative; flex: 1; min-height: 230px; margin: 22px 10px 10px; border-radius: 14px; background: linear-gradient(180deg, #f6f3ff 0%, #ebe5ff 100%); overflow: hidden; padding: 18px; }
.b-centre { display: grid; place-items: center; }
.maquette { background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(36, 30, 72, .12); }
.ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--lavande-2); }
.ico svg { width: 17px; height: 17px; fill: none; stroke: var(--violet); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visage { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; border: 2px solid #fff; }

/* Village */
.b-village { background: url('/village-cafe.png') center / cover; image-rendering: pixelated; min-height: 300px; }
.lieu { position: absolute; font-size: 12px; font-weight: 700; color: var(--encre); background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 4px 11px; box-shadow: 0 4px 12px rgba(25, 13, 61, .15); }
.mini-perso { position: absolute; width: 48px; height: 48px; background-size: 144px 192px; background-position: -48px 0; image-rendering: pixelated; }
.mini-perso::before { content: attr(data-nom); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10.5px; font-weight: 600; color: #fff; background: rgba(25, 13, 61, .8); padding: 1px 7px 1px 14px; border-radius: 999px; background-image: radial-gradient(circle at 7px 50%, #12bd96 2.5px, transparent 3px); }
.mini-perso.statique { position: static; display: block; margin: 0 auto 6px; }
.mini-perso.statique::before { display: none; }

/* Visio */
.visio { width: 100%; max-width: 300px; padding: 12px; }
.visio-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.visio-tuile { position: relative; display: grid; place-items: center; height: 96px; border-radius: 10px; background: linear-gradient(160deg, #2a1f63, #4b37e6); }
.visio-tuile .visage { width: 44px; height: 44px; font-size: 14px; }
.visio-tuile span:last-child { position: absolute; left: 8px; bottom: 6px; font-size: 11px; font-weight: 600; color: #fff; }
.visio-barre { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }

/* Partage d'écran */
.fenetre { width: 100%; max-width: 310px; padding: 0 0 14px; overflow: hidden; }
.fenetre-haut { display: flex; align-items: center; gap: 5px; padding: 9px 12px; border-bottom: 1px solid var(--bord); font-size: 11.5px; font-weight: 600; color: var(--encre-douce); }
.fenetre-haut i { width: 8px; height: 8px; border-radius: 50%; background: #e4e0f2; }
.fenetre-haut span { margin-left: auto; color: #fff; background: #f0338b; border-radius: 999px; padding: 2px 9px; }
.graphe { display: flex; align-items: flex-end; gap: 7px; height: 110px; padding: 14px 16px 0; }
.graphe span { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #8b5cf6, #491cf3); }
.graphe-legende { display: flex; justify-content: space-between; padding: 8px 16px 0; font-size: 12px; color: var(--encre-douce); }
.graphe-legende strong { color: #0b7a5d; }

/* Annuaire */
.puces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.puce { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 5px 11px; background: #fff; border: 1px solid var(--bord); color: var(--encre-douce); }
.puce.active { border-color: var(--accent); color: var(--violet); background: #fff; }
.liste { padding: 6px 12px; }
.ligne { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.ligne + .ligne { border-top: 1px solid var(--bord); }
.ligne > div { display: grid; gap: 2px; }
.ligne strong { font-size: 13.5px; }

/* Groupes */
.groupes-maquette { display: grid; gap: 10px; width: 100%; max-width: 300px; }
.groupe-ligne { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; }
.pile { display: flex; }
.pile .visage { width: 30px; height: 30px; font-size: 10.5px; margin-left: -8px; }

/* Agenda */
.agenda { width: 100%; max-width: 310px; padding: 6px 14px; }
.rdv { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.rdv + .rdv { border-top: 1px solid var(--bord); }
.rdv-jour { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--lavande-2); color: var(--violet); font-size: 11px; font-weight: 700; line-height: 1.1; }
.rdv-jour b { font-size: 13px; }
.rdv > div { display: grid; }
.rdv strong { font-size: 13.5px; }
.rdv > div span { font-size: 12px; color: var(--discret); }

/* Accès réservé */
.b-violet .b-visuel { background: radial-gradient(70% 90% at 50% 100%, #d2b5f8 0%, #6039db 100%); }
.b-acces { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.acces-etape { display: grid; justify-items: center; gap: 6px; text-align: center; background: #fff; border-radius: 14px; padding: 16px 18px; min-width: 160px; box-shadow: 0 10px 30px rgba(25, 13, 61, .2); }
.acces-etape strong { font-size: 14px; }
.acces-etape span:last-child { font-size: 12px; color: var(--discret); }
.acces-fleche { width: 26px; height: 2px; background: rgba(255, 255, 255, .8); position: relative; }
.acces-fleche::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: rgba(255, 255, 255, .8); border-right: 0; }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .bento-section { padding-top: 48px; }
  .bento { grid-template-columns: 1fr; }
  .b-large { grid-column: auto; }
  .acces-fleche { transform: rotate(90deg); }
  .b-acces { flex-direction: column; }
}
