/* Accueil de malikit.app : généré à la main, repris de la maquette validée le 17/11/2026 (variante B + globe). */
/* La scène de l'app (encre, trois halos, panneaux de verre) à l'échelle d'un site ; ouverture identique au lancement de l'app ; un seul téléphone tenu au centre pendant le récit. */
:root {
  color-scheme: dark;
  --ink: #070B16;          /* encre du lancement et de la scène */
  --hero: #2563EB;         /* halo principal */
  --deep: #112C6A;         /* halo profond */
  --accent: #5EA8FF;
  --hi: #8EC2FF;           /* accent éclairci sur l'encre */
  --text: #EEF2F8;
  --soft: rgba(238,242,248,.72);
  --glass: rgba(255,255,255,.07);
  --glassUp: rgba(255,255,255,.13);
  --line: rgba(255,255,255,.12);
  --gold: #E0B85A;
  --ok: #4ADE80;
  --bad: #FF7474;
  --sans: -apple-system, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", sans-serif;
  --sans-ar: "Noto Naskh Arabic", "Geeza Pro", Tahoma, sans-serif;
  --arab: "Amiri Quran", "Geeza Pro", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.halos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.halos i { position: absolute; border-radius: 50%; display: block; }
#app { position: relative; z-index: 2; transform-origin: 50% 40vh; overflow-x: clip; }

.glass { background: rgba(18,28,54,.78); border: 1px solid var(--line); border-radius: 22px; }
:root { --mim: url(/assets/app/mim.webp); }
.mim { display: inline-block; background: currentColor; -webkit-mask: var(--mim) center / contain no-repeat; mask: var(--mim) center / contain no-repeat; }

/* Ouverture : le lancement de l'app, rejoué */
#veil { position: fixed; inset: 0; z-index: 100; pointer-events: none; animation: veilOut 0s 1.4s forwards; }
@keyframes veilOut { to { visibility: hidden; } }
#veil canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#veil .mark { position: absolute; left: 50%; top: 50%; width: 54px; height: 120px; margin: -60px 0 0 -27px; color: var(--text); overflow: hidden; }
#veil .mark .mim { width: 100%; height: 100%; position: relative; }
#veil .shine { position: absolute; inset: -40%; background: #fff; width: 30%; transform: translateX(-200%) rotate(35deg); }

/* Barre du haut */
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.bar { display: flex; align-items: center; gap: 26px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 600; font-size: 19px; }
.brand .badge { width: 34px; height: 34px; border-radius: 10px; background: var(--hero); display: flex; align-items: center; justify-content: center; color: var(--text); }
.brand .badge .mim { width: 11px; height: 24px; }
.bar nav { display: flex; gap: 4px; margin-left: auto; padding: 5px; border-radius: 14px; }
.bar nav a { text-decoration: none; color: var(--soft); font-size: 14.5px; font-weight: 500; padding: 7px 13px; border-radius: 10px; transition: color .2s, background .2s; }
.bar nav a:hover { color: var(--text); background: var(--glass); }
.dl { text-decoration: none; background: var(--text); color: var(--ink); font-weight: 600; font-size: 14.5px; padding: 10px 18px; border-radius: 12px; }

/* Ouverture de page : la voûte de l'accueil */
.hero { padding-block: 56px 80px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.today { display: inline-flex; align-items: center; gap: 10px; color: var(--hi); font-weight: 500; font-size: 15.5px; margin-bottom: 20px; }
.today .mim { width: 8px; height: 18px; }
h1 { font-size: clamp(42px, 5.4vw, 70px); line-height: 1.03; letter-spacing: -2.2px; font-weight: 600; margin: 0 0 22px; text-wrap: balance; }
h1 b, h2 b { font-weight: 600; color: var(--hi); }
.lead { font-size: 18.5px; color: var(--soft); max-width: 33em; margin: 0 0 30px; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: flex; align-items: center; gap: 11px; border-radius: 14px; padding: 10px 18px 10px 14px; text-decoration: none; transition: transform .2s; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 12px; opacity: .75; }
.store strong { font-size: 17px; font-weight: 600; }
.store.main { background: var(--text); color: var(--ink); }

.vault { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }

.globe { position: relative; width: min(600px, 100%); aspect-ratio: 1; }
#globe { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; position: relative; z-index: 2; }
#globe.drag { cursor: grabbing; }
canvas[data-moon] { display: block; }
.piece canvas[data-moon] { filter: drop-shadow(0 0 30px rgba(214,230,255,.36)); }
.av { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; position: relative; }
.av.on::after { content: ""; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid var(--ink); }

/* Le récit : un téléphone tenu au centre */

.pin { position: sticky; top: 0; height: 100vh; overflow: visible; display: grid; grid-template-columns: minmax(0, 1fr) 700px; align-items: center; gap: 20px; max-width: 1200px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.texts { position: relative; height: 420px; }
.st { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(36px); transition: opacity .55s, transform .7s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.st.on { opacity: 1; transform: none; pointer-events: auto; }
h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.07; letter-spacing: -1.3px; font-weight: 600; margin: 0 0 16px; text-wrap: balance; }
.st p { font-size: 17.5px; color: var(--soft); margin: 0; max-width: 30em; }
.rail { display: flex; gap: 2px; flex-wrap: wrap; position: absolute; left: max(24px, env(safe-area-inset-left, 0px)); bottom: 7vh; z-index: 3; max-width: 700px; }
.rail button { all: unset; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--soft); padding: 7px 12px; border-radius: 10px; border: 1px solid transparent; transition: all .25s; }
.rail button { position: relative; overflow: hidden; }
.rail button.on { color: var(--text); background: var(--glassUp); border-color: var(--line); }
.rail button.on::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--f, 0) * 100%); background: var(--accent); }
.arena { position: relative; width: 700px; height: 700px; perspective: 2200px; }
.device { position: absolute; left: 200px; top: 24px; width: 300px; height: 652px; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.6,0,.2,1); }
.phone { position: absolute; inset: 0; border-radius: 46px; background: #05080F; padding: 10px;
  box-shadow: -2px 2px 0 #1C2538, -4px 4px 0 #1C2538, -6px 6px 0 #161E2E, -8px 8px 0 #0B0F19, 0 40px 90px rgba(0,0,0,.6), 0 0 0 1.5px rgba(140,190,255,.45), 0 0 70px 6px rgba(37,99,235,.4); }
.scr { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #0D1A33; }
.cap { position: absolute; left: 0; top: 0; width: 1185px; height: 2576px; transform-origin: 0 0; opacity: 0; transition: opacity .5s; font-family: -apple-system, "SF Pro Text", Inter, sans-serif; }
.cap.on { opacity: 1; }
.cap > img { width: 1185px; height: 2576px; display: block; }
.liveWrap { position: absolute; left: 50%; top: 50%; width: 632px; height: 280px; margin: -140px 0 0 -316px; transform: rotate(90deg); opacity: 0; transition: opacity .5s; overflow: hidden; background: #0D1A33; }
.liveWrap.on { opacity: 1; }
.live { position: absolute; top: 0; width: 1080px; height: 556px; transform-origin: 0 0; }
.piece { position: absolute; z-index: 5; opacity: 0; transform: translateY(50px) scale(.7) rotate(var(--r, 0deg)); transition: opacity .45s, transform .8s cubic-bezier(.2,.8,.2,1.15); pointer-events: none; }
.piece.on { opacity: 1; transform: translateY(0) scale(1) rotate(var(--r, 0deg)); pointer-events: auto; transition-delay: var(--d, .15s); }
.pop { border-radius: 18px; background-repeat: no-repeat; box-shadow: 0 0 0 1px var(--line), -3px 3px 0 #1A2440, -6px 6px 0 #101828, 0 30px 60px rgba(0,0,0,.6); }
.chip { display: flex; align-items: center; gap: 10px; white-space: nowrap; border-radius: 30px; padding: 11px 18px; font-size: 16px; font-weight: 500; }
.chip svg { color: var(--hi); }
.card { padding: 18px 20px; }

/* Duel */
.duel { padding-block: 110px 80px; }
.duel .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.board { padding: 26px; border-radius: 28px; }
.players { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pl { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.pl em { font-style: normal; font-variant-numeric: tabular-nums; font-size: 26px; color: var(--hi); min-width: 1.2em; text-align: center; }
.vs { color: var(--soft); font-weight: 500; }
.timer { height: 6px; border-radius: 3px; background: var(--glassUp); overflow: hidden; margin-bottom: 22px; }
.timer i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; }
.qtext { font-size: 22px; font-weight: 600; line-height: 1.3; margin: 0 0 20px; min-height: 2.6em; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opts button { all: unset; cursor: pointer; padding: 15px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-weight: 500; transition: background .2s, border-color .2s, transform .15s; }
.opts button:hover:not(:disabled) { background: var(--glassUp); transform: translateY(-1px); }
.opts button:focus-visible { outline: 2px solid var(--accent); }
.opts .good { background: rgba(74,222,128,.18); border-color: var(--ok); }
.opts .bad { background: rgba(255,116,116,.16); border-color: var(--bad); }
.verdict { margin: 16px 0 0; min-height: 1.6em; font-weight: 500; color: var(--hi); }

/* Au quotidien */
.daily { padding-block: 80px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.tile { padding: 22px; min-width: 0; transition: transform .25s, background .25s; }
.tile:hover { transform: translateY(-4px); background: var(--glassUp); }
.ico { width: 44px; height: 44px; border-radius: 13px; background: var(--hero); color: var(--text); display: flex; align-items: center; justify-content: center; }
.tile h3 { font-size: 17.5px; font-weight: 600; margin: 14px 0 6px; }
.tile p { margin: 0; color: var(--soft); font-size: 15px; }

.faq { padding-block: 60px; }
.faq .list { max-width: 780px; margin-top: 28px; display: grid; gap: 10px; }
details { padding: 0 22px; border-radius: 18px; }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 500; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--hi); font-size: 22px; line-height: 1; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--soft); }

.end { padding-block: 120px 110px; text-align: center; }
.end .bigmark { width: 64px; height: 142px; color: var(--text); margin: 0 auto 34px; display: block; }
.end h2 { font-size: clamp(38px, 5vw, 64px); }
.end .lead { margin: 0 auto 30px; }
.end .stores { justify-content: center; }
footer { padding-block: 44px 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); }
footer a { text-decoration: none; color: inherit; transition: color .2s; }
footer a:hover { color: var(--text); }
footer .frow { display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; }
footer .brand { color: var(--text); }
footer .fbase { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer .social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text); }
footer .flangs { display: flex; padding: 4px; border-radius: 13px; }
@media (max-width: 1080px) { footer .flangs { display: flex; } }
@media (max-width: 720px) { footer .fbase { flex-direction: column; align-items: flex-start; } }

@media (max-width: 1080px) {
  .bar nav { display: none; }
  .hero .wrap, .duel .wrap { grid-template-columns: minmax(0, 1fr); }
  .dl { margin-left: auto; }
  [dir="rtl"] .dl { margin-left: 0; margin-right: auto; }
  .vault { max-width: 560px; width: 100%; margin: 0 auto; }
  .hero { padding-block: 30px 50px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; padding-top: 80px; gap: 0; }
  .texts { height: 190px; }
  .st p { font-size: 15.5px; }
  h2 { font-size: 28px; }
  .arena { left: 50%; transform: translateX(-50%) scale(.66); transform-origin: top center; margin-top: -10px; justify-self: start; }
  [dir="rtl"] .arena { left: auto; right: 50%; transform: translateX(50%) scale(.66); }
  .rail { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .pin { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .arena { transform: translateX(-50%) scale(.5); margin-bottom: -350px; }
  [dir="rtl"] .arena { transform: translateX(50%) scale(.5); }
  .grid { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #veil { display: none; }
  .st, .piece, .device, .cap, .liveWrap { transition: none; }
}

[dir="rtl"] body { font-family: var(--sans-ar); }
[dir="rtl"] h1, [dir="rtl"] h2 { letter-spacing: 0; line-height: 1.3; }
[dir="rtl"] .rail { left: auto; right: max(24px, env(safe-area-inset-right, 0px)); }
.skip { position: fixed; left: 16px; top: 8px; z-index: 200; background: var(--text); color: var(--ink); padding: 8px 14px; border-radius: 10px; transform: translateY(-300%); }
.skip:focus { transform: none; }
.langs { display: flex; gap: 2px; font-size: 13.5px; }
.langs a { text-decoration: none; color: var(--soft); padding: 6px 9px; border-radius: 9px; }
.langs a[aria-current] { color: var(--text); background: var(--glassUp); }
.store[aria-disabled] { cursor: default; }
.social { display: flex; gap: 12px; }
.social svg { width: 18px; height: 18px; display: block; }
@media (max-width: 1080px) { .langs { display: none; } }
.device { direction: ltr; will-change: transform; }
.piece, .texts { will-change: transform; }


/* Langues : un petit sélecteur discret. */
.lang { position: relative; margin-left: auto; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--soft); padding: 7px 10px; border-radius: 10px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); background: var(--glassUp); }
.lang > div { position: absolute; top: calc(100% + 6px); right: 0; display: flex; flex-direction: column; min-width: 120px; padding: 6px; border-radius: 14px; z-index: 60; }
.lang > div a { text-decoration: none; color: var(--soft); padding: 8px 12px; border-radius: 9px; font-size: 14px; }
.lang > div a:hover, .lang > div a[aria-current] { color: var(--text); background: var(--glassUp); }
[dir="rtl"] .lang { margin-left: 0; margin-right: auto; }
[dir="rtl"] .lang > div { right: auto; left: 0; }
.bar nav { margin-left: 0; }
.bar .brand { margin-right: auto; }
[dir="rtl"] .bar .brand { margin-right: 0; margin-left: auto; }

/* Le studio du direct : les calques se séparent puis s'assemblent au défilement, puis le décor change. */
.studio { position: relative; height: 330vh; }
.spin { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 48px; align-items: center;
  max-width: 1280px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.ssteps { list-style: none; padding: 0; margin: 26px 0 22px; display: grid; gap: 16px; }
.ssteps li { opacity: .38; transition: opacity .4s; }
.ssteps li.on { opacity: 1; }
.ssteps b { display: block; font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.ssteps li.on b { color: var(--hi); }
.ssteps p { margin: 0; color: var(--soft); font-size: 15.5px; }
.sdecors { display: flex; flex-wrap: wrap; gap: 8px; }
.sdecors span { padding: 7px 13px; border-radius: 18px; border: 1px solid var(--line); font-size: 14px; color: var(--soft); transition: all .3s; }
.sdecors span.on { background: var(--hero); border-color: var(--hero); color: var(--text); }
.sbox { position: relative; width: 100%; aspect-ratio: 16 / 9; perspective: 1800px; }
.sstage { position: absolute; left: 0; top: 0; width: 960px; height: 540px; transform-origin: 0 0; transform-style: preserve-3d; }
.layer { position: absolute; border-radius: 18px; transition: left .7s cubic-bezier(.6,0,.2,1), top .7s cubic-bezier(.6,0,.2,1), width .7s cubic-bezier(.6,0,.2,1), height .7s cubic-bezier(.6,0,.2,1), background-color .7s;
  box-shadow: 0 0 0 1px rgba(142,194,255,calc(.12 + var(--ex, 0) * .45)), 0 30px 60px rgba(0,0,0,calc(var(--ex, 0) * .45)); will-change: transform; }
.l0 { left: 0; top: 0; width: 960px; height: 540px; border-radius: 26px; background: #0D1A33; }
.l0::after { content: ""; position: absolute; inset: 14px; border-radius: 18px; border: 2px solid rgba(224,184,90,.3); }
.ltag { position: absolute; left: 12px; top: -34px; padding: 5px 12px; border-radius: 14px; background: var(--hero); color: var(--text); font-size: 15px; font-weight: 600; white-space: nowrap; opacity: var(--ex, 0); }
.l0 .ltag { top: auto; bottom: 14px; left: auto; right: 14px; }
.l1 { overflow: visible; }
.slide { position: absolute; left: 0; top: 0; width: 560px; height: 400px; transform-origin: 0 0; transition: transform .7s cubic-bezier(.6,0,.2,1); border-radius: 18px; background: #F6EFDD; color: #14213D; padding: 22px 30px; box-sizing: border-box; direction: ltr; }
.sl-ar { font-family: var(--arab); font-size: 38px; color: #8A6416; direction: rtl; text-align: right; line-height: 1.35; }
.sl-t { font-size: 24px; font-weight: 600; margin: 2px 0 10px; }
.sl-r { display: flex; justify-content: space-between; align-items: center; border-top: 2px solid #E4D9BE; padding: 8px 0; font-size: 21px; }
.sl-r .a { font-family: var(--arab); font-size: 28px; }
.l2 { background: #0B1430; overflow: hidden; }
.cam { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; direction: ltr; }
.cam b { font-weight: 600; font-size: 16px; margin-top: 10px; }
.cam > span { color: var(--soft); font-size: 13px; }
.mic { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--hero); display: flex; align-items: center; justify-content: center; }
.mic i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ring 2s ease-out infinite; }
.mic i + i { animation-delay: 1s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badges em { font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 10px; background: #E53935; display: inline-flex; align-items: center; gap: 4px; }
.badges em.v { background: rgba(255,255,255,.12); font-weight: 500; }
.l3 { background: rgba(10,18,40,.92); padding: 4px 12px; overflow: hidden; direction: ltr; }
.l3 #feed > div { background: #16223D; border-radius: 14px; padding: 8px 12px; margin-top: 8px; font-size: 14.5px; line-height: 1.3; }
.l4 { background: rgba(18,28,54,.95); overflow: hidden; }
.qv { display: flex; gap: 14px; align-items: center; padding: 12px 18px; height: 100%; box-sizing: border-box; font-size: 16px; line-height: 1.35; }
.qv .n { color: var(--hi); font-weight: 600; text-align: center; line-height: 1.1; font-size: 17px; }
.qv small { display: block; color: var(--soft); font-size: 13px; }

/* Chapitres fixes : texte d'un côté, téléphone et morceaux d'écran de l'autre. */
.chapters .chapter { padding-block: 40px; }
.chapters .chapter .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.chapters .chapter.rev .text { order: 2; }
.chapters .show { display: flex; justify-content: center; }
.chapters .arena { transform: none; left: auto; margin: 0; }
.chapters .device { transition: none; }
.chapters .device.tl { transform: rotateY(12deg) rotateX(6deg) rotateZ(2deg); }
.chapters .device.tr { transform: rotateY(-12deg) rotateX(6deg) rotateZ(-2deg); }
.chapters .cap { opacity: 1; }
.chapters .piece { opacity: 1; transform: rotate(var(--r, 0deg)); transition: none; pointer-events: auto; }

@media (max-width: 1080px) {
  .spin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 20px; }
  .ssteps { margin: 12px 0; gap: 8px; }
  .ssteps li:not(.on) { display: none; }
  .sdecors { display: none; }
  .chapters .chapter .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .chapters .chapter.rev .text { order: 0; }
  .chapters .show { height: 480px; }
  .chapters .arena { position: relative; left: 50%; transform: translateX(-50%) scale(.66); transform-origin: top center; }
  [dir="rtl"] .chapters .arena { left: auto; right: 50%; transform: translateX(50%) scale(.66); }
}
@media (max-width: 560px) {
  .spin h2 { font-size: 26px; }
  .chapters .show { height: 370px; }
  .chapters .arena { transform: translateX(-50%) scale(.5); }
  [dir="rtl"] .chapters .arena { transform: translateX(50%) scale(.5); }
}

/* Entrées animées, une seule fois, quand chaque bloc arrive à l'écran (la classe js est posée par le script :
   sans script, tout reste visible). Puis les morceaux d'écran flottent doucement. */
.js .chapter .text > *, .js .chapter .arena, .js .chapter .piece, .js .daily h2, .js .tile, .js .faq h2, .js .faq details, .js .end .wrap > * {
  transition: translate .9s cubic-bezier(.2,.7,.2,1), scale .8s cubic-bezier(.2,.8,.25,1.25); }
.js .chapter .text > *, .js .daily h2, .js .tile, .js .faq h2, .js .faq details, .js .end .wrap > * { translate: 0 36px; }
.js .chapter .arena { translate: 90px 0; }
.js .chapter.rev .arena { translate: -90px 0; }
.js .chapter .piece { scale: .55; translate: 0 40px; }
.js .in .text > *, .js .in .arena, .js .in .piece, .js .in h2, .js .in .tile, .js .in details, .js .end.in .wrap > * { opacity: 1; translate: 0 0; scale: 1; }
.js .chapter .text > :nth-child(2) { transition-delay: .12s; }
.js .chapter .arena { transition-delay: .05s; }
.js .chapter .piece:nth-of-type(1) { transition-delay: .45s; }
.js .chapter .piece:nth-of-type(2) { transition-delay: .65s; }
.js .chapter .piece:nth-of-type(3) { transition-delay: .85s; }
.js .tile:nth-child(2), .js .faq details:nth-child(2) { transition-delay: .1s; }
.js .tile:nth-child(3), .js .faq details:nth-child(3) { transition-delay: .2s; }
.js .tile:nth-child(4), .js .faq details:nth-child(4) { transition-delay: .3s; }
.js .faq details:nth-child(n+5) { transition-delay: .4s; }
.js .end .wrap > :nth-child(2) { transition-delay: .1s; } .js .end .wrap > :nth-child(3) { transition-delay: .2s; } .js .end .wrap > :nth-child(4) { transition-delay: .3s; }
@keyframes floaty { from { transform: rotate(var(--r, 0deg)) translateY(0); } to { transform: rotate(var(--r, 0deg)) translateY(-14px); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.chapters .in .piece { animation: floaty 3.6s ease-in-out 1.4s infinite alternate; }
.chapters .in .piece:nth-of-type(2) { animation-duration: 4.4s; animation-delay: 1.7s; }
.chapters .in .piece:nth-of-type(3) { animation-duration: 3.1s; animation-delay: 2s; }
.chapters .in .phone { animation: bob 5s ease-in-out 1s infinite alternate; }
@media (prefers-reduced-motion: reduce) {
  .js .chapter .text > *, .js .chapter .arena, .js .chapter .piece, .js .daily h2, .js .tile, .js .faq h2, .js .faq details, .js .end .wrap > * { opacity: 1; translate: 0 0; scale: 1; transition: none; }
  .chapters .in .piece, .chapters .in .phone { animation: none; }
}

/* Studio, deuxième passe : décors qui ont chacun leur ambiance, caméra aérée, étapes lisibles. */
.ssteps li { padding-left: 16px; border-left: 2px solid var(--line); opacity: .5; }
.ssteps li.on { opacity: 1; border-color: var(--accent); }
.ssteps li:not(.on) p { display: none; }
.sdecors button { all: unset; cursor: pointer; padding: 7px 13px; border-radius: 18px; border: 1px solid var(--line); font-size: 14px; color: var(--soft); transition: all .3s; }
.sdecors button:hover { color: var(--text); border-color: rgba(142,194,255,.5); }
.sdecors button.on { background: var(--hero); border-color: var(--hero); color: var(--text); }
.sdecors button:focus-visible { outline: 2px solid var(--accent); }
.sl-ar { line-height: 1.75; margin-bottom: 4px; }
.cam { justify-content: flex-end; padding-bottom: 16px; }
.cam .mic { margin-bottom: 4px; }
.l0 { overflow: hidden; }
.dc { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.dc.on { opacity: 1; }
.dc0 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 0H0v48' fill='none' stroke='%238EC2FF' stroke-opacity='.09'/%3E%3C/svg%3E"); }
.dc1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%237EE0A8' stroke-opacity='.16' stroke-width='1.2'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3C/g%3E%3C/svg%3E"); }
.dc2 span { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); font-family: var(--arab); font-size: 300px; color: rgba(214,190,255,.07); line-height: 1; white-space: nowrap; }
.dc2 .wave { position: absolute; left: 40px; right: 40px; bottom: 22px; height: 40px; display: flex; align-items: center; gap: 6px; }
.dc2 .wave i { flex: 1; height: 30%; border-radius: 3px; background: rgba(214,190,255,.18); animation: wv 1.1s ease-in-out infinite alternate; }
.dc2 .wave i:nth-child(3n) { animation-delay: -.3s; } .dc2 .wave i:nth-child(3n+1) { animation-delay: -.7s; } .dc2 .wave i:nth-child(5n) { animation-duration: .8s; }
@keyframes wv { from { height: 18%; } to { height: 100%; } }
.dc3 b { position: absolute; font-size: 170px; font-weight: 600; color: rgba(142,194,255,.06); line-height: 1; }
@media (prefers-reduced-motion: reduce) { .dc2 .wave i { animation: none; } }

/* La caméra suit la taille de sa case ; la liste des questions n'apparaît que dans une grande case. */
.l2.compact .cam { flex-direction: row; justify-content: flex-start; align-items: center; padding: 0 16px; gap: 12px; text-align: left; }
.l2.compact .cam .mic { width: 44px; height: 44px; margin: 0; flex: none; }
.l2.compact .cam .mic svg { width: 22px; height: 22px; }
.l2.compact .cam b { margin: 0; font-size: 14px; }
.l2.compact .cam > span { display: none; }
.l2.compact .badges { position: static; margin-left: auto; }
.l2.compact .badges em:not(:first-child) { display: none; }
.l1 { box-shadow: 0 0 0 1px rgba(142,194,255,calc(var(--ex, 0) * .45)), 0 30px 60px rgba(0,0,0,calc(var(--ex, 0) * .45)); }
.qlist { display: none; }
.l4.big .qv { height: auto; font-size: 19px; padding: 16px 22px; }
.l4.big .qv .n { font-size: 19px; }
.l4.big > .qv { border-bottom: 1px solid var(--line); padding-top: 24px; }
.l4.big .qlist { display: block; }
.l4.big .qlist .qv { color: var(--soft); border-bottom: 1px solid rgba(255,255,255,.06); }
.l4.big .qlist .qv .n { color: var(--soft); }

.brand .logo { display: block; width: 16px; height: 34px; }
.brand .logo.sm { width: 13px; height: 28px; }

/* L'atelier de décor : la liste des blocs, le cadre 16:9 ; au défilement un curseur pose les blocs,
   agrandit la caméra, passe les commentaires en bulles, puis l'atelier s'efface et le décor part en direct. */
.studio { height: 420vh; }
.epin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 22px;
  max-width: 1280px; margin: 0 auto; padding: 70px max(24px, env(safe-area-inset-right, 0px)) 24px max(24px, env(safe-area-inset-left, 0px)); box-sizing: border-box; }
.ehead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; align-items: end; }
.ehead h2 { margin: 0; }
.esteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.esteps li { border-top: 2px solid var(--line); padding-top: 10px; opacity: .45; transition: opacity .35s, border-color .35s; }
.esteps li.on { opacity: 1; border-color: var(--accent); }
.esteps b { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.esteps li.on b { color: var(--hi); }
.esteps p { margin: 0; color: var(--soft); font-size: 13px; line-height: 1.45; }
.ebox { position: relative; flex: 1; min-height: 0; }
.editor { position: absolute; left: 50%; top: 0; width: 1200px; height: 640px; transform-origin: 50% 0; direction: ltr; }
.etop, .epal, .ecanvas { transition: none; }
.etop { position: absolute; left: 0; top: 0; width: 1200px; height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 16px; box-sizing: border-box;
  background: rgba(18,28,54,.9); border: 1px solid var(--line); border-radius: 16px; }
.etitle { font-weight: 600; }
.ename { color: var(--soft); padding: 5px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; }
.eapply { margin-left: auto; background: var(--hero); padding: 8px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: transform .3s, box-shadow .3s; }
.eapply.press { transform: scale(.94); box-shadow: 0 0 0 6px rgba(37,99,235,.35); }
.epal { position: absolute; left: 0; top: 64px; width: 200px; height: 576px; padding: 12px; box-sizing: border-box; background: rgba(18,28,54,.9); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 3px; }
.epal p { margin: 0 0 6px 4px; font-size: 12px; font-weight: 600; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.pk { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 9px; font-size: 13.5px; color: var(--soft); transition: background .2s, color .2s; }
.pk svg { flex: none; color: var(--hi); }
.pk.on { background: var(--hero); color: var(--text); }
.pk.on svg { color: var(--text); }
.ecanvas { position: absolute; left: 216px; top: 70px; width: 960px; height: 540px; border-radius: 14px; border: 1.5px dashed rgba(142,194,255,.35); box-sizing: border-box; }
.escene { position: absolute; left: 216px; top: 70px; width: 960px; height: 540px; transform-origin: 0 0; }
.blk { position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0; border-radius: 12px; overflow: hidden; }
.blk > * { width: 100%; height: 100%; box-sizing: border-box; }
.b-img { background: #10261C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%237EE0A8' stroke-opacity='.18' stroke-width='1.2'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3C/g%3E%3C/svg%3E"); }
.b-slide { position: relative; width: 600px !important; height: 340px !important; padding: 18px 26px; border-radius: 12px; background: #F6EFDD; color: #14213D; }
.b-slide .sl-ar { font-size: 30px; } .b-slide .sl-t { font-size: 20px; } .b-slide .sl-r { font-size: 18px; padding: 6px 0; } .b-slide .sl-r .a { font-size: 23px; }
.b-cam { background: #0B1430; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(142,194,255,.25); border-radius: 12px; }
.b-title { background: rgba(10,18,40,.88); display: flex; align-items: center; padding: 0 18px; font-weight: 600; font-size: 19px; border-left: 4px solid #E0B85A; border-radius: 10px; white-space: nowrap; }
.b-pill { background: rgba(10,18,40,.88); display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 17px; border-radius: 12px; font-variant-numeric: tabular-nums; }
.b-speaker { background: var(--hero); display: flex; align-items: center; padding: 0 14px; font-weight: 600; font-size: 16px; border-radius: 10px; }
.b-q { background: rgba(18,28,54,.95); border-radius: 12px; }
.b-chat { background: rgba(10,18,40,.9); padding: 4px 12px; border-radius: 12px; overflow: hidden; }
.b-chat > div { background: #16223D; border-radius: 10px; padding: 6px 10px; margin-top: 7px; font-size: 13.5px; line-height: 1.3; }
.b-bubbles { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; }
.b-bubbles > div { align-self: flex-start; background: rgba(10,18,40,.82); border-radius: 16px; padding: 6px 12px; font-size: 14px; animation: pop .4s cubic-bezier(.2,.8,.2,1.3); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.elive { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; opacity: 0; }
.elive em { font-style: normal; background: #E53935; font-weight: 600; font-size: 13px; padding: 5px 10px; border-radius: 9px; }
.elive span { background: rgba(10,18,40,.85); font-size: 13px; padding: 5px 10px; border-radius: 9px; font-variant-numeric: tabular-nums; }
.esel { position: absolute; left: 0; top: 0; border: 2px dashed var(--accent); border-radius: 12px; pointer-events: none; opacity: 0; transform-origin: 0 0; }
.esel i { position: absolute; right: -7px; bottom: -7px; width: 12px; height: 12px; background: #fff; border: 2px solid var(--accent); border-radius: 3px; }
.ecursor { position: absolute; left: 0; top: 0; opacity: 0; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
@media (max-width: 1080px) {
  .ehead { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .esteps { grid-template-columns: minmax(0, 1fr); }
  .esteps li:not(.on) { display: none; }
}

.pk { white-space: nowrap; height: 29px; padding: 0 9px; font-size: 13px; overflow: hidden; }
.pk span { overflow: hidden; text-overflow: ellipsis; }
.epal { gap: 4px; }
.elive { left: auto; right: 14px; }
.b-bubbles > div { background: rgba(10,18,40,.9); }
.elive { left: 596px; top: 32px; right: auto; bottom: auto; }

/* Le fil de lumière qui descend en zigzag derrière la page. */
main, footer, header { position: relative; z-index: 1; }
header { z-index: 50; }

/* Les petites scènes qui vivent dans chaque chapitre. */
.toast { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 16px; width: 290px; z-index: 7; }
.toast img { width: 34px; height: 34px; border-radius: 9px; }
.toast b { display: block; font-weight: 600; font-size: 14px; }
.toast span { color: var(--soft); font-size: 13px; }
.chapters .in .toast { animation: toast 6s ease-in-out 1.6s infinite; }
@keyframes toast { 0%, 8% { transform: translateY(-40px); opacity: 0; } 14%, 70% { transform: none; opacity: 1; } 78%, 100% { transform: translateY(-20px); opacity: 0; } }
.typing { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 18px; font-size: 14px; color: var(--soft); z-index: 7; }
.typing b { color: var(--hi); font-weight: 600; }
.dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--hi); animation: dot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.notecard { padding: 14px 18px; border-radius: 16px; max-width: 260px; font-size: 15px; z-index: 7; }
.tw { display: inline-block; clip-path: inset(0 100% 0 0); border-right: 2px solid var(--accent); padding-right: 2px; }
.chapters .in .tw { animation: tw 5s steps(36) 1.2s infinite; }
[dir="rtl"] .chapters .in .tw { animation-name: twr; }
@keyframes tw { 0% { clip-path: inset(0 100% 0 0); } 55%, 90% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
@keyframes twr { 0% { clip-path: inset(0 0 0 100%); } 55%, 90% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
.recite { overflow: hidden; }
.recite::after { content: ""; position: absolute; top: 18%; height: 30%; width: 22%; right: 2%; border-radius: 10px; background: rgba(94,168,255,.28); box-shadow: 0 0 0 1.5px rgba(142,194,255,.6); }
.chapters .in .recite::after { animation: recite 6s linear 1.4s infinite; }
@keyframes recite { 0% { right: 2%; top: 18%; } 45% { right: 76%; top: 18%; } 50% { right: 2%; top: 56%; } 95% { right: 76%; top: 56%; } 100% { right: 2%; top: 18%; } }
.chapters .in .dice { animation: dice 3.2s ease-in-out 1.5s infinite; }
@keyframes dice { 0%, 70%, 100% { transform: rotate(var(--r)); } 75% { transform: rotate(calc(var(--r) - 25deg)) scale(1.12); } 82% { transform: rotate(calc(var(--r) + 20deg)) scale(1.08); } 89% { transform: rotate(calc(var(--r) - 8deg)); } }
.compass::before { content: ""; position: absolute; left: 50%; top: 58%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid rgba(224,184,90,.7); opacity: 0; }
.compass { overflow: hidden; }
.chapters .in .compass::before { animation: ring2 2.4s ease-out 1.5s infinite; }
@keyframes ring2 { from { transform: scale(.4); opacity: .9; } to { transform: scale(2); opacity: 0; } }
.chapters .in .moonp { animation: floaty 5s ease-in-out 1.2s infinite alternate; }
.ico svg { transition: transform .4s; }
.in .tile .ico { animation: icob 3s ease-in-out infinite alternate; }
.in .tile:nth-child(2) .ico { animation-delay: .5s; } .in .tile:nth-child(3) .ico { animation-delay: 1s; } .in .tile:nth-child(4) .ico { animation-delay: 1.5s; }
@keyframes icob { from { box-shadow: 0 0 0 0 rgba(37,99,235,.0); } to { box-shadow: 0 0 0 8px rgba(37,99,235,.18); } }
@media (prefers-reduced-motion: reduce) { .chapters .in .toast, .dots i, .chapters .in .tw, .chapters .in .recite::after, .chapters .in .dice, .chapters .in .compass::before, .chapters .in .moonp, .in .tile .ico { animation: none; } .tw { clip-path: none; } .toast { opacity: 1; } }

/* L'atelier se joue tout seul : bloc normal, plus de défilement piloté. */
.studio { height: auto; padding-block: 80px 60px; }
.epin { position: relative; height: auto; padding-top: 0; padding-bottom: 0; gap: 30px; }
.ehead { display: block; text-align: center; }
.ehead h2 { margin-bottom: 12px; }
.ehead .lead { margin: 0 auto; }
.ebox { flex: none; width: 100%; aspect-ratio: 1200 / 640; max-height: 72vh; }

/* Arrivée sur la page, juste après l'ouverture. */
.js .in1, .js .in2, .js .in3 { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.js .in1 { animation-delay: .35s; } .js .in2 { animation-delay: .45s; } .js .in3 { animation-delay: .55s; }
.js .in4 { animation: globeIn 1.1s cubic-bezier(.2,.7,.2,1) .3s both; }
.js #globe { opacity: 0; transition: opacity .6s ease; }
.js #globe.ready { opacity: 1; }
@keyframes rise { from { transform: translateY(34px); } to { transform: none; } }
@keyframes globeIn { from { transform: scale(.8) rotate(-10deg); } to { transform: none; } }

/* La bande d'écrans qui défile toute seule. */
.marquee { overflow: hidden; padding-block: 20px 60px; }
.mtrack { display: flex; gap: 44px; width: max-content; animation: marq 55s linear infinite; padding-inline: 22px; }
.marquee:hover .mtrack { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.mph { position: relative; width: 210px; height: 456px; flex: none; transform: rotate(var(--r)) translateY(var(--y)); transition: transform .4s cubic-bezier(.2,.8,.2,1.3); }
.mph:hover { transform: rotate(0deg) translateY(calc(var(--y) - 14px)) scale(1.05); }
.mph .phone { border-radius: 34px; padding: 8px; box-shadow: -2px 2px 0 #1C2538, -4px 4px 0 #161E2E, 0 30px 60px rgba(0,0,0,.55), 0 0 0 1.5px rgba(140,190,255,.4), 0 0 40px 2px rgba(37,99,235,.3); }
.mph .scr { border-radius: 27px; }
.mph .cap { opacity: 1; }

/* Un reflet traverse les boutons de temps en temps. */
.store, .dl { position: relative; overflow: hidden; }
.store::after, .dl::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 40px; left: -60px; background: rgba(255,255,255,.35); transform: skewX(-20deg); animation: shine 5s ease-in-out 2.5s infinite; }
.store.glass::after { background: rgba(255,255,255,.12); }
@keyframes shine { 0%, 70% { left: -60px; } 85%, 100% { left: 110%; } }
@media (prefers-reduced-motion: reduce) { .mtrack, .store::after, .dl::after, .js .in1, .js .in2, .js .in3, .js .in4 { animation: none; } }
.chapters .device { transition: transform .25s ease-out; }

/* Le globe en vue rapprochée : plus grand que sa colonne, il déborde à droite de la page. */
.globe { width: 1010px; max-width: none; margin-left: -150px; margin-right: 0; margin-top: -110px; margin-bottom: -80px; }
.vault { align-items: flex-start; }
[dir="rtl"] .globe { margin-left: 0; margin-right: -150px; }
@media (max-width: 1080px) { .globe { width: 140vw; margin: -10vw -20vw -10vw 0; } .vault { align-items: center; } }

/* Choix de langue : une pastille, puis une petite liste aux noms complets. */
.lang summary { gap: 7px; padding: 7px 11px 7px 12px; border: 1px solid var(--line); border-radius: 20px; background: rgba(18,28,54,.6); color: var(--text); font-size: 13.5px; }
.lang summary svg:last-child { opacity: .7; transition: transform .25s; }
.lang[open] summary svg:last-child { transform: rotate(180deg); }
.lang > div { min-width: 170px; padding: 6px; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: menuIn .18s ease-out; }
.lang > div a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.lang > div a svg { color: var(--accent); }
@keyframes menuIn { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
.bar .lang { margin-left: auto; }
[dir="rtl"] .bar .lang { margin-left: 0; margin-right: auto; }
@media (max-width: 1080px) { .bar { gap: 12px; } }
@media (max-width: 560px) { .bname { display: none; } .bar { height: 62px; } }
.lang summary::after { content: none; }
.lang > div.glass { background: rgba(14,22,44,.97); }

/* Passerelle vers l'application web (17/11) : une seule pastille de verre. */
.bar { gap: 14px; }
.bar nav { margin-right: 12px; }
.gate {
  display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; border-radius: 999px;
  text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: border-color .25s;
}
.gate-mark { width: 11px; height: 24px; flex: none; }
.gate svg { transition: transform .25s cubic-bezier(.2,.7,.2,1); opacity: .8; }
.gate:hover { border-color: rgba(255,255,255,.45); }
.gate:hover svg { transform: translateX(3px); opacity: 1; }
[dir="rtl"] .gate { padding: 5px 5px 5px 14px; }
[dir="rtl"] .gate svg { transform: scaleX(-1); }
[dir="rtl"] .gate:hover svg { transform: scaleX(-1) translateX(3px); }
@media (max-width: 560px) {
  .bar { gap: 8px; }
  .bname { display: none; }
  .lang summary span { display: none; }
  .gate { font-size: 13.5px; }
}
