/* MyPixel — page « Ouverture prochainement ». Repose sur tokens.css (charte v1.0). */
* { box-sizing: border-box; }
html { background: var(--mp-night); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: var(--mp-body); color: var(--mp-text); background-color: var(--mp-night);
  background-image:
    radial-gradient(48rem 34rem at 50% 42%, rgba(11,13,18,.94) 35%, rgba(11,13,18,.6) 70%, rgba(11,13,18,.35)),
    radial-gradient(60rem 40rem at 50% 18%, rgba(0,184,255,.13), transparent 60%),
    radial-gradient(40rem 30rem at 85% 90%, rgba(255,43,214,.10), transparent 60%),
    url("../img/motif-pixels-tuile.svg");
  animation: drift 60s linear infinite;
}
@keyframes drift { to { background-position: 0 0, 0 0, 0 0, 160px 160px; } }

a { color: inherit; }
img { display: block; }

/* ---------- en-tête */
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--mp-space-4);
  padding: var(--mp-space-5) clamp(16px, 5vw, 64px); }
.logo { height: 40px; width: auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; font: var(--mp-caption); text-transform: uppercase; letter-spacing: .12em;
  color: var(--mp-text-muted); border: 1px solid var(--mp-line); border-radius: var(--mp-radius-pill); padding: 8px 14px; white-space: nowrap; }
.pill i { width: 7px; height: 7px; background: var(--mp-cyan); }

/* ---------- héros */
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(24px, 6vh, 64px) 16px var(--mp-space-7); }

.power { width: clamp(110px, 16vw, 150px); filter: drop-shadow(0 0 28px rgba(0,184,255,.45)) drop-shadow(0 0 50px rgba(255,43,214,.25)); }
.power svg { width: 100%; height: auto; overflow: visible; }
.ring { fill: none; stroke: var(--mp-cyan); stroke-width: 12; stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: draw 1.4s var(--mp-ease) .2s forwards; }
.px { fill: var(--mp-magenta); opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: on .5s var(--mp-ease) 1.5s forwards, pulse 2.6s ease-in-out 2.4s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes on { 0% { opacity: 0; transform: translateY(-14px) scale(.6); } 60% { opacity: 1; transform: translateY(2px) scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 6px var(--mp-magenta)); } }

.kicker { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; max-width: 100%; margin: var(--mp-space-6) 0 var(--mp-space-4);
  font: 600 0.9rem/1.3 var(--mp-font-text); text-transform: uppercase; letter-spacing: .16em; color: var(--mp-cyan); }
.kicker i { width: 9px; height: 9px; background: var(--mp-magenta); flex: none; }
.kicker [lang="ar"] { letter-spacing: 0; text-transform: none; font-size: 1.05rem; }

h1 { margin: 0; font: 700 clamp(2.6rem, 8vw, 5.6rem)/1.02 var(--mp-font-display); letter-spacing: var(--mp-tracking-display); }
h1 span { color: var(--mp-magenta); }

.lead { max-width: 40rem; margin: var(--mp-space-5) auto 0; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--mp-text-muted); }

/* ---------- boutons (charte p. 11) */
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--mp-space-3); margin-top: var(--mp-space-6); }
.btn { display: inline-flex; align-items: center; gap: 10px; font: var(--mp-button); text-decoration: none;
  padding: 16px 24px; border-radius: var(--mp-radius-md); border: 2px solid transparent;
  transition: transform var(--mp-duration) var(--mp-ease), box-shadow var(--mp-duration) var(--mp-ease); }
.btn i { width: 8px; height: 8px; background: currentColor; }
.btn.primary { background: var(--mp-cyan); color: var(--mp-ink); }
.btn.primary:hover { box-shadow: var(--mp-glow-cyan); transform: translateY(-2px); }
.btn.ghost { border-color: var(--mp-white); color: var(--mp-white); }
.btn.ghost:hover { border-color: var(--mp-magenta); box-shadow: var(--mp-glow-magenta); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--mp-magenta); outline-offset: 3px; }

/* ---------- univers */
.cats { list-style: none; padding: 0; margin: var(--mp-space-7) auto 0; width: 100%; max-width: 900px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--mp-space-3); }
.cats li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 500; text-align: left; line-height: 1.25;
  background: rgba(255,255,255,.04); border: 1px solid var(--mp-line); border-radius: var(--mp-radius-sm); }

/* ---------- engagements */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--mp-space-4);
  max-width: 1200px; width: calc(100% - 32px); margin: 0 auto var(--mp-space-7); }
.promises div { background: rgba(22,25,34,.85); border: 1px solid var(--mp-line); border-radius: var(--mp-radius-lg); padding: var(--mp-space-5); }
.promises b { display: block; margin: var(--mp-space-3) 0 4px; font: 600 1rem/1.3 var(--mp-font-display); }
.promises span { color: var(--mp-text-muted); font-size: .95rem; }

/* ---------- pied de page */
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--mp-space-2);
  padding: var(--mp-space-5) clamp(16px, 5vw, 64px); border-top: 1px solid var(--mp-line); font: var(--mp-caption); color: var(--mp-text-muted); }
.foot a { color: var(--mp-cyan); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- tablette */
@media (max-width: 1000px) { .promises { grid-template-columns: repeat(2, 1fr); } }

/* ---------- mobile */
@media (max-width: 720px) {
  .logo { height: 32px; }
  .pill { display: none; }
  .promises { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .ctas { width: 100%; max-width: 420px; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mp-space-2); }
  .cats li { padding: 10px 12px; font-size: .95rem; }
  .cats img { width: 24px; height: 24px; flex: none; }
  .kicker { letter-spacing: .1em; font-size: .8rem; }
  .kicker [lang="ar"] { flex-basis: 100%; }
  .kicker [lang="ar"] .sep { display: none; }
}

/* ---------- confort : pas d'animation si l'utilisateur l'a désactivée */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .ring { animation: none; stroke-dashoffset: 0; }
  .px { animation: none; opacity: 1; }
  .btn { transition: none; }
}
