/* ════════════════════════════════════════════════════════════════════════
   BJJ STEPS — Design System "Dojo"  ·  2026 refresh
   Warm tatami palette · Unbounded display · refined patches · scroll reveals
   3 directions switchable via html[data-direction="tatami|dojo|toile"]
   ════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ── Design tokens (defaults = Direction "tatami") ───────────────────────── */
:root {
  /* warm neutrals */
  --bg:        #ece2d2;
  --bg-2:      #e3d6c1;
  --surface:   #fbf6ed;
  --surface-2: #f4ecdf;
  --ink:       #241b12;
  --ink-soft:  #4a3c2e;
  --muted:     #7c6c58;
  --line:      rgba(36,27,18,0.10);
  --line-2:    rgba(36,27,18,0.06);

  /* accents — shared chroma/lightness, varied hue (oklch) */
  --clay:      oklch(0.585 0.115 47);    /* terracotta — primary */
  --clay-deep: oklch(0.5 0.12 45);
  --olive:     oklch(0.55 0.085 138);    /* dojo green — belt heritage */
  --ochre:     oklch(0.7 0.11 78);       /* gold/straw */
  --ink-warm:  #2b2017;

  --accent:    #5c7048;   /* kaki / olive */
  --accent-ink:#ffffff;

  /* surfaces for "patch" emblems */
  --patch-ring: var(--clay);
  --patch-disc: #f7efe0;
  --patch-edge: #efe4d0;

  --radius:   16px;
  --radius-lg:26px;
  --radius-sm:11px;

  --shadow-sm: 0 1px 2px rgba(40,28,15,0.05), 0 2px 6px rgba(40,28,15,0.05);
  --shadow:    0 4px 14px rgba(40,28,15,0.07), 0 1px 3px rgba(40,28,15,0.05);
  --shadow-lg: 0 18px 50px rgba(40,28,15,0.14), 0 4px 12px rgba(40,28,15,0.07);

  --maxw: 1180px;
  --nav-h: 68px;

  --ff-display: 'Unbounded', system-ui, sans-serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;
  --ff-mono:    'Courier Prime', ui-monospace, monospace;

  --section-bg-alt: var(--surface);
}

/* ── Direction: DOJO (warm dark, premium) ────────────────────────────────── */
html[data-direction="dojo"] {
  --bg:        #1d160f;
  --bg-2:      #251c12;
  --surface:   #2a2015;
  --surface-2: #322517;
  --ink:       #f6efe2;
  --ink-soft:  #d8cab4;
  --muted:     #a3907a;
  --line:      rgba(246,239,226,0.12);
  --line-2:    rgba(246,239,226,0.07);
  --clay:      oklch(0.68 0.12 50);
  --olive:     oklch(0.68 0.09 135);
  --ochre:     oklch(0.78 0.11 80);
  /* accent principal = vert sauge / kaki — porte les textes significatifs */
  --sage:      oklch(0.785 0.066 122);
  --sage-deep: oklch(0.62 0.072 124);
  --accent:    var(--sage);
  --accent-ink:#191309;
  --patch-ring: var(--clay);
  --patch-disc: #efe4d0;
  --patch-edge: #4a3924;
  --section-bg-alt: #221a11;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow:    0 6px 20px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55);
}

/* ── Direction: TOILE (kraft canvas, artisanal-clean) ────────────────────── */
html[data-direction="toile"] {
  --bg:        #ddcbac;
  --bg-2:      #d3bf9d;
  --surface:   #f0e6d2;
  --surface-2: #e8dcc2;
  --ink:       #2a2114;
  --ink-soft:  #4d3f29;
  --muted:     #786448;
  --line:      rgba(42,33,20,0.13);
  --line-2:    rgba(42,33,20,0.07);
  --clay:      oklch(0.56 0.13 42);
  --olive:     oklch(0.52 0.09 132);
  --ochre:     oklch(0.66 0.12 76);
  --accent:    var(--ochre);
  --accent-ink:#2a2114;
  --patch-ring: var(--clay);
  --patch-disc: #f3ead7;
  --patch-edge: #d8c19a;
  --section-bg-alt: #e6d8bb;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

/* véritable natte de tatami — jonc igusa tissé, motif "grain de riz" */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("tatami.svg");
  background-size: 18px 36px;
  opacity: 0.9;
  mix-blend-mode: multiply;
}
/* léger relief diagonal du tissage */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(92deg,
    rgba(0,0,0,0.012) 0 2px, transparent 2px 110px,
    rgba(255,255,255,0.02) 110px 112px, transparent 112px 220px);
  mix-blend-mode: multiply; opacity: 0.5;
}
/* toile — tissage canvas serré en croisillon */
html[data-direction="toile"] body::before {
  background-image:
    repeating-linear-gradient(0deg, rgba(60,42,20,0.05) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(60,42,20,0.05) 0 1px, transparent 1px 4px);
  background-size: auto;
}
html[data-direction="toile"] body::after { display: none; }
html[data-direction="dojo"] body::before { mix-blend-mode: screen; opacity: 0.4; }
html[data-direction="dojo"] body::after { display: none; }
html[data-texture="off"] body::before,
html[data-texture="off"] body::after { display: none; }

::selection { background: color-mix(in oklab, var(--accent) 28%, transparent); }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── Typographic helpers ─────────────────────────────────────────────────── */
.display { font-family: var(--ff-display); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-weight: 700;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ''; width: 22px; height: 1.5px; background: var(--accent); display: inline-block;
}
.eyebrow.center { justify-content: center; }
.section-title {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3.1rem); letter-spacing: -0.045em; line-height: 1.05;
  color: var(--ink); margin: 1rem 0 0.9rem; text-wrap: balance;
}
.section-lead {
  font-size: 1.04rem; color: var(--muted); max-width: 56ch; line-height: 1.7;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.section { padding: clamp(72px, 11vw, 132px) 0; position: relative; z-index: 1; }
.section-head { margin-bottom: clamp(2.4rem, 5vw, 3.8rem); }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-inline: auto; }

/* ════════════════════════ NAV ═══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: var(--nav-h);
  padding: 0 clamp(18px, 5vw, 40px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line-2);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo .mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.nav-logo .mark svg { width: 20px; height: 20px; }
.nav-logo-text {
  font-family: var(--ff-display); font-size: 1.02rem; font-weight: 700;
  color: var(--ink); letter-spacing: -0.04em; white-space: nowrap;
}
.nav-logo-text b { color: var(--accent); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 0.35rem; list-style: none; }
.nav-links > li { display: flex; align-items: center; }
.nav-links a:not(.nav-cta) {
  font-size: 0.82rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; white-space: nowrap; padding: 7px 11px; border-radius: 9px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:not(.nav-cta):hover { color: var(--ink); background: var(--line-2); }
.nav-cta {
  background: var(--accent); color: var(--accent-ink) !important;
  padding: 9px 18px !important; border-radius: 100px;
  font-weight: 700 !important; font-size: 0.82rem; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 4px 14px color-mix(in oklab, var(--accent) 40%, transparent);
}
.nav-cta:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 8px 22px color-mix(in oklab, var(--accent) 45%, transparent); }

/* lang switcher injected by i18n.js — restyled by script for warm palette */
#bjj-lang-switcher { background: var(--line-2) !important; border: 1px solid var(--line) !important; border-radius: 100px !important; padding: 3px !important; }

/* user button */
.user-wrap-nav { position: relative; }
.user-btn-nav {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 100px; padding: 4px 13px 4px 4px;
  font: 500 0.8rem var(--ff-body); color: var(--ink-soft);
  transition: background 0.2s, border-color 0.2s;
}
.user-btn-nav:hover { border-color: var(--accent); }
.user-avatar-nav {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; color: var(--accent-ink); font-weight: 700; font-size: 11px;
}
.dropdown-nav {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 190px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 7px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
}
.dropdown-nav.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown-nav-item {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border: none; background: none;
  font: 500 0.82rem var(--ff-body); color: var(--ink); border-radius: 9px; cursor: pointer; text-decoration: none;
  transition: background 0.15s;
}
.dropdown-nav-item:hover { background: var(--line-2); }
.dropdown-nav-item.danger { color: var(--clay-deep); }

/* hamburger + mobile */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.25s; }
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 190;
  background: color-mix(in oklab, var(--bg) 96%, transparent); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; padding: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.mobile-menu a:hover { color: var(--accent); }
.mob-cta { background: var(--accent); color: var(--accent-ink) !important; padding: 13px 36px !important; border-radius: 100px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ════════════════════════ BUTTONS ═══════════════════════════════════════ */
.btn { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; cursor: pointer;
  font-family: var(--ff-body); font-weight: 700; font-size: 0.92rem; border: none;
  padding: 14px 26px; border-radius: 100px; transition: transform 0.2s, box-shadow 0.2s, filter 0.2s, background 0.2s, border-color 0.2s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px color-mix(in oklab, var(--accent) 38%, transparent); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 12px 30px color-mix(in oklab, var(--accent) 45%, transparent); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn svg { width: 17px; height: 17px; }

/* ════════════════════════ HERO ══════════════════════════════════════════ */
#accueil {
  min-height: 100svh; display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: clamp(2rem, 5vw, 5rem);
  padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 80px)); padding-bottom: clamp(40px, 8vw, 80px);
  max-width: var(--maxw); margin: 0 auto; padding-left: clamp(20px,5vw,40px); padding-right: clamp(20px,5vw,40px);
  position: relative; z-index: 1;
}
.hero-eyebrow { margin-bottom: 1.5rem; }
.hero-tagline {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(2.5rem, 5.4vw, 4.3rem); line-height: 1.02; letter-spacing: -0.05em;
  color: var(--ink); margin-bottom: 1.4rem;
}
.hero-tagline .accent { color: var(--accent); }
.hero-baseline { font-size: 1.06rem; color: var(--muted); line-height: 1.72; max-width: 46ch; margin-bottom: 2.1rem; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 2.2rem; }
.hero-meta { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); }
.hero-meta .stars { color: var(--ochre); letter-spacing: 2px; font-size: 0.9rem; }
.hero-meta b { color: var(--ink); font-weight: 700; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* hero visual: phone + floating patches */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 540px; }
.hero-glow {
  position: absolute; width: 115%; aspect-ratio: 1; left: 50%; top: 48%; transform: translate(-50%,-50%);
  background: radial-gradient(circle at 50% 45%, color-mix(in oklab, var(--accent) 26%, transparent), transparent 62%);
  filter: blur(10px); z-index: 0; pointer-events: none;
}

/* phone frame */
.phone {
  position: relative; z-index: 2; width: clamp(248px, 26vw, 310px); aspect-ratio: 295 / 600;
  background: linear-gradient(160deg, #4a5055 0%, #383d42 45%, #42484d 100%);
  border-radius: 42px;
  box-shadow: var(--shadow-lg), 0 0 0 1.5px rgba(255,255,255,0.12) inset, 0 2px 8px rgba(0,0,0,0.5);
  border: 1.5px solid rgba(80,90,100,0.6);
}
.phone::after { /* notch */
  content: ''; position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 23px; background: #32383d; border-radius: 0 0 14px 14px; z-index: 3;
}
/* inset (au lieu d'un padding sur .phone) : Safari calcule mal aspect-ratio
   combiné à un padding sur le même élément, même en box-sizing:border-box
   (bug WebKit connu, plus visible à des niveaux de zoom non entiers) — en
   sortant l'espacement sur .phone-screen via inset, .phone garde une boîte
   sans padding et son ratio 295/600 reste stable dans tous les navigateurs. */
.phone-screen {
  position: absolute; inset: 11px; border-radius: 32px; overflow: hidden;
  background: var(--surface);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; position: relative; z-index: 2; }
/* tasteful app skeleton shown until a real screenshot is dropped in */
.ph-skel { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  background: var(--surface); color: var(--ink); padding: 14px 13px; gap: 11px; }
.ph-skel .sk-status { display: flex; justify-content: space-between; align-items: center; font-family: var(--ff-mono); font-size: 8px; color: var(--muted); padding: 2px 2px 0; }
.ph-skel .sk-dots { display: flex; gap: 3px; } .ph-skel .sk-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: 0.6; }
.ph-skel .sk-title { font-family: var(--ff-display); font-weight: 700; font-size: 15px; letter-spacing: -0.03em; }
.ph-skel .sk-search { height: 24px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.ph-skel .sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 2px; }
.ph-skel .sk-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.ph-skel .sk-cover { height: 42px; }
.ph-skel .sk-meta { padding: 6px 7px; display: flex; flex-direction: column; gap: 4px; }
.ph-skel .sk-line { height: 5px; border-radius: 3px; background: var(--line); }
.ph-skel .sk-line.s { width: 60%; }
.ph-skel .sk-tab { margin-top: auto; display: flex; justify-content: space-around; padding-top: 9px; border-top: 1px solid var(--line); }
.ph-skel .sk-tab i { width: 16px; height: 16px; border-radius: 5px; background: var(--line); }
.ph-skel .sk-tab i.on { background: var(--accent); }
.ph-skel .sk-tag { position: absolute; bottom: 54px; left: 50%; transform: translateX(-50%); font-family: var(--ff-mono); font-size: 7.5px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }

/* floating refined patch emblems */
.float-patch { position: absolute; z-index: 4; filter: drop-shadow(0 10px 22px rgba(40,25,12,0.28)); }
.float-patch.fp1 { top: 6%; left: -2%; width: 124px; animation: floaty 6.5s ease-in-out infinite; }
.float-patch.fp2 { bottom: 9%; right: -3%; width: 138px; animation: floaty 7.5s ease-in-out infinite 0.6s; }
.float-chip {
  position: absolute; z-index: 4; background: var(--surface); border: 1px solid var(--line);
  border-radius: 13px; padding: 11px 14px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 600; color: var(--ink);
}
.float-chip .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.float-chip.fc1 { top: 14%; right: -8%; animation: floaty 7s ease-in-out infinite 0.3s; }
.float-chip.fc2 { bottom: 16%; left: -10%; animation: floaty 6s ease-in-out infinite 0.9s; }
.float-chip small { display: block; font-size: 0.64rem; font-weight: 500; color: var(--muted); }

/* ── Real BJJ Steps fiches — cards as extracted from the app, floating around the phone ── */
.rcard {
  position: absolute; width: 146px; height: 205px; border-radius: 18px; z-index: 6;
  transition: transform .35s cubic-bezier(.34,1.3,.64,1), box-shadow .3s; cursor: pointer;
}
.rcard-inner {
  width: 100%; height: 100%; border-radius: 18px;
  border: 3.5px solid var(--cc); overflow: hidden; background: #13141f;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 30px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.14);
}
.rcard-header { padding: 6px 10px; font-family: var(--ff-display); font-size: .68rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.rcard-photo { flex: 1; overflow: hidden; }
.rcard-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rcard-footer { padding: 8px 10px; font-family: var(--ff-display); font-size: .78rem; font-weight: 700; color: #fff; background: #0f1018; flex-shrink: 0; }
.rcard:hover { z-index: 20 !important; box-shadow: 0 22px 54px rgba(0,0,0,.32); }
/* floating positions around / over the phone */
.fc1 { top: 1%;   left: -4%;  --rot: -13deg; transform: rotate(var(--rot)); z-index: 7; animation: floatTilt 6.6s ease-in-out infinite; }
.fc1:hover { transform: rotate(-7deg) translateY(-10px); }
.fc2 { top: 6%;   right: -6%; --rot: 12deg;  transform: rotate(var(--rot)); z-index: 7; animation: floatTilt 7.4s ease-in-out infinite .5s; }
.fc2:hover { transform: rotate(6deg) translateY(-10px); }
.fc3 { bottom: 5%; left: -2%; --rot: -8deg;  transform: rotate(var(--rot)); z-index: 7; animation: floatTilt 7s ease-in-out infinite .9s; }
.fc3:hover { transform: rotate(-3deg) translateY(-10px); }
.fc4 { bottom: 0%; right: -4%; --rot: 15deg; transform: rotate(var(--rot)); z-index: 7; animation: floatTilt 6.9s ease-in-out infinite .3s; }
.fc4:hover { transform: rotate(9deg) translateY(-10px); }
.fc5 { top: -5%; left: 50%; margin-left: -73px; --rot: 4deg; transform: rotate(var(--rot)); z-index: 1; width: 138px; height: 194px; animation: floatTilt 8s ease-in-out infinite 1.2s; }
.fc5:hover { transform: rotate(0deg) translateY(-10px); }

@keyframes floatTilt {
  0%, 100% { transform: translateY(0)      rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-12px)  rotate(var(--rot, 0deg)); }
}

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 860px) {
  #accueil { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; padding-top: calc(var(--nav-h) + 36px); }
  .hero-baseline { margin-inline: auto; } .hero-eyebrow, .hero-cta, .hero-meta { justify-content: center; }
  .hero-visual { min-height: 0; } .float-chip, .hero-cards { display: none; }
}

/* ════════════════════════ TRUST STRIP ═══════════════════════════════════ */
.trust { border-block: 1px solid var(--line); background: var(--surface-2); }
.trust .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 26px; flex-wrap: wrap; }
.trust-label { font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.trust-items { display: flex; gap: clamp(1.4rem, 5vw, 3.4rem); flex-wrap: wrap; align-items: center; }
.trust-stat { display: flex; flex-direction: column; }
.trust-stat b { font-family: var(--ff-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); letter-spacing: -0.03em; }
.trust-stat span { font-size: 0.76rem; color: var(--muted); }

/* ════════════════════════ FEATURES ══════════════════════════════════════ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px); }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.2,0.7,0.3,1), box-shadow 0.35s, border-color 0.35s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 55%);
  opacity: 0; transition: opacity 0.35s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); }
.feature-card:hover::before { opacity: 1; }
.feature-card .patch { width: 92px; height: 92px; margin-bottom: 20px; }
.fc-badge {
  display: inline-block; font-family: var(--ff-mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  background: color-mix(in oklab, var(--accent) 12%, transparent); padding: 4px 10px; border-radius: 100px; margin-bottom: 12px;
}
.feature-card h3 { font-family: var(--ff-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink); margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-chip { font-size: 0.68rem; font-weight: 600; color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 9px; border-radius: 100px; }
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* ════════════════════════ SHOWCASE (screenshot rows) ════════════════════ */
.showcase { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.showcase + .showcase { margin-top: clamp(4rem, 8vw, 7rem); }
.showcase.flip .showcase-media { order: -1; }
.showcase-text .eyebrow { margin-bottom: 1rem; }
.showcase-text h3 { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.04em; line-height: 1.08; color: var(--ink); margin-bottom: 1rem; }
.showcase-text p { font-size: 1rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.4rem; max-width: 48ch; }
.showcase-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.showcase-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; color: var(--ink-soft); }
.showcase-list .tick { width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; display: grid; place-items: center;
  background: color-mix(in oklab, var(--accent) 16%, transparent); color: var(--accent); margin-top: 1px; }
.showcase-list .tick svg { width: 12px; height: 12px; }

.showcase-media { position: relative; display: flex; justify-content: center; }
.showcase-media .glow {
  position: absolute; inset: -8% -4%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 65%);
  filter: blur(14px);
}
.showcase-media .phone { width: clamp(230px, 24vw, 286px); }
@media (max-width: 820px) {
  .showcase { grid-template-columns: 1fr; gap: 2.4rem; }
  .showcase.flip .showcase-media { order: 0; }
}

/* ════════════════════════ PRICING ═══════════════════════════════════════ */
#tarifs { background: var(--section-bg-alt); border-block: 1px solid var(--line); }
html[data-direction="dojo"] #tarifs { background: #181109; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow-sm); transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.price-card.featured::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 1px var(--accent) inset, 0 0 60px color-mix(in oklab, var(--accent) 18%, transparent) inset;
}
.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--accent); color: var(--accent-ink); font-family: var(--ff-mono); font-weight: 700;
  font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px;
  box-shadow: var(--shadow);
}
.plan-name { font-family: var(--ff-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 6px; }
.plan-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.55; min-height: 2.8em; margin-bottom: 18px; }
.plan-price { font-family: var(--ff-display); font-weight: 700; font-size: 2.6rem; letter-spacing: -0.05em; color: var(--ink); display: flex; align-items: baseline; gap: 2px; }
.plan-price sup { font-size: 1.1rem; font-weight: 600; top: -0.6em; }
.plan-price span { font-family: var(--ff-body); font-size: 0.85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-period { font-size: 0.76rem; color: var(--muted); margin: 4px 0 20px; min-height: 1.1em; }
.pricing-note { text-align: center; font-size: 0.76rem; color: var(--muted); margin-top: 22px; }
.plan-cta {
  display: block; text-align: center; text-decoration: none; padding: 12px; border-radius: 100px;
  font-weight: 700; font-size: 0.86rem; margin-bottom: 22px; transition: transform 0.2s, filter 0.2s, background 0.2s, border-color 0.2s;
  background: var(--surface-2); color: var(--ink); border: 1.5px solid var(--line);
}
.plan-cta:hover { transform: translateY(-2px); border-color: var(--accent); }
.price-card.featured .plan-cta { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.price-card.featured .plan-cta:hover { filter: brightness(1.06); }
.plan-divider { height: 1px; background: var(--line); margin-bottom: 18px; }
.plan-feature { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 11px; }
.plan-feature.missing { color: color-mix(in oklab, var(--muted) 70%, transparent); }
.plan-check { width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0; display: grid; place-items: center; margin-top: 1px; }
.plan-check.ok { background: color-mix(in oklab, var(--olive) 20%, transparent); color: var(--olive); }
.price-card.featured .plan-check.ok { background: color-mix(in oklab, var(--accent) 20%, transparent); color: var(--accent); }
.plan-check.no { background: var(--line-2); }
.plan-check svg { width: 10px; height: 10px; }
.plan-commission { margin-top: auto; padding-top: 14px; font-family: var(--ff-mono); font-size: 0.68rem; color: var(--muted); border-top: 1px dashed var(--line); }
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

/* ════════════════════════ HOW TO ════════════════════════════════════════ */
.howto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); }
.guide-num { font-family: var(--ff-display); font-weight: 700; font-size: 2.6rem; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.4px color-mix(in oklab, var(--accent) 55%, var(--line)); line-height: 1; margin-bottom: 14px; }
.guide-title { font-family: var(--ff-display); font-weight: 600; font-size: 1.04rem; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 9px; }
.guide-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.guide-desc strong { color: var(--ink); }
.pill-premium { font-family: var(--ff-mono); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent); background: color-mix(in oklab, var(--accent) 13%, transparent); padding: 2px 7px; border-radius: 100px; vertical-align: middle; }
@media (max-width: 900px) { .howto-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .howto-grid { grid-template-columns: 1fr; } }

/* ════════════════════════ FAQ ═══════════════════════════════════════════ */
.faq-list { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color 0.3s;
}
.faq-item[open] { border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 22px; font-family: var(--ff-display); font-weight: 600; font-size: 0.98rem;
  color: var(--ink); letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-chevron { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); transition: transform 0.3s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-item p { padding: 0 22px 20px; margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ════════════════════════ LEGAL ═════════════════════════════════════════ */
.legal-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 48px); box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.legal-desc { font-size: 1rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.legal-links { display: flex; flex-direction: column; gap: 10px; }
.legal-link { font-weight: 700; font-size: 0.94rem; color: var(--accent); text-decoration: none; transition: gap 0.2s; }
.legal-link:hover { text-decoration: underline; }
.legal-badge-wrap { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.legal-badge { font-family: var(--ff-mono); font-size: 0.78rem; line-height: 1.5; color: var(--ink-soft);
  background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; }
.legal-laws { display: flex; flex-wrap: wrap; gap: 6px; }
.law-chip { font-family: var(--ff-mono); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 9px; border-radius: 7px; }
@media (max-width: 760px) { .legal-card { grid-template-columns: 1fr; } }

/* ════════════════════════ CONTACT ═══════════════════════════════════════ */
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 1fr 1.15fr; overflow: hidden;
}
.contact-info { padding: clamp(30px, 4vw, 46px); background: var(--surface-2); border-right: 1px solid var(--line); }
.contact-info h3 { font-family: var(--ff-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 0.8rem; }
.contact-info > p { font-size: 0.92rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.8rem; }
.contact-item { margin-bottom: 1.1rem; }
.contact-item-label { font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-item-val a { color: var(--ink); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.contact-item-val a:hover { color: var(--accent); }
.contact-delay { margin-top: 1.6rem; font-size: 0.82rem; color: var(--muted); }
.contact-delay strong { color: var(--ink); }
.contact-form { padding: clamp(30px, 4vw, 46px); display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea {
  font-family: var(--ff-body); font-size: 0.92rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 11px; padding: 12px 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: color-mix(in oklab, var(--muted) 75%, transparent); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.form-submit { margin-top: 4px; background: var(--accent); color: var(--accent-ink); border: none; cursor: pointer;
  font-family: var(--ff-body); font-weight: 700; font-size: 0.92rem; padding: 14px; border-radius: 100px;
  transition: transform 0.2s, filter 0.2s; }
.form-submit:hover { transform: translateY(-2px); filter: brightness(1.05); }
@media (max-width: 760px) { .contact-card { grid-template-columns: 1fr; } .contact-info { border-right: none; border-bottom: 1px solid var(--line); } }

/* ════════════════════════ FOOTER ════════════════════════════════════════ */
footer { background: var(--ink-warm); color: #e7dccb; padding: clamp(48px, 7vw, 72px) 0 36px; margin-top: 0; position: relative; z-index: 1; }
html[data-direction="dojo"] footer { background: #120d08; }
footer .wrap { display: flex; flex-direction: column; gap: 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer-brand { max-width: 280px; }
.footer-logo { font-family: var(--ff-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.04em; color: #fff; margin-bottom: 10px; }
.footer-logo b { color: var(--accent); font-weight: 700; }
.footer-brand p { font-size: 0.86rem; color: rgba(231,220,203,0.6); line-height: 1.6; }
.footer-links { display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(231,220,203,0.45); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: rgba(231,220,203,0.8); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(231,220,203,0.14); padding-top: 24px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.78rem; color: rgba(231,220,203,0.5); }

/* ════════════════════════ SCROLL REVEAL (Floria-like) ═══════════════════ */
.reveal { opacity: 0; transform: translateY(30px); filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.16,0.8,0.24,1), transform 0.9s cubic-bezier(0.16,0.8,0.24,1), filter 0.9s ease; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-rv="left"]  { transform: translateX(-36px); }
.reveal[data-rv="right"] { transform: translateX(36px); }
.reveal[data-rv="scale"] { transform: scale(0.94); }
.reveal.in[data-rv]      { transform: none; }
/* staggered children */
.stagger > * { opacity: 0; transform: translateY(26px); filter: blur(5px);
  transition: opacity 0.8s cubic-bezier(0.16,0.8,0.24,1), transform 0.8s cubic-bezier(0.16,0.8,0.24,1), filter 0.8s; }
.stagger.in > * { opacity: 1; transform: none; filter: none; }
.stagger.in > *:nth-child(1) { transition-delay: 0.04s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.20s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.28s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.36s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.44s; }
/* hero load-in */
.hero-in { opacity: 0; transform: translateY(28px); animation: heroUp 1s cubic-bezier(0.16,0.8,0.24,1) forwards; }
.hero-in.d1 { animation-delay: 0.05s; } .hero-in.d2 { animation-delay: 0.18s; }
.hero-in.d3 { animation-delay: 0.31s; } .hero-in.d4 { animation-delay: 0.44s; } .hero-in.d5 { animation-delay: 0.57s; }
@keyframes heroUp { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > *, .hero-in { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .float-patch, .float-chip { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Logo PNG nav ─────────────────────────────────────────────────────── */
.nav-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

/* ── Dropdown user nav ────────────────────────────────────────────────── */
.user-wrap-nav { position: relative; }
.dropdown-nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line, rgba(0,0,0,.1));
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 180px;
  padding: 6px;
  z-index: 400;
}
.dropdown-nav.open { display: block; }
.dropdown-nav-item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink, #1a1a2e);
  text-decoration: none;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-family: var(--ff-body, 'DM Sans', sans-serif);
  transition: background .12s;
}
.dropdown-nav-item:hover { background: var(--surface-2, #f4ecdf); }
.dropdown-nav-item.danger { color: #c0392b; }

/* Boutons de téléchargement (App Store / Google Play) */
.store-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.store-btns .btn { min-width: 11rem; justify-content: center; }
