/* Souk Hustler : Morocco Edition — feuille de style unique (index, privacy, 404) */

/* ---------- Polices auto-hébergées ---------- */
@font-face {
  font-family: "Rakkas";
  src: url("/fonts/rakkas-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rakkas";
  src: url("/fonts/rakkas-arabic-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Anton";
  src: url("/fonts/anton-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("/fonts/noto-sans-arabic-arabic-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("/fonts/noto-sans-arabic-arabic-700-normal.woff2") format("woff2");
  font-weight: 600 800; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

/* ---------- Jetons ---------- */
:root {
  --chaux: #f6f9fc;        /* blanc chaulé, légèrement bleuté */
  --chaux-2: #e6eef7;
  --sable: #efe0bf;
  --sable-2: #e3cc9b;
  --ciel: #6fd3ff;         /* bleu ciel de la médina */
  --majorelle: #2f43c8;    /* bleu majorelle */
  --nuit: #0f2557;         /* bleu nuit */
  --nuit-2: #14286b;
  --night: #0b1a45;        /* fond profond du site (la nuit sur la médina) */
  --night-2: #07112e;
  --ink-soft: #34497a;
  --mist: #c9dcff;         /* texte secondaire sur fond nuit */
  --terracotta: #c8553d;
  --or: #f2b632;           /* or saharien : récompenses et boutons d'action */
  --or-2: #ffd36b;

  --display: "Rakkas", "Noto Sans Arabic", Georgia, serif;
  --impact: "Anton", "Rakkas", "Noto Sans Arabic", Impact, sans-serif;
  --body: "Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --line: 3px;
  --cel: 6px 6px 0 var(--nuit);
  --cel-sm: 4px 4px 0 var(--nuit);
  --neon: 0 0 0 2px rgba(111, 211, 255, .9), 0 0 22px rgba(111, 211, 255, .45);
  --radius: 18px;
  --wrap: 1180px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --section: clamp(4.5rem, 12vw, 8.5rem);

  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%232f43c8' stroke-opacity='.08' stroke-width='1.5'%3E%3Crect x='16' y='16' width='24' height='24'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 0l8 8M56 0l-8 8M0 56l8-8M56 56l-8-8'/%3E%3C/g%3E%3C/svg%3E");
  --zellige-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%236fd3ff' stroke-opacity='.10' stroke-width='1.5'%3E%3Crect x='16' y='16' width='24' height='24'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 0l8 8M56 0l-8 8M0 56l8-8M56 56l-8-8'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
/* rien ne doit dépasser sur le côté (image du Caïd, bande inclinée) ; « clip » garde le défilement épinglé du voyage */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
/* barre de défilement aux couleurs du site (ordinateur ; sur téléphone elle reste invisible) */
html { scrollbar-color: #2f4fbf #07112e; }
/* titres équilibrés : pas de « SÈME- / LES. » ni de mot seul sur la dernière ligne */
h1, h2, h3, .stopcard__en { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
body {
  margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--nuit); background: var(--chaux); -webkit-font-smoothing: antialiased;
}
html.arab body { font-size: 1.125rem; line-height: 1.75; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font-family: var(--display); font-size: clamp(2.1rem, 7vw, 3.4rem); line-height: 1.08; }
h3 { font-family: var(--body); font-weight: 800; font-size: 1.2rem; line-height: 1.3; }
p { margin: 0; }
a { color: var(--majorelle); text-underline-offset: .2em; text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 6px; }
.lead { margin-top: .9rem; max-width: 38rem; font-size: 1.15rem; color: var(--ink-soft); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 820px; }
.section { padding-block: var(--section); position: relative; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--or); color: var(--nuit); font-weight: 800; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- Barre du haut ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(246, 249, 252, .92); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); border-bottom: var(--line) solid var(--nuit); }
.topbar__in { max-width: var(--wrap); margin-inline: auto; padding: .55rem var(--pad); display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .4rem; color: var(--nuit); text-decoration: none; }
.brand__mark { width: 52px; height: 52px; margin-block: -4px; filter: drop-shadow(0 2px 4px rgba(7, 17, 46, .35)); }
.brand__word { display: block; height: 48px; width: auto; }
.nav { display: none; gap: 1.6rem; margin-inline-start: auto; }
.nav a { color: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; padding-block: .3rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--ciel); }
/* menu des langues : bouton globe + code, panneau en grille comme dans le lobby du jeu */
.langs { position: relative; margin-inline-start: auto; }
/* Musique du jeu : coupée par défaut, le visiteur la lance */
.snd { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; margin-inline-start: auto; padding: 0; border: 2px solid currentColor; border-radius: 999px; background: transparent; cursor: pointer; }
.snd svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.snd .snd__on { display: none; }
.snd[aria-pressed="true"] { background: var(--ciel); color: var(--nuit); border-color: var(--ciel); }
.snd[aria-pressed="true"] .snd__on { display: inline; }
.snd[aria-pressed="true"] .snd__off { display: none; }
.snd + .langs { margin-inline-start: .5rem; }
html[dir="rtl"] .snd svg { transform: scaleX(-1); }
.langs__btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; padding: 0 .75rem 0 .65rem; border: 2px solid currentColor; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 800; font-size: .9rem; }
.langs__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.langs__btn .langs__chev { width: 16px; height: 16px; stroke-width: 2.6; transition: rotate .2s ease; }
.langs__btn[aria-expanded="true"] { background: var(--ciel); color: var(--nuit); border-color: var(--ciel); }
.langs__btn[aria-expanded="true"] .langs__chev { rotate: 180deg; }
.langs__code { min-width: 1.6em; text-align: center; font-family: var(--body); }
.langs__code:lang(ar), html.arab .langs__code { font-family: "Noto Sans Arabic", var(--body); }
.langs__panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 60; width: min(440px, calc(100vw - 1.5rem));
  padding: 1rem; border-radius: 22px; color: #fff; text-align: start;
  background: rgba(12, 26, 82, .97); border: 1px solid rgba(143, 226, 255, .3);
  box-shadow: 0 24px 60px rgba(3, 9, 30, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: langIn .22s cubic-bezier(.2, 1.2, .4, 1) both;
}
.langs__title { margin: 0 0 .7rem; font-weight: 800; font-size: 1rem; color: #8fe2ff; }
.langs__note { margin: .8rem 0 0; font-size: .8rem; line-height: 1.4; color: rgba(255, 255, 255, .7); }
.lgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lt {
  position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; height: 60px; padding: 0 12px 0 9px;
  border: 0; border-radius: 16px; text-align: start; color: #fff; font: inherit; cursor: pointer;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  animation: langItem .3s ease var(--d, 0s) both; transition: background .15s ease;
}
.lt:hover { background: rgba(255, 255, 255, .14); }
.lt:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.lb { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; font-style: normal; font-weight: 900; font-size: 13px; line-height: 1; letter-spacing: .02em; color: #8fe2ff; background: rgba(143, 226, 255, .12); box-shadow: inset 0 0 0 1px rgba(143, 226, 255, .3); }
.lb.l3, .lt[lang="ar"] .lb, .lt[lang="ary"] .lb { font-family: "Noto Sans Arabic", var(--body); font-size: 14px; }
.ln { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ln b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt[lang="ar"] .ln b, .lt[lang="ary"] .ln b { font-family: "Noto Sans Arabic", var(--body); }
.ln small { font-size: 11.5px; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt.on { background: #2f5bff; box-shadow: 0 0 0 1.5px rgba(190, 240, 255, .7), 0 8px 22px rgba(47, 91, 255, .45); padding-inline-end: 28px; }
.lt.on::after { content: ""; position: absolute; inset-inline-end: 9px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; -webkit-mask: none; box-shadow: inset 0 0 0 4px #2f5bff; }
.lt.on .lb { color: #14286e; background: #fff; box-shadow: none; }
.lt.on .ln small { color: rgba(255, 255, 255, .88); }
.lt.soon { cursor: default; background: rgba(13, 27, 82, .4); }
.lt.soon:hover { background: rgba(13, 27, 82, .4); }
.lt.soon .lb { color: #8d96ad; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-family: "Noto Sans Tifinagh", "Ebrima", "Segoe UI Historic", sans-serif; font-size: 18px; }
.lt.soon .ln b { color: #8d96ad; }
.lt.soon .ln small { color: #ff7a45; font-weight: 800; }
@keyframes langIn { from { opacity: 0; translate: 0 -8px; scale: .97; } }
@keyframes langItem { from { opacity: 0; translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .langs__panel, .lt { animation: none; } }
@media (max-width: 379px) { .lgrid { gap: 6px; } .lt { gap: 8px; height: 56px; padding: 0 8px; } .lb { width: 30px; height: 30px; font-size: 11.5px; } .ln b { font-size: 14px; } }
@media (min-width: 1100px) { .nav { display: flex; } .nav + .langs { margin-inline-start: 1.2rem; } .nav + .snd { margin-inline-start: 1.2rem; } }
@media (min-width: 1100px) and (max-width: 1239px) { .nav { gap: 1.1rem; } .nav a { font-size: .9rem; } }
.nav a { white-space: nowrap; }
/* très petit téléphone : l'insigne seul suffit (le titre est juste en dessous) */
/* téléphones : le grand logo du haut de page suffit, la barre garde seulement le badge */
@media (max-width: 599px) { .brand__word { display: none; } }

/* La page d'accueil : immersive, de nuit, barre transparente au-dessus du hero */
.home { background: var(--night); color: var(--chaux); overflow-x: clip; }
.home .lead { color: var(--mist); }
.home .topbar { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; color: var(--chaux); -webkit-backdrop-filter: none; backdrop-filter: none; transition: background .3s, border-color .3s; }
.home .topbar.is-solid { background: rgba(7, 17, 46, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: rgba(111, 211, 255, .35); }
.home .brand { color: var(--chaux); }
.home a { color: var(--ciel); }

/* ---------- 1. Hero 3D ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; justify-items: center; align-items: start; column-gap: 2rem;
  grid-template-areas: "title" "tag" "." "picker" "cta"; grid-template-rows: auto auto minmax(var(--stage), 1fr) auto auto;
  --stage: clamp(250px, 64vw, 360px); /* place minimale du personnage entre le texte et le sélecteur (téléphone, tablette) */
  padding: 4.8rem var(--pad) 1.6rem;
  background: radial-gradient(120% 70% at 50% 100%, #3a52d8 0%, #1d3296 38%, var(--night) 75%);
}
.hero__sky { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero__rays {
  position: absolute; left: 50%; top: 58%; width: 190vmax; height: 190vmax; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(111, 211, 255, .14) 0deg 5deg, transparent 5deg 16deg);
  -webkit-mask: radial-gradient(circle, #000 0 16%, transparent 46%); mask: radial-gradient(circle, #000 0 16%, transparent 46%);
  animation: spin 90s linear infinite;
}
.hero__city { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(110px, 18vw, 240px); fill: #0a1a52; opacity: .9; }
.hero__title {
  grid-area: title; position: relative; z-index: -1; text-align: center; display: flex; flex-direction: column; align-items: center; pointer-events: none;
}
.hero__edition {
  font-family: var(--body); font-weight: 600; font-size: clamp(.85rem, 2.4vw, 1rem); line-height: 1.3; letter-spacing: .02em;
  color: var(--mist); margin-top: .2rem;
}
.hero__title { z-index: 2; }
.hero__logo { display: block; width: min(80vw, 330px); height: auto; filter: drop-shadow(0 14px 28px rgba(5, 12, 36, .55)); }
.hero__name {
  font-family: var(--impact); text-transform: uppercase; letter-spacing: .01em; line-height: .86;
  font-size: clamp(3.3rem, 14.5vw, 11.5rem); white-space: nowrap; padding-top: .16em; margin-top: -.16em;
  color: transparent; -webkit-text-stroke: 2px rgba(232, 251, 255, .9);
  background: linear-gradient(180deg, #ffffff 0%, #bfeaff 55%, rgba(111, 211, 255, .25) 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 28px rgba(111, 211, 255, .35));
}
html[dir="rtl"] .hero__name { direction: ltr; }
.hero__stage { position: absolute; inset: 0; z-index: 0; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; cursor: grab; touch-action: pan-y; }
.hero__gl:active { cursor: grabbing; }
.hero__gl.is-on { opacity: 1; }
/* téléphone et tablette : le haut de la porte passe derrière l'accroche en s'effaçant (--fade posé par main.js) */
.hero__gl.is-fade { -webkit-mask-image: linear-gradient(180deg, transparent calc(var(--fade, 0px) - 46px), #000 calc(var(--fade, 0px) + 2px)); mask-image: linear-gradient(180deg, transparent calc(var(--fade, 0px) - 46px), #000 calc(var(--fade, 0px) + 2px)); }
.hero__poster { position: absolute; left: 50%; top: 30%; height: 44%; width: auto; translate: -50% 0; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .45)); transition: opacity .6s ease; }
.hero__poster.is-off { opacity: 0; pointer-events: none; }
@media (min-width: 700px) { .hero__poster { top: 26%; height: 52%; } }
.hero__dance {
  min-height: 40px; padding: .35rem 1rem; border-radius: 999px; cursor: pointer;
  background: rgba(7, 17, 46, .7); color: var(--chaux); border: 2px solid rgba(111, 211, 255, .7); font-weight: 800; font-size: .9rem;
}
.hero__dance::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-inline-end: .5em; background: var(--or); transform: rotate(45deg); }
.picker { display: flex; align-items: center; justify-content: center; gap: .8rem; }
.picker__arrow {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 2px solid var(--ciel); background: rgba(7, 17, 46, .6); color: var(--chaux);
  box-shadow: 0 0 18px rgba(111, 211, 255, .35);
}
.picker__arrow svg { width: 22px; height: 22px; }
.picker__arrow:hover { background: var(--ciel); color: var(--night); }
html[dir="rtl"] .picker__arrow svg { transform: scaleX(-1); }
.picker__who { min-width: 11rem; text-align: center; }
.picker__name { font-family: var(--impact); text-transform: uppercase; font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1; letter-spacing: .02em; text-shadow: 0 0 18px rgba(111, 211, 255, .6); }
html.arab .picker__name { font-family: var(--display); text-transform: none; }
.picker__meta { margin-top: .3rem; display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: .85rem; color: var(--mist); }
.picker__price { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem .1rem .25rem; border-radius: 999px; background: rgba(7, 17, 46, .7); color: #fff; font-weight: 800; }
.picker__price.is-free { background: #1e8a5a; padding-inline-start: .55rem; }
.picker.is-loading .picker__name { opacity: .6; }
.picker__meta .hero__dance { min-height: 32px; padding: .15rem .7rem; font-size: .8rem; }
.hero__tagline, .picker, .hero__cta { position: relative; z-index: 3; text-align: center; }
.hero__tagline { grid-area: tag; max-width: 34rem; margin-top: .25rem; }
@media (max-width: 599px) { .hero { padding-top: 4.3rem; } }
.picker { grid-area: picker; margin-bottom: .9rem; }
.hero__cta { grid-area: cta; display: grid; justify-items: center; gap: .55rem; }
/* l'appli comme sur un écran de téléphone : l'icône « s'installe » (anneau qui se remplit), puis les boutons des stores */
.dock {
  display: flex; align-items: center; gap: 1.1rem; padding: .85rem 1.1rem .85rem .9rem; margin-bottom: .2rem;
  border-radius: 28px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 22px 44px rgba(3, 9, 30, .45), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.dock__app { display: grid; justify-items: center; gap: .45rem; }
.dock__icon { position: relative; width: 82px; height: 82px; }
.dock__clip { position: relative; display: block; width: 100%; height: 100%; border-radius: 22%; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 10px 22px rgba(0, 0, 0, .5); animation: appPop .7s cubic-bezier(.2, 1.6, .4, 1) 1.7s both; }
.dock__clip img { display: block; width: 100%; height: 100%; }
.dock__clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%) no-repeat; background-size: 260% 100%; background-position: 130% 0; animation: appShine 5s ease-in-out 2.4s infinite; }
.dock__ring { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); overflow: visible; animation: ringOut .4s ease 1.6s both; }
.dock__ring rect { fill: none; stroke: #ffd447; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px rgba(255, 212, 71, .8)); animation: ringFill 1.3s cubic-bezier(.5, 0, .3, 1) .3s forwards; }
.dock__name { margin: 0; font-size: .82rem; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.stores--dock { flex-direction: column; flex-wrap: nowrap; gap: .6rem; }
.stores--dock .store { min-height: 50px; width: 100%; }
@keyframes ringFill { to { stroke-dashoffset: 0; } }
@keyframes ringOut { to { opacity: 0; scale: 1.25; } }
@keyframes appPop { 0% { scale: 1; } 40% { scale: .86; } 100% { scale: 1; } }
@keyframes appShine { 0%, 60% { background-position: 130% 0; } 100% { background-position: -40% 0; } }
@media (prefers-reduced-motion: reduce) {
  .dock__ring { display: none; }
  .dock__clip, .dock__clip::after { animation: none; }
}
.hero .store { min-height: 52px; padding: .35rem 1rem .35rem .85rem; }
.hero .store__label strong { font-size: 1rem; }
/* ordinateur (et téléphone couché) : le contenu s'aligne sur la barre du haut ; la porte et le sélecteur à gauche, le texte à droite */
@media (min-width: 1000px), (min-width: 640px) and (max-height: 520px) and (orientation: landscape) {
  .hero {
    --side: max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad)));
    --col: clamp(24rem, 32vw, 28rem);
    padding: 5.5rem var(--side) 4.2rem; column-gap: 3rem;
    grid-template-columns: minmax(0, 1fr) var(--col);
    grid-template-areas: ". ." ". title" ". tag" ". cta" ". ." "picker .";
    grid-template-rows: minmax(0, 1fr) auto auto auto minmax(0, 1.3fr) auto;
    align-items: start;
  }
  .hero__title, .hero__tagline, .hero__cta { justify-self: stretch; width: auto; }
  .hero__logo { width: 100%; }
  .hero__tagline { text-align: center; max-width: none; margin: .8rem 0 0; }
  .hero__cta { justify-items: center; margin-top: 1.5rem; }
  .picker { margin: 0; align-self: end; }
  /* image d'attente et rayons centrés sur la colonne de gauche, comme la 3D */
  .hero__poster, .hero__rays { left: calc(var(--side) + (100% - 2 * var(--side) - var(--col) - 3rem) / 2); }
  html[dir="rtl"] .hero__poster, html[dir="rtl"] .hero__rays { left: auto; right: calc(var(--side) + (100% - 2 * var(--side) - var(--col) - 3rem) / 2); translate: 50% -50%; }
  html[dir="rtl"] .hero__poster { translate: 50% 0; }
  .hero__poster { top: 18%; height: 60%; }
}
.hero__tagline { font-size: clamp(.95rem, 2.6vw, 1.15rem); line-height: 1.45; font-weight: 600; text-shadow: 0 2px 12px rgba(7, 17, 46, .8); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.store {
  display: inline-flex; align-items: center; gap: .65rem; min-height: 58px; padding: .45rem 1.2rem .45rem 1rem;
  background: var(--or); color: var(--night) !important; text-decoration: none;
  border-radius: 16px; box-shadow: 0 8px 0 #a8730d, 0 14px 30px rgba(242, 182, 50, .3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.store:hover { transform: translateY(-2px); background: var(--or-2); }
.store--soon, .store--soon:hover { transform: none; cursor: default; background: #c9d3e6; box-shadow: 0 6px 0 #7f8aa3; }
.stores--sm .store--soon { box-shadow: 0 5px 0 #7f8aa3; }
.store:active { transform: translateY(6px); box-shadow: 0 2px 0 #a8730d; }
.store__icon { width: 24px; height: 24px; flex: none; }
.store__label { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.store__label small { font-size: .74rem; font-weight: 600; }
.store__label strong { font-size: 1.12rem; font-weight: 800; }
.hero__soon { font-size: .85rem; color: var(--mist); }
.picker__count { white-space: nowrap; }
@media (max-width: 599px) { .picker__count { display: none; } }
.hero__dance { white-space: nowrap; }
/* téléphone couché : deux colonnes compactes, le texte réduit à l'essentiel */
@media (min-width: 640px) and (max-width: 999px) and (max-height: 520px) and (orientation: landscape) {
  .hero { --col: 19rem; padding-top: 4.3rem; padding-bottom: 3.4rem; min-height: 0; }
  .hero__logo { width: 100%; max-width: 14rem; margin-inline: auto; }
  .hero__edition, .hero__soon { display: none; }
  .hero__tagline { font-size: .88rem; margin-top: .5rem; }
  .hero__cta { margin-top: .8rem; }
}
@keyframes spin { to { rotate: 1turn; } }

/* ---------- Bandeau des villes ---------- */
.ticker { position: relative; z-index: 2; overflow: hidden; background: var(--ciel); color: var(--night); transform: rotate(-2deg); margin: -1.2rem -2vw 0; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.ticker__track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker__track span { display: inline-flex; align-items: center; gap: 1.2rem; padding: .7rem 1.2rem; white-space: nowrap; font-family: var(--impact); font-size: clamp(1.3rem, 3vw, 2rem); text-transform: uppercase; }
.ticker__track span[lang="ar"] { font-family: var(--display); text-transform: none; }
.ticker__track i { width: .8rem; height: .8rem; background: var(--night); transform: rotate(45deg); display: inline-block; }
@keyframes tick { to { transform: translateX(-50%); } }
html[dir="rtl"] .ticker__track { animation-direction: reverse; }

/* ---------- Le Super Caïd ---------- */
.caid { overflow: hidden; background: radial-gradient(55% 60% at 26% 58%, rgba(120, 138, 58, .55), transparent 72%), radial-gradient(40% 40% at 80% 20%, rgba(242, 182, 50, .12), transparent 70%), linear-gradient(180deg, var(--night), #0f1f52); }
.caid__bigword {
  position: absolute; left: 50%; top: 2%; translate: -50% 0; pointer-events: none; white-space: nowrap;
  font-family: var(--impact); font-size: clamp(9rem, 38vw, 30rem); line-height: .8; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 2px rgba(190, 205, 120, .22);
}
.caid__in { position: relative; display: grid; gap: 2rem; align-items: center; }
.caid__stage { position: relative; height: clamp(420px, 112vw, 660px); isolation: isolate; }
.caid__rays { position: absolute; inset: -30%; z-index: -1; background: repeating-conic-gradient(from 0deg, rgba(214, 196, 110, .22) 0deg 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 52%); mask: radial-gradient(circle, #000 0 18%, transparent 52%); animation: spin 70s linear infinite reverse; }
.caid__stage::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 18%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 182, 50, .45), transparent); }
.caid__img {
  position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none;
  transform: translateX(calc(-50% + var(--mx, 0px))) translateY(var(--my, 0px)); transition: transform .2s ease-out;
  -webkit-mask: radial-gradient(62% 78% at 50% 38%, #000 64%, transparent 98%); mask: radial-gradient(62% 78% at 50% 38%, #000 64%, transparent 98%);
}
.caid h2 { color: var(--chaux); }
.home .caid h2 { font-family: var(--impact); text-transform: uppercase; font-size: clamp(3rem, 11vw, 6rem); line-height: .9; }
html.arab .home .caid h2 { font-family: var(--display); text-transform: none; }
.bubble { position: relative; margin: 1.8rem 0 0; padding: 1.1rem 1.3rem 1rem; max-width: 34rem; background: var(--chaux); color: var(--night); border-radius: 22px; box-shadow: 6px 6px 0 var(--or); transform: rotate(-1.5deg); }
.bubble::before { content: ""; position: absolute; top: 1.4rem; inset-inline-start: -14px; width: 28px; height: 28px; background: var(--chaux); transform: rotate(45deg); border-radius: 4px; }
.bubble blockquote { margin: 0; position: relative; }
.bubble__darija { font-family: var(--impact); text-transform: uppercase; font-size: clamp(1.3rem, 4.4vw, 1.8rem); line-height: 1.05; letter-spacing: .01em; }
.bubble__ar { margin-top: .4rem; font-family: var(--display); font-size: clamp(1.2rem, 4vw, 1.5rem); color: var(--majorelle); line-height: 1.35; text-align: start; }
.bubble figcaption { margin-top: .5rem; color: var(--ink-soft); font-size: .95rem; font-style: italic; }
.stats { margin: 2rem 0 0; display: grid; gap: .75rem; max-width: 30rem; }
.stats div { display: grid; grid-template-columns: 8.5rem 1fr; align-items: center; gap: .8rem; }
.stats dt { font-weight: 800; font-size: .95rem; }
.stats dd { margin: 0; display: flex; align-items: center; gap: .6rem; }
.stats .bar { position: relative; flex: 1; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.stats .bar::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: calc(var(--v, 0) * 1%); border-radius: 6px; background: linear-gradient(90deg, #9fb24a, var(--or)); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.stats .bar.is-low::after { background: linear-gradient(90deg, var(--terracotta), #ff8a6a); }
.stats b { font-family: var(--impact); font-weight: 400; font-size: 1.25rem; min-width: 2.4rem; text-align: end; color: var(--or); }
.sidekick { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; max-width: 30rem; padding: .7rem 1rem .7rem .7rem; border-radius: 20px; background: rgba(111, 211, 255, .08); border: 2px solid rgba(111, 211, 255, .35); }
.sidekick img { width: 84px; height: 84px; flex: none; object-fit: cover; object-position: top; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #6fd3ff, #2f43c8); border: 2px solid var(--ciel); }
.sidekick h3 { font-size: 1.05rem; }
.sidekick p { margin-top: .2rem; color: var(--mist); font-size: .95rem; line-height: 1.45; }
@media (min-width: 900px) { .caid__in { grid-template-columns: 1fr 1fr; gap: 3rem; } .caid__stage { height: 680px; } }
.scenes__title { margin-top: 3.5rem; font-family: var(--impact); text-transform: uppercase; font-size: 1.4rem; letter-spacing: .03em; color: var(--ciel); }
html.arab .scenes__title { font-family: var(--display); text-transform: none; }
.scenes { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.6rem, 2.5vw, 1.6rem); max-width: 860px; }
.scene { border-radius: 18px; overflow: hidden; border: 2px solid rgba(111, 211, 255, .45); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.scene:nth-child(1) { rotate: -3deg; } .scene:nth-child(2) { rotate: 1.5deg; translate: 0 -10px; } .scene:nth-child(3) { rotate: -1deg; }
.scene img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }

/* ---------- 2. Gameplay : téléphone en 3D ---------- */
.gameplay { background: radial-gradient(60% 60% at 75% 50%, rgba(47, 67, 200, .55), transparent 70%), var(--zellige-light), var(--night); overflow: hidden; }
.gameplay__in { display: grid; gap: 3rem; align-items: center; }
.gameplay h2, .play h2, .chars h2, .board h2, .faq h2, .journey h2 { font-family: var(--impact); text-transform: uppercase; font-size: clamp(2.6rem, 9vw, 5.2rem); line-height: .95; letter-spacing: .01em; }
html.arab .home h2 { font-family: var(--display); text-transform: none; }
.chips { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { padding: .45rem .9rem; border-radius: 999px; border: 2px solid rgba(111, 211, 255, .6); color: var(--chaux); font-weight: 700; font-size: .95rem; background: rgba(111, 211, 255, .08); }
.gameplay__scene { position: relative; display: grid; place-items: center; perspective: 1100px; min-height: 560px; }
.phone {
  position: relative; margin: 0; width: min(70vw, 300px); aspect-ratio: 540 / 1170;
  padding: 10px; background: #050b22; border-radius: 40px;
  box-shadow: var(--neon), 0 40px 80px rgba(0, 0, 0, .55);
  transform: rotateY(var(--ry, -18deg)) rotateX(var(--rx, 8deg)) rotateZ(var(--rz, 3deg));
  transform-style: preserve-3d; will-change: transform;
}
.phone::after { content: ""; position: absolute; top: 16px; left: 50%; width: 30%; height: 16px; transform: translateX(-50%); background: #050b22; border-radius: 0 0 12px 12px; }
.phone__screen { width: 100%; height: 100%; overflow: hidden; border-radius: 31px; background: var(--majorelle); }
.phone__screen img, .phone__screen video { width: 100%; height: 100%; object-fit: cover; }
.float { position: absolute; z-index: 2; pointer-events: none; will-change: transform; }
.float--coin { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4 0 15%, var(--or) 45%, #b97f12 100%); box-shadow: inset 0 0 0 4px #8a5a00, inset 0 0 0 8px #ffe08a, 0 12px 24px rgba(0, 0, 0, .4); }
.float--star { width: 70px; height: 70px; background: var(--ciel); clip-path: polygon(50% 0, 61% 26%, 85% 15%, 74% 39%, 100% 50%, 74% 61%, 85% 85%, 61% 74%, 50% 100%, 39% 74%, 15% 85%, 26% 61%, 0 50%, 26% 39%, 15% 15%, 39% 26%); filter: drop-shadow(0 0 12px rgba(111, 211, 255, .8)); }
.f1 { top: 6%; left: 8%; } .f2 { top: 16%; right: 6%; width: 46px; height: 46px; } .f3 { bottom: 14%; left: 2%; }
.f4 { top: 48%; right: 0; width: 44px; height: 44px; background: var(--or); filter: drop-shadow(0 0 12px rgba(242, 182, 50, .8)); } .f5 { bottom: 4%; right: 18%; width: 40px; height: 40px; }
@media (min-width: 880px) { .gameplay__in { grid-template-columns: 1fr 1fr; } }

/* ---------- 3. Le voyage : le circuit sur la carte du Maroc ---------- */
.journey { position: relative; background: radial-gradient(70% 60% at 60% 55%, #15308a 0%, var(--night) 70%); }
.journey__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; padding-top: 4.6rem; }
.home .journey h2 { font-size: clamp(2.2rem, 6.5vw, 3.8rem); }
.journey__head .lead { margin-top: .5rem; font-size: 1rem; }
.journey__stage { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); padding-bottom: 1rem; }
/* téléphone et tablette : la carte va jusqu'aux bords de l'écran (plus de bande vide ni de bord coupé net à droite) */
@media (max-width: 899px) { .journey__stage { padding-inline: 0; } }
.atlas { position: relative; min-height: 0; height: 100%; perspective: 1400px; overflow: hidden; -webkit-mask: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.atlas__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotateX(var(--tilt, 10deg)); transform-origin: 50% 70%; --u: 1; }
.atlas__nb { fill: #12235c; }
.atlas__land { fill: url(#land); stroke: var(--ciel); stroke-width: calc(var(--u) * 2); stroke-linejoin: round; }
.atlas__zel { fill: url(#zel); pointer-events: none; }
.atlas__town { fill: rgba(232, 251, 255, .55); r: calc(var(--u) * 2.5px); }
.atlas__city { fill: rgba(232, 251, 255, .6); font-family: var(--body); font-weight: 600; font-size: calc(var(--u) * 12px); letter-spacing: .02em; }
html.arab .atlas__city { font-family: "Noto Sans Arabic", var(--body); font-size: calc(var(--u) * 13px); }
.atlas__trace { fill: none; stroke: rgba(111, 211, 255, .35); stroke-width: calc(var(--u) * 2); stroke-dasharray: calc(var(--u) * 2) calc(var(--u) * 7); stroke-linecap: round; }
.atlas__route { fill: none; stroke: var(--ciel); stroke-width: calc(var(--u) * 5); stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(111, 211, 255, .9)); }
.pin__dot { fill: var(--night); stroke: rgba(111, 211, 255, .7); stroke-width: calc(var(--u) * 2.5); r: calc(var(--u) * 7px); transition: fill .3s; }
.pin__halo { fill: rgba(242, 182, 50, .35); r: 0; }
.pin.is-done .pin__dot { fill: var(--ciel); stroke: #e8fbff; }
.pin.is-on .pin__dot { fill: var(--or); stroke: #fff; r: calc(var(--u) * 10px); }
.pin.is-on .pin__halo { animation: halo 1.6s ease-out infinite; }
@keyframes halo { from { r: calc(var(--u) * 10px); opacity: .9; } to { r: calc(var(--u) * 34px); opacity: 0; } }
.atlas__scooter { filter: drop-shadow(0 0 4px rgba(111, 211, 255, .9)); }

.stops { list-style: none; margin: 0; padding: 0; position: absolute; left: var(--pad); right: var(--pad); bottom: 1rem; height: 9.5rem; pointer-events: none; }
.stopcard { position: absolute; inset: 0; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.stopcard.is-on { opacity: 1; transform: none; pointer-events: auto; }
.stopcard figure { margin: 0; height: 100%; display: flex; gap: .9rem; align-items: stretch; padding: .6rem; border-radius: 20px; background: rgba(7, 17, 46, .82); border: 2px solid rgba(111, 211, 255, .5); box-shadow: 0 0 30px rgba(111, 211, 255, .25), 0 20px 40px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.stopcard__img { flex: none; width: 6.6rem; border-radius: 14px; overflow: hidden; }
.stopcard__img img { width: 100%; height: 100%; object-fit: cover; }
.stopcard figcaption { display: flex; flex-direction: column; justify-content: center; gap: .15rem; min-width: 0; }
.stopcard__num { font-family: var(--impact); color: var(--or); font-size: 1.1rem; line-height: 1; }
.stopcard__en { font-family: var(--impact); text-transform: uppercase; font-size: clamp(1.25rem, 5vw, 1.9rem); line-height: 1.05; }
.stopcard__ar { font-family: var(--display); color: var(--ciel); font-size: 1.15rem; line-height: 1.2; text-align: start; }
.stopcard__desc { display: none; color: var(--mist); font-size: .95rem; line-height: 1.45; }
@media (min-width: 900px) {
  .journey__stage { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 2rem; align-items: center; }
  .stops { position: relative; left: auto; right: auto; bottom: auto; height: min(64vh, 560px); }
  .stopcard figure { flex-direction: column; padding: .8rem; }
  .stopcard__img { width: 100%; flex: 1; min-height: 0; }
  .stopcard figcaption { padding: .4rem .4rem .3rem; }
  .stopcard__desc { display: block; margin-top: .3rem; }
}
/* sans animation : la carte avec tout le parcours, et les lieux en grille */
.journey.is-static .journey__pin { position: static; height: auto; padding-block: var(--section); }
.journey.is-static .journey__stage { display: block; }
.journey.is-static .atlas { height: 70vh; }
.journey.is-static .stops { position: static; height: auto; margin-top: 2rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); pointer-events: auto; }
.journey.is-static .stopcard { position: static; opacity: 1; transform: none; }
.journey.is-static .stopcard figure { height: 9rem; flex-direction: row; }
.journey.is-static .stopcard__img { width: 6.6rem; flex: none; }
.journey.is-static .stopcard__desc { display: none; }

/* ---------- 4. Comment on joue ---------- */
.play { background: var(--zellige), var(--chaux); color: var(--nuit); }
.play .lead { color: var(--ink-soft); }
.moves { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; gap: 1.5rem; perspective: 900px; }
.move {
  position: relative; padding: 4.4rem 1.4rem 1.6rem; text-align: center;
  background: #fff; border: var(--line) solid var(--nuit);
  border-radius: 160px 160px var(--radius) var(--radius) / 80px 80px var(--radius) var(--radius);
  box-shadow: var(--cel); transform-style: preserve-3d;
}
.move:nth-child(2) { background: #fff9ea; } .move:nth-child(3) { background: #eaf8ff; } .move:nth-child(4) { background: #fbefe9; }
.move__icon { width: 76px; height: 76px; margin: -2.6rem auto .9rem; transform: translateZ(40px); }
.move h3 { transform: translateZ(25px); }
.move p { margin-top: .55rem; color: var(--ink-soft); }
@media (min-width: 640px) { .moves { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .moves { grid-template-columns: repeat(4, 1fr); } }
.tilt { transition: transform .2s ease-out; transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }

/* ---------- 5. Personnages : casier façon Fortnite ---------- */
.chars { background: var(--zellige-light), linear-gradient(180deg, var(--night), #0d1f5e 60%, var(--night)); overflow: hidden; }
.locker { margin-top: 2.5rem; display: grid; gap: 1.6rem; }
.feature {
  --c: #c8323c; position: relative; isolation: isolate; overflow: hidden;
  height: clamp(440px, 118vw, 620px); border-radius: 28px; border: 2px solid rgba(255, 255, 255, .2);
  background: radial-gradient(120% 80% at 50% 62%, color-mix(in srgb, var(--c) 55%, #ffffff) 0%, var(--c) 38%, color-mix(in srgb, var(--c) 45%, #07112e) 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5); transition: background .5s ease, transform .2s ease-out;
}
.feature__rays { position: absolute; inset: -40%; z-index: -1; opacity: .38; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .55) 0deg 6deg, transparent 6deg 20deg); -webkit-mask: radial-gradient(circle, #000 0 22%, transparent 55%); mask: radial-gradient(circle, #000 0 22%, transparent 55%); animation: spin 60s linear infinite; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--zellige-light); }
.feature__podium { position: absolute; left: 50%; bottom: 9%; width: 62%; height: 9%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(111, 211, 255, .75) 45%, rgba(111, 211, 255, 0) 100%); }
.feature__img { position: absolute; left: 50%; bottom: 12%; height: 80%; width: auto; max-width: 92%; object-fit: contain; object-position: bottom; transform: translateX(calc(-50% + var(--mx, 0px))) translateY(var(--my, 0px)); filter: drop-shadow(0 14px 18px rgba(5, 12, 36, .45)); transition: transform .2s ease-out; }
.feature__img.pop { animation: pop .45s cubic-bezier(.2, .9, .25, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) translateY(26px) scale(.94); } to { opacity: 1; transform: translateX(-50%); } }
.feature__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 4rem 1.3rem 1.2rem; background: linear-gradient(180deg, rgba(7, 17, 46, 0), rgba(7, 17, 46, .85) 62%); }
.feature__name { font-family: var(--impact); font-size: clamp(2.3rem, 9vw, 3.8rem); line-height: 1; text-transform: uppercase; color: #fff; text-shadow: 3px 3px 0 #07112e; transform: skewX(-6deg); transform-origin: left bottom; }
html[dir="rtl"] .feature__name { transform: none; font-family: var(--display); }
.feature__ar { margin-top: .35rem; font-family: var(--display); font-size: 1.35rem; color: var(--ciel); line-height: 1.2; text-align: left; }
html.arab .feature__ar { display: none; }
.feature__price { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .55rem; padding: .3rem .8rem .3rem .4rem; border-radius: 999px; background: rgba(7, 17, 46, .7); border: 2px solid rgba(255, 255, 255, .25); font-weight: 800; font-size: .95rem; color: #fff; }
.feature__price.is-free { background: #1e8a5a; border-color: #7fe0b0; padding-inline-start: .8rem; }
.coin { flex: none; width: 1.35em; height: 1.35em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4 0 18%, var(--or) 45%, #b97f12 100%); box-shadow: inset 0 0 0 2px #8a5a00, inset 0 0 0 4px #ffe08a; }
.roster { min-width: 0; }
.filters { display: inline-flex; border: 2px solid rgba(111, 211, 255, .6); border-radius: 999px; overflow: hidden; background: var(--night-2); }
.filters__btn { min-height: 44px; padding: 0 1.1rem; border: 0; background: transparent; color: var(--chaux); cursor: pointer; font-family: var(--impact); font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase; }
html.arab .filters__btn { font-family: var(--display); font-size: 1.15rem; }
.filters__btn + .filters__btn { border-inline-start: 2px solid rgba(111, 211, 255, .4); }
.filters__btn[aria-pressed="true"] { background: var(--ciel); color: var(--night); }
.filters__btn:focus-visible { outline-offset: -5px; }
.cards { list-style: none; margin: 1.1rem calc(var(--pad) * -1) 0; padding: 1.4rem var(--pad) 1.2rem; display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
.cards li { flex: 0 0 128px; scroll-snap-align: start; }
.cards li[hidden] { display: none; }
.card {
  --c: #2f43c8; position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .25); border-radius: 16px;
  background: radial-gradient(100% 75% at 50% 45%, color-mix(in srgb, var(--c) 55%, #ffffff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 50%, #07112e) 100%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .4); transition: transform .18s ease, box-shadow .18s ease;
}
.card img { position: absolute; left: 50%; bottom: 22%; height: 92%; width: auto; max-width: 112%; transform: translateX(-50%); object-fit: contain; object-position: bottom; filter: drop-shadow(0 6px 6px rgba(5, 12, 36, .4)); }
.card__name { position: absolute; left: 0; right: 0; bottom: 0; padding: .45rem .3rem .4rem; border-radius: 0 0 14px 14px; background: rgba(7, 17, 46, .9); color: #fff; font-family: var(--impact); font-size: .95rem; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.arab .card__name { font-family: var(--display); font-size: 1.05rem; }
.card__price { position: absolute; bottom: 2.35rem; inset-inline-end: .35rem; display: inline-flex; align-items: center; gap: .25rem; padding: .12rem .45rem .12rem .2rem; border-radius: 999px; background: rgba(7, 17, 46, .78); color: #fff; font-weight: 800; font-size: .78rem; }
.card__price.is-free { background: #1e8a5a; border: 1px solid #7fe0b0; padding-inline-start: .45rem; }
.card:hover { transform: translateY(-5px) rotate(-1deg); }
.card[aria-pressed="true"] { transform: translateY(-6px); box-shadow: var(--neon), 0 14px 26px rgba(0, 0, 0, .45); }
.card:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
@media (min-width: 600px) and (max-width: 899px) {
  .feature { height: 520px; max-width: 34rem; margin-inline: auto; width: 100%; }
}
@media (min-width: 900px) {
  .locker { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: 2.2rem; }
  .feature { height: 700px; }
  .cards { margin: 1.1rem 0 0; padding: 1.2rem .3rem .5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem .9rem; overflow: visible; }
}

/* ---------- 6. Classement ---------- */
.board { background: radial-gradient(60% 50% at 20% 30%, rgba(242, 182, 50, .12), transparent 70%), var(--night); }
.board__in { display: grid; gap: 2.5rem; align-items: start; }
.facts { margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.facts div { padding-inline-start: 1rem; border-inline-start: 4px solid var(--ciel); }
.facts dt { font-weight: 800; }
.facts dd { margin: .15rem 0 0; color: var(--mist); }
.scroll { background: linear-gradient(180deg, #13296e, #0c1c52); border-radius: 24px; padding: 1.25rem 1.25rem 1.4rem; box-shadow: var(--neon), 0 30px 60px rgba(0, 0, 0, .5); }
.scroll__reset { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; padding: .9rem 1rem; margin-bottom: 1rem; background: var(--night-2); border-radius: 14px; font-weight: 600; }
.scroll__reset strong { font-family: var(--impact); font-size: 1.8rem; font-weight: 400; color: var(--or); line-height: 1; letter-spacing: .02em; }
.ranks { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ranks caption { caption-side: bottom; padding-top: .8rem; font-size: .9rem; color: var(--mist); text-align: start; }
.ranks th { text-align: start; font-size: .85rem; padding: .3rem .6rem; color: var(--mist); font-weight: 600; }
.ranks td { padding: .75rem .6rem; border-top: 1px solid rgba(111, 211, 255, .15); font-weight: 600; }
.ranks td:first-child { width: 3.2rem; font-family: var(--impact); font-size: 1.35rem; }
.ranks .num, .ranks th:last-child { text-align: end; }
.ranks tbody tr:first-child td { background: rgba(242, 182, 50, .16); }
.ranks tbody tr:first-child td:first-child { color: var(--or); }
.ranks__you td { background: var(--ciel); color: var(--night); border-top: 0; }
@media (min-width: 900px) { .board__in { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }

/* ---------- 7. FAQ ---------- */
.faq { background: var(--night); }
.qa { margin-top: 2rem; display: grid; gap: .9rem; }
.qa details { background: rgba(111, 211, 255, .06); border: 2px solid rgba(111, 211, 255, .3); border-radius: var(--radius); }
.qa details[open] { border-color: var(--ciel); background: rgba(111, 211, 255, .1); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.2rem; font-weight: 800; font-size: 1.05rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(var(--night), var(--night)) center / 12px 2.5px no-repeat, linear-gradient(var(--night), var(--night)) center / 2.5px 12px no-repeat, var(--ciel); transition: transform .2s ease; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:focus-visible { outline-offset: -6px; border-radius: 14px; }
.qa details p { padding: 0 1.2rem 1.2rem; color: var(--mist); max-width: 62ch; }

.scroll__sample { margin: 0 0 .8rem; display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: rgba(242, 182, 50, .16); border: 1px solid rgba(242, 182, 50, .55); color: #ffd98a; font-weight: 700; font-size: .85rem; }

/* ---------- Les pièces ---------- */
.coins { background: radial-gradient(55% 45% at 80% 20%, rgba(242, 182, 50, .16), transparent 70%), radial-gradient(50% 40% at 10% 90%, rgba(111, 211, 255, .12), transparent 70%), linear-gradient(180deg, #0d1f5e, var(--night) 70%); overflow: hidden; }
.coins h2 { font-family: var(--impact); text-transform: uppercase; font-size: clamp(2.6rem, 9vw, 5.2rem); line-height: .95; letter-spacing: .01em; }
.coinsteps { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.coinstep--gold { order: -1; }
@media (min-width: 700px) {
  .coinsteps { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
  .coinstep--gold { order: 0; }
  .coinstep:not(.coinstep--gold) { margin-top: 3.2rem; }
}
.coinstep {
  position: relative; overflow: hidden; isolation: isolate; display: grid; justify-items: center; text-align: center; gap: .35rem;
  padding: 1.8rem 1.4rem 1.6rem; border-radius: 22px;
  background: linear-gradient(180deg, rgba(47, 67, 200, .28), rgba(7, 17, 46, .55)); border: 1px solid rgba(111, 211, 255, .25);
}

.coinstep__val { margin: 1rem 0 0; font-family: var(--impact); font-size: 2.4rem; line-height: 1; color: var(--or); text-shadow: 0 3px 0 #7a4a06; direction: ltr; }
.coinstep__t { margin: .3rem 0 0; font-family: var(--body); font-weight: 800; font-size: 1.2rem; }
.coinstep__d { margin: 0; color: var(--mist); max-width: 24ch; }

/* le Dirham d'Or : la carte mise en avant */
.coinstep--gold {
  background: radial-gradient(60% 45% at 50% 28%, rgba(255, 212, 71, .38), transparent 70%), linear-gradient(180deg, rgba(150, 98, 12, .45), rgba(7, 17, 46, .7));
  border: 2px solid rgba(242, 182, 50, .85);
  box-shadow: 0 0 0 1px rgba(255, 243, 196, .25) inset, 0 0 48px rgba(242, 182, 50, .3), 0 18px 40px rgba(0, 0, 0, .35);
}
.coinstep__tag {
  position: absolute; top: .95rem; inset-inline-end: 1rem; margin: 0; padding: .3rem .8rem; border-radius: 999px;
  background: linear-gradient(180deg, #fff3c4, #f2b632); color: #3b2604; font-weight: 800; font-size: .8rem;
}
.coinstep--gold .coin3d { width: 200px; height: 200px; filter: drop-shadow(0 0 26px rgba(255, 212, 71, .65)) drop-shadow(0 18px 18px rgba(0, 0, 0, .45)); }
.coinstep--gold .coinstep__val { font-size: 3.1rem; }
.coinstep--gold .coinstep__t { color: #ffd447; font-size: 1.45rem; }
.coinstep--gold .coinstep__d { color: #e7eeff; }
.coinstep--gold::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 243, 196, .22) 48%, transparent 60%) no-repeat;
  background-size: 250% 100%; animation: goldSheen 4.5s ease-in-out infinite;
}
@keyframes goldSheen { 0%, 55% { background-position: 120% 0; } 100% { background-position: -40% 0; } }

.coinstep--gold > :not(.coinstep__rays):not(.coinstep__burst) { position: relative; z-index: 1; }
.coinstep--gold .coinstep__tag { position: absolute; }
.coinstep--gold { padding-top: 4.6rem; }
.coinsteps .coinstep--gold > .coinstep__tag { position: absolute; z-index: 2; top: 1.1rem; inset-inline: 0; margin-inline: auto; width: max-content; }
.coinstep__rays {
  position: absolute; z-index: 0; left: 50%; top: calc(4.6rem + 100px); width: 520px; height: 520px; translate: -50% -50%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 212, 71, .26) 0deg 7deg, transparent 7deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 62%); mask: radial-gradient(circle, #000 0 18%, transparent 62%);
  animation: spin 26s linear infinite; pointer-events: none;
}
.coinstep__burst {
  position: absolute; z-index: 0; left: 50%; top: calc(4.6rem + 100px); width: 260px; height: 260px; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 243, 196, .95) 0%, rgba(255, 212, 71, .55) 30%, transparent 68%); opacity: 0; scale: .2; pointer-events: none;
}
/* l'arrivée : les deux pièces glissent des côtés, le Dirham d'Or tombe en tournant puis éclate de lumière */
.js .coinsteps .coinstep.reveal { transition: opacity .8s ease, transform 1s cubic-bezier(.2, .8, .2, 1); }
.js .coinsteps .coinstep:first-child.reveal:not(.is-in) { transform: translateX(-90px) rotate(-5deg); }
.js .coinsteps .coinstep:last-child.reveal:not(.is-in) { transform: translateX(90px) rotate(5deg); }
.js .coinsteps .coinstep--gold.reveal:not(.is-in) { transform: translateY(50px) scale(.94); }
.js .coinstep--gold.is-in .coin3d { animation: coinDrop 1.3s cubic-bezier(.25, .9, .35, 1.15) .2s both, coinFloat 3.2s ease-in-out 1.5s infinite; }
.js .coinstep--gold.is-in .coin3d__spin { animation: coinSpinIn 1.3s cubic-bezier(.15, .6, .3, 1) .2s both, coinSpin 6s linear 1.5s infinite; }
.js .coinstep--gold.is-in .coinstep__burst { animation: coinBurst 1s ease-out 1.2s both; }
@keyframes coinDrop { 0% { translate: 0 -170px; scale: .55; opacity: 0; } 55% { opacity: 1; } 75% { translate: 0 12px; scale: 1.06; } 100% { translate: 0 0; scale: 1; opacity: 1; } }
@keyframes coinSpinIn { from { transform: rotateY(0deg); } to { transform: rotateY(1080deg); } }
@keyframes coinBurst { 0% { opacity: 0; scale: .2; } 25% { opacity: 1; } 100% { opacity: 0; scale: 2.4; } }

/* une pièce en 3D : deux faces + une tranche faite de disques empilés */
.coin3d { width: 150px; height: 150px; perspective: 700px; animation: coinFloat 3.2s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .45)); }
.coin3d__spin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: coinSpin 4.5s linear infinite; }
.coin3d__face, .coin3d__edge { position: absolute; inset: 0; border-radius: 50%; }
.coin3d__face { width: 100%; height: 100%; transform: translateZ(6px); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.coin3d__back { transform: rotateY(180deg) translateZ(6px); }
.coin3d__edge { background: linear-gradient(90deg, #6e4706, #f2c552 35%, #fff2c0 50%, #c08a1c 70%, #6e4706); }
.coin3d__edge:nth-of-type(1) { transform: translateZ(-5.5px); }
.coin3d__edge:nth-of-type(2) { transform: translateZ(-4.5px); }
.coin3d__edge:nth-of-type(3) { transform: translateZ(-3.5px); }
.coin3d__edge:nth-of-type(4) { transform: translateZ(-2.5px); }
.coin3d__edge:nth-of-type(5) { transform: translateZ(-1.5px); }
.coin3d__edge:nth-of-type(6) { transform: translateZ(-0.5px); }
.coin3d__edge:nth-of-type(7) { transform: translateZ(0.5px); }
.coin3d__edge:nth-of-type(8) { transform: translateZ(1.5px); }
.coin3d__edge:nth-of-type(9) { transform: translateZ(2.5px); }
.coin3d__edge:nth-of-type(10) { transform: translateZ(3.5px); }
.coin3d__edge:nth-of-type(11) { transform: translateZ(4.5px); }
.coin3d__edge:nth-of-type(12) { transform: translateZ(5.5px); }
.coinstep:not(.coinstep--gold) .coin3d__spin { animation-duration: 7s; }
.coinstep:nth-child(3) .coin3d__spin { animation-delay: -3.5s; }
.coinstep:nth-child(3) .coin3d { animation-delay: -1.6s; }
@keyframes coinSpin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes coinFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* la conversion : 1 000 Dirhams d'Argent → 1 Dirham d'Or → 1 personnage */
.convert {
  margin-top: 1.6rem; display: grid; gap: 1.2rem; align-items: center; justify-items: center; text-align: center;
  padding: 1.6rem; border-radius: 22px; background: rgba(7, 17, 46, .6); border: 1px solid rgba(242, 182, 50, .35);
}
@media (min-width: 900px) { .convert { grid-template-columns: auto minmax(0, 1fr) auto auto; text-align: start; gap: 1.6rem; padding: 1.4rem 2rem; } }
.convert__from, .convert__to, .convert__unlock { display: flex; align-items: center; gap: .9rem; }
.convert__silver { width: 72px; height: 72px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.convert__count { margin: 0; font-weight: 700; color: var(--mist); }
.convert__num { display: block; font-family: var(--impact); font-size: 2rem; line-height: 1; color: var(--chaux); direction: ltr; unicode-bidi: isolate; }
.convert__to .convert__num { color: var(--or); }
.convert__mid { width: 100%; display: grid; gap: .45rem; justify-items: center; }
.convert__how { margin: 0; font-weight: 700; color: var(--mist); font-size: .95rem; }
.convert__bar { position: relative; width: 100%; min-width: 120px; height: 14px; border-radius: 999px; background: rgba(201, 220, 255, .14); }
.convert__fill { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #c9d3e6, #f2c552); }
.convert .coin3d { width: 96px; height: 96px; animation: none; }
.convert .coin3d__spin { animation-duration: 3s; }
.convert__char { width: auto; height: 84px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.convert__unlock p { margin: 0; max-width: 20ch; display: grid; gap: .2rem; }
.convert__price { font-weight: 800; }
.convert__free { color: #9fb3dc; font-size: .88rem; }
.convert__bar::after { content: ""; position: absolute; inset-inline-end: -2px; top: 50%; translate: 0 -50%; border: 10px solid transparent; border-inline-start: 14px solid #f2b632; border-inline-end: 0; }
.convert__bar { overflow: visible; margin-inline-end: 12px; }
.convert__fill { position: relative; z-index: 0; }
html[dir="rtl"] .convert__fill { background: linear-gradient(270deg, #c9d3e6, #f2b632); }
.coins__legal { margin-top: 1.2rem; color: #9fb3dc; font-size: .85rem; }

/* l'animation de la conversion, jouée une fois quand on arrive dessus */
.js .convert:not(.is-run) .convert__fill { width: 0; }
.js .convert:not(.is-run) .convert__to .coin3d { scale: 0; }
.js .convert.is-run .convert__fill { transition: width 2.4s cubic-bezier(.3, .6, .3, 1); }
.js .convert .convert__to .coin3d { transition: scale .5s cubic-bezier(.2, 1.6, .4, 1); }
.js .convert.is-run:not(.is-done) .convert__to .coin3d { scale: 0; }
.js .convert.is-done .convert__to .coin3d { scale: 1; filter: drop-shadow(0 0 22px rgba(242, 182, 50, .8)); }
@media (prefers-reduced-motion: reduce) {
  .coin3d, .coin3d__spin, .coinstep--gold::after, .coinstep__rays, .js .coinstep--gold.is-in .coin3d, .js .coinstep--gold.is-in .coin3d__spin { animation: none; }
  .coinstep__burst { display: none; }
  .js .convert .convert__fill { width: 100%; transition: none; }
  .js .convert .convert__to .coin3d { scale: 1; transition: none; }
}

/* ---------- Pied de page ---------- */
.foot { background: var(--night-2); color: var(--chaux); padding-top: 3.5rem; border-top: 1px solid rgba(111, 211, 255, .25); }
.foot__top { display: grid; gap: 2.5rem; padding-bottom: 2.75rem; }
@media (min-width: 760px) { .foot__top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.foot__id { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.foot__logo { width: 70px; height: 70px; margin-block: -5px; filter: drop-shadow(0 2px 4px rgba(7, 17, 46, .35)); }
.foot__word { display: block; height: 64px; width: auto; }
.foot__ed { margin: .9rem 0 1.3rem; color: var(--mist); font-weight: 600; font-size: .95rem; }
.stores--sm { justify-content: flex-start; }
.stores--sm .store { min-height: 46px; padding: .3rem .9rem .3rem .75rem; border-radius: 12px; box-shadow: 0 5px 0 #a8730d; }
.stores--sm .store__label small { font-size: .68rem; }
.stores--sm .store__label strong { font-size: .95rem; }
.foot__soon { margin: .7rem 0 0; color: #9fb3dc; font-size: .85rem; }
.foot__h { margin: .4rem 0 1.1rem; font-family: var(--body); font-size: 1rem; font-weight: 800; color: var(--chaux); }
html.arab .home .foot__h, html.arab .foot__h { font-family: var(--body); font-weight: 700; }
.foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.foot__list a { color: #c7d5f2; text-decoration: none; }
.foot__list a:hover, .foot__list a:focus-visible { color: var(--ciel); text-decoration: underline; text-underline-offset: 3px; }
.foot__label { color: #9fb3dc; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.4rem 2rem; border-top: 1px solid rgba(111, 211, 255, .18); color: #9fb3dc; font-size: .88rem; }
.foot__bottom p { margin: 0; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .move.reveal.is-in, .js .scroll.reveal.is-in { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }

/* ---------- Pages secondaires (privacy, 404) ---------- */
.page-head { background: var(--zellige), linear-gradient(180deg, var(--ciel), #b9ebff); border-bottom: var(--line) solid var(--nuit); padding-block: 2.5rem 2.2rem; }
.page-head h1 { font-family: var(--display); font-size: clamp(2.2rem, 8vw, 3.4rem); line-height: 1.08; }
.page-head p { margin-top: .6rem; color: var(--ink-soft); font-weight: 600; }
.back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.2rem; font-weight: 800; color: var(--nuit); }
.policy { padding-block: 2.5rem 5rem; }
.policy article[hidden] { display: none; }
.policy h2 { font-size: clamp(1.6rem, 5vw, 2.1rem); margin-top: 2.6rem; scroll-margin-top: 5.5rem; }
.policy h3 { margin-top: 1.6rem; font-size: 1.1rem; }
.policy p, .policy ul { margin-top: .8rem; max-width: 70ch; }
.policy ul { padding-inline-start: 1.3rem; }
.policy li + li { margin-top: .35rem; }
.policy .box { margin-top: 1.6rem; padding: 1.1rem 1.3rem; max-width: 70ch; background: #eaf8ff; border: var(--line) solid var(--nuit); border-radius: 14px; box-shadow: var(--cel-sm); }
.policy .box p:first-child { margin-top: 0; }
.policy .tbd { background: #ffe9a8; padding: 0 .25em; border-radius: 4px; font-weight: 600; }
.policy table { margin-top: 1rem; border-collapse: collapse; width: 100%; max-width: 70ch; font-size: .97rem; }
.policy th, .policy td { text-align: start; vertical-align: top; padding: .6rem .7rem; border: 2px solid var(--chaux-2); }
.policy th { background: var(--chaux-2); }
.policy-wrap { overflow-x: auto; }
.foot--light { margin-top: 0; }
.lost { min-height: calc(100vh - 62px); min-height: calc(100svh - 62px); display: grid; place-items: center; text-align: center; background: var(--zellige), linear-gradient(180deg, var(--ciel), var(--chaux) 70%); padding: 3rem var(--pad); }
.lost__door { width: 150px; height: 200px; margin: 0 auto 2rem; position: relative; background: linear-gradient(180deg, var(--majorelle), var(--nuit-2)); border: var(--line) solid var(--nuit); border-radius: 999px 999px 0 0; box-shadow: var(--cel); }
.lost__door::after { content: ""; position: absolute; top: 55%; inset-inline-end: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--or); border: 2px solid var(--nuit); }
.lost h1 { font-family: var(--display); font-size: clamp(2.6rem, 10vw, 4rem); line-height: 1.05; }
.lost p { margin: 1rem auto 2rem; max-width: 30rem; color: var(--ink-soft); font-size: 1.1rem; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: .6rem 1.4rem; background: var(--or); color: var(--nuit); font-weight: 800; text-decoration: none; border: var(--line) solid var(--nuit); border-radius: 14px; box-shadow: var(--cel-sm); }
.btn:hover { background: var(--or-2); color: var(--nuit); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
  .phone { transform: none; }
}

/* Darija : la politique s'affiche en français, avec une phrase d'explication */
.pv-note { max-width: 820px; margin: 1.2rem auto 0; padding: .7rem var(--pad); font-weight: 700; color: var(--majorelle); text-align: center; }

/* ---------- Formulaire de contact (fenêtre) ---------- */
html.has-dialog { overflow: hidden; }
.cdlg { width: min(520px, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; border: 0; border-radius: 26px; color: #fff; background: transparent; overflow: visible; }
.cdlg::backdrop { background: rgba(4, 10, 32, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cdlg[open] { animation: cdlgIn .28s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes cdlgIn { from { opacity: 0; translate: 0 14px; scale: .97; } }
.cdlg__box {
  position: relative; max-height: calc(100dvh - 1.5rem); overflow: auto; padding: 1.6rem 1.5rem 1.3rem;
  border-radius: 26px; background: linear-gradient(180deg, #132a86 0%, #0c1a52 60%); border: 1px solid rgba(143, 226, 255, .3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.cdlg__x { position: absolute; inset-inline-end: .8rem; top: .8rem; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.cdlg__x:hover { background: rgba(255, 255, 255, .16); }
.cdlg__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.cdlg__head { display: flex; align-items: flex-start; gap: .9rem; padding-inline-end: 2.6rem; margin-bottom: 1.2rem; }
.cdlg__ico { flex: none; width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: rgba(143, 226, 255, .14); fill: none; stroke: var(--ciel); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home .cdlg h2.cdlg__title, html.arab .home .cdlg h2.cdlg__title, html.arab .cdlg h2.cdlg__title { font-family: var(--body); text-transform: none; }
.cdlg__title { margin: 0; font-family: var(--body); font-size: 1.3rem; font-weight: 800; line-height: 1.2; text-transform: none; letter-spacing: 0; color: #fff; }
.cdlg__lead { margin-top: .3rem; font-size: .92rem; line-height: 1.45; color: #c7d5f2; }
.cdlg__form { display: grid; gap: .95rem; }
.cdlg__form[hidden] { display: none; }
.fld { display: grid; gap: .35rem; }
.fld__l { font-size: .85rem; font-weight: 700; color: #c7d5f2; }
.fld__in {
  width: 100%; min-height: 48px; padding: .7rem .85rem; border-radius: 12px; font: inherit; font-size: 1rem; color: #fff;
  background: rgba(4, 10, 32, .45); border: 1.5px solid rgba(143, 226, 255, .25); transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.fld__in { min-height: 8.5rem; resize: vertical; line-height: 1.45; }
select.fld__in { appearance: none; padding-inline-end: 2.4rem; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #8fe2ff 50%), linear-gradient(135deg, #8fe2ff 50%, transparent 50%); background-position: calc(100% - 1.15rem) 52%, calc(100% - .8rem) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
html[dir="rtl"] select.fld__in { background-position: .8rem 52%, 1.15rem 52%; }
select.fld__in option { color: #0c1a52; background: #fff; }
.fld__in::placeholder { color: rgba(199, 213, 242, .5); }
.fld__in:focus { outline: none; border-color: var(--ciel); box-shadow: 0 0 0 3px rgba(111, 211, 255, .25); }
.fld__in[aria-invalid="true"] { border-color: #ff8a65; box-shadow: 0 0 0 3px rgba(255, 138, 101, .2); }
.fld__err { font-style: normal; font-size: .82rem; font-weight: 700; color: #ffb199; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cdlg__fail { padding: .7rem .85rem; border-radius: 12px; font-size: .88rem; line-height: 1.4; background: rgba(255, 138, 101, .14); border: 1px solid rgba(255, 138, 101, .45); color: #ffd3c4; }
.cdlg__send {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 54px; margin-top: .2rem; border: 0; border-radius: 16px; cursor: pointer;
  font: inherit; font-size: 1.05rem; font-weight: 800; color: var(--night); background: var(--or); box-shadow: 0 7px 0 #a8730d, 0 14px 30px rgba(242, 182, 50, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cdlg__send svg { width: 20px; height: 20px; fill: currentColor; }
html[dir="rtl"] .cdlg__send svg { transform: scaleX(-1); }
.cdlg__send:hover { transform: translateY(-2px); background: var(--or-2); }
.cdlg__send:active { transform: translateY(5px); box-shadow: 0 2px 0 #a8730d; }
.cdlg__send:disabled { cursor: wait; opacity: .75; transform: none; }
.cdlg__note, .cdlg__or { font-size: .8rem; line-height: 1.45; color: #8fa3cc; text-align: center; }
.cdlg__note a, .cdlg__or a { color: var(--ciel); }
.cdlg__or { margin-top: -.5rem; }
.cdlg__ok { display: grid; justify-items: center; gap: .6rem; padding: 1rem 0 .4rem; text-align: center; }
.cdlg__ok[hidden] { display: none; }
.cdlg__ok h3 { margin: .3rem 0 0; font-size: 1.35rem; font-weight: 800; color: #fff; }
.cdlg__ok p { max-width: 30rem; color: #c7d5f2; line-height: 1.5; overflow-wrap: anywhere; }
.cdlg__check { width: 72px; height: 72px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cdlg__check circle { stroke: #3ddc97; stroke-width: 3; fill: rgba(61, 220, 151, .12); }
.cdlg__check path { stroke: #3ddc97; stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: okTick .5s ease .15s forwards; }
@keyframes okTick { to { stroke-dashoffset: 0; } }
.cdlg__again { margin-top: .5rem; min-height: 44px; padding: 0 1.2rem; border-radius: 999px; border: 1.5px solid rgba(143, 226, 255, .5); background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.cdlg__again:hover { background: rgba(143, 226, 255, .12); }
@media (prefers-reduced-motion: reduce) { .cdlg[open], .cdlg__check path { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 480px) { .cdlg__box { padding: 1.3rem 1.1rem 1.1rem; } .cdlg__head { gap: .7rem; } .cdlg__ico { width: 40px; height: 40px; padding: 8px; } }
