/* Small Hours Studio : une seule feuille pour tout le site, aux couleurs du jeu.
   Deux sortes de pages : les pages de texte (aide, confidentialité, mentions), un <main> étroit,
   et les vitrines (body.vitrine : l'accueil du studio, la page d'un jeu), en sections pleine largeur. */

/* Nunito, hébergée ici : charger une police chez Google donnerait l'adresse des visiteurs à Google. */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --fond: #151c2c;
  --nuit: #0d1322;
  --panneau: #1d2638;
  --panneau-2: #243049;
  --encre: #eef1f6;
  --doux: #a9b3c4;
  --trait: #2c3850;
  --lueur: #f2c230;
  --lueur-pale: #ffe08a;
  --verre: rgba(29, 38, 56, 0.55);
  --verre-bord: rgba(255, 255, 255, 0.09);
  --rayon: 22px;
  --police: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--fond); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 17px/1.6 var(--police);
}
img { max-width: 100%; display: block; }
a { color: var(--lueur); }
strong { color: var(--encre); }

/* ---------- Pages de texte ---------- */
main { max-width: 720px; margin: 0 auto; padding: 40px 16px 64px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; font-weight: 800; }
h2 { font-size: 1.25rem; margin: 36px 0 8px; font-weight: 800; }
p, li { color: var(--doux); }
.chapeau { font-size: 1.1rem; color: var(--encre); }
.langues { font-size: 0.9rem; margin-bottom: 32px; }
.langues a { margin-right: 12px; }
.carte {
  display: flex; gap: 20px; align-items: center;
  background: var(--panneau); border: 1px solid var(--trait); border-radius: 20px;
  padding: 20px; margin: 24px 0; text-decoration: none; color: inherit;
}
.carte img { width: 88px; height: 88px; border-radius: 20px; flex: none; }
.carte h2 { margin: 0 0 4px; color: var(--encre); }
.carte p { margin: 0; }
footer { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--trait); font-size: 0.9rem; color: var(--doux); }
footer a { margin-right: 12px; }
@media (max-width: 480px) {
  .carte { flex-direction: column; align-items: flex-start; }
}
/* Ce qui reste à compléter : bien visible, pour qu'aucun champ ne parte en ligne vide. */
.a-remplir { color: var(--lueur); border: 1px dashed var(--lueur); border-radius: 6px; padding: 0 6px; }
dl { margin: 0; }
dt { color: var(--encre); margin-top: 12px; }
dd { margin: 2px 0 0; color: var(--doux); }

/* ---------- Vitrines ---------- */
.vitrine main { max-width: none; padding: 0; }
.vitrine h1, .vitrine h2, .vitrine h3 { color: var(--encre); letter-spacing: -0.01em; }
.vitrine p { color: var(--doux); }
.boite { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; position: relative; }
.section.sombre { background: var(--nuit); }
.surtitre {
  display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--lueur); margin: 0 0 12px;
}
.titre-section { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 16px; font-weight: 900; }
.intro-section { font-size: 1.15rem; max-width: 620px; margin: 0 0 48px; }
.centre { text-align: center; }
.centre .intro-section { margin-left: auto; margin-right: auto; }

/* Barre du haut : en verre, collée en haut. */
.barre {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 19, 34, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--verre-bord);
}
.barre .boite { display: flex; align-items: center; gap: 24px; height: 64px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); font-weight: 900; font-size: 1.05rem; white-space: nowrap; }
.marque img { width: 34px; height: 34px; border-radius: 9px; }
.marque img.logo { width: 40px; height: 40px; border-radius: 0; margin: -4px 0; filter: drop-shadow(0 0 10px rgba(80, 140, 255, 0.35)); }
.liens { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.liens a { color: var(--doux); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.liens a:hover { color: var(--encre); }
.liens .langue { border: 1px solid var(--verre-bord); border-radius: 999px; padding: 4px 12px; }
@media (max-width: 720px) { .liens a.facultatif { display: none; } }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; padding: 14px 26px; font-weight: 800; font-size: 1rem;
  text-decoration: none; border: 0; font-family: inherit;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.bouton.principal { background: var(--lueur); color: #1c1606; box-shadow: 0 8px 30px rgba(242, 194, 48, 0.28); }
a.bouton.principal:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(242, 194, 48, 0.4); }
.bouton.secondaire { background: var(--verre); color: var(--encre); border: 1px solid var(--verre-bord); }
.bouton.secondaire:hover { background: rgba(255, 255, 255, 0.08); }
/* Badge officiel du store, tel quel (marges transparentes rognées), à la hauteur d'un bouton. */
.badge-store { display: inline-flex; border-radius: 10px; transition: transform .15s ease; }
.badge-store:hover { transform: translateY(-2px); }
.badge-store img { display: block; height: 56px; width: auto; }
.boutons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Hero : l'illustration du jeu en fond, fondue dans la nuit en bas. */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; isolation: isolate; }
.hero .ciel {
  position: absolute; inset: 0; z-index: -1;
  background: url("/lucioles/img/hero.webp") center 30% / cover no-repeat;
}
.hero .ciel::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 19, 34, 0.94) 0%, rgba(13, 19, 34, 0.78) 42%, rgba(13, 19, 34, 0.15) 75%, rgba(13, 19, 34, 0.05) 100%),
    linear-gradient(180deg, rgba(21, 28, 44, 0) 55%, var(--fond) 100%);
}
.hero .boite { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1.02; margin: 0 0 20px; font-weight: 900; }
.hero h1 .dore { color: var(--lueur); text-shadow: 0 0 40px rgba(242, 194, 48, 0.45); }
.hero .accroche { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--encre); opacity: 0.9; max-width: 520px; margin: 0 0 32px; }
.hero .boutons { margin-bottom: 28px; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.puces li {
  font-size: 0.85rem; font-weight: 700; color: var(--encre);
  background: var(--verre); border: 1px solid var(--verre-bord); border-radius: 999px; padding: 6px 14px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.puces li::before { content: "✦ "; color: var(--lueur); }
@media (max-width: 860px) {
  .hero { padding: 40px 0 72px; }
  .hero .boite { grid-template-columns: 1fr; gap: 40px; }
  .hero .ciel { background-image: url("/lucioles/img/hero-petit.webp"); background-position: 70% top; background-size: auto 520px; }
  .hero .ciel::after { background: linear-gradient(180deg, rgba(13, 19, 34, 0.2) 0%, rgba(13, 19, 34, 0.8) 320px, var(--fond) 520px); }
  .hero .telephone { margin: 0 auto; }
}

/* Maquette de téléphone : un cadre dessiné en CSS autour d'une capture. */
.telephone {
  width: min(300px, 78vw); aspect-ratio: 540 / 1086; position: relative;
  border-radius: 42px; padding: 10px; background: linear-gradient(160deg, #3a4560, #12182a);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 90px rgba(242, 194, 48, 0.12);
}
.telephone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; }
.flotte { animation: flotter 7s ease-in-out infinite; }
@keyframes flotter { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* Lucioles qui dérivent dans le fond d'une section. */
.lueurs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.lueurs i {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lueur-pale); box-shadow: 0 0 12px 4px rgba(242, 194, 48, 0.55);
  animation: luire 6s ease-in-out infinite;
}
.section > .boite { position: relative; z-index: 1; }
@keyframes luire { 0%, 100% { opacity: 0.15; transform: translate(0, 0); } 50% { opacity: 1; transform: translate(14px, -18px); } }

/* Bandeau des engagements */
.engagements { border-top: 1px solid var(--verre-bord); border-bottom: 1px solid var(--verre-bord); background: var(--nuit); }
.engagements ul { list-style: none; margin: 0 auto; padding: 26px 20px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.engagements li { text-align: center; color: var(--encre); font-weight: 800; font-size: 0.98rem; line-height: 1.35; }
.engagements li span { display: block; color: var(--doux); font-weight: 600; font-size: 0.82rem; }
@media (max-width: 860px) { .engagements ul { grid-template-columns: repeat(2, 1fr); } .engagements li:last-child { grid-column: span 2; } }

/* La règle : trois cartes et une grille illustrée. */
.regle { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.etapes { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; counter-reset: etape; }
.etapes li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--panneau); border: 1px solid var(--trait); border-radius: 18px; padding: 18px 20px;
}
.etapes li::before {
  counter-increment: etape; content: counter(etape);
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(242, 194, 48, 0.14); color: var(--lueur); font-weight: 900;
}
.etapes h3 { margin: 4px 0 4px; font-size: 1.08rem; }
.etapes p { margin: 0; font-size: 0.98rem; }
@media (max-width: 860px) { .regle { grid-template-columns: 1fr; gap: 40px; } }

/* La grille d'exemple : la 5×5 des repères du jeu, aux couleurs des prairies (DARK.regions). */
.exemple {
  background: linear-gradient(180deg, var(--panneau-2), var(--panneau));
  border: 1px solid var(--verre-bord); border-radius: 28px; padding: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); max-width: 420px; width: 100%; margin: 0 auto;
}
.plateau {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 2px;
  background: #0b101b; border-radius: 14px; overflow: hidden;
}
.plateau span { aspect-ratio: 1; display: grid; place-items: center; }
.plateau img { width: 60%; }
.plateau .l img { width: 94%; filter: drop-shadow(0 0 8px rgba(242, 194, 48, 0.8)); animation: eveil 3s ease-in-out infinite; }
.plateau .l:nth-child(3n) img { animation-delay: -1s; }
.plateau .l:nth-child(3n+1) img { animation-delay: -2s; }
@keyframes eveil { 50% { transform: scale(1.08); filter: drop-shadow(0 0 16px rgba(255, 224, 138, 1)); } }
.p0 { background: #8c5a6a; } .p1 { background: #4f8a74; } .p2 { background: #8e7f47; }
.p3 { background: #4d6f98; } .p4 { background: #6c5c95; }
.exemple p { margin: 14px 4px 0; font-size: 0.92rem; text-align: center; }

/* Fonctions : alternance texte / téléphone. */
.atout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.atout + .atout { border-top: 1px solid var(--verre-bord); }
.atout.inverse .atout-texte { order: 2; }
.atout .telephone { margin: 0 auto; width: min(270px, 70vw); }
.atout h3 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; margin: 0 0 14px; font-weight: 900; }
.atout p { font-size: 1.08rem; margin: 0 0 14px; }
.atout .embleme { width: 72px; height: 72px; margin-bottom: 12px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4)); }
@media (max-width: 860px) {
  .atout { grid-template-columns: 1fr; gap: 32px; }
  .atout.inverse .atout-texte { order: 0; }
}

/* Grille d'outils : un emblème par carte. */
.outils { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .outils { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .outils { grid-template-columns: 1fr; } }
.outil {
  background: var(--panneau); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 20px; transition: transform .2s, border-color .2s;
}
.outil:hover { transform: translateY(-4px); border-color: rgba(242, 194, 48, 0.35); }
.outil img { width: 64px; height: 64px; margin-bottom: 10px; }
.outil h3 { margin: 0 0 6px; font-size: 1.05rem; }
.outil p { margin: 0; font-size: 0.92rem; line-height: 1.5; }

/* Galerie : défilement horizontal, calé sur chaque capture. */
.galerie {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 20px 30px; scrollbar-width: thin; scrollbar-color: var(--trait) transparent;
}
.galerie figure { margin: 0; flex: none; width: 230px; scroll-snap-align: center; }
.galerie .telephone { width: 230px; padding: 8px; border-radius: 34px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 50px rgba(0, 0, 0, 0.5); }
.galerie .telephone img { border-radius: 27px; }
.galerie figcaption { text-align: center; color: var(--doux); font-size: 0.9rem; font-weight: 700; margin-top: 14px; }

/* Le bocal : une nuée de portraits. */
.bocal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 4px; margin: 0 auto 8px; max-width: 900px; }
.bocal img { width: clamp(70px, 12vw, 110px); filter: drop-shadow(0 0 22px rgba(242, 194, 48, 0.25)); }
.bocal img:nth-child(odd) { animation: flotter 6s ease-in-out infinite; }
.bocal img:nth-child(even) { animation: flotter 7.5s ease-in-out -2s infinite; }

/* Le mot de l'auteur */
.mot {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: linear-gradient(180deg, rgba(242, 194, 48, 0.08), rgba(242, 194, 48, 0.02));
  border: 1px solid rgba(242, 194, 48, 0.2); border-radius: 28px; padding: 44px 28px;
}
.mot blockquote { margin: 0 0 16px; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.45; color: var(--encre); font-weight: 700; }
.mot p { margin: 0; }

/* Appel final */
.appel { text-align: center; overflow: hidden; }
.appel img.icone { width: 112px; height: 112px; border-radius: 28px; margin: 0 auto 22px; box-shadow: 0 0 60px rgba(242, 194, 48, 0.3); }
.appel .boutons { justify-content: center; }

/* Pied de page des vitrines */
.pied { border-top: 1px solid var(--verre-bord); background: var(--nuit); padding: 36px 0 44px; margin: 0; }
.pied .boite { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pied a { color: var(--doux); text-decoration: none; margin: 0; }
.pied a:hover { color: var(--encre); }
.pied small { color: var(--doux); opacity: 0.75; }

/* Accueil du studio : le bandeau de la fiche en fond, son logo à droite, le texte à gauche. */
.studio-hero { padding: 110px 0 120px; position: relative; overflow: hidden; isolation: isolate; }
.studio-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 14, 40, 0.85) 0%, rgba(8, 14, 40, 0.4) 50%, rgba(8, 14, 40, 0) 70%),
    linear-gradient(180deg, rgba(21, 28, 44, 0) 70%, var(--fond) 100%),
    url("/img/shs-ciel.webp") right center / cover no-repeat;
}
.studio-hero .boite > div { max-width: 600px; }
.studio-hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1; margin: 0 0 20px; font-weight: 900; }
.studio-hero .accroche { font-size: clamp(1.1rem, 2.2vw, 1.3rem); margin: 0 0 12px; color: var(--encre); opacity: 0.9; }
.studio-hero .en { font-style: italic; color: var(--doux); margin: 0; }
.studio-hero .logo-mobile { display: none; }
@media (max-width: 860px) {
  .studio-hero { padding: 48px 0 64px; text-align: center; }
  /* En petit écran, le logo du bandeau tomberait derrière le texte : le logo seul, sur une lueur. */
  .studio-hero::before { background: radial-gradient(ellipse 90% 45% at 50% 18%, rgba(30, 70, 180, 0.45), transparent 70%), linear-gradient(180deg, #0a1233 0%, var(--fond) 100%); }
  .studio-hero .boite > div { margin: 0 auto; }
  .studio-hero .logo-mobile { display: block; width: 150px; height: 150px; margin: 0 auto 16px; filter: drop-shadow(0 0 30px rgba(80, 140, 255, 0.4)); }
}
.jeu-vedette {
  display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; text-decoration: none; color: inherit;
  background: var(--panneau); border: 1px solid var(--verre-bord); border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); transition: transform .25s, box-shadow .25s;
}
.jeu-vedette:hover { transform: translateY(-4px); box-shadow: 0 36px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(242, 194, 48, 0.3); }
.jeu-vedette .visuel { background: url("/lucioles/img/presentation.webp") center / cover; min-height: 320px; }
.jeu-vedette .texte { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.jeu-vedette .tete { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.jeu-vedette .tete img { width: 60px; height: 60px; border-radius: 16px; }
.jeu-vedette h2 { margin: 0; font-size: 1.6rem; font-weight: 900; }
.jeu-vedette .tete span { color: var(--doux); font-size: 0.9rem; }
.jeu-vedette p { margin: 0 0 22px; }
.jeu-vedette .bouton { align-self: flex-start; }
@media (max-width: 860px) { .jeu-vedette { grid-template-columns: 1fr; } .jeu-vedette .visuel { min-height: 0; aspect-ratio: 1024 / 500; } .jeu-vedette .texte { padding: 28px 24px 30px; } }
.principes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principe { background: var(--panneau); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 26px; }
.principe .signe { font-size: 1.6rem; color: var(--lueur); line-height: 1; margin-bottom: 14px; }
.principe h3 { margin: 0 0 8px; font-size: 1.1rem; }
.principe p { margin: 0; font-size: 0.97rem; }
@media (max-width: 860px) { .principes { grid-template-columns: 1fr; } .section { padding: 72px 0; } }

/* Apparition au défilement (activée par vitrine.js ; sans script, tout est visible). */
.js .apparait { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .apparait.vu { opacity: 1; transform: none; }
