/* ═══════════════════════════════════════════════════════════════
   7ajemli — site vitrine pré-lancement · « Onyx & Brass »
   Thèmes : onyx (défaut) + crème · Univers : laiton / cuivre
   Langues : fr / en / ar (RTL) — les maquettes d'app restent FR + onyx
   Amélioration progressive : statique d'abord, html.motion-ok anime
   ═══════════════════════════════════════════════════════════════ */

/* ── Fonts (auto-hébergées) ──────────────────────────────────── */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../assets/fonts/sora-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../assets/fonts/sora-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/plex-sans-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/plex-sans-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/plex-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/plex-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/plex-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Sans Arabic — les glyphes arabes se résolvent tout seuls
   via unicode-range, quelle que soit la famille demandée avant. */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/plex-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/plex-arabic-500.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/plex-arabic-600.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/plex-arabic-700.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  /* neutres — onyx (thème par défaut, tokens de l'app) */
  --bg: #0E0E10;
  --bg-deep: #0A0A0C;
  --surface: #141416;
  --surface-2: #191A1D;
  --line: #26241F;
  --line-2: #2C2A24;
  --hairline: #232019;
  --ink: #F4F1EA;
  --text: #CFC9BD;
  --muted: #8A8479;
  --faint: #5D5850;

  /* métal — laiton (univers homme) */
  --accent: #C08B3E;
  --accent-up: #C99347;
  --shine: #E8C88A;
  --patina: #8C6224;
  --accent-ink: #141416;
  --accent-text: #C99347;   /* texte accent lisible sur le fond courant */
  --accent-hover: #E8C88A;  /* texte accent au survol */
  --accent-dark-text: #C99347; /* grade onyx — pour les zones épinglées sombres */
  --cta-a: #D3A455;
  --cta-b: #8C6224;
  --glow: rgba(192, 139, 62, 0.40);
  --glow-soft: rgba(192, 139, 62, 0.14);

  /* sémantique (rampe onyx) */
  --ok: #7CC98B;
  --ok-bg: rgba(124, 201, 139, 0.14);
  --warn: #E3A455;
  --warn-bg: rgba(227, 164, 85, 0.15);
  --info: #8AA6E8;
  --info-bg: rgba(138, 166, 232, 0.15);

  /* ombres / divers dépendants du thème */
  --ph-shadow: rgba(0, 0, 0, 0.75);
  --scrim-nav: rgba(14, 14, 16, 0.78);
  --scrim-menu: rgba(14, 14, 16, 0.96);
  --photo-op: 0.5;
  --focus: #E8C88A;

  /* type */
  --font-display: "Sora", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "IBM Plex Sans Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "IBM Plex Sans Arabic", "Cascadia Mono", Consolas, monospace;

  /* structure */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 76px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M0 0 L30 30 M30 0 L0 30' stroke='%23C08B3E' stroke-width='1.4' fill='none' opacity='0.5'/%3E%3C/svg%3E");
}

/* univers femme — le cuivre remplace le laiton, mêmes neutres */
[data-universe="femme"] {
  --accent: #C47B58;
  --accent-up: #CE8759;
  --shine: #EBC3AC;
  --patina: #8F5138;
  --accent-text: #CE8759;
  --accent-hover: #EBC3AC;
  --accent-dark-text: #CE8759;
  --cta-a: #D69A73;
  --cta-b: #8F5138;
  --glow: rgba(196, 123, 88, 0.40);
  --glow-soft: rgba(196, 123, 88, 0.14);
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M0 0 L30 30 M30 0 L0 30' stroke='%23C47B58' stroke-width='1.4' fill='none' opacity='0.5'/%3E%3C/svg%3E");
}

/* thème crème — neutres clairs de l'app, accents en grade texte */
[data-theme="light"] {
  --bg: #F4F1EA;
  --bg-deep: #EDE8DC;
  --surface: #FBF9F4;
  --surface-2: #EFEAE0;
  --line: #E4DECF;
  --line-2: #DCD5C4;
  --hairline: #EAE4D7;
  --ink: #141416;
  --text: #45403A;
  --muted: #6E6759;
  --faint: #A29B8C;

  --accent-text: #6E4C1B;
  --accent-hover: #8C6224;

  --ok: #3E8E5A;
  --ok-bg: #E8F1E9;
  --warn: #A9690E;
  --warn-bg: #F6ECD8;
  --info: #3A66C4;
  --info-bg: #EAEFF9;

  --ph-shadow: rgba(20, 20, 22, 0.30);
  --scrim-nav: rgba(244, 241, 234, 0.82);
  --scrim-menu: rgba(244, 241, 234, 0.97);
  --photo-op: 0.34;
  --focus: #8C6224;
}
[data-theme="light"][data-universe="femme"] {
  --accent-text: #71402C;
  --accent-hover: #8F5138;
}

/* Les cadres de captures restent TOUJOURS onyx : l'app est sombre
   par défaut, quel que soit le thème du site. */
.phone {
  --bg: #0E0E10;
  --bg-deep: #0A0A0C;
  --surface: #141416;
  --surface-2: #191A1D;
  --line: #26241F;
  --line-2: #2C2A24;
  --hairline: #232019;
  --ink: #F4F1EA;
  --text: #CFC9BD;
  --muted: #8A8479;
  --faint: #5D5850;
  --accent-text: var(--accent-dark-text);
  --ok: #7CC98B;
  --ok-bg: rgba(124, 201, 139, 0.14);
  --warn: #E3A455;
  --warn-bg: rgba(227, 164, 85, 0.15);
  --info: #8AA6E8;
  --info-bg: rgba(138, 166, 232, 0.15);
}

/* flip d'univers : transition douce des couleurs, le temps du geste */
html.u-anim *,
html.u-anim *::before,
html.u-anim *::after {
  transition:
    background-color 0.5s var(--ease-out),
    border-color 0.5s var(--ease-out),
    color 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out),
    fill 0.5s var(--ease-out),
    stroke 0.5s var(--ease-out) !important;
}

/* ── Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
html.motion-ok { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.45rem, 5vw + 0.85rem, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 2.6vw + 0.8rem, 2.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: normal; }
strong { color: var(--ink); font-weight: 600; }

/* Arabe : jamais de crénage serré ni d'interlettrage (casse la ligature),
   graisse max 700 (Plex Arabic n'a pas de 800). Les maquettes (lang=fr)
   ne sont pas concernées grâce à :lang(). */
:lang(ar) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
:lang(ar) :is(.overline, .mono, .hero-note, .hero-badge, .dl-note, .gallery-note, .device-tag, .strip-run, .tour-points li, .ucard-tags li, .footer-h, .scroll-cue, .store-badge .mono) { letter-spacing: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg-deep); }
  ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; border: 2px solid var(--bg-deep); }
  ::-webkit-scrollbar-thumb:hover { background: var(--patina); }
}

/* ── Utilitaires ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono { font-family: var(--font-mono); }

.overline {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 1.1em;
}

.grad {
  background-image: linear-gradient(105deg, var(--shine) 0%, var(--accent) 55%, var(--patina) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="light"] .grad {
  background-image: linear-gradient(105deg, var(--accent) 0%, var(--patina) 60%, #6E4C1B 110%);
}

.link {
  color: var(--accent-text);
  border-bottom: 1px solid var(--patina);
  transition: color 0.2s, border-color 0.2s;
}
.link:hover { color: var(--accent-hover); border-color: var(--accent); }

.skip-link {
  position: fixed;
  top: 10px; inset-inline-start: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: 999px;
  transform: translateY(-64px);
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s, background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cta-a), var(--cta-b));
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px var(--glow); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--patina); color: var(--accent-hover); background: rgba(127, 127, 127, 0.05); transform: translateY(-2px); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 0.9rem; }
.btn-lg { height: 58px; padding: 0 34px; font-size: 1.04rem; }

/* Révélations (activées uniquement sous motion-ok) */
html.motion-ok .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.motion-ok .reveal.in { opacity: 1; transform: none; }

/* ── Écran d'accueil (les deux lames qui coupent) ────────────── */
.boot { display: none; }
html[data-boot] { overflow: hidden; }
html[data-boot] .boot {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  background: var(--bg);
  transition: opacity 0.55s var(--ease-out), visibility 0.55s;
}
.boot-mark {
  width: 76px; height: 76px;
  color: var(--accent);
  overflow: visible;
}
.boot-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 7;
  stroke-linejoin: miter;
  stroke-linecap: butt;
  transform-box: view-box;
  transform-origin: 50px 36px; /* le vrai pivot des deux lames */
}
.boot-mark .blade-a { animation: snipA 1.05s var(--ease-out) infinite; }
.boot-mark .blade-b { animation: snipB 1.05s var(--ease-out) infinite; }
@keyframes snipA { 0%, 100% { transform: rotate(0deg); } 42% { transform: rotate(-13deg); } }
@keyframes snipB { 0%, 100% { transform: rotate(0deg); } 42% { transform: rotate(13deg); } }
.boot-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.boot-bar {
  width: 136px; height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.boot-bar i {
  display: block;
  width: 42%; height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--shine), var(--accent));
  animation: bootbar 1.15s ease-in-out infinite;
}
@keyframes bootbar {
  from { transform: translateX(-140%); }
  to { transform: translateX(360%); }
}
.boot.done { opacity: 0; visibility: hidden; }
.boot.done .blade-a, .boot.done .blade-b, .boot.done .boot-bar i { animation-play-state: paused; }

/* chrome décoratif : pas de sélection de texte accidentelle */
.hero-badge, .strip, .s-stamp, .device-tag, .uswitch, .rail-btn,
.store-badge, .how-chip, .tour-points, .ucard-tags, .lang-switch,
.universe-hint, .boot, .scroll-cue {
  -webkit-user-select: none;
  user-select: none;
}

/* ── En-tête ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--scrim-nav);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand-mark { width: 27px; height: 27px; color: var(--accent); flex: none; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 2px;
  margin-inline: auto;
}
.nav-links a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(127, 127, 127, 0.07); }
.nav-links a.is-active { color: var(--accent-text); }
.nav-end { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nav-links + .nav-end { margin-inline-start: 0; }

/* Sélecteur de langue */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
}
.lang-opt {
  min-width: 34px;
  padding: 5px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.lang-opt:hover { color: var(--ink); }
.lang-opt.is-on { background: var(--accent); color: var(--accent-ink); }

/* Bascule de thème */
.theme-toggle {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.theme-toggle:hover { color: var(--accent-text); border-color: var(--patina); transform: rotate(12deg); }
.theme-toggle .ic { font-size: 17px; }
.theme-toggle .ic-moon { display: none; }
[data-theme="light"] .theme-toggle .ic-sun { display: none; }
[data-theme="light"] .theme-toggle .ic-moon { display: inline-block; }

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  position: relative;
}
.nav-burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), top 0.3s;
}
.nav-burger span:nth-child(1) { top: 17px; }
.nav-burger span:nth-child(2) { top: 25px; }
html.menu-open .nav-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
html.menu-open .nav-burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.menu-mobile {
  background: var(--scrim-menu);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.menu-mobile ul {
  display: grid;
  gap: 4px;
  padding: 10px var(--gutter) 26px;
}
.menu-mobile a:not(.btn) {
  display: block;
  padding: 13px 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.menu-mobile .btn { margin-top: 16px; }
.menu-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
}

/* ── Héros ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 34px) 0 70px;
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-photo {
  position: absolute;
  top: 0; bottom: 0;
  inset-inline-end: 0;
  width: min(64vw, 980px);
  overflow: hidden;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
  opacity: var(--photo-op);
  will-change: transform;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(to var(--flip-end, right), transparent 30%, var(--bg) 96%),
    linear-gradient(to var(--flip-start, left), transparent 40%, var(--bg) 92%),
    linear-gradient(to top, var(--bg) 3%, transparent 45%),
    linear-gradient(to bottom, var(--bg) 2%, transparent 30%);
}
:root { --flip-start: left; --flip-end: right; }
[dir="rtl"] { --flip-start: right; --flip-end: left; }
[dir="rtl"] .hero-photo { inset-inline-end: auto; inset-inline-start: 0; }

.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.blob-a {
  width: 62vw; height: 62vw;
  max-width: 900px; max-height: 900px;
  top: -22%; inset-inline-end: -14%;
  background: radial-gradient(circle at 50% 50%, var(--glow-soft) 0%, transparent 62%);
}
.blob-b {
  width: 44vw; height: 44vw;
  max-width: 640px; max-height: 640px;
  bottom: -18%; inset-inline-start: -12%;
  background: radial-gradient(circle at 50% 50%, rgba(140, 98, 36, 0.10) 0%, transparent 65%);
}
.lattice {
  position: absolute;
  inset: 0;
  background-image: var(--lattice);
  opacity: 0.05;
  -webkit-mask-image: radial-gradient(90% 70% at 60% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(90% 70% at 60% 30%, #000 0%, transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 26px;
}
.hero-badge .pulse { width: 6px; height: 6px; }
.hero-copy .lead {
  font-size: clamp(1.02rem, 0.35vw + 0.95rem, 1.19rem);
  max-width: 54ch;
  color: var(--text);
  margin-bottom: 2em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-note { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.hero-device {
  position: relative;
  display: grid;
  justify-items: center;
  perspective: 1400px;
}
.hero-glow {
  position: absolute;
  width: 130%;
  aspect-ratio: 1;
  top: 50%; left: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle, var(--glow-soft) 0%, transparent 60%);
  pointer-events: none;
}
.device-tag {
  margin: 18px 0 0;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  translate: -50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.scroll-cue:hover { color: var(--accent-hover); }
html.motion-ok .scroll-cue .ic { animation: cue 2.2s var(--ease-out) infinite; }
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ── Téléphone (maquette — toujours onyx, toujours FR/LTR) ───── */
.phone {
  /* borné par la hauteur d'écran : la capture ne peut JAMAIS être
     rognée par le pin (390/844 ≈ 0.462 de sa hauteur) */
  width: min(23vw, 312px, calc((100svh - 240px) * 0.462));
  aspect-ratio: 390 / 844;
  transform-style: preserve-3d;
  transform: rotateY(-16deg) rotateX(7deg);
  will-change: transform;
}
.phone-frame {
  position: relative;
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #17171A, #060607 60%);
  border: 1px solid rgba(244, 241, 234, 0.09);
  border-radius: 13.5% / 6.6%;
  padding: 3.2%;
  box-shadow:
    0 60px 110px -30px var(--ph-shadow),
    0 30px 60px -20px var(--glow-soft),
    inset 0 1px 0 rgba(244, 241, 234, 0.06);
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 11% / 5.4%;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.phone-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(112deg, transparent 42%, rgba(244, 241, 234, 0.035) 47%, transparent 58%);
  pointer-events: none;
  z-index: 6;
}
/* le reflet du téléphone épinglé balaie l'écran pendant le flip */
#phone-tour .phone-shine {
  background: linear-gradient(112deg, transparent 34%, rgba(244, 241, 234, 0.05) 47%, transparent 62%);
  transform: translateX(var(--glare, 0%));
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 10px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink);
  opacity: 0;
}
.screen.is-on { opacity: 1; z-index: 2; }
html.motion-ok .screen {
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  transform: scale(0.965);
}
html.motion-ok .screen.is-on { transform: none; }

/* écrans = captures réelles de l'app (image ou vidéo) */
.screen.media { padding: 0; }
.app-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0E0E10;
}

.pulse {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
html.motion-ok .pulse { animation: pulse 1.8s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); }
  100% { box-shadow: 0 0 0 7px transparent; }
}


/* ── Bandeau ─────────────────────────────────────────────────── */
.strip {
  border-block: 1px solid var(--hairline);
  padding: 18px 0;
  overflow: hidden;
  background: var(--bg-deep);
}
.strip-track { display: flex; }
.strip-run {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 26px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-inline: 13px;
  width: 100%;
}
.strip-run + .strip-run { display: none; }
.strip .sep { width: 13px; height: 13px; color: var(--accent); opacity: 0.65; }
html.motion-ok .strip-track { width: max-content; }
html.motion-ok .strip-run {
  flex-wrap: nowrap;
  width: max-content;
  gap: 44px;
  padding-inline: 22px;
  animation: marquee 36s linear infinite;
}
html.motion-ok .strip-run + .strip-run { display: flex; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
html[dir="rtl"].motion-ok .strip-run { animation-direction: reverse; }

/* ── L'histoire d'Amine (acte I, façon pub d'onboarding) ────── */
.story {
  position: relative;
  padding: clamp(96px, 13vh, 170px) 0 clamp(80px, 10vh, 130px);
  overflow: clip;
}
.story-head { max-width: 660px; margin-bottom: clamp(56px, 8vh, 96px); }
.story-lead { color: var(--muted); max-width: 46ch; margin: 0; }

.story-line { position: relative; }
.story-thread {
  position: absolute;
  top: 6px; bottom: 6px;
  left: 50%;
  width: 2px;
  translate: -50%;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}
.story-thread i {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--shine), var(--accent) 55%, var(--patina));
  transform: scaleY(0);
  transform-origin: top;
}
[data-theme="light"] .story-thread { background: var(--line); }

.story-beats { display: grid; gap: clamp(64px, 9vh, 110px); }
.sbeat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
}
.sbeat:nth-child(even) .s-visual { order: 2; }
.sbeat:nth-child(even) .s-copy { order: 1; justify-self: end; text-align: end; }
.sbeat:nth-child(even) .s-cap { margin-inline-start: auto; }

.s-visual {
  position: relative;
  justify-self: center;
  will-change: transform;
}
/* double-bezel : plateau encre + cœur image, courbes concentriques */
.s-shell {
  position: relative;
  padding: 9px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow:
    0 40px 90px -40px var(--ph-shadow),
    0 24px 60px -30px var(--glow-soft),
    inset 0 1px 0 rgba(244, 241, 234, 0.05);
  transition: transform 0.7s var(--ease-out), box-shadow 0.5s, border-color 0.4s;
}
.sbeat:nth-child(odd) .s-shell { transform: rotate(-2deg); }
.sbeat:nth-child(even) .s-shell { transform: rotate(2deg); }
.sbeat .s-visual:hover .s-shell { transform: rotate(0deg) translateY(-4px); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.s-img {
  display: block;
  width: min(330px, 74vw);
  height: auto;
  border-radius: 21px;
  background: #FBF9F4;
}
.sbeat[data-beat="3"] .s-img { width: min(330px, 74vw); aspect-ratio: 760 / 1066; object-fit: cover; }

/* battement 3 : le téléphone remplace la carte — halo laiton derrière */
.s-shell-app { background: none; border: 0; padding: 0; box-shadow: none; }
.sbeat:nth-child(odd) .s-shell-app, .sbeat:nth-child(even) .s-shell-app { transform: none; }
.s-glow {
  position: absolute;
  width: 150%;
  aspect-ratio: 1;
  top: 50%; left: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle, var(--glow-soft) 0%, transparent 58%);
  pointer-events: none;
}
.s-phone { width: min(212px, 52vw); transform: rotateY(-10deg) rotateX(3deg); }

.s-stamp {
  position: absolute;
  top: -13px;
  inset-inline-end: -8px;
  z-index: 2;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--accent-text);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(3deg);
}
.sbeat:nth-child(even) .s-stamp { inset-inline-end: auto; inset-inline-start: -8px; transform: rotate(-3deg); }
.s-stamp-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }

.s-copy { max-width: 42ch; }
.s-num {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--accent-text);
  margin: 0 0 0.9em;
}
.sbeat h3 {
  font-size: clamp(1.4rem, 1.4vw + 1rem, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
}
.s-cap { color: var(--text); margin: 0; font-size: 1.02rem; max-width: 40ch; }
.s-cap em { color: var(--accent-text); font-weight: 600; }

.story-end { text-align: center; margin-top: clamp(64px, 9vh, 120px); }
.story-punch {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.6vw + 0.9rem, 2.05rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 26ch;
  margin: 0 auto 1.2em;
}

/* Orbe de bouton (l'icône vit dans sa propre pastille, jamais nue) */
.btn-orb {
  width: 30px; height: 30px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  margin-inline-end: -14px;
  background: rgba(20, 20, 22, 0.16);
  transition: transform 0.45s var(--ease-out);
}
.btn-orb .ic { font-size: 14px; }
.btn-ghost .btn-orb { background: transparent; border: 1px solid var(--line-2); color: var(--accent-text); margin-inline-end: -12px; }
.btn:hover .btn-orb { transform: translateX(3px); }
[dir="rtl"] .btn:hover .btn-orb { transform: translateX(-3px); }
.btn:active { transform: scale(0.985); }

/* ── Comment ça marchera ─────────────────────────────────────── */
.how {
  padding: clamp(96px, 13vh, 160px) 0;
  border-top: 1px solid var(--hairline);
}
.how-head { max-width: 660px; margin-bottom: clamp(46px, 6vh, 70px); }
.how-lead { color: var(--muted); max-width: 52ch; margin: 0; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.how-step {
  position: relative;
  padding: 10px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease-out), border-color 0.35s, box-shadow 0.45s;
}
.how-step:hover {
  transform: translateY(-6px);
  border-color: var(--patina);
  box-shadow: 0 30px 60px -32px var(--glow);
}
.how-shot {
  position: relative;
  border-radius: calc(var(--r-lg) - 8px);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  background: #0E0E10;
  box-shadow: inset 0 1px 0 rgba(244, 241, 234, 0.06);
}
.how-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s var(--ease-out);
}
.how-step:hover .how-shot img { transform: scale(1.045); }
.how-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.55), transparent 34%);
}
.how-body { padding: 20px 16px 18px; }
.how-n {
  position: absolute;
  top: 22px;
  inset-inline-start: 22px;
  z-index: 2;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.82rem;
  font-weight: 500;
  margin: 0;
}
.how-step h3 { margin-bottom: 0.4em; }
.how-body > p:not(.how-chip) { margin: 0 0 1.1em; color: var(--text); font-size: 0.95rem; }
.how-chip {
  display: inline-block;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--accent-text);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── La promesse — tour 3D épinglé ───────────────────────────── */
.tour { position: relative; }
html.motion-ok .tour { height: 360vh; }
.tour-pin { padding: 90px 0; }
html.motion-ok .tour-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 0;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.tour-stage {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  width: 100%;
}
html.motion-ok .tour-stage { padding-top: calc(var(--nav-h) * 0.6); }
.tour-device {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  perspective: 1400px;
}
.tour-glow {
  position: absolute;
  width: 135%;
  aspect-ratio: 1;
  top: 50%; left: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle, var(--glow-soft) 0%, transparent 62%);
  pointer-events: none;
}
#phone-tour { transform: rotateY(14deg) rotateX(4deg); }

.tour-panels { position: relative; }
.tour-panel { max-width: 46ch; }
.tour-panel + .tour-panel { margin-top: 70px; }
html.motion-ok .tour-panels { display: grid; }
html.motion-ok .tour-panel {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  pointer-events: none;
}
html.motion-ok .tour-panel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.tour-panel p { color: var(--text); }
.tour-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.tour-points li {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 14px;
}

/* Rail de chapitres : navigation réelle dans la scène épinglée */
.tour-rail { display: none; }
html.motion-ok .tour-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}
.rail-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s, border-color 0.25s;
}
.rail-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--glow-soft);
  transform: scaleX(var(--rp, 0));
  transform-origin: var(--flip-start, left);
  transition: transform 0.2s linear;
}
.rail-btn:hover { color: var(--ink); }
.rail-btn.is-active { color: var(--accent-text); border-color: var(--patina); }
.rail-n { font-size: 0.64rem; font-weight: 500; letter-spacing: 0.1em; }
.rail-l { font-size: 0.85rem; font-weight: 500; }

/* ── Galerie (photos + cartes encre) ─────────────────────────── */
.gallery { padding: clamp(90px, 12vh, 150px) 0 30px; overflow: clip; }
.gallery-head { margin-bottom: 46px; max-width: 640px; }
.gallery-rows { display: grid; gap: 20px; }
.gallery-row {
  display: flex;
  gap: 20px;
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.gallery-row::-webkit-scrollbar { display: none; }
html.motion-ok .gallery-row {
  overflow: visible;
  width: max-content;
  will-change: transform;
}
.gcard {
  position: relative;
  flex: none;
  width: clamp(168px, 17vw, 216px);
  aspect-ratio: 3 / 4.3;
  border-radius: var(--r-md);
  border: 1px solid rgba(127, 127, 127, 0.14);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  scroll-snap-align: start;
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.gcard:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.gcard > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.gcard:hover > img { transform: scale(1.05); }
.gletter {
  position: absolute;
  inset-inline-end: 6px;
  top: -14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 118px;
  line-height: 1;
  color: rgba(244, 241, 234, 0.055);
  user-select: none;
}
.gmeta {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 40px 13px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #F4F1EA;
  background: linear-gradient(transparent, rgba(10, 10, 12, 0.9));
}
.glike { display: inline-flex; align-items: center; gap: 5px; color: var(--shine); font-size: 0.66rem; }
.glike .ic { font-size: 0.72rem; }
/* cartes « encre » : volontairement onyx dans les deux thèmes */
.art-2 { background: radial-gradient(120% 85% at 70% 0%, rgba(206, 135, 89, 0.18), transparent 58%), linear-gradient(150deg, #4A342A, #171310); }
.art-3 { background: radial-gradient(120% 85% at 30% 0%, rgba(244, 241, 234, 0.10), transparent 55%), linear-gradient(140deg, #2E2B26, #121114); }
.art-4 { background: radial-gradient(130% 90% at 60% 0%, rgba(232, 200, 138, 0.12), transparent 55%), linear-gradient(165deg, #443A2C, #15130F); }
.art-5 { background: radial-gradient(120% 85% at 40% 0%, rgba(244, 241, 234, 0.07), transparent 55%), linear-gradient(155deg, #26221C, #101012); }
.art-6 { background: radial-gradient(130% 90% at 25% 0%, rgba(206, 135, 89, 0.14), transparent 58%), linear-gradient(145deg, #3F3126, #141210); }
.art-7 { background: radial-gradient(120% 85% at 65% 0%, rgba(232, 200, 138, 0.14), transparent 55%), linear-gradient(150deg, #35291D, #131110); }
.art-8 { background: radial-gradient(120% 85% at 35% 0%, rgba(138, 166, 232, 0.08), transparent 55%), linear-gradient(160deg, #2B2A2E, #121113); }
.gallery-note { margin-top: 30px; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }

/* ── Pourquoi (manifeste) ────────────────────────────────────── */
.why { padding: clamp(90px, 13vh, 160px) 0; }
.why h2 { max-width: 620px; margin-bottom: 54px; }
.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.35s;
}
.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--patina);
  box-shadow: 0 24px 50px -28px var(--glow);
}
.why-ic {
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 13px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--accent-text);
  margin-bottom: 20px;
}
.why-card h3 { margin-bottom: 0.45em; }
.why-card p { margin: 0; color: var(--text); font-size: 0.96rem; }

/* ── Univers ─────────────────────────────────────────────────── */
.universe {
  position: relative;
  padding: clamp(90px, 13vh, 160px) 0;
  border-block: 1px solid var(--hairline);
  background: var(--bg-deep);
  overflow: clip;
}
/* aura de métal qui respire — suit l'univers actif toute seule */
.universe::before {
  content: "";
  position: absolute;
  inset: -10% -20%;
  background: radial-gradient(52% 46% at 50% 12%, var(--glow-soft), transparent 68%);
  pointer-events: none;
}
html.motion-ok .universe::before { animation: ubreathe 5.5s ease-in-out infinite; }
@keyframes ubreathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.universe-inner { position: relative; text-align: center; }
.universe-lead { max-width: 58ch; margin-inline: auto; margin-bottom: 34px; }

.uswitch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: min(360px, 100%);
  height: 64px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -34px var(--glow), inset 0 1px 0 rgba(244, 241, 234, 0.05);
  margin-bottom: 46px;
}
.uswitch-thumb {
  position: absolute;
  top: 6px; left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cta-a), var(--cta-b));
  box-shadow: 0 8px 22px -8px var(--glow);
  transition: transform 0.5s var(--ease-out);
  overflow: hidden;
}
/* reflet qui balaie le pouce à chaque bascule */
.uswitch-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(244, 241, 234, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
}
html.u-anim .uswitch-thumb::after { animation: uswipe 0.6s var(--ease-out); }
@keyframes uswipe {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
.uswitch[data-active="femme"] .uswitch-thumb { transform: translateX(calc(100% - 6px)); }
.uswitch-opt {
  position: relative;
  z-index: 1;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted);
  transition: color 0.3s;
}
.uswitch-opt[aria-pressed="true"] { color: var(--accent-ink); }
.uswitch-opt:hover:not([aria-pressed="true"]) { color: var(--ink); }

.universe-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  text-align: start;
}
.ucard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease-out), opacity 0.4s, filter 0.4s;
}
.ucard:hover { transform: translateY(-5px); }
.ucard:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.ucard:active { transform: scale(0.99); }
/* la carte de l'univers inactif s'éteint doucement — cliquable pour basculer */
[data-universe="homme"] .ucard-femme,
[data-universe="femme"] .ucard-homme {
  opacity: 0.62;
  filter: saturate(0.5);
}
[data-universe="homme"] .ucard-femme:hover,
[data-universe="femme"] .ucard-homme:hover {
  opacity: 0.85;
  filter: saturate(0.8);
}
/* pastille « univers actif » */
.ucard-live {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cta-a), var(--cta-b));
  color: var(--accent-ink);
  box-shadow: 0 8px 20px -8px var(--glow);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out);
}
.ucard-live .ic { font-size: 15px; }
[data-universe="homme"] .ucard-homme .ucard-live,
[data-universe="femme"] .ucard-femme .ucard-live { opacity: 1; transform: none; }
.universe-hint {
  margin: 26px 0 0;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.ucard-photo {
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  position: relative;
}
.ucard-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 0.7s var(--ease-out);
}
.ucard:hover .ucard-photo img { transform: scale(1.05); }
.ucard-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface) 2%, transparent 42%);
}
.ucard-body { padding: 24px 28px 30px; }
.ucard .overline { margin-bottom: 0.9em; }
.ucard p { color: var(--text); font-size: 0.97rem; margin-bottom: 1.2em; }
.ucard-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ucard-tags li {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--u) 32%, transparent);
  color: var(--u-text);
}
/* chaque carte est épinglée à SON métal, quel que soit l'univers global */
.ucard-homme { --u: #C08B3E; --u-text: #C99347; --u-glow: rgba(192, 139, 62, 0.30); }
.ucard-femme { --u: #C47B58; --u-text: #CE8759; --u-glow: rgba(196, 123, 88, 0.30); }
[data-theme="light"] .ucard-homme { --u-text: #6E4C1B; }
[data-theme="light"] .ucard-femme { --u-text: #71402C; }
.ucard .overline { color: var(--u-text); }
[data-universe="homme"] .ucard-homme,
[data-universe="femme"] .ucard-femme {
  border-color: color-mix(in srgb, var(--u) 55%, transparent);
  box-shadow: 0 24px 60px -30px var(--u-glow);
}

/* ── Côté pro ────────────────────────────────────────────────── */
.pro { padding: clamp(90px, 13vh, 160px) 0; overflow: clip; }
.pro-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.pro-copy > p { max-width: 52ch; }
.pro-points { display: grid; gap: 20px; margin: 34px 0 38px; }
.pro-points li { display: flex; gap: 16px; align-items: flex-start; }
.pp-ic {
  width: 40px; height: 40px;
  flex: none;
  padding: 9px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent-text);
}
.pro-points h3 { font-size: 1.02rem; margin-bottom: 0.25em; }
.pro-points p { margin: 0; font-size: 0.93rem; color: var(--muted); }

.pro-visual {
  perspective: 1400px;
  display: grid;
  justify-items: center;
}
.pro-visual .phone {
  width: min(60vw, 280px, calc((100svh - 300px) * 0.462));
  transform: rotateY(-10deg) rotateX(3deg);
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { padding: clamp(90px, 13vh, 160px) 0; border-top: 1px solid var(--hairline); }
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.faq-head p { color: var(--muted); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 21px 2px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--ink);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-hover); }
.faq-item[open] summary { color: var(--accent-text); }
.faq-x {
  position: relative;
  width: 16px; height: 16px;
  flex: none;
}
.faq-x::before, .faq-x::after {
  content: "";
  position: absolute;
  background: var(--accent-text);
  transition: transform 0.3s var(--ease-out);
}
.faq-x::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-x::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item[open] .faq-x::after { transform: rotate(90deg); }
.faq-item[open] .faq-x::before { transform: rotate(180deg); }
.faq-body { padding: 0 2px 22px; max-width: 62ch; }
.faq-body p { margin: 0; color: var(--text); }
html.motion-ok .faq-item[open] .faq-body { animation: faqIn 0.35s var(--ease-out); }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ── Lancement ───────────────────────────────────────────────── */
.download {
  position: relative;
  padding: clamp(110px, 16vh, 190px) 0;
  border-top: 1px solid var(--hairline);
  overflow: clip;
  background: var(--bg-deep);
}
.dl-bg { position: absolute; inset: 0; pointer-events: none; }
.dl-bg .lattice {
  -webkit-mask-image: radial-gradient(60% 90% at 50% 50%, #000, transparent 78%);
  mask-image: radial-gradient(60% 90% at 50% 50%, #000, transparent 78%);
  opacity: 0.06;
}
.dl-halo {
  position: absolute;
  width: min(880px, 90vw);
  aspect-ratio: 1.6;
  left: 50%; top: 50%;
  translate: -50% -50%;
  background: radial-gradient(ellipse at center, var(--glow-soft), transparent 65%);
}
.dl-inner { position: relative; text-align: center; }
.dl-mark { width: 66px; height: 66px; color: var(--accent); margin-bottom: 26px; }
.dl-inner > p { max-width: 46ch; margin-inline: auto; }
.dl-cta { margin: 34px 0 30px; }
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 26px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 200px;
  padding: 12px 24px 12px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  text-align: start;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.35s;
}
.store-badge:hover {
  transform: translateY(-3px);
  border-color: var(--patina);
  box-shadow: 0 18px 40px -22px var(--glow);
}
.store-ic { width: 27px; height: 27px; flex: none; color: var(--ink); }
.store-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.store-badge .mono {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.store-badge strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  line-height: 1.1;
}
.dl-note { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ── Pied de page ────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--hairline); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 48px;
  padding-bottom: 54px;
}
.footer-tag { margin-top: 18px; color: var(--muted); max-width: 34ch; font-size: 0.95rem; }
.footer-tag em { color: var(--accent-text); }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-h {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.footer-nav ul { display: grid; gap: 10px; }
.footer-nav a { color: var(--muted); font-size: 0.94rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--accent-hover); }
.footer-muted { color: var(--faint); font-size: 0.94rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-block: 22px;
  font-size: 0.84rem;
  color: var(--faint);
}
.footer-bottom p { margin: 0; }
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-top:hover { color: var(--accent-hover); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero { min-height: 0; padding-bottom: 90px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-badge { margin-inline: auto; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-device { margin-top: 26px; }
  .hero-photo { width: 100%; opacity: 0.75; }
  .scroll-cue { display: none; }
  .hero .phone { width: min(58vw, 258px); }

  /* Tour épinglé mobile : téléphone centré en haut, panneau en bas,
     tailles bornées par la hauteur — rien ne déborde jamais. */
  .tour-stage { grid-template-columns: 1fr; gap: 18px; }
  html.motion-ok .tour-stage {
    grid-template-rows: minmax(0, 46svh) auto;
    align-items: center;
    height: 100svh;
    padding-top: calc(var(--nav-h) + 8px);
    padding-bottom: 16px;
  }
  /* le téléphone se dimensionne sur la hauteur RÉELLE de sa rangée
     (container query) : il tient TOUJOURS dans le pin, nav comprise */
  html.motion-ok .tour-device {
    align-self: stretch;
    min-height: 0;
    container-type: size;
  }
  html.motion-ok .tour-device .phone {
    width: min(44vw, calc((100cqh - 30px) * 0.462));
    min-width: 0;
  }
  @supports not (container-type: size) {
    html.motion-ok .tour-device { align-self: center; }
    html.motion-ok .tour-device .phone { width: min(44vw, calc((40svh - 30px) * 0.462)); }
  }
  html.motion-ok .tour-device .device-tag { display: none; }
  html.motion-ok .tour-panel { text-align: center; margin-inline: auto; }
  html.motion-ok .tour-points { justify-content: center; }
  html.motion-ok .tour-rail { justify-content: center; margin-top: 22px; }
  .tour-panel h2 { font-size: clamp(1.4rem, 4.3vw, 1.9rem); }
  .tour-panel > p { font-size: 0.95rem; }
  .rail-l { font-size: 0.78rem; }
  .rail-btn { padding: 8px 13px; }

  .why-cards { grid-template-columns: 1fr; }
  .pro-grid { grid-template-columns: 1fr; }
  .pro-visual { order: -1; }

  /* Histoire : pile verticale, fil sur le bord de lecture, zéro rotation */
  .story-line { padding-inline-start: 26px; }
  .story-thread { left: auto; inset-inline-start: 4px; translate: none; }
  [dir="rtl"] .story-thread { inset-inline-start: auto; inset-inline-end: 4px; }
  .sbeat { grid-template-columns: 1fr; gap: 22px; }
  .sbeat:nth-child(even) .s-visual { order: 0; }
  .sbeat:nth-child(even) .s-copy { order: 0; justify-self: start; text-align: start; }
  .sbeat:nth-child(even) .s-cap { margin-inline-start: 0; }
  .sbeat:nth-child(odd) .s-shell, .sbeat:nth-child(even) .s-shell { transform: none; }
  .s-visual { justify-self: start; }
  .s-copy { max-width: 52ch; }
  .story-beats { gap: clamp(52px, 8vh, 80px); }

  .how-grid { grid-template-columns: 1fr; gap: 18px; }
  .how-shot { aspect-ratio: 16 / 9.6; }
  .how-shot img { object-position: top center; }

  .faq-grid { grid-template-columns: 1fr; gap: 10px; }

  /* galerie : marquee auto — la rangée vit même sans scroll */
  html.motion-ok .gallery-row { animation: g-left var(--mdur, 46s) linear infinite; }
  html.motion-ok .gallery-row[data-drift="1"] { animation-name: g-right; }
}

/* petits écrans bas : le panneau du tour se compacte pour que
   téléphone + texte + rail tiennent ensemble dans 100svh */
@media (max-width: 1020px) and (max-height: 760px) {
  html.motion-ok .tour-points { display: none; }
  html.motion-ok .tour-panel h2 { font-size: 1.28rem; }
  html.motion-ok .tour-panel > p { font-size: 0.87rem; }
  html.motion-ok .tour-rail { margin-top: 14px; }
}
@keyframes g-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes g-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-cta { display: none; }
  .nav > .nav-end .lang-switch, .nav > .nav-end .theme-toggle { display: none; }
  .nav-links + .nav-end { margin-inline-start: auto; }

  .universe-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
  .stores { flex-direction: column; align-items: center; }
  .store-badge { width: min(280px, 100%); }
  .footer-nav { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE — centrage, respiration, cibles tactiles (≤ 1020 px)
   Le héros et le lancement étaient centrés, tout le reste collait
   à gauche : on unifie. Les paragraphes courts et les en-têtes de
   section se centrent ; les listes icône+texte, la FAQ et le pied
   de page restent alignés à gauche (lisibilité avant symétrie).
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1020px) {
  /* ── En-têtes de section : tous centrés ── */
  .story-head,
  .how-head,
  .gallery-head,
  .why > .container > .overline,
  .why > .container > h2,
  .faq-head,
  .pro-copy > .overline,
  .pro-copy > h2,
  .pro-copy > p.reveal {
    text-align: center;
  }
  .story-head, .how-head, .gallery-head { margin-inline: auto; }
  .story-lead, .how-lead, .why h2, .pro-copy > p.reveal { margin-inline: auto; }
  .faq-head p { margin-inline: auto; max-width: 46ch; }

  /* ── L'histoire : battements centrés, fil retiré ── */
  .story-line { padding-inline-start: 0; }
  .story-thread { display: none; }
  .sbeat { justify-items: center; }
  .s-visual { justify-self: center; }
  .s-copy,
  .sbeat:nth-child(even) .s-copy { text-align: center; justify-self: center; }
  .s-cap, .sbeat:nth-child(even) .s-cap { margin-inline: auto; }
  .s-num { margin-bottom: 0.7em; }

  /* ── Comment ça marchera : le numéro sort de la capture ──
     Sur mobile il recouvrait l'UI de l'écran (« Choisir ma
     position ») : il redevient une pastille dans le flux. */
  .how-body { text-align: center; }
  .how-n {
    position: static;
    margin: 0 auto 0.85em;
  }
  .how-body > p:not(.how-chip) { margin-inline: auto; }

  /* ── Pourquoi : icône et titre centrés ── */
  .why-card { text-align: center; }
  .why-ic { margin-inline: auto; }
  .why-card p { margin-inline: auto; }

  /* ── Côté pro : la liste reste lisible (icône + texte à gauche),
     mais le bloc est centré et le CTA pleine largeur ── */
  .pro-points { max-width: 30rem; margin-inline: auto; }
  .pro-copy > .btn { display: flex; margin-inline: auto; }
}

/* ── Téléphones (≤ 640 px) : densité, wrap et zones tactiles ── */
@media (max-width: 640px) {
  :root { --nav-h: 64px; }

  /* le badge du héros tenait sur deux lignes, la pastille orpheline */
  .hero-badge {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    padding: 7px 13px;
    gap: 7px;
    max-width: 100%;
  }
  /* mono en capitales très espacées : les orphelins sautent aux yeux */
  .hero-note, .dl-note, .gallery-note, .universe-hint {
    letter-spacing: 0.12em;
    text-wrap: balance;
  }
  .hero-copy .lead, .story-lead, .how-lead { text-wrap: pretty; }

  /* respiration verticale : un cran plus serré qu'en bureau */
  .story { padding-top: clamp(72px, 9vh, 110px); }
  .story-beats { gap: clamp(48px, 7vh, 72px); }
  .how, .why, .universe, .pro, .faq { padding-block: clamp(72px, 10vh, 120px); }

  /* cibles tactiles : 44 px minimum sur tout ce qui se tape */
  .brand { padding-block: 6px; }
  .footer-top { padding: 11px 4px; }
  .menu-mobile a:not(.btn) { padding-block: 15px; }
  .footer-nav a, .footer-nav li > span { display: inline-block; padding-block: 6px; }
  .lang-opt { min-height: 40px; padding-inline: 12px; }
  .faq-item summary { padding-block: 19px; }

  /* le pouce n'atteint pas le haut : le CTA du héros passe devant */
  .hero-cta { gap: 12px; }
}

/* ── Encoche / coins arrondis : on respecte les zones sûres ── */
@supports (padding: max(0px)) {
  .container {
    padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  }
  .site-footer { padding-bottom: env(safe-area-inset-bottom); }
  .menu-mobile ul { padding-bottom: max(26px, env(safe-area-inset-bottom)); }
}

/* ── Très petits écrans (≤ 380 px) : le libellé du CTA tient en une ligne ── */
@media (max-width: 380px) {
  .btn { font-size: 0.9rem; padding-inline: 20px; gap: 8px; }
  .btn-lg { font-size: 0.95rem; height: 54px; }
  .btn-orb { width: 27px; height: 27px; margin-inline-end: -10px; }
  .tour-points li, .how-chip, .ucard-tags li { font-size: 0.62rem; letter-spacing: 0.12em; }
  .store-badge { min-width: 0; padding-inline: 18px; }
}

/* écrans bas (paysage mobile / petits laptops) : le héros respire */
@media (max-height: 640px) {
  .hero { min-height: 0; padding-bottom: 60px; }
  .scroll-cue { display: none; }
}

/* Sans JS ou mouvement réduit : le fil de l'histoire est plein */
html:not(.motion-ok) .story-thread i { transform: none; }

/* ── Mouvement réduit : tout reste lisible, rien ne bouge ───── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
