/* =========================================================
   Dr Fatimazohra Mouni, neurologue
   ========================================================= */
:root {
  --night: #070b16;
  --night-2: #0d1428;
  --night-3: #141d36;
  --paper: #f4f0e8;
  --paper-2: #ebe5d9;
  --ink: #0f1629;
  --muted: #5c6577;
  --muted-night: #9aa3b8;
  --line: rgba(15, 22, 41, .12);
  --line-night: rgba(255, 255, 255, .1);
  --accent: #e0313f;
  --accent-soft: #ff9fa8;
  --cool: #8fb4ff;
  --mint: #6ee7c8;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 76px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
::selection { background: var(--accent); color: #fff; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 1000;
  padding: 10px 16px; background: #fff; color: var(--ink); border-radius: 10px;
}
.skip:focus { top: 12px; }

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

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typo ---------- */
.kicker {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  color: var(--accent); margin: 0 0 22px;
}
.title-xl, .title-lg {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: .98; margin: 0;
}
.title-xl { font-size: clamp(42px, 6.4vw, 104px); }
.title-lg { font-size: clamp(38px, 4.6vw, 72px); }
.title-xl em, .title-lg em { color: var(--accent); }

.section-head { margin-bottom: clamp(40px, 6vw, 84px); max-width: 980px; }
.section-head--split {
  max-width: none; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end;
}
.section-head__lead { color: var(--muted); font-size: 18px; max-width: 520px; margin: 24px 0 0; }
.section--night .section-head__lead { color: var(--muted-night); }

/* ---------- Sections ---------- */
section { position: relative; }
.section--paper { background: var(--paper); color: var(--ink); padding: clamp(96px, 13vw, 180px) 0; }
.section--paper2 { background: var(--paper-2); color: var(--ink); padding: clamp(80px, 10vw, 140px) 0; }
.section--night { background: var(--night); color: #eef1f8; padding: clamp(96px, 13vw, 180px) 0; }

/* ---------- Boutons ---------- */
.btn {
  --h: 58px;
  display: inline-flex; align-items: center; gap: 10px; height: var(--h); padding: 0 28px;
  border-radius: 999px; font-weight: 600; font-size: 15.5px; text-decoration: none;
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 40px -10px rgba(224, 49, 63, .7); }
.btn--accent:hover { background: #ea4a57; box-shadow: 0 14px 50px -8px rgba(224, 49, 63, .85); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .25); color: #fff; backdrop-filter: blur(8px); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.magnetic { will-change: transform; }

.dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted-night);
  flex: none;
}
.dot.is-open { background: var(--mint); box-shadow: 0 0 0 0 rgba(110, 231, 200, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(110, 231, 200, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(110, 231, 200, 0); } }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--night);
  display: grid; place-items: center; align-content: center; gap: 18px;
}
.loader__trace { width: min(560px, 80vw); height: 90px; }
.loader__trace path {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.4s var(--ease) forwards;
  filter: drop-shadow(0 0 8px rgba(224, 49, 63, .8));
}
.loader__name {
  font-family: var(--serif); color: #fff; font-size: clamp(22px, 3vw, 34px); opacity: 0;
  animation: fadeIn .8s .5s forwards;
}
.loader__name em { color: var(--accent); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.loader.is-done { opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }

/* ---------- Progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110; height: var(--nav-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  color: #fff; transition: background .4s, color .4s, height .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  height: 64px; background: rgba(7, 11, 22, .62); backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line-night);
}
.nav.is-light { color: var(--ink); background: rgba(244, 240, 232, .72); border-color: var(--line); }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.nav__mono {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--serif); font-size: 18px; font-style: italic; border: 1px solid currentColor; letter-spacing: .02em;
}
.nav__name { font-weight: 700; font-size: 15px; line-height: 1.1; display: flex; flex-direction: column; }
.nav__name small { font-weight: 500; font-size: 12px; opacity: .65; letter-spacing: .04em; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { text-decoration: none; font-size: 14.5px; font-weight: 500; opacity: .78; position: relative; padding: 6px 0; transition: opacity .25s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 14.5px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid currentColor;
  transition: background .3s, color .3s, border-color .3s;
}
.nav__cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; background: none; position: relative; cursor: pointer; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 105; background: var(--night); color: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 100px var(--gutter) 60px;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font-family: var(--serif); font-size: clamp(40px, 11vw, 64px); text-decoration: none; line-height: 1.1; }
.menu .btn { align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; background: radial-gradient(120% 90% at 70% 40%, #121c3a 0%, var(--night) 60%);
  color: #fff; overflow: hidden; display: flex; flex-direction: column;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner {
  position: relative; z-index: 2; flex: 1; width: 100%; max-width: 1440px; margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 140px;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 80px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 30px; font-size: 13px; font-weight: 500;
  letter-spacing: .04em; color: rgba(255, 255, 255, .72); padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-night); border-radius: 999px; background: rgba(255, 255, 255, .03); backdrop-filter: blur(6px);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: beat 1.6s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.6); } 30% { transform: scale(1); } 45% { transform: scale(1.35); } }

.hero__title {
  font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.035em; line-height: .88;
  font-size: clamp(58px, 10.5vw, 176px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em {
  background: linear-gradient(100deg, #fff 0%, var(--accent-soft) 40%, var(--accent) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em;
}
.hero__lead { font-size: clamp(17px, 1.4vw, 20px); color: rgba(255, 255, 255, .74); max-width: 560px; margin: 30px 0 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__status { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; font-size: 14px; color: rgba(255, 255, 255, .62); }

.hero__portrait { position: relative; margin: 0; justify-self: center; width: min(100%, 440px); }
.arch {
  position: relative; aspect-ratio: 4 / 5.2; border-radius: 999px 999px 28px 28px; overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(224, 49, 63, .45), 0 0 0 1px rgba(255, 255, 255, .12);
  isolation: isolate;
}
.arch::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 22, .55) 100%);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.08); }
.hero__portrait::before {
  content: ""; position: absolute; inset: -14px; border-radius: 999px 999px 40px 40px; z-index: -1;
  border: 1px solid rgba(224, 49, 63, .35);
}
.hero__portrait::after {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 8%; z-index: -2; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 49, 63, .45), transparent 65%); filter: blur(30px);
}
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
  background: rgba(13, 20, 40, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-night); border-radius: 16px; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6);
}
.chip canvas { width: 96px; height: 30px; }
.chip--eeg { left: -18%; top: 20%; }
.chip--emg { right: -10%; bottom: 16%; }

.hero__scroll {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 92px; display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .55);
}
.hero__scroll span { width: 1px; height: 46px; background: rgba(255, 255, 255, .2); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--accent); animation: drip 2s infinite var(--ease); }
@keyframes drip { to { top: 110%; } }

.marquee {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; overflow: hidden; padding: 20px 0;
  border-top: 1px solid var(--line-night); background: rgba(7, 11, 22, .35); backdrop-filter: blur(6px);
}
.marquee__track { display: flex; gap: 34px; width: max-content; animation: slide 46s linear infinite; }
.marquee__track span { font-family: var(--serif); font-size: 26px; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--accent); font-size: 14px; align-self: center; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Approche ---------- */
.approche { z-index: 4; }
.manifesto {
  font-family: var(--serif); font-size: clamp(40px, 6.6vw, 112px); line-height: 1.02; letter-spacing: -.025em;
  margin: 0; max-width: 1180px;
}
.manifesto em { color: var(--accent); }
.manifesto .w { opacity: .14; transition: opacity .2s; }
.no-anim .manifesto .w { opacity: 1; }
.manifesto__ar {
  font-family: var(--arabic); font-size: clamp(22px, 2.4vw, 34px); color: var(--muted); margin: 30px 0 0; text-align: left;
}
.pillars {
  margin-top: clamp(70px, 10vw, 140px); display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.pillar { padding: 36px 36px 0 0; }
.pillar + .pillar { padding-left: 36px; border-left: 1px solid var(--line); }
.pillar__n { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 22px; }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 44px; margin: 8px 0 14px; letter-spacing: -.01em; }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Explorations ---------- */
.explorations { overflow: hidden; }
.explorations::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(143, 180, 255, .12), transparent 60%),
    radial-gradient(50% 40% at 10% 90%, rgba(224, 49, 63, .1), transparent 60%);
}
.exams { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; position: relative; }
.exam {
  border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, var(--night-2), var(--night));
  border: 1px solid var(--line-night); display: flex; flex-direction: column;
  transition: border-color .4s, transform .6s var(--ease);
}
.exam:hover { border-color: rgba(224, 49, 63, .45); }
.exam__screen {
  position: relative; height: 300px; background:
    linear-gradient(rgba(143, 180, 255, .06) 1px, transparent 1px) 0 0 / 100% 30px,
    linear-gradient(90deg, rgba(143, 180, 255, .06) 1px, transparent 1px) 0 0 / 30px 100%,
    #060a14;
  border-bottom: 1px solid var(--line-night);
}
.exam__screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.exam__hud {
  position: absolute; left: 16px; right: 16px; top: 14px; display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); font-variant-numeric: tabular-nums;
}
.exam__body { padding: 34px 34px 38px; }
.exam h3 { font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: 1; margin: 0 0 18px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.exam h3 abbr { text-decoration: none; }
.exam h3 small { font-family: var(--sans); font-size: 14px; color: var(--muted-night); letter-spacing: .02em; }
.exam p { color: var(--muted-night); margin: 0 0 24px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; color: #dfe4f0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg) translateY(-3px);
}

/* ---------- Domaines (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(230px, auto); gap: 16px; }
.tile {
  position: relative; text-align: left; cursor: pointer; border: 1px solid var(--line); background: #fbf9f4;
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s, background .4s;
}
.tile::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(224, 49, 63, .16), transparent 45%);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(15, 22, 41, .35); border-color: rgba(224, 49, 63, .4); }
.tile:hover::before { opacity: 1; }
.tile--lg { grid-column: span 2; grid-row: span 2; background: var(--ink); color: #fff; border-color: transparent; }
.tile--lg .tile__d { color: var(--muted-night); font-size: 17px; max-width: 420px; }
.tile--lg .tile__t { font-size: clamp(40px, 4vw, 64px); }
.tile--wide { grid-column: span 2; }
.aura { position: absolute; right: -12%; top: -14%; width: 78%; pointer-events: none; animation: auraGrow 9s var(--ease) infinite; transform-origin: 50% 50%; }
.aura path { fill: none; stroke: url(#auraG); stroke-width: 3; stroke-linejoin: miter; }
.aura__a { opacity: .9; stroke-dasharray: 14 10; animation: shimmer 1.2s linear infinite; }
.aura__b { opacity: .25; stroke-width: 10 !important; filter: blur(6px); }
@keyframes shimmer { to { stroke-dashoffset: -48; } }
@keyframes auraGrow { 0% { transform: scale(.55) rotate(-10deg); opacity: 0; } 25% { opacity: 1; } 80% { opacity: .9; } 100% { transform: scale(1.15) rotate(8deg); opacity: 0; } }
.tile__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(224, 49, 63, .1); margin-bottom: auto; }
.tile--lg .tile__icon { width: 72px; height: 72px; border-radius: 20px; }
.tile__icon svg { width: 60%; height: 60%; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tile__t { font-family: var(--serif); font-size: 32px; line-height: 1.02; letter-spacing: -.01em; position: relative; margin-top: 26px; }
.tile__d { color: var(--muted); font-size: 15px; position: relative; }
.tile__go { font-size: 13px; font-weight: 700; color: var(--accent); position: relative; letter-spacing: .02em; transform: translateX(-6px); opacity: 0; transition: .45s var(--ease); }
.tile:hover .tile__go, .tile:focus-visible .tile__go { transform: none; opacity: 1; }
.tile--lg .tile__go { opacity: 1; transform: none; }

/* ---------- À l'antenne ---------- */
.antenne { padding: 0; }
.antenne__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(96px, 10vw, 130px) 0 60px; overflow: hidden; }
.antenne__head { margin-bottom: 36px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 40px; }
.antenne__head .kicker { grid-column: 1 / -1; }
.antenne__head .title-xl { max-width: 900px; font-size: clamp(40px, 5vw, 84px); }
.antenne__head .outlets { justify-content: flex-end; max-width: 380px; margin: 0; }
@media (max-width: 1100px) { .antenne__head { grid-template-columns: 1fr; } .antenne__head .outlets { justify-content: flex-start; max-width: none; margin-top: 20px; } }
.outlets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.outlets span {
  font-size: 13px; font-weight: 600; letter-spacing: .06em; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-night); color: #d9deea;
}
.antenne__rail { width: 100%; overflow-x: auto; scrollbar-width: none; cursor: grab; scroll-padding-inline: var(--gutter); }
.antenne__rail::-webkit-scrollbar { display: none; }
.antenne__rail.is-pinned { overflow: visible; cursor: auto; }
.antenne__track { display: flex; gap: 22px; padding: 0 var(--gutter); width: max-content; }
.mcard {
  position: relative; width: clamp(240px, 19vw, 290px); border-radius: 20px; overflow: hidden;
  flex: none; cursor: pointer; border: 1px solid var(--line-night); background: var(--night-2); padding: 0; text-align: left;
  display: flex; flex-direction: column; transition: transform .6s var(--ease), border-color .4s;
}
.mcard__img { position: relative; display: block; aspect-ratio: 4 / 4.6; overflow: hidden; }
.mcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.mcard:hover { border-color: rgba(224, 49, 63, .6); }
.mcard:hover img { transform: scale(1.06); }
.mcard__meta { display: block; padding: 18px 20px 22px; color: #fff; min-height: 150px; }
.mcard__outlet { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-soft); }
.mcard__outlet::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.mcard__title { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.08; margin: 10px 0 8px; }
.mcard__show { display: block; }
.mcard__show { font-size: 12.5px; color: var(--muted-night); }
.play {
  position: absolute; z-index: 2; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .25); transition: background .3s, transform .4s var(--ease);
}
.play::before { content: ""; margin-left: 3px; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.mcard:hover .play, .reel:hover .play { background: var(--accent); transform: scale(1.08); border-color: var(--accent); }
.antenne__hint { margin-top: 36px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted-night); }
.hint-line { width: 60px; height: 1px; background: var(--accent); }

/* ---------- Traitement photo unifié (duotone, couleur au survol) ---------- */
.duo { position: relative; isolation: isolate; }
.duo img { position: relative; z-index: 0; filter: grayscale(1) contrast(1.15) brightness(.95); transition: filter .8s var(--ease), transform 1s var(--ease); }
.duo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity .8s var(--ease);
  background: linear-gradient(170deg, #e0313f 0%, #8e2a5e 45%, #23336e 100%); mix-blend-mode: color; opacity: .85;
}
.duo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 11, 22, .45)); transition: opacity .8s var(--ease);
}
.mcard:hover .duo img, .reel:hover .duo img, .cong:hover .duo img { filter: none; }
.mcard:hover .duo::before, .reel:hover .duo::before, .cong:hover .duo::before { opacity: 0; }
.duo .play, .duo .reel__lang { z-index: 2; }

/* Cartes typographiques (à la place des captures) */
.tcard__wave { position: absolute; left: 0; right: 0; top: 38%; width: 100%; height: 22%; }
.tcard__wave path {
  fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3s var(--ease) infinite alternate;
}
.mcard--type { background: radial-gradient(120% 80% at 20% 10%, #1b2750, var(--night-2) 60%); }
.tcard__big { position: absolute; left: 20px; top: 22px; right: 70px; font-family: var(--serif); font-size: 46px; line-height: .95; color: #fff; z-index: 2; }
.reel__img.tcard { background: radial-gradient(120% 80% at 80% 0%, #ffd3d7, var(--paper-2) 60%); }
.tcard__mid { position: absolute; left: 16px; right: 16px; bottom: 18px; font-family: var(--serif); font-size: 26px; line-height: 1.02; color: var(--ink); }
.cong__img.cong__type { position: relative; background: radial-gradient(120% 90% at 85% 0%, #2a3b78, var(--ink) 65%); }
.cong__n { position: absolute; left: 22px; top: 18px; font-family: var(--serif); font-style: italic; font-size: 64px; color: var(--accent-soft); }

/* ---------- Capsules ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 10px 18px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.reel {
  position: relative; border: 0; padding: 0; background: none; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 12px;
}
.reel__img { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--paper-2); }
.reel__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.reel:hover .reel__img img { transform: scale(1.05); }
.reel__lang { position: absolute; z-index: 2; left: 12px; top: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--ink); }
.reel .play { width: 40px; height: 40px; top: 12px; right: 12px; }
.reel__t { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.reel__ar { font-family: var(--arabic); font-size: 14px; color: var(--muted); display: block; margin-top: 4px; }
.reel.is-hidden { display: none; }
.follow {
  margin: 56px auto 0; display: flex; width: max-content; align-items: center; gap: 12px; text-decoration: none;
  font-weight: 600; padding: 16px 26px; border-radius: 999px; border: 1px solid var(--ink); transition: background .3s, color .3s;
}
.follow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.follow:hover { background: var(--ink); color: #fff; }

/* ---------- Formation ---------- */
.strip { display: flex; gap: 18px; overflow-x: auto; padding: 0 var(--gutter) 10px; scroll-padding-inline: var(--gutter); scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.cong { flex: none; width: clamp(240px, 24vw, 330px); scroll-snap-align: start; margin: 0; }
.cong__img { aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #ddd5c6; }
.cong__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cong:hover .cong__img img { transform: scale(1.05); }
.cong figcaption { margin-top: 14px; }
.cong strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.cong span { font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.urgence { margin-top: 40px; padding: 26px 28px; border-radius: var(--radius); background: #fff; border: 1px solid rgba(224, 49, 63, .35); position: relative; overflow: hidden; }
.urgence::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.urgence strong { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.urgence p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
.urgence a { color: var(--ink); font-weight: 700; }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 28px 56px 28px 0; position: relative;
  font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after, .accordion summary::before {
  content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease);
}
.accordion summary::before { transform: rotate(90deg); }
.accordion details[open] summary::before { transform: rotate(0deg); }
.accordion details p { margin: 0 0 28px; color: var(--muted); max-width: 620px; }
.accordion details a { color: var(--ink); font-weight: 600; }

/* ---------- Cabinet ---------- */
.cabinet { overflow: hidden; }
.bigphone {
  display: block; text-decoration: none; font-family: var(--serif); letter-spacing: -.03em; line-height: .9;
  font-size: clamp(64px, 14vw, 230px); margin: 0 0 clamp(50px, 7vw, 90px); white-space: nowrap;
  transition: color .4s;
}
.bigphone span:last-child { color: var(--accent); font-style: italic; }
.bigphone:hover { color: var(--accent-soft); }
.cabinet__grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 18px; align-items: stretch; }
.card--glass { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line-night); background: rgba(255, 255, 255, .03); }
.card--glass h3 { margin: 0 0 18px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-night); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card--glass p { margin: 0 0 22px; font-size: 19px; line-height: 1.5; }
.link-arrow { color: var(--accent-soft); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.link-arrow:hover { color: #fff; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-night); font-size: 15.5px; color: #c9cfdd; }
.hours li:last-child { border-bottom: 0; }
.hours li.is-today { color: #fff; font-weight: 700; }
.hours li.is-today span:first-child::before { content: "● "; color: var(--accent); }
.status-pill { font-size: 11px; letter-spacing: .1em; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #c9cfdd; }
.status-pill.is-open { background: rgba(110, 231, 200, .14); color: var(--mint); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-night); min-height: 340px; background: var(--night-2); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.7) contrast(.92); }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: #c9cfdd; border-top: 1px solid var(--line-night); padding: 50px 0 120px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 26px 40px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.footer__brand div { display: flex; flex-direction: column; }
.footer__brand span { font-size: 13.5px; color: var(--muted-night); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { text-decoration: none; font-size: 14.5px; }
.footer__links a:hover { color: var(--accent-soft); }
.footer__legal { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted-night); border-top: 1px solid var(--line-night); padding-top: 24px; }

/* ---------- Dock mobile ---------- */
.dock {
  display: none; position: fixed; z-index: 100; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  gap: 8px; padding: 8px; border-radius: 999px; background: rgba(7, 11, 22, .82); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-night);
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.dock.is-visible { transform: none; }
.dock a { flex: 1; text-align: center; text-decoration: none; color: #fff; font-weight: 600; font-size: 15px; padding: 14px 10px; border-radius: 999px; }
.dock__main { background: var(--accent); }

/* ---------- Player ---------- */
.player {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible;
}
.player::backdrop { background: rgba(4, 6, 12, .86); backdrop-filter: blur(10px); }
.player__frame {
  width: min(420px, 92vw); height: min(760px, 82vh); border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
.player__frame iframe { width: 100%; height: 100%; border: 0; }
.player__close {
  position: absolute; top: -54px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.player__close:hover { background: var(--accent); border-color: var(--accent); }
.player__meta { color: #fff; text-align: center; margin: 14px 0 0; font-size: 14px; opacity: .8; max-width: min(420px, 92vw); }
.player[open] .player__frame { animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }

/* ---------- Curseur ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 300; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 1px solid rgba(224, 49, 63, .7); pointer-events: none; opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, opacity .3s;
  mix-blend-mode: normal;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(224, 49, 63, .12); }

/* ---------- Animations d'entrée (activées par JS) ---------- */
.js .reveal-up { opacity: 0; transform: translateY(34px); }
.js .hero__title .line > span { transform: translateY(105%); }
.no-anim .reveal-up, .no-anim .hero__title .line > span { opacity: 1 !important; transform: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__cta { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cabinet__grid { grid-template-columns: 1fr 1fr; }
  .map { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --nav-h: 66px; }
  body { font-size: 16px; }
  .hero__inner { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 24px); padding-bottom: 120px; gap: 46px; }
  .hero__portrait { width: min(56%, 240px); order: -1; justify-self: start; margin-left: 4%; }
  .chip--eeg { left: auto; right: -62%; top: 18%; }
  .chip--emg { right: -58%; bottom: 20%; }
  .eyebrow { font-size: 12px; margin-bottom: 22px; }
  .hero__scroll { display: none; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .section-head--split { grid-template-columns: 1fr; gap: 0; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 30px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .exams { grid-template-columns: 1fr; }
  .exam__screen { height: 220px; }
  .exam__body { padding: 26px 22px 30px; }
  .exam h3 { font-size: 44px; }
  .faq__grid { grid-template-columns: 1fr; }
  .cabinet__grid { grid-template-columns: 1fr; }
  .antenne__pin { min-height: 0; }
  .antenne__rail { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .antenne__rail::-webkit-scrollbar { display: none; }
  .mcard { scroll-snap-align: center; width: 72vw; }
  .footer__inner { grid-template-columns: 1fr; }
  .dock { display: flex; }
  .cursor { display: none; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile--lg, .tile--wide { grid-column: auto; grid-row: auto; }
  .tile { min-height: 200px; }
  .reels { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .reel__t { font-size: 14px; }
  .marquee__track span { font-size: 21px; }
  .chip { padding: 8px 10px 8px 8px; font-size: 11px; }
  .chip canvas { width: 70px; height: 24px; }
  .footer__links { flex-wrap: wrap; }
  .bigphone { font-size: 17vw; }
}

@media (hover: none) {
  .tile__go { opacity: 1; transform: none; }
  .cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.full-motion) .marquee__track { animation-duration: 120s; }
  html:not(.full-motion) .hero__scroll span::after { animation: none; }
}

/* =========================================================
   Logo (d'après la plaque du cabinet) & sélecteur de langue
   ========================================================= */
.section--paper, .section--paper2 { --accent: #b3122a; }           /* bordeaux de la marque sur fond clair */
.logo-badge {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: block;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .55);
}
.logo-badge img { width: 100%; height: 100%; display: block; }
.nav.is-light .logo-badge { box-shadow: 0 0 0 1px var(--line), 0 6px 18px -8px rgba(15, 22, 41, .35); }
.nav__name { font-size: 15.5px; letter-spacing: -.005em; }
.loader__logo { width: 104px; height: 104px; opacity: 0; animation: fadeIn .8s .2s forwards; filter: drop-shadow(0 10px 30px rgba(224, 49, 63, .45)); }
.loader__logo img { width: 100%; height: 100%; }
.lang {
  display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 14.5px; border: 1px solid transparent; opacity: .85; transition: opacity .25s, border-color .25s;
}
.lang:hover { opacity: 1; border-color: currentColor; }
.lang[lang="ar"] { font-family: var(--arabic); font-size: 16px; }
.lang[lang="fr"] { font-family: var(--sans); }
.menu .lang { align-self: flex-start; border-color: rgba(255, 255, 255, .3); }
.footer .logo-badge { width: 60px; height: 60px; }
.phone-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* =========================================================
   Version arabe (de droite à gauche)
   ========================================================= */
[dir="rtl"] { --serif: "Noto Naskh Arabic", "Amiri", serif; --sans: "IBM Plex Sans Arabic", "Segoe UI", sans-serif; }
[dir="rtl"] body { font-family: var(--sans); line-height: 1.8; }
[dir="rtl"] * { letter-spacing: 0 !important; }
[dir="rtl"] em { font-style: normal; }
[dir="rtl"] .title-xl, [dir="rtl"] .title-lg, [dir="rtl"] .manifesto, [dir="rtl"] .hero__title { line-height: 1.25; font-weight: 600; }
[dir="rtl"] .hero__title { font-size: clamp(52px, 8.4vw, 136px); line-height: 1.15; }
[dir="rtl"] .hero__title .line { padding-bottom: .12em; }
[dir="rtl"] .hero__title em { padding: 0 0 0 .08em; background: linear-gradient(260deg, #fff 0%, var(--accent-soft) 40%, var(--accent) 75%); -webkit-background-clip: text; background-clip: text; }
[dir="rtl"] .manifesto { line-height: 1.35; }
[dir="rtl"] .kicker { letter-spacing: 0; font-size: 14px; }
[dir="rtl"] .nav__name small, [dir="rtl"] .exam h3 small { font-size: 13px; }
[dir="rtl"] .nav__brand { margin-right: 0; margin-left: auto; }
[dir="rtl"] .eyebrow { padding: 8px 12px 8px 16px; }
[dir="rtl"] .chip--eeg { left: auto; right: -18%; }
[dir="rtl"] .chip--emg { right: auto; left: -10%; }
[dir="rtl"] .hero__scroll { left: auto; right: var(--gutter); }
[dir="rtl"] .marquee__track { animation-name: slideRtl; }
@keyframes slideRtl { to { transform: translateX(50%); } }
[dir="rtl"] .pillar { padding: 36px 0 0 36px; }
[dir="rtl"] .pillar + .pillar { padding-left: 36px; padding-right: 36px; border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .ticks li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .ticks li::before { left: auto; right: 0; }
[dir="rtl"] .tile { text-align: right; }
[dir="rtl"] .tile__go { transform: translateX(6px); }
[dir="rtl"] .tile:hover .tile__go, [dir="rtl"] .tile--lg .tile__go { transform: none; }
[dir="rtl"] .aura { right: auto; left: -12%; transform: scaleX(-1); }
[dir="rtl"] .mcard, [dir="rtl"] .reel { text-align: right; }
[dir="rtl"] .play { right: auto; left: 16px; }
[dir="rtl"] .reel .play { left: 12px; }
[dir="rtl"] .reel__lang { left: auto; right: 12px; }
[dir="rtl"] .tcard__big { left: 70px; right: 20px; }
[dir="rtl"] .cong__n { left: auto; right: 22px; }
[dir="rtl"] .urgence::before { left: auto; right: 0; }
[dir="rtl"] .accordion summary { padding: 28px 0 28px 56px; }
[dir="rtl"] .accordion summary::after, [dir="rtl"] .accordion summary::before { right: auto; left: 8px; }
[dir="rtl"] .bigphone { direction: ltr; text-align: right; font-family: "Manrope", sans-serif; font-weight: 500; font-size: clamp(52px, 10.5vw, 176px); }
[dir="rtl"] .bigphone span:last-child { font-style: normal; }
[dir="rtl"] .exam__hud { direction: ltr; }
[dir="rtl"] .hours li span:last-child { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .hours li.is-today span:first-child::before { content: "● "; }
[dir="rtl"] .hint-line { order: 0; }
[dir="rtl"] .player__close { right: auto; left: 0; }
@media (max-width: 860px) {
  [dir="rtl"] .hero__portrait { justify-self: start; margin-left: 0; margin-right: 4%; }
  [dir="rtl"] .chip--eeg { right: auto; left: -62%; }
  [dir="rtl"] .chip--emg { left: -58%; right: auto; }
  [dir="rtl"] .pillar, [dir="rtl"] .pillar + .pillar { padding: 30px 0; border-right: 0; }
}
.card--glass .small-phone { font-size: 16px; color: #c9cfdd; margin: -6px 0 22px; }
.card--glass .small-phone a { color: #fff; text-decoration: none; font-weight: 600; }
.card--glass .small-phone a:hover { color: var(--accent-soft); }

/* =========================================================
   Mobile : animations allégées
   ========================================================= */
.duo.is-live img { filter: none; }
.duo.is-live::before { opacity: 0; }
@media (max-width: 860px) {
  /* le cerveau ne couvre que le premier écran (moins de pixels à dessiner) */
  .hero__canvas { height: 100svh; bottom: auto; }
  /* les flous d'arrière-plan sont coûteux sur téléphone : fonds opaques à la place */
  .marquee, .chip, .eyebrow { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .chip { background: rgba(13, 20, 40, .92); }
  .marquee { background: rgba(7, 11, 22, .85); }
  .hero__grain { display: none; }
  .marquee__track { animation-duration: 34s; }
  .mcard, .tile, .reel__img img, .cong__img img { will-change: auto; }
}
@media (hover: none) {
  .tile:hover, .mcard:hover { transform: none; }
  .tile:active { transform: scale(.98); }
  .mcard:active, .reel:active { transform: scale(.98); transition-duration: .15s; }
}
@media (max-width: 560px) {
  .nav { gap: 10px; }
  .nav .logo-badge { width: 40px; height: 40px; }
  .nav__brand { gap: 9px; min-width: 0; }
  .nav__name { font-size: 13.5px; line-height: 1.15; }
  .nav__name small { font-size: 11px; }
  .nav .lang { height: 40px; padding: 0 10px; flex: none; }
  .nav__burger { width: 40px; height: 40px; flex: none; }
  .nav__burger span { left: 11px; right: 11px; }
  .nav__burger span:first-child { top: 15px; }
  .nav__burger span:last-child { top: 23px; }
  .nav__burger[aria-expanded="true"] span:first-child, .nav__burger[aria-expanded="true"] span:last-child { top: 19px; }
}

/* =========================================================
   Mobile : animations et mises en page dédiées
   ========================================================= */
.rail-progress { display: none; }
@media (max-width: 860px) {
  /* Carrousel « À l'antenne » : la carte centrale est mise en avant */
  .antenne__track { padding-block: 10px; }
  .antenne__track .mcard { transform: scale(.92); opacity: .5; transition: transform .55s var(--ease), opacity .55s var(--ease), border-color .4s; }
  .antenne__track .mcard.is-live { transform: none; opacity: 1; border-color: rgba(224, 49, 63, .55); }
  .rail-progress { display: block; height: 2px; margin: 22px var(--gutter) 0; background: var(--line-night); border-radius: 2px; overflow: hidden; }
  .rail-progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(.08); transition: transform .2s linear; }
  [dir="rtl"] .rail-progress span { transform-origin: 100% 50%; }
  .antenne__hint { margin-top: 16px; }

  /* Filtres des capsules : une seule ligne qui défile au doigt */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; scroll-padding-inline: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .js .reel { opacity: 0; }
  .no-anim .reel { opacity: 1; }

  /* Pastilles du hero masquées jusqu'à leur entrée animée */
  .js .chip { opacity: 0; }
  .no-anim .chip { opacity: 1; }
}
@media (max-width: 560px) {
  /* Domaines : grille compacte sur 2 colonnes, la migraine en pleine largeur */
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 10px; }
  .tile { min-height: 0; padding: 18px 16px 18px; gap: 6px; border-radius: 18px; }
  .tile--lg, .tile--wide { grid-column: 1 / -1; }
  .tile--lg { min-height: 300px; padding: 24px 22px; }
  .tile__icon { width: 40px; height: 40px; border-radius: 12px; }
  .tile__t { font-size: 21px; margin-top: 14px; }
  .tile:not(.tile--lg):not(.tile--wide) .tile__d { display: none; }
  .tile__go { font-size: 12px; }
  .js .tile { opacity: 0; }
  .no-anim .tile { opacity: 1; }
}
@media (max-width: 560px) {
  .aura { width: 62%; top: -12%; right: -16%; }
  [dir="rtl"] .aura { right: auto; left: -16%; }
  .tile--lg .tile__d { max-width: 82%; }
}
