/* PIXANIMAS — page du jeu sur elias-tech.pro. Univers du jeu : nuit cosmique, pixels, Rick et sa bulle de pixels. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/pjs.woff2') format('woff2');
}
:root {
  --fond: #050a0f;
  --fond2: #08151a;
  --carte: #0b1d1f;
  --trait: #18393a;
  --texte: #e6f2ec;
  --doux: #9fbab2;
  --vert: #3fd17f;
  --vert-f: #2fa45c;
  --vert-c: #a6f0c0;
  --bleu: #59c7e8;
  --rose: #ff7bd5;
  --or: #ffc94d;
  --violet: #b49bff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--texte); font: 400 17px/1.6 'Plus Jakarta Sans', system-ui, sans-serif;
  background:
    radial-gradient(ellipse 70% 40% at 80% 0%, rgba(47, 176, 160, .18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 0% 45%, rgba(63, 209, 127, .08), transparent 70%),
    var(--fond);
  overflow-x: hidden;
}
a { color: var(--vert-c); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs-formes { position: absolute; width: 0; height: 0; overflow: hidden; }
.conteneur { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
svg { display: block; }
svg text { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; background: rgba(5, 10, 15, .86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.marque { color: var(--vert-c); display: block; padding: 8px 0; }
.logo-mini { image-rendering: pixelated; }
.entete nav { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; }
.entete nav::-webkit-scrollbar { display: none; }
.entete nav a { color: var(--doux); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.entete nav a:hover { color: var(--texte); }
@media (max-width: 640px) { .entete nav a:nth-child(n+4) { display: none; } .entete nav { gap: 12px; } }

/* Mise en page */
.deux { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .deux { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .deux.inverse > :first-child { order: 2; }
}
.bloc { padding: 64px 0; border-top: 1px solid rgba(24, 57, 58, .6); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 6vw, 42px); font-weight: 800; margin-bottom: 18px; }
h2 em { font-style: normal; color: var(--vert); }
h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; color: var(--vert-c); }
p { margin: 0 0 14px; }
.surtitre { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 800; color: var(--bleu); margin-bottom: 10px; }
.surtitre::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--bleu); margin-right: 10px; box-shadow: 10px 0 0 rgba(89, 199, 232, .4); vertical-align: 1px; margin-right: 22px; }
.intro { font-size: 18px; color: var(--doux); max-width: 760px; }
.legende { font-size: 14px; color: var(--doux); }

/* Ouverture */
.ouverture { padding: 32px 0 56px; }
.logo { margin-bottom: 18px; }
.logo-pixels { width: 100%; max-width: 520px; height: auto; overflow: visible; }
.logo-pixels .ombre { fill: #0f3b33; }
.logo-pixels path { animation: saut 3.6s steps(2) infinite; }
.logo-pixels .l0 { fill: var(--vert); }
.logo-pixels .l1 { fill: var(--bleu); animation-delay: .15s; }
.logo-pixels .l2 { fill: var(--rose); animation-delay: .3s; }
.logo-pixels .l3 { fill: var(--or); animation-delay: .45s; }
.logo-pixels .l4 { fill: var(--vert); animation-delay: .6s; }
.logo-pixels .l5 { fill: var(--bleu); animation-delay: .75s; }
.logo-pixels .l6 { fill: var(--violet); animation-delay: .9s; }
.logo-pixels .l7 { fill: var(--or); animation-delay: 1.05s; }
.logo-pixels .l8 { fill: var(--rose); animation-delay: 1.2s; }
.logo-pixels .ombre path { animation: none; }
@keyframes saut { 0%, 80%, 100% { transform: translateY(0); } 88% { transform: translateY(-1px); } }
.chapo { font-size: clamp(19px, 4.6vw, 24px); font-weight: 600; line-height: 1.4; margin-bottom: 18px; }
.pastilles { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.pastilles li { font-size: 14px; font-weight: 700; padding: 5px 12px; background: var(--carte); border: 2px solid var(--trait); color: var(--vert-c); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 26px; }
.actions.centre { justify-content: center; }
.bouton-play { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 14px; background: #000; color: #fff; border: 2px solid #3a4b4b; font-weight: 800; font-size: 18px; line-height: 1.05; cursor: default; box-shadow: 4px 4px 0 #0f2a26; }
.bouton-play svg { image-rendering: pixelated; }
.bouton-play small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #b9c7c3; }
.bouton-lien { color: var(--vert-c); font-weight: 700; text-decoration: none; border-bottom: 2px dotted var(--vert-f); padding: 2px 0; }
.scene { width: 100%; height: auto; max-width: 520px; margin: 0 auto; overflow: hidden; }
.ouverture .scene { background: radial-gradient(circle at 50% 52%, rgba(63, 209, 127, .14), transparent 62%); }

/* La bulle de Rick : dessinée en pixels (bord, pointe et pixels qui flottent) */
.bulle-rick {
  position: relative; max-width: 560px; margin: 26px 0 18px; padding: 6px 10px; color: #0c1a12; font-weight: 700; font-size: 16px; line-height: 1.45;
  border: 16px solid transparent; border-image: url('bulle.svg') 8 fill / 16px round; image-rendering: pixelated;
  background: #f2fbf5; background-clip: padding-box;
}
.bulle-rick::before { content: ''; position: absolute; left: 14px; top: -27px; width: 24px; height: 16px; background: url('bulle-pointe.svg') no-repeat 0 0 / 100% 100%; image-rendering: pixelated; }
.bulle-rick::after { content: ''; position: absolute; left: -10px; right: -10px; bottom: -34px; height: 20px; background: url('bulle-pixels.svg') repeat-x 0 0 / 120px 40px; image-rendering: pixelated; opacity: .9; animation: flotte 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.bulle-rick.petite { font-size: 12.5px; margin: 14px 0 6px; padding: 2px 4px; border-width: 10px; border-image-width: 10px; }
.bulle-rick.petite::before { width: 16px; height: 11px; top: -19px; left: 8px; }
.bulle-rick.petite::after { display: none; }

/* Niveaux */
.niveaux { list-style: none; padding: 0; margin: 28px 0 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { .niveaux { grid-template-columns: repeat(4, 1fr); } }
.niveaux li { background: var(--carte); border: 2px solid var(--trait); padding: 10px 10px 12px; text-align: center; box-shadow: 4px 4px 0 #04100f; }
.niveaux svg { width: 100%; height: auto; aspect-ratio: 1; background: radial-gradient(circle, rgba(47, 176, 160, .16), transparent 66%); }
.niveaux b { display: inline-block; margin-top: 6px; font-size: 15px; color: var(--vert-c); letter-spacing: .04em; }

/* Téléphones */
.telephones { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin: 30px 0 22px; }
.telephones figure, .un-tel { margin: 0; text-align: center; }
.un-tel { justify-self: center; }
figcaption { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--doux); max-width: 250px; margin-left: auto; margin-right: auto; }
.tel { width: min(250px, 72vw); aspect-ratio: 9 / 19; background: #061014; border: 8px solid #1b2b2d; border-radius: 26px; box-shadow: 0 0 0 2px #0a1415, 0 18px 50px rgba(0, 0, 0, .5), 0 0 60px rgba(63, 209, 127, .08); overflow: hidden; position: relative; }
.tel::before { content: ''; position: absolute; top: 6px; left: 50%; width: 8px; height: 8px; margin-left: -4px; background: #0d1a1b; border-radius: 50%; z-index: 2; }
.ecran-jeu { width: 100%; height: 100%; }
.tel .capture { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ecran { height: 100%; padding: 22px 14px 14px; text-align: left; overflow: hidden; font-size: 12.5px; line-height: 1.4; }
.memo-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pastille-matiere { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; background: #123b2a; color: var(--vert-c); border: 2px solid var(--vert-f); }
.compte { font-size: 11px; font-weight: 800; color: var(--doux); }
.memo-titre { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.memo-resume { color: #cfe3dc; margin-bottom: 8px; }
.memo-points { margin: 0 0 8px; padding-left: 0; list-style: none; }
.memo-points li { padding-left: 14px; position: relative; margin-bottom: 4px; color: #e6f2ec; }
.memo-points li::before { content: ''; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; background: var(--or); }
.memo-defs { margin: 0; padding: 8px; background: #0b1d1f; border: 2px solid var(--trait); }
.memo-defs dt { font-weight: 800; color: var(--bleu); }
.memo-defs dd { margin: 0 0 4px; color: #cfe3dc; }
.memo-question { font-size: 15px; font-weight: 800; color: #fff; margin: 6px 0 12px; }
.choix { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.choix li { padding: 9px 10px; background: #0b1d1f; border: 2px solid var(--trait); font-weight: 700; }
.choix .bonne { animation: juste 8s steps(1) infinite; }
@keyframes juste { 0%, 30% { background: #0b1d1f; border-color: var(--trait); color: var(--texte); } 31%, 100% { background: #154d2f; border-color: var(--vert); color: #fff; } }
.quiz .apres { animation: arrive 8s steps(1) infinite; }
@keyframes arrive { 0%, 40% { opacity: 0; } 41%, 100% { opacity: 1; } }

.liste-jeux { list-style: none; padding: 0; margin: 10px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.liste-jeux li { font-size: 14px; font-weight: 700; padding: 4px 10px; background: var(--carte); border: 2px solid var(--trait); }
.liste-jeux li:nth-child(4n+1) { border-color: #1f4f3a; } .liste-jeux li:nth-child(4n+2) { border-color: #1f4459; } .liste-jeux li:nth-child(4n+3) { border-color: #57234a; } .liste-jeux li:nth-child(4n) { border-color: #5a4a1d; }
.plus { color: var(--doux); }
.plus b { color: var(--texte); }

/* Soin */
.soin .scene { max-width: 460px; }

/* Parents */
.cartes { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 760px) { .cartes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cartes { grid-template-columns: repeat(4, 1fr); } }
.cartes article { background: var(--carte); border: 2px solid var(--trait); padding: 18px; box-shadow: 4px 4px 0 #04100f; }
.cartes p { color: #cfe3dc; font-size: 15.5px; margin: 0; }

/* Fin */
.final { padding: 64px 0 40px; text-align: center; border-top: 1px solid rgba(24, 57, 58, .6); }
.final .bulle-rick { margin: 26px auto 34px; text-align: left; }
.final-anim { width: 220px; height: auto; margin: 0 auto 10px; }
.pied { border-top: 1px solid var(--trait); padding: 22px 0 30px; font-size: 14px; color: var(--doux); }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.pied nav { display: flex; gap: 18px; }

/* Mouvement réduit : tout reste lisible, rien ne bouge (les animations SVG sont arrêtées par pixanimas.js) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .choix .bonne { background: #154d2f; border-color: var(--vert); color: #fff; }
  .quiz .apres { opacity: 1; }
}

/* Bientôt : les abonnements, et la liste d'attente (10/11/2026) */
.offres { display: grid; gap: 14px; margin: 26px 0 10px; }
@media (min-width: 820px) { .offres { grid-template-columns: 1fr 1fr; } }
.offre { background: var(--carte); border: 2px solid var(--trait); padding: 18px 18px 8px; box-shadow: 4px 4px 0 #04100f; }
.offre.a-venir { border-color: #3a2f63; background: linear-gradient(180deg, rgba(180, 155, 255, .08), transparent 60%), var(--carte); }
.offre.a-venir h3 { color: #d8ccff; }
.offre ul { list-style: none; margin: 0; padding: 0; }
.offre li { position: relative; padding: 0 0 10px 18px; color: #cfe3dc; font-size: 15.5px; }
.offre li::before { content: ''; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; background: var(--vert); }
.offre.a-venir li::before { background: var(--violet); }
.liste-attente { max-width: 620px; margin-top: 8px; padding: 20px 18px; background: var(--carte); border: 2px solid var(--vert-f); box-shadow: 4px 4px 0 #04100f; display: grid; gap: 14px; }
.liste-attente h3 { margin: 0; }
.liste-attente p { margin: 0; }
.remise { color: var(--or); font-weight: 600; }
.remise b { color: #ffe39a; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demande { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.demande label, .case { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #cfe3dc; }
.demande input, .case input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--vert); }
.champ { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.champ input { width: 100%; font: inherit; font-size: 16px; color: var(--texte); background: #06110f; border: 2px solid var(--trait); padding: 11px 12px; }
.champ input:focus { outline: none; border-color: var(--vert); }
.bouton-envoi { justify-self: start; font: 800 16px/1.2 'Plus Jakarta Sans', system-ui, sans-serif; color: #04140b; background: var(--vert); border: 0; padding: 12px 20px; cursor: pointer; box-shadow: 4px 4px 0 #0f3b26; }
.bouton-envoi:hover { background: #5fe39a; }
.bouton-envoi[disabled] { opacity: .6; cursor: wait; }
.liste-attente .message { display: none; padding: 10px 12px; font-weight: 700; }
.liste-attente .message.ok { display: block; background: rgba(63, 209, 127, .14); color: var(--vert-c); border: 2px solid var(--vert-f); }
.liste-attente .message.erreur { display: block; background: rgba(255, 107, 91, .12); color: #ffc2bb; border: 2px solid #8a3a33; }
.note { font-size: 13.5px; color: var(--doux); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
[hidden] { display: none !important; }

/* 11/11 : visuels tirés du jeu (captures et vidéos de l'émulateur) */
.video-jeu { display: block; width: 100%; height: auto; }
.ouverture .scene.video-jeu { max-width: 460px; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--trait); border-radius: 20px; background: #061014; }
.niveaux img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.final-anim.video-jeu { width: 180px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.soin .un-tel { justify-self: center; }

/* 11/11 : pages légales propres à PIXANIMAS */
.legal-tete { max-width: 760px; margin: 0 auto; padding: 18px 16px 0; }
.legal-tete a { color: var(--vert-c); font-weight: 700; text-decoration: none; }
.legal main { max-width: 760px; margin: 0 auto; padding: 18px 16px 56px; }
.legal h1 { font-size: 28px; margin: 0 0 4px; }
.legal h2 { font-size: 19px; margin: 32px 0 8px; color: var(--vert-c); }
.legal .date { opacity: .75; margin: 0 0 24px; }
.legal .ttab { overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { border: 1px solid var(--trait); padding: 8px; text-align: left; vertical-align: top; }
