/* ============================================================
   MODÈLE — Base de design réutilisable
   Design tokens + composants (nav, boutons, cards, hero, footer)
   Copie ce fichier tel quel dans un nouveau projet et change
   uniquement les variables de :root pour retinter le site.
   ============================================================ */

:root {
  /* --- Couleurs de marque (à changer par projet) --- */
  --accent: #7C5CDB;
  --accent-2: #C94F82;
  --accent-soft: rgba(124, 92, 219, .14);

  /* --- Neutres (thème clair de lucasriche.com : papier chaud, encre violet nuit) --- */
  --ink: #211C30;
  --ink-soft: #6B6480;
  --ink-faint: #8A849A;
  --paper: #FFFFFF;
  --paper-soft: #F7F4FA;
  --paper-alt: #E7E2EE;
  --border: #E1DCE9;

  /* --- Échelle --- */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(15,15,20,.06), 0 1px 1px rgba(15,15,20,.04);
  --shadow-md: 0 16px 40px -18px rgba(15,15,20,.25);
  --shadow-glow: 0 20px 60px -20px var(--accent-soft);

  --ff-heading: 'Poppins', 'Inter', sans-serif;
  --ff-body: 'Inter', sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .45s;

  color-scheme: light;
}

html[data-theme="dark"] {
  --ink: #FFF1D2;
  --ink-soft: #D9C7A0;
  --ink-faint: #94835F;
  --paper: #17100A;
  --paper-soft: #20170D;
  --paper-alt: #2A1E10;
  --border: #3A2B16;
  --accent-soft: rgba(242, 168, 18, .2);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { max-width: 100%; }
html { overflow-x: hidden; }
/* body en « clip » (et non « hidden ») : même coupe des débordements, mais sans créer de conteneur de scroll,
   ce qui garde position: sticky et les animations pilotées par le scroll (animation-timeline) rattachées à la page */
body { overflow-x: hidden; }
@supports (overflow: clip) { body { overflow-x: clip; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -.02em;
}

p { color: var(--ink-soft); margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
section { position: relative; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.line { height: 10px; background: var(--paper-alt); border-radius: 6px; margin-bottom: 10px; }
.line.w-40 { width: 40%; }
.line.w-55 { width: 55%; }
.line.w-70 { width: 70%; }
.line.w-80 { width: 80%; }

.demo-tint {
  padding: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--ff-body);
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.btn:active { transform: scale(.97); }

.btn-primary {
  color: var(--btn-fg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 30px -12px var(--accent-soft);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-120%) skewX(-15deg);
  transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -14px var(--accent-soft); }
.btn-primary:hover::before { transform: translateX(120%) skewX(-15deg); }

.btn-outline {
  color: var(--ink);
  background: transparent;
  border-color: var(--border);
}
.btn-outline::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .35s var(--ease);
  border-radius: inherit;
}
.btn-outline:hover { color: var(--paper); border-color: var(--ink); }
.btn-outline:hover::after { transform: translateY(0); }

.btn-ghost {
  color: var(--ink);
  background: transparent;
  padding-inline: 4px;
  border-radius: 0;
}
.btn-ghost span { position: relative; }
.btn-ghost span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.btn-ghost:hover span::after { transform: scaleX(1); transform-origin: left; }

.btn-icon {
  width: 52px; height: 52px;
  padding: 0;
  border-radius: 50%;
  background: var(--paper-alt);
  color: var(--ink);
}
.btn-icon:hover { background: var(--ink); color: var(--paper); transform: rotate(45deg); }

.btn-pill-cta {
  background: var(--paper-alt);
  color: var(--ink);
  padding-right: 8px;
}
.btn-pill-cta .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  transition: transform .4s var(--ease);
}
.btn-pill-cta:hover .arrow { transform: translateX(4px) rotate(45deg); }

.btn-magnetic {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   NAVIGATION — deux variantes démontrées dans des "frames"
   ============================================================ */

.device-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--paper-soft);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  container-type: inline-size;
}
.device-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--border);
}
.device-frame__bar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border);
}
.device-frame__fullscreen-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.device-frame__fullscreen-btn:hover { color: var(--accent); background: var(--accent-soft); }
.device-frame__scroll {
  height: 440px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

.demo-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
  padding: 16px 24px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
html[data-theme="dark"] .demo-nav { background: rgba(16,14,23,.7); }
.device-frame__scroll.is-scrolled .demo-nav { border-color: var(--border); }

.demo-nav__logo {
  font-family: var(--ff-heading);
  font-weight: 700;
  letter-spacing: -.01em;
}
.demo-nav__links {
  display: flex;
  gap: 28px;
  font-size: .9rem;
  font-weight: 500;
}
.demo-nav__links a { position: relative; padding-bottom: 4px; }
.demo-nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.demo-nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.demo-nav--centered { justify-content: space-between; }

.demo-nav--badge { margin-top: 30px; padding-left: 20px; }
.demo-nav__badge {
  position: absolute;
  left: 20px;
  top: 0;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.15rem;
  border: 4px solid var(--paper);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.demo-nav__burger {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  cursor: pointer;
  background: transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.demo-nav__burger:hover { border-color: var(--accent); background: var(--accent-soft); }
.demo-nav__burger span {
  display: block; width: 16px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.demo-nav__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.demo-nav__burger.is-open span:nth-child(2) { opacity: 0; }
.demo-nav__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.demo-overlay {
  position: absolute;
  inset: 0;
  top: 64px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  z-index: 4;
}
.demo-overlay.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.demo-overlay a {
  font-family: var(--ff-heading);
  font-size: 1.6rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.demo-overlay.is-open a { opacity: 1; transform: translateY(0); }
.demo-overlay.is-open a:nth-child(1) { transition-delay: .05s; }
.demo-overlay.is-open a:nth-child(2) { transition-delay: .12s; }
.demo-overlay.is-open a:nth-child(3) { transition-delay: .19s; }
.demo-overlay.is-open a:nth-child(4) { transition-delay: .26s; }

.demo-filler {
  padding: 60px 24px;
}
.demo-filler h4 { font-size: 1.5rem; margin-bottom: 10px; }
.demo-filler p { max-width: 420px; margin-bottom: 18px; }
.demo-filler .line { height: 10px; background: var(--paper-alt); border-radius: 6px; margin-bottom: 10px; }
.demo-filler .line:nth-child(2) { width: 80%; }

/* ============================================================
   CARDS
   ============================================================ */

.grid {
  display: grid;
  gap: 24px;
}
.grid > * { min-width: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .1s linear, box-shadow .4s var(--ease), border-color .4s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-md); }

.card__media {
  height: 160px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  position: relative;
  overflow: hidden;
}
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.4), transparent 60%);
}
.card__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.card__title { font-size: 1.15rem; margin-bottom: 8px; }
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}
.card__arrow {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.card:hover .card__arrow { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Feature cards (icon based) */
.feature {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--border);
}
.feature__icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.2rem;
}
.feature h4 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { font-size: .92rem; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="1"] { transition-delay: .05s; }
[data-reveal="2"] { transition-delay: .15s; }
[data-reveal="3"] { transition-delay: .25s; }

.gradient-text {
  background: linear-gradient(100deg, var(--ink), var(--accent) 45%, var(--accent-2) 60%, var(--ink));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 6s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee 22s linear infinite;
}
.marquee__track span {
  font-family: var(--ff-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink-faint);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 48px;
}
.marquee__track span::after { content: "✦"; color: var(--accent); font-size: 1rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tilt-card {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--paper-soft), var(--paper-alt));
  border: 1px solid var(--border);
  transform: perspective(800px) rotateX(0) rotateY(0);
  transition: transform .1s linear;
}

.loader {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader-dots { display: flex; gap: 8px; align-items: center; }
.loader-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 1.2s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: .15s; }
.loader-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(.6); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}

.anim-box {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-height: 180px;
  justify-content: center;
}

/* ============================================================
   HERO TEMPLATES
   ============================================================ */

.hero-split {
  padding: 110px 0 90px;
  overflow: hidden;
}
.hero-split .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .hero-split .container { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .hero-split { padding: 70px 0 50px; }
  .hero-center { padding: 80px 0 60px; }
  .hero-visual { height: 280px; margin-top: 20px; }
}

.hero-split h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  margin: 18px 0 20px;
}
.hero-split p { font-size: 1.08rem; max-width: 480px; margin-bottom: 34px; }
.hero-split__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  height: 420px;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .55;
  animation: blobFloat 9s ease-in-out infinite;
}
.blob--a { width: 260px; height: 260px; background: var(--accent); top: 0; right: 40px; }
.blob--b { width: 220px; height: 220px; background: var(--accent-2); bottom: 10px; left: 20px; animation-delay: -3s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-16px, 18px) scale(1.08); }
}
.hero-visual__card {
  position: absolute;
  inset: 40px 20px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-visual__card .line { height: 10px; border-radius: 6px; background: var(--paper-alt); }
.hero-visual__card .line.short { width: 55%; }
.hero-visual__stat {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.hero-visual__stat b { font-family: var(--ff-heading); font-size: 1.4rem; }

.hero-center {
  padding: 130px 0 110px;
  text-align: center;
}
.hero-center h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 22px auto 22px;
  max-width: 900px;
}
.hero-center p { max-width: 560px; margin: 0 auto 36px; font-size: 1.1rem; }
.hero-center__scroll {
  margin-top: 60px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-center__scroll .stick {
  width: 1px; height: 34px;
  background: linear-gradient(var(--accent), transparent);
  animation: stickMove 1.6s ease-in-out infinite;
}
@keyframes stickMove {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 70px 0 30px;
}
html[data-theme="dark"] .site-footer { background: var(--paper-alt); }
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 760px) { .site-footer .container { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.85); font-size: .92rem; transition: color .3s var(--ease), padding-left .3s var(--ease); }
.site-footer a:hover { color: var(--accent-2); padding-left: 4px; }
.site-footer__bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}

.footer-minimal {
  background: var(--paper-soft);
  border-top: 1px solid var(--border);
  padding: 30px 0;
}
.footer-minimal .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-minimal__links { display: flex; gap: 22px; font-size: .88rem; color: var(--ink-soft); }
.footer-minimal__links a:hover { color: var(--accent); }
.footer-minimal__social { display: flex; gap: 10px; }
.footer-minimal__social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.footer-minimal__social a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.footer-newsletter {
  background: var(--paper-alt);
  border-radius: var(--radius-lg);
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-newsletter h3 { font-size: 1.6rem; margin-bottom: 8px; }
.footer-newsletter p { max-width: 380px; }
.footer-newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-newsletter__form input {
  padding: 14px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: .92rem;
  min-width: 220px;
}
.footer-newsletter__form input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================================================
   BOUTONS — variantes supplémentaires
   ============================================================ */

.btn-glass {
  color: var(--ink);
  background: rgba(255,255,255,.35);
  border-color: rgba(255,255,255,.5);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 8px 24px -12px rgba(15,15,20,.25);
}
html[data-theme="dark"] .btn-glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: var(--ink); }
.btn-glass:hover { background: rgba(255,255,255,.5); transform: translateY(-2px); }
html[data-theme="dark"] .btn-glass:hover { background: rgba(255,255,255,.14); }

.btn-neu {
  background: var(--paper-soft);
  color: var(--ink);
  border: none;
  box-shadow: 7px 7px 14px rgba(15,15,20,.10), -7px -7px 14px rgba(255,255,255,.7);
}
html[data-theme="dark"] .btn-neu { box-shadow: 7px 7px 14px rgba(0,0,0,.5), -7px -7px 14px rgba(255,255,255,.03); }
.btn-neu:hover { box-shadow: 3px 3px 8px rgba(15,15,20,.10), -3px -3px 8px rgba(255,255,255,.7); }
.btn-neu:active { box-shadow: inset 4px 4px 8px rgba(15,15,20,.12), inset -4px -4px 8px rgba(255,255,255,.7); }

.btn-gradient-border {
  background: transparent;
  border: none;
  padding: 2px;
}
.btn-gradient-border-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
}
.btn-gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent));
  animation: spinBorder 3s linear infinite;
  z-index: -1;
}
@keyframes spinBorder { to { transform: rotate(360deg); } }

.btn-loading { min-width: 150px; }
.btn-loading .btn-loading__spinner {
  display: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.btn-loading.is-loading .btn-loading__label { display: none; }
.btn-loading.is-loading .btn-loading__spinner { display: inline-block; }
.btn-loading.is-done { background: #16A34A; }

.btn-fab {
  width: 58px; height: 58px;
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 32px -12px var(--accent-soft);
}
.btn-fab svg { width: 22px; height: 22px; }
.btn-fab:hover { transform: scale(1.08) rotate(90deg); }

.btn-like {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--paper-alt);
  color: var(--ink-faint);
  padding: 0;
}
.btn-like svg { width: 22px; height: 22px; }
.btn-like.is-liked { color: #E11D48; }
.btn-like.is-liked svg { fill: #E11D48; }
.btn-like.is-pulsing { animation: likePulse .5s var(--ease); }
@keyframes likePulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.split-btn { position: relative; display: inline-flex; border-radius: var(--radius-full); overflow: visible; box-shadow: var(--shadow-sm); }
.split-btn__main {
  padding: 14px 22px;
  border: none;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  cursor: pointer;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.split-btn__toggle {
  padding: 0 16px;
  border: none;
  border-left: 1px solid rgba(255,255,255,.3);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s var(--ease);
}
.split-btn__toggle svg { width: 16px; height: 16px; }
.split-btn.is-open .split-btn__toggle { transform: rotate(180deg); }
.split-btn__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg, 0 20px 40px -20px rgba(0,0,0,.3));
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 5;
}
.split-btn.is-open .split-btn__menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.split-btn__menu a { padding: 9px 12px; border-radius: var(--radius-sm); font-size: .88rem; color: var(--ink); text-decoration: none; }
.split-btn__menu a:hover { background: var(--paper-alt); }

.btn-copy svg { width: 16px; height: 16px; }
.btn-copy__icon-check { display: none; color: #16A34A; }
.btn-copy.is-copied .btn-copy__icon-copy { display: none; }
.btn-copy.is-copied .btn-copy__icon-check { display: inline-flex; }
.btn-copy.is-copied { border-color: #16A34A; color: #16A34A; }

.ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  transform: scale(0);
  animation: rippleGrow .6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleGrow { to { transform: scale(2.6); opacity: 0; } }

.toggle-switch {
  width: 52px; height: 30px;
  border-radius: var(--radius-full);
  border: none;
  padding: 3px;
  background: var(--paper-alt);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .25s var(--ease);
}
.toggle-switch__thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease);
}
.toggle-switch.is-on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.toggle-switch.is-on .toggle-switch__thumb { transform: translateX(22px); }

.btn-gradient-slide {
  color: #fff;
  background-image: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% 100%;
  background-position: 0% 0%;
  transition: background-position .5s var(--ease);
}
.btn-gradient-slide:hover { background-position: 100% 0%; }

/* Révélation radiale : le remplissage part du point exact où le
   curseur entre sur le bouton (--rx/--ry posés en JS), pas d'un coin
   fixe. --spread (calculé en JS = diagonale du bouton × 2.2) garantit
   que le cercle couvre tout le bouton quel que soit son format. */
.btn-radial {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-radial::before {
  content: "";
  position: absolute;
  top: var(--ry, 50%);
  left: var(--rx, 50%);
  width: 0; height: 0;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: width .5s var(--ease), height .5s var(--ease);
  z-index: -1;
}
.btn-radial:hover { color: #fff; }
.btn-radial:hover::before { width: var(--spread, 300px); height: var(--spread, 300px); }

/* Confettis emoji : chaque particule est un <span> jeté en JS au clic,
   qui part en arc via cos()/sin() sur l'angle tiré au hasard, puis
   s'auto-détruit à la fin de l'animation (voir script.js). */
.emoji-particle {
  position: absolute;
  top: 50%; left: 50%;
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  animation: emojiBurst .9s ease-out forwards;
}
@keyframes emojiBurst {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 1; }
  100% {
    transform:
      translate(
        calc(-50% + cos(var(--angle)) * var(--distance)),
        calc(-50% + sin(var(--angle)) * var(--distance))
      )
      rotate(var(--spin, 180deg)) scale(.5);
    opacity: 0;
  }
}

/* Texte qui glisse verticalement au survol (hauteurs en px, pas en %,
   pour que translateY(-52px) corresponde exactement à une ligne —
   voir la mésaventure du séparateur "vague" plus haut dans ce fichier
   pour la raison de se méfier des % sur une transform). */
.btn-slide-up {
  position: relative;
  overflow: hidden;
  align-items: flex-start;
  height: 52px;
  padding: 0 26px;
  background: var(--paper-alt);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-slide-up__row { display: block; transition: transform .4s var(--ease); }
.btn-slide-up__row span { display: block; height: 52px; line-height: 52px; white-space: nowrap; }
.btn-slide-up:hover .btn-slide-up__row { transform: translateY(-52px); }

/* Contour qui se dessine au survol (stroke-dashoffset). */
.btn-draw-border {
  position: relative;
  background: transparent;
  border: none;
  color: var(--ink);
}
.btn-draw-border__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.btn-draw-border__svg rect {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  transition: stroke-dashoffset .6s var(--ease);
}
.btn-draw-border:hover .btn-draw-border__svg rect { stroke-dashoffset: 0; }

/* Texte défilant au survol, façon studio brutaliste/typographique :
   4 copies identiques, on anime -50% (= exactement les 2 premières)
   pour une boucle sans à-coup. Au repos, overflow:hidden ne montre
   que la 1ère copie. */
.btn-marquee-hover { overflow: hidden; width: 168px; justify-content: flex-start; }
.btn-marquee-hover__track { display: flex; gap: 20px; white-space: nowrap; }
.btn-marquee-hover:hover .btn-marquee-hover__track { animation: btnMarquee 3s linear infinite; }
@keyframes btnMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Bouton grain/texture, esthétique sombre et brutaliste : un bruit
   SVG (feTurbulence) en surimpression, qui dérive légèrement au
   survol — inspiré des sites "dark" / "brutalist" du type de ceux
   que met en avant Httpster. */
.btn-noise {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #111827;
  color: #fff;
  border: none;
  transition: letter-spacing .4s var(--ease);
}
.btn-noise::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -1;
  opacity: .25;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transition: transform .4s var(--ease);
}
.btn-noise:hover { letter-spacing: .03em; }
.btn-noise:hover::before { transform: translate(-4%, 3%) scale(1.05); }

.btn-liquid {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
}
.btn-liquid::before {
  content: "";
  position: absolute;
  left: -10%; right: -10%;
  top: 100%;
  height: 150%;
  z-index: -1;
  background: linear-gradient(var(--accent), var(--accent-2));
  border-radius: 45% 45% 0 0 / 18% 18% 0 0;
  transform: translateY(0);
  transition: transform .45s var(--ease);
}
.btn-liquid span { position: relative; transition: color .45s var(--ease); }
.btn-liquid:hover { border-color: transparent; }
.btn-liquid:hover::before { transform: translateY(-100%); }
.btn-liquid:hover span { color: #fff; }

/* ============================================================
   NAVIGATION — variantes supplémentaires
   ============================================================ */

.demo-sidebar {
  display: grid;
  grid-template-columns: 200px 1fr;
  height: 440px;
}
.demo-sidebar > * { min-width: 0; }
.demo-sidebar__nav {
  background: var(--paper-alt);
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.demo-sidebar__brand {
  font-family: var(--ff-heading);
  font-weight: 700;
  margin-bottom: 18px;
  padding: 0 10px;
}
.demo-sidebar__nav a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.demo-sidebar__nav a:hover { background: var(--paper); color: var(--ink); }
.demo-sidebar__nav a.is-active { background: var(--accent); color: #fff; }
.demo-sidebar__content { padding: 30px; }

.demo-mega {
  position: relative;
}
.demo-mega__panel {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--paper);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 26px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 6;
}
.demo-mega__trigger { cursor: pointer; }
.demo-mega:hover .demo-mega__panel,
.demo-mega__trigger:focus + .demo-mega__panel { opacity: 1; pointer-events: auto; transform: translateY(0); }
.demo-mega__col h5 { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin-bottom: 10px; }
.demo-mega__col a { display: block; font-size: .86rem; padding: 5px 0; color: var(--ink-soft); }
.demo-mega__col a:hover { color: var(--accent); }

.demo-pill-nav {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: var(--paper-alt);
  border-radius: var(--radius-full);
  position: relative;
}
.demo-pill-nav a {
  position: relative;
  z-index: 1;
  padding: 9px 20px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--radius-full);
  transition: color .3s var(--ease);
}
.demo-pill-nav a.is-active { color: #fff; }
.demo-pill-nav__indicator {
  position: absolute;
  top: 5px; bottom: 5px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: left .35s var(--ease), width .35s var(--ease);
  z-index: 0;
}

.search-expand { display: flex; align-items: center; position: relative; }
.search-expand__input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: none;
  background: var(--paper-alt);
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-family: var(--ff-body);
  color: var(--ink);
  margin-right: 0;
  transition: width .3s var(--ease), opacity .2s var(--ease), padding .3s var(--ease), margin .3s var(--ease);
}
.search-expand.is-open .search-expand__input { width: 150px; opacity: 1; padding: 8px 14px; margin-right: 8px; }
.search-expand__btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-expand__btn:hover { background: var(--paper-alt); }
.search-expand__btn svg { width: 17px; height: 17px; }

.follow-nav { position: relative; display: flex; flex-wrap: wrap; gap: 16px 28px; font-size: .9rem; font-weight: 500; }
.follow-nav a { position: relative; padding-bottom: 4px; }
.follow-nav__bar {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: left .3s var(--ease), width .3s var(--ease), opacity .2s var(--ease);
  opacity: 0;
}
.follow-nav.is-active .follow-nav__bar { opacity: 1; }

.demo-nav--autohide { transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.demo-nav--autohide.is-hidden { transform: translateY(-100%); }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .88rem; flex-wrap: wrap; }
.breadcrumb a { position: relative; padding-bottom: 2px; color: var(--ink-soft); }
.breadcrumb a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb a:hover::after { transform: scaleX(1); transform-origin: left; }
.breadcrumb__sep { color: var(--ink-faint); }
.breadcrumb__current { color: var(--ink); font-weight: 600; }

/* Aperçu flottant au survol d'un lien, façon "link preview" : une
   vignette suit le curseur (position posée en JS) et penche légèrement
   selon la direction du mouvement (--tilt, aussi posé en JS). */
.hover-preview-thumb {
  position: absolute;
  width: 92px; height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  pointer-events: none;
  opacity: 0;
  box-shadow: var(--shadow-md);
  transform: translate(-50%, -50%) scale(.85) rotate(var(--tilt, -4deg));
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 10;
}
.hover-preview-thumb.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(var(--tilt, -4deg)); }

/* Poids de police au survol : une copie en gras se superpose en fondu
   sur le lien normal — évite d'avoir à charger une police variable
   juste pour cet effet. */
.weight-hover { position: relative; }
.weight-hover::before {
  content: attr(data-label);
  position: absolute;
  left: 0; top: 0;
  font-weight: 800;
  color: var(--accent);
  opacity: 0;
  white-space: nowrap;
  transition: opacity .3s var(--ease);
}
.weight-hover:hover::before { opacity: 1; }

/* ============================================================
   TAB BAR (mobile / segmented / onglets)
   ============================================================ */

.phone-frame {
  width: 300px;
  margin-inline: auto;
  border-radius: 40px;
  border: 10px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
html[data-theme="dark"] .phone-frame { border-color: #3A3648; }
.phone-frame__screen {
  height: 480px;
  position: relative;
  background: var(--paper-soft);
  display: flex;
  flex-direction: column;
}
.phone-frame__body { flex: 1; padding: 24px 18px; overflow: hidden; }
.phone-frame__body h4 { font-size: 1.2rem; margin-bottom: 10px; }

.tabbar {
  display: flex;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 6px 16px;
}
html[data-theme="dark"] .tabbar { background: rgba(16,14,23,.85); }
.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: .66rem;
  font-weight: 600;
  color: var(--ink-faint);
  padding: 6px 0;
  border-radius: var(--radius-sm);
  transition: color .3s var(--ease);
}
.tabbar__item .icon { font-size: 1.15rem; transition: transform .3s var(--ease); }
.tabbar__item.is-active { color: var(--accent); }
.tabbar__item.is-active .icon { transform: translateY(-3px) scale(1.1); }
.tabbar__item.is-active::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  margin-bottom: 1px;
}

/* Variante flottante : bar détachée du bord, ombre portée */
.tabbar--floating {
  margin: 0 14px 14px;
  border-top: none;
  border-radius: var(--radius-full);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  padding: 10px 8px;
}
html[data-theme="dark"] .tabbar--floating { background: var(--paper-alt); }

/* Variante bouton central : l'action principale surélevée au-dessus de la barre */
.tabbar__item--fab .icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 26px -10px var(--accent-soft);
  transform: translateY(-14px);
}

/* Variante verre : flou et dégradé translucide */
.tabbar--glass {
  background: linear-gradient(120deg, rgba(124,58,237,.4), rgba(168,85,247,.28));
  border-top: 1px solid rgba(255,255,255,.25);
}
.tabbar--glass .tabbar__item { color: rgba(255,255,255,.75); }
.tabbar--glass .tabbar__item.is-active { color: #fff; }
.tabbar--glass .tabbar__item.is-active::before { background: #fff; }

/* Variante dégradé vif : couleurs franches, icônes blanches */
.tabbar--gradient {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  border-top: none;
}
.tabbar--gradient .tabbar__item { color: rgba(255,255,255,.7); }
.tabbar--gradient .tabbar__item.is-active { color: #fff; }
.tabbar--gradient .tabbar__item.is-active::before { background: #fff; }

.segmented {
  display: flex;
  position: relative;
  background: var(--paper-alt);
  border-radius: var(--radius-full);
  padding: 4px;
}
.segmented__option {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--radius-full);
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.segmented__option.is-active { color: var(--ink); }
.segmented__thumb {
  position: absolute;
  top: 4px; bottom: 4px;
  border-radius: var(--radius-full);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: left .3s var(--ease), width .3s var(--ease);
}

.top-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--border);
}
.top-tabs__item {
  padding: 12px 2px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-faint);
  position: relative;
  cursor: pointer;
}
.top-tabs__item.is-active { color: var(--ink); }
.top-tabs__item.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
}

/* ============================================================
   CARDS — variantes supplémentaires
   ============================================================ */

.card-glass {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 20px 50px -24px rgba(15,15,20,.3);
}
html[data-theme="dark"] .card-glass { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }

.pricing-card {
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--paper);
  position: relative;
}
.pricing-card--featured { border-color: var(--accent); box-shadow: 0 20px 50px -24px var(--accent-soft); }
.pricing-card__badge {
  position: absolute;
  top: -12px; left: 32px;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pricing-card__price { font-family: var(--ff-heading); font-size: 2.4rem; margin: 14px 0 4px; }
.pricing-card__price span { font-size: .95rem; color: var(--ink-faint); font-family: var(--ff-body); font-weight: 500; }
.pricing-card ul { list-style: none; margin: 22px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; color: var(--ink-soft); }
.pricing-card li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.pricing-card .btn { width: 100%; }

.testimonial-card {
  padding: 30px;
  border-radius: var(--radius-md);
  background: var(--paper-soft);
  border: 1px solid var(--border);
}
.testimonial-card__stars { color: #F5A623; font-size: .9rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p { color: var(--ink); font-size: 1rem; margin-bottom: 22px; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.testimonial-card__author b { display: block; font-size: .9rem; }
.testimonial-card__author span { font-size: .8rem; color: var(--ink-faint); }

.profile-card { padding: 28px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--paper); text-align: center; }
.profile-card__avatar {
  width: 74px; height: 74px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.profile-card h4 { font-size: 1.05rem; }
.profile-card span { display: block; font-size: .85rem; color: var(--ink-faint); margin-top: 4px; margin-bottom: 16px; }
.profile-card__social { display: flex; justify-content: center; gap: 10px; }
.profile-card__social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.profile-card__social a:hover { background: var(--ink); color: var(--paper); }

.stat-card {
  padding: 30px;
  border-radius: var(--radius-md);
  background: var(--paper-soft);
  border: 1px solid var(--border);
}
.stat-card__value { font-family: var(--ff-heading); font-size: 2.6rem; color: var(--accent); }
.stat-card__label { font-size: .88rem; color: var(--ink-faint); margin-top: 6px; }

.zoom-card { border-radius: var(--radius-md); overflow: hidden; position: relative; height: 260px; }
.zoom-card img,
.zoom-card__media {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: transform .6s var(--ease);
}
.zoom-card:hover .zoom-card__media { transform: scale(1.12); }
.zoom-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.65), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.zoom-card__overlay h4 { color: #fff; font-size: 1.1rem; }

/* ============================================================
   ANIMATIONS — variantes supplémentaires
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 100;
  transition: width .1s linear;
}

.spotlight-box {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 40px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  min-height: 200px;
}
.spotlight-box::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  opacity: 0;
  transform: translate(-50%, -50%);
  left: var(--x, 50%);
  top: var(--y, 50%);
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.spotlight-box:hover::before { opacity: .5; }
.spotlight-box p { position: relative; color: rgba(255,255,255,.7); }
.spotlight-box h3 { position: relative; color: #fff; margin-bottom: 10px; }

.skeleton { border-radius: var(--radius-sm); background: var(--paper-alt); position: relative; overflow: hidden; }
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: shimmer 1.6s infinite;
}
html[data-theme="dark"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skeleton-row { display: flex; gap: 16px; align-items: center; }
.skeleton-avatar { width: 54px; height: 54px; border-radius: 50%; flex: 0 0 auto; }
.skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line { height: 12px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-90 { width: 90%; }

.split-text span { display: inline-block; opacity: 0; transform: translateY(.4em); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.split-text.is-visible span { opacity: 1; transform: translateY(0); }

.counter { font-family: var(--ff-heading); font-size: 2.6rem; color: var(--ink); }

.typewriter {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  min-height: 1.6em;
}
.typewriter::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--ink);
  margin-left: 2px;
  vertical-align: -2px;
  animation: caretBlink .9s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.parallax-box {
  position: relative;
  width: 100%;
  max-width: 220px;
  height: 170px;
  border-radius: var(--radius-md);
  background: var(--paper-alt);
  overflow: hidden;
}
.parallax-layer {
  position: absolute;
  border-radius: 50%;
  opacity: .88;
  transition: transform .15s ease-out;
}

.confetti-stage { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti-piece { position: absolute; top: 50%; left: 50%; width: 8px; height: 14px; border-radius: 2px; opacity: 0; }
@keyframes confettiPop {
  0% { transform: translate(-50%, -50%) rotate(0deg); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--rot)); opacity: 0; }
}

.cursor-follow-zone {
  position: relative;
  width: 100%;
  height: 170px;
  border-radius: var(--radius-md);
  background: var(--paper-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: none;
}
.cursor-follow-dot {
  position: absolute;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .2s var(--ease), height .2s var(--ease), background .2s var(--ease);
  z-index: 2;
}
.cursor-follow-dot.is-hover { width: 44px; height: 44px; background: var(--accent-soft); }

.glitch-text { position: relative; display: inline-block; font-family: var(--ff-heading); font-size: 1.5rem; color: var(--ink); }
.glitch-text::before, .glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--paper-soft);
  overflow: hidden;
  opacity: 0;
}
.glitch-text::before { color: #EF4444; left: -2px; }
.glitch-text::after { color: #0EA5E9; left: 2px; }
.glitch-text:hover::before { opacity: .8; animation: glitchShift .4s steps(2) infinite; }
.glitch-text:hover::after { opacity: .8; animation: glitchShift .4s steps(2) infinite reverse; }
@keyframes glitchShift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-2px, 1px); }
  100% { transform: translate(2px, -1px); }
}

.ring-progress {
  --pct: 0;
  position: relative;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--paper-alt) 0);
  transition: background .2s linear;
}
.ring-progress__inner {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--paper-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================================
   HERO — variantes supplémentaires
   ============================================================ */

.hero-app { padding: 100px 0; overflow: hidden; }
.hero-app .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: center;
}
@media (max-width: 860px) { .hero-app .container { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.hero-app h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 16px 0 18px; }
.hero-app p { max-width: 420px; margin-bottom: 30px; }
.hero-app__stores { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-app__store {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
}

.hero-bg {
  position: relative;
  padding: 140px 0;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink), #2A1F44);
  color: #fff;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 55%),
              radial-gradient(circle at 75% 75%, rgba(168,85,247,.25), transparent 55%);
}
.hero-bg .container { position: relative; }
.hero-bg h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 18px auto; max-width: 820px; color: #fff; }
.hero-bg p { max-width: 540px; margin: 0 auto 32px; color: rgba(255,255,255,.7); }

/* ============================================================
   NAV — comportement au scroll (toujours visible / se cache / se réduit)
   Enveloppe autour d'une barre de nav existante (demo-nav, liquid-nav…),
   pilotée par data-scroll-behavior + les classes is-nav-hidden /
   is-nav-compact posées en JS selon le sens du scroll.
   ============================================================ */
.page-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  transition: transform .32s var(--ease);
}
.page-nav--hide.is-nav-hidden { transform: translateY(-100%); }

/* On ne touche qu'à la largeur (max-width + centrage), jamais à la
   hauteur (padding/margin vertical) : un changement de hauteur du
   contenu qui défile déclenche un "scroll anchoring" du navigateur —
   la barre se réduit, le contenu se décale d'un pixel, ce qui redéclenche
   un scroll, qui annule la réduction, etc. en boucle infinie. Les liens
   ne doivent pas passer à la ligne à 420px (sinon même souci), d'où
   white-space + overflow sur les liens en mode compact. */
.page-nav--shrink .demo-nav,
.page-nav--shrink .liquid-nav-wrap {
  transition: max-width .32s var(--ease), border-radius .32s var(--ease), box-shadow .32s var(--ease);
}
.page-nav--shrink.is-nav-compact .demo-nav,
.page-nav--shrink.is-nav-compact .liquid-nav-wrap {
  max-width: 420px;
  margin-inline: auto;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}
.page-nav--shrink.is-nav-compact .demo-nav__links { flex-wrap: nowrap; }
.page-nav--shrink.is-nav-compact .demo-nav__links a { white-space: nowrap; }

.hero-photo {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding: 60px 0 56px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(11,11,15,0) 30%, rgba(11,11,15,.88) 100%),
    radial-gradient(circle at 22% 22%, rgba(255,183,120,.5), transparent 55%),
    radial-gradient(circle at 82% 12%, rgba(124,58,237,.5), transparent 50%),
    linear-gradient(150deg, #4A3B63, #241C38 55%, #100E17);
}
.hero-photo .container { position: relative; }
.hero-photo__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 22px;
}
.hero-photo h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 700px; color: #fff; margin-bottom: 14px; }
.hero-photo p { max-width: 500px; color: rgba(255,255,255,.8); margin-bottom: 30px; }
.hero-photo__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero bento grid : mosaïque asymétrique, une grande tuile + plusieurs petites */
.hero-bento { padding: 90px 0; }
.hero-bento h1 { max-width: 600px; margin-bottom: 10px; }
.hero-bento__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 120px;
  gap: 18px;
  margin-top: 40px;
}
.hero-bento__tile {
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--paper-soft);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.hero-bento__tile--big {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  justify-content: flex-end;
  border: none;
}
.hero-bento__tile--big h2 { font-size: 1.4rem; margin-bottom: 4px; }
.hero-bento__tile--big p { color: rgba(255,255,255,.85); }
.hero-bento__tile--accent { background: var(--accent-soft); border-color: transparent; }
.hero-bento__tile--dark { background: var(--ink); color: var(--paper); align-items: center; justify-content: center; font-weight: 600; border: none; }
.hero-bento__tile b { font-family: var(--ff-heading); font-size: 1.8rem; }
@media (max-width: 760px) {
  .hero-bento__grid { grid-template-columns: repeat(2, 1fr); }
  .hero-bento__tile--big { grid-column: span 2; }
}

/* Hero typographie cinétique : mot en contour qui se remplit au scroll
   (réutilise [data-reveal], déjà posé sur la section — zéro JS de plus) */
.hero-kinetic { padding: 110px 0; text-align: center; }
.hero-kinetic__word {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  margin: 18px 0 20px;
  transition: color 1.1s var(--ease);
}
[data-reveal].is-visible .hero-kinetic__word { color: var(--ink); }
.hero-kinetic p { max-width: 460px; margin: 0 auto; }

/* Hero fond vidéo plein cadre (dégradé animé en remplacement d'une vraie
   balise <video> — voir le texte d'aide affiché dans la démo) */
.hero-videobg { position: relative; min-height: 440px; display: flex; align-items: center; overflow: hidden; }
.hero-videobg__bg {
  position: absolute;
  inset: -10%;
  background: linear-gradient(120deg, #1a1a2e, #16213e, #0f3460);
  background-size: 200% 200%;
  animation: videoBgPan 14s ease-in-out infinite;
}
@keyframes videoBgPan {
  0%, 100% { background-position: 0% 50%; transform: scale(1.05); }
  50% { background-position: 100% 50%; transform: scale(1.15); }
}
.hero-videobg__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.hero-videobg__content { position: relative; z-index: 1; }
.hero-videobg__content h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 16px 0 16px; }
.hero-videobg__content p { max-width: 460px; margin-bottom: 26px; }
.hero-videobg__content code { background: rgba(255,255,255,.12); padding: 2px 6px; border-radius: 4px; font-size: .88em; }

/* ============================================================
   EFFETS "PIVOTANT AU SURVOL" & "SECOUSSE POUR ATTIRER L'ŒIL"
   ============================================================ */

/* Secousse périodique (pure CSS, sans JS) : un bref tremblement
   toutes les 4 secondes, pour attirer l'œil sans être agressif. */
@keyframes attentionShake {
  0%, 92%, 100% { transform: translateX(0) rotate(0); }
  93% { transform: translateX(-5px) rotate(-4deg); }
  94% { transform: translateX(5px) rotate(4deg); }
  95% { transform: translateX(-4px) rotate(-3deg); }
  96% { transform: translateX(4px) rotate(3deg); }
  97% { transform: translateX(-2px) rotate(-1deg); }
  98% { transform: translateX(2px) rotate(1deg); }
  99% { transform: translateX(0) rotate(0); }
}
.attention-shake {
  display: inline-block;
  transform-origin: center;
  animation: attentionShake 4s ease-in-out infinite;
}
.attention-shake:hover { animation-play-state: paused; }

/* Cloche qui sonne périodiquement */
@keyframes bellRing {
  0%, 90%, 100% { transform: rotate(0); }
  91%, 95%, 99% { transform: rotate(14deg); }
  93%, 97% { transform: rotate(-14deg); }
}
.bell-ring {
  display: inline-block;
  transform-origin: top center;
  animation: bellRing 4s ease-in-out infinite;
  transition: transform .3s var(--ease);
}
.bell-ring:hover { animation-play-state: paused; transform: rotate(18deg); }

.notif-dot {
  position: absolute;
  top: -3px; right: -3px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #E11D48;
  border: 2px solid var(--paper);
  animation: dotPulse 1.6s ease-in-out infinite;
}

/* Icône qui pivote à 360° au survol du déclencheur */
.spin-hover { transition: transform .6s var(--ease); }
.spin-trigger:hover .spin-hover { transform: rotate(360deg); }

/* Lien avec bascule verticale du texte au survol */
.flip-link { position: relative; display: inline-block; overflow: hidden; height: 1.3em; }
.demo-nav__links a.flip-link::after { display: none; }
.flip-link__inner { display: block; transition: transform .4s var(--ease); }
.flip-link:hover .flip-link__inner { transform: translateY(-1.3em); }
.flip-link__inner span { display: block; height: 1.3em; line-height: 1.3em; }
.flip-link__inner span:last-child { color: var(--accent); }

/* Bouton à bascule 3D (face avant / face arrière) */
.btn-flip {
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  height: 52px;
  min-width: 220px;
  cursor: pointer;
  perspective: 600px;
}
.btn-flip__inner {
  display: block;
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.btn-flip:hover .btn-flip__inner { transform: rotateX(180deg); }
.btn-flip__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 0 24px;
  white-space: nowrap;
}
.btn-flip__face--front { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn-flip__face--back { background: #16A34A; color: #fff; transform: rotateX(180deg); }

/* Carte à bascule 3D (face avant / face arrière) */
.flip-card { perspective: 1200px; height: 240px; }
.flip-card__inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s var(--ease);
}
.flip-card:hover .flip-card__inner { transform: rotateY(180deg); }
.flip-card__front, .flip-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
}
.flip-card__front { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.flip-card__back {
  background: var(--paper-soft);
  border: 1px solid var(--border);
  transform: rotateY(180deg);
  justify-content: center;
}

/* Badge promo/alerte, positionné sur une carte */
.promo-badge {
  position: absolute;
  top: -10px;
  left: 22px;
  z-index: 5;
  background: #E11D48;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 16px -8px rgba(225,29,72,.6);
}

/* Cartes en colonnes façon Pinterest (masonry via CSS columns, pas de JS) */
.masonry-grid { column-count: 3; column-gap: 16px; }
.masonry-card {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.masonry-card__label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink);
}
@media (max-width: 760px) { .masonry-grid { column-count: 2; } }

/* Carte avec halo radial qui suit le curseur */
.card-spotlight { position: relative; overflow: hidden; --mx: 50%; --my: 50%; }
.card-spotlight__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx) var(--my), var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.card-spotlight:hover .card-spotlight__glow { opacity: 1; }

/* ============================================================
   SÉPARATEURS DE SECTION — le "joint" entre deux blocs
   ============================================================ */

/* Placé juste après une section, chevauche son bas de --divider-h px
   (transparent : le fond de la section au-dessus reste visible) ; le SVG
   à l'intérieur est rempli de la couleur de la section suivante, ce qui
   donne l'illusion d'une forme découpée entre les deux. */
.section-divider {
  --divider-h: 70px;
  position: relative;
  height: var(--divider-h);
  margin-top: calc(-1 * var(--divider-h));
  pointer-events: none;
  line-height: 0;
}
.section-divider svg { display: block; width: 100%; height: 100%; }

/* Séparateur "Vague" : deux copies identiques du tracé, collées côte à
   côte dans un SVG deux fois plus large que .wave-track (qui, lui,
   fait exactement 100% du conteneur et porte l'animation — les % de
   translateX s'y calculent donc sur la largeur du conteneur, sans
   surprise). La 2e copie fournit naturellement la réserve visuelle :
   qu'on glisse un peu vers la gauche (va-et-vient) ou d'un plein
   tuile (continu), il y a toujours du motif identique pour combler,
   jamais de bord qui apparaît. Le niveau (composeur) pose
   --wave-amp/--wave-dur via une classe modificatrice ; "Fixe" coupe
   l'animation, et le sens (va-et-vient / continu) via une autre. */
.section-divider--wave { overflow: hidden; }
.section-divider.section-divider--wave .wave-track {
  width: 100%;
  height: 100%;
}
.section-divider.section-divider--wave .wave-track svg {
  display: block;
  width: 200%;
  height: 100%;
}
.section-divider.section-divider--wave.wave-dir--oscillate .wave-track { animation: waveDrift var(--wave-dur, 6s) ease-in-out infinite; }
.section-divider.section-divider--wave.wave-dir--continuous .wave-track { animation: waveScroll var(--wave-dur, 6s) linear infinite; }
.section-divider.section-divider--wave.wave-motion--soft .wave-track { --wave-amp: -4%; --wave-dur: 9s; }
.section-divider.section-divider--wave.wave-motion--medium .wave-track { --wave-amp: -8%; --wave-dur: 6s; }
.section-divider.section-divider--wave.wave-motion--strong .wave-track { --wave-amp: -14%; --wave-dur: 3.5s; }
.section-divider.section-divider--wave.wave-motion--off .wave-track { animation: none; }
@keyframes waveDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(var(--wave-amp, -8%)); }
}
@keyframes waveScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .section-divider.section-divider--wave .wave-track { animation: none; }
}

/* ============================================================
   NAVIGATION FLOTTANTE "LIQUID GLASS" — pilule semi-transparente avec
   flou d'arrière-plan (vu sur CamilleCab). Le passage bureau/mobile se
   fait via @container (largeur réelle du bloc), pas @media (largeur de
   l'écran) : le composant s'adapte pareil, qu'il soit dans une petite
   carte d'aperçu ou en pleine largeur sur une vraie page.
   ============================================================ */
.liquid-nav-wrap { position: relative; padding: 14px 16px 0; }
.liquid-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 10px 10px 20px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 10px 30px -10px rgba(15,15,20,.2), inset 0 1px 0 rgba(255,255,255,.6);
}
html[data-theme="dark"] .liquid-nav {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
}
.liquid-nav__logo { font-family: var(--ff-heading); font-weight: 700; white-space: nowrap; }
.liquid-nav__links { display: none; gap: 22px; font-size: .88rem; font-weight: 500; white-space: nowrap; }
.liquid-nav__links a:hover { color: var(--accent); }
.liquid-nav__cta.btn { display: none; padding: 9px 20px; font-size: .82rem; }
.liquid-nav .demo-nav__burger { flex-shrink: 0; }

.liquid-nav__mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 16px; right: 16px;
  z-index: 1;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 25px 50px -12px rgba(15,15,20,.3);
  transform: scale(.95) translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
html[data-theme="dark"] .liquid-nav__mobile-menu { background: rgba(28,22,38,.85); border-color: rgba(255,255,255,.1); }
.liquid-nav__mobile-menu.is-open { transform: scale(1) translateY(0); opacity: 1; visibility: visible; }
.liquid-nav__mobile-menu a { padding: 10px 12px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; }
.liquid-nav__mobile-menu a:hover { background: rgba(127,127,127,.1); }

@container (min-width: 480px) {
  .liquid-nav__links { display: flex; }
  .liquid-nav .demo-nav__burger { display: none; }
}
@container (min-width: 620px) {
  .liquid-nav__cta.btn { display: inline-flex; }
}
/* Hors gabarit .device-frame (ex: composeur de page, en pleine largeur),
   il n'y a pas de container à interroger : on retombe sur la largeur de
   la fenêtre, ce qui revient au même en pratique à cet endroit-là. */
@media (min-width: 480px) {
  #builderPreview .liquid-nav__links { display: flex; }
  #builderPreview .liquid-nav .demo-nav__burger { display: none; }
}
@media (min-width: 620px) {
  #builderPreview .liquid-nav__cta.btn { display: inline-flex; }
}

/* ============================================================
   CALENDRIER & RÉSERVATION
   ============================================================ */

.cal-picker { width: 100%; max-width: 320px; }
.cal-picker__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-picker__month { font-family: var(--ff-heading); font-weight: 600; font-size: .95rem; text-transform: capitalize; }
.cal-picker__nav {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--paper);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--ink-soft);
}
.cal-picker__nav:hover { border-color: var(--accent); color: var(--accent); }
.cal-picker__weekdays { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 6px; }
.cal-picker__weekdays span { text-align: center; font-size: .72rem; color: var(--ink-faint); text-transform: uppercase; }
.cal-picker__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-picker__day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: .86rem;
  font-family: var(--ff-body);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cal-picker__day:hover:not(:disabled) { background: var(--paper-alt); }
.cal-picker__day.is-today { font-weight: 700; color: var(--accent); }
.cal-picker__day.is-selected { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.cal-picker__day.is-full { color: var(--ink-faint); text-decoration: line-through; cursor: not-allowed; }
.cal-picker__day.is-empty { visibility: hidden; cursor: default; }

/* Deux .cal-picker indépendants côte à côte (le 2nd démarre au mois
   suivant via data-cal-offset="1") pour une sélection de plage de dates */
.cal-dual { display: flex; gap: 20px; flex-wrap: wrap; width: 100%; }
.cal-dual .cal-picker { flex: 1 1 210px; max-width: none; min-width: 0; }
@media (max-width: 640px) { .cal-dual { gap: 20px; } }

/* Calendrier tarifaire : un prix par jour, couleur selon que c'est cher ou pas */
.fare-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: 100%; }
.fare-cal__day {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.fare-cal__num { font-size: .82rem; font-weight: 600; color: var(--ink); }
.fare-cal__price { font-size: .68rem; font-weight: 600; }
.fare-cal__day.cheap { background: rgba(16,185,129,.14); }
.fare-cal__day.cheap .fare-cal__price { color: #059669; }
.fare-cal__day.mid { background: var(--paper-alt); }
.fare-cal__day.mid .fare-cal__price { color: var(--ink-soft); }
.fare-cal__day.high { background: rgba(225,29,72,.1); }
.fare-cal__day.high .fare-cal__price { color: #E11D48; }
.fare-cal__day:hover { transform: translateY(-2px); }
.fare-cal__day.is-selected { box-shadow: 0 0 0 2px var(--accent); }

.time-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.time-slot {
  padding: 9px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--paper);
  font-size: .86rem;
  font-family: var(--ff-body);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.time-slot:hover:not(:disabled) { border-color: var(--accent); }
.time-slot.is-active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }
.time-slot.is-full, .time-slot:disabled {
  color: var(--ink-faint);
  text-decoration: line-through;
  cursor: not-allowed;
  background: var(--paper-alt);
}

.booking-stepper { display: flex; align-items: flex-start; width: 100%; }
.booking-stepper__step { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-faint); cursor: pointer; }
.booking-stepper__circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  color: var(--ink-faint);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.booking-stepper__step.is-active .booking-stepper__circle { border-color: var(--accent); color: var(--accent); }
.booking-stepper__step.is-done .booking-stepper__circle { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }
.booking-stepper__step.is-active, .booking-stepper__step.is-done { color: var(--ink); }
.booking-stepper__line { flex: 1; height: 2px; background: var(--border); margin: 17px 8px 0; }

.cal-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: .86rem; color: var(--ink-soft); }
.cal-legend__item { display: flex; align-items: center; gap: 8px; }
.cal-legend__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cal-legend__dot--free { background: #16A34A; }
.cal-legend__dot--full { background: #E11D48; }
.cal-legend__dot--closed { background: var(--ink-faint); }

/* ============================================================
   NOUVEAUX MODÈLES — animations, tab bar, calendrier, footer
   élégants mais peu courants
   ============================================================ */

/* Texte révélé par un flou qui se dissipe au scroll */
[data-reveal-blur] {
  filter: blur(10px);
  opacity: 0;
  transform: translateY(10px);
  transition: filter 1s var(--ease), opacity 1s var(--ease), transform 1s var(--ease);
}
[data-reveal-blur].is-visible { filter: blur(0); opacity: 1; transform: translateY(0); }

/* Halo-masque qui révèle un texte en dégradé, là où passe la souris */
.mask-spotlight {
  position: relative;
  color: var(--ink-faint);
}
.mask-spotlight::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-mask-image: radial-gradient(circle 70px at var(--mx, 50%) var(--my, 50%), black 40%, transparent 72%);
  mask-image: radial-gradient(circle 70px at var(--mx, 50%) var(--my, 50%), black 40%, transparent 72%);
}

/* Forme liquide qui respire doucement, sans SVG (border-radius animé) */
.blob-shape {
  width: 90px; height: 90px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  animation: blobMorph 8s ease-in-out infinite;
}
@keyframes blobMorph {
  0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
  25% { border-radius: 58% 42% 35% 65% / 60% 40% 60% 40%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 40% 62% 38% 60%; }
}

/* Galerie horizontale pilotée par le scroll vertical du cadre (scroll-hijack
   confiné à la démo, via position:sticky imbriqué dans .device-frame__scroll
   — le JS ne fait que calculer la progression et translater le rail). */
.scroll-gallery__tall { height: 1400px; position: relative; }
.scroll-gallery__sticky {
  position: sticky;
  top: 0;
  height: 440px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.scroll-gallery__track {
  display: flex;
  gap: 20px;
  padding-left: 24px;
  will-change: transform;
}
.scroll-gallery__tile {
  flex: 0 0 220px;
  height: 260px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-size: 2rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* Tab bar "île dynamique" : la pilule glisse et s'étire vers l'item actif */
.tabbar-island {
  position: relative;
  display: flex;
  gap: 4px;
  margin: 0 16px 16px;
  padding: 6px;
  background: var(--ink);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.4);
}
.tabbar-island__item {
  position: relative;
  z-index: 1;
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 1.1rem;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  transition: color .3s var(--ease);
}
.tabbar-island__item.is-active { color: #fff; }
.tabbar-island__thumb {
  position: absolute;
  top: 6px; bottom: 6px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: left .4s var(--ease), width .4s var(--ease);
}

/* Tab bar verticale, posée sur le côté plutôt qu'en bas */
.tabbar-vertical {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 8px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-right: 1px solid var(--border);
}
html[data-theme="dark"] .tabbar-vertical { background: rgba(16,14,23,.85); }
.tabbar-vertical__item {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  color: var(--ink-faint);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.tabbar-vertical__item.is-active { background: var(--accent-soft); color: var(--accent); }

/* Tab bar ultra minimale : juste un point qui grossit sous l'icône active */
.tabbar-dot {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 14px 10px;
  margin: 0 14px 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.tabbar-dot__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-faint);
  padding: 4px;
}
.tabbar-dot__icon { font-size: 1.1rem; transition: transform .3s var(--ease), filter .3s var(--ease), opacity .3s var(--ease); opacity: .6; filter: grayscale(1); }
.tabbar-dot__dot { width: 0; height: 4px; border-radius: 2px; background: var(--accent); transition: width .3s var(--ease); }
.tabbar-dot__item.is-active .tabbar-dot__icon { transform: translateY(-2px); opacity: 1; filter: none; }
.tabbar-dot__item.is-active .tabbar-dot__dot { width: 16px; }

/* Tab bar avec éclat de particules au clic */
.tabbar-burst {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 10px;
  margin: 0 14px 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.tabbar-burst__item {
  position: relative;
  overflow: visible;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink-faint);
  transition: background .3s var(--ease), color .3s var(--ease), transform .2s var(--ease);
}
.tabbar-burst__item.is-active { background: var(--accent-soft); color: var(--accent); }
.tabbar-burst__item:active { transform: scale(.9); }
.tabbar-burst__particle {
  position: absolute;
  top: 50%; left: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--burst-color, var(--accent));
  transform: translate(-50%, -50%);
  animation: tabbarBurstOut .55s ease-out forwards;
  pointer-events: none;
}
@keyframes tabbarBurstOut {
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0); opacity: 0; }
}

/* Sélecteur de date en ruban horizontal (façon appli de réservation) */
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.date-strip__day {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 52px;
  padding: 12px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.date-strip__dow { font-size: .7rem; text-transform: uppercase; color: var(--ink-faint); }
.date-strip__num { font-family: var(--ff-heading); font-weight: 600; font-size: 1.1rem; }
.date-strip__day.is-active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }
.date-strip__day.is-active .date-strip__dow { color: rgba(255,255,255,.8); }

/* Calendrier "heatmap" : l'intensité de couleur indique la disponibilité */
.cal-heatmap { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: 100%; }
.cal-heatmap span { display: block; aspect-ratio: 1; border-radius: 6px; background: var(--paper-alt); }
.cal-heatmap span[data-heat="1"] { background: color-mix(in srgb, var(--accent) 25%, var(--paper-alt)); }
.cal-heatmap span[data-heat="2"] { background: color-mix(in srgb, var(--accent) 50%, var(--paper-alt)); }
.cal-heatmap span[data-heat="3"] { background: color-mix(in srgb, var(--accent) 75%, var(--paper-alt)); }
.cal-heatmap span[data-heat="4"] { background: var(--accent); }

/* Footer avec horloge locale en direct + statut de disponibilité */
.footer-clock { background: var(--paper-soft); border-top: 1px solid var(--border); padding: 28px 0; }
.footer-clock__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-clock__status { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-soft); }
.footer-clock__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
  animation: dotPulse 2s ease-in-out infinite;
}

/* Footer "méga" : grand texte d'accroche, aimanté au curseur */
.footer-bigtype { background: var(--ink); color: #fff; padding: 70px 0 30px; }
.footer-bigtype__cta {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 50px;
  transition: color .3s var(--ease), transform .25s var(--ease);
}
.footer-bigtype__cta:hover { color: var(--accent-2); }
.footer-bigtype__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.footer-bigtype__social { display: flex; gap: 10px; }
.footer-bigtype__social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: #fff;
  transition: background .3s var(--ease);
}
.footer-bigtype__social a:hover { background: rgba(255,255,255,.1); }

/* Footer plan du site : grille dense à 5 colonnes (réutilise .site-footer
   pour le fond sombre + le style des liens/listes) */
.footer-sitemap__grid { grid-template-columns: repeat(5, 1fr) !important; gap: 28px !important; }
@media (max-width: 760px) { .footer-sitemap__grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* Footer avec le nom de la marque en immense, détouré, en fond */
.footer-giant__links { display: flex !important; justify-content: center; gap: 32px; font-size: .95rem; font-weight: 500; }
.footer-giant__word {
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 700;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.18);
  line-height: 1;
  margin: 30px 0 10px;
  user-select: none;
}

/* Footer avec carte newsletter en verre, qui chevauche le haut du footer */
.footer-glassnews { padding-top: 0; overflow: visible; }
.footer-glassnews__card {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  margin-top: -56px;
  box-shadow: 0 25px 60px -20px rgba(0,0,0,.4);
}
.footer-glassnews__card h3 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.footer-glassnews__card p { color: rgba(255,255,255,.65); }
.footer-glassnews__form { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-glassnews__form input {
  padding: 12px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-family: var(--ff-body);
  min-width: 220px;
}
.footer-glassnews__form input::placeholder { color: rgba(255,255,255,.45); }

/* ============================================================
   NAVIGATION — pilule flottante en verre dépoli (toujours sombre)
   ============================================================ */

.navbar-glass {
  position: sticky;
  top: 16px;
  z-index: 5;
  margin: 16px auto 0;
  width: fit-content;
  max-width: calc(100% - 16px);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 6px 6px 14px;
  background: rgba(20, 18, 26, .6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-full);
  box-shadow: 0 16px 40px -18px rgba(0,0,0,.5);
}
.navbar-glass__logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  white-space: nowrap;
  margin-right: 2px;
}
.navbar-glass__logo span {
  width: 7px; height: 16px;
  border-radius: 3px;
  background: linear-gradient(var(--accent), var(--accent-2));
}
.navbar-glass__links {
  display: flex;
  gap: 2px;
  font-size: .8rem;
  font-weight: 500;
}
.navbar-glass__links a {
  position: relative;
  padding: 7px 9px;
  border-radius: var(--radius-full);
  color: rgba(255,255,255,.6);
  white-space: nowrap;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.navbar-glass__links a::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.navbar-glass__links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.navbar-glass__links a.is-active { color: #fff; }
.navbar-glass__links a.is-active::after { transform: scaleX(1); }
/* Le 3e lien ne tient pas dans un .device-frame étroit (aperçu mobile) :
   on le cache par défaut et on le révèle via @container (largeur réelle
   du bloc, comme .liquid-nav plus haut), pas @media. */
.navbar-glass__links a:nth-child(3) { display: none; }
@container (min-width: 480px) {
  .navbar-glass__links a:nth-child(3) { display: inline-block; }
}
.navbar-glass__cta {
  margin-left: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.12);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.navbar-glass__cta:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(124,58,237,.5); }
.navbar-glass__cta span { display: inline-block; }
.navbar-glass__cta:hover span { animation: ctaLetterWave .55s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes ctaLetterWave {
  0% { transform: translateY(0) scale(1); color: #fff; }
  35% { transform: translateY(-8px) scale(1.15); color: var(--accent-2); }
  100% { transform: translateY(0) scale(1); color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .navbar-glass__cta:hover span { animation: none; }
}

.navbar-glass__links {
  max-width: 320px;
  overflow: hidden;
  transition: max-width .7s var(--ease), opacity .5s var(--ease);
}
.navbar-glass.is-search-open .navbar-glass__links { max-width: 0; opacity: 0; }

.navbar-glass__search {
  display: flex;
  align-items: center;
  max-width: 0;
  overflow: hidden;
  transition: max-width .7s var(--ease);
}
.navbar-glass.is-search-open .navbar-glass__search { max-width: 170px; }
.navbar-glass__search-input {
  width: 160px;
  border: none;
  outline: none;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: .82rem;
  font-family: var(--ff-body);
  color: #fff;
}
.navbar-glass__search-input::placeholder { color: rgba(255,255,255,.4); }

.navbar-glass__icon-btn {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.navbar-glass__icon-btn:hover,
.navbar-glass.is-search-open .navbar-glass__icon-btn { background: rgba(255,255,255,.12); color: #fff; }

/* Sur grand écran, la démo sort du gabarit de carte et prend toute la
   largeur de la fenêtre — plus proche d'un vrai site, et plus facile pour
   voir l'effet de la loupe qui ouvre la recherche. */
@media (min-width: 860px) {
  [data-model-id="nav-glass-pill"] .device-frame {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  /* La pilule elle-même passe à une échelle pensée pour un vrai écran de
     bureau — plus qu'une carte mobile simplement étirée. Largeur fixe
     (90vw) plutôt que fit-content : il y a toujours assez de place pour
     que la recherche s'ouvre sans faire disparaître les liens. */
  .navbar-glass {
    top: 24px;
    width: 90vw;
    max-width: 90vw;
    gap: 6px;
    padding: 10px 10px 10px 26px;
  }
  .navbar-glass__logo { font-size: 1.15rem; gap: 10px; margin-right: 8px; }
  .navbar-glass__logo span { width: 9px; height: 20px; }
  .navbar-glass__links {
    font-size: 1rem;
    gap: 2px;
    max-width: none;
    overflow: visible;
    margin-right: auto;
  }
  .navbar-glass__links a { padding: 12px 20px; }
  .navbar-glass__links a::after { left: 20px; right: 20px; }
  /* Les liens restent affichés même quand la recherche est ouverte : la
     pilule a la place, pas besoin de les faire disparaître. */
  .navbar-glass.is-search-open .navbar-glass__links { max-width: none; opacity: 1; }
  .navbar-glass__icon-btn { width: 44px; height: 44px; }
  .navbar-glass__icon-btn svg { width: 19px; height: 19px; }
  .navbar-glass__search-input { width: 240px; font-size: .95rem; padding: 11px 18px; }
  .navbar-glass.is-search-open .navbar-glass__search { max-width: 260px; }
  .navbar-glass__cta { margin-left: 10px; padding: 14px 28px; font-size: .95rem; }
}

/* ============================================================
   CAMÉLÉON QUI SUIT LA MOUCHE — scène 404 : la tête, les yeux (indépendants)
   et le museau suivent une mouche posée sur le curseur (SVG + JS).
   ============================================================ */
.chameleon-stage {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 90% at 78% 40%, #3aa6c9 0%, #1f6fb0 38%, #12396b 100%);
  color: #fff;
  cursor: none;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.chameleon-stage__404 {
  position: absolute;
  left: 4%;
  top: 50%;
  transform: translateY(-62%);
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: clamp(5.5rem, 17vw, 12rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(255, 255, 255, .16);
  pointer-events: none;
}
.chameleon-stage__copy {
  position: absolute;
  left: 6%;
  bottom: 12%;
  max-width: 30%;
  pointer-events: none;
}
.chameleon-stage__eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #bff4ea;
  margin-bottom: 8px;
}
.chameleon-stage__copy p { margin: 0; font-size: .98rem; line-height: 1.5; color: rgba(255, 255, 255, .9); }
svg.chameleon {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: min(62%, 470px);
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.ch-fly {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35));
  z-index: 3;
}
.ch-fly__wings ellipse {
  fill: rgba(255, 255, 255, .7);
  stroke: rgba(255, 255, 255, .9);
  stroke-width: .6;
}
.ch-fly__wings { transform-origin: 16px 14px; animation: chFlutter .07s linear infinite alternate; }
@keyframes chFlutter {
  from { transform: scaleX(1) rotate(0deg); }
  to { transform: scaleX(.82) rotate(-4deg); }
}
.ch-blink {
  transform-box: fill-box;
  transform-origin: center;
  transform: scaleY(0);
  animation: chBlink 5.5s infinite;
}
.ch-blink--late { animation-delay: .18s; }
@keyframes chBlink {
  0%, 92%, 100% { transform: scaleY(0); }
  95.5% { transform: scaleY(1); }
}
@media (max-width: 640px) {
  .chameleon-stage { min-height: 400px; }
  .chameleon-stage__copy { left: 5%; right: 5%; max-width: none; bottom: auto; top: 6%; }
  .chameleon-stage__404 { top: 40%; left: 50%; transform: translate(-50%, -50%); font-size: 6.5rem; }
  svg.chameleon { right: 50%; transform: translateX(50%); width: min(92%, 380px); }
}
@media (prefers-reduced-motion: reduce) {
  .ch-fly__wings, .ch-blink { animation: none; }
}

/* ============================================================
   VIDÉO PILOTÉE PAR LA SOURIS (scrub) — la position horizontale du curseur
   fait avancer / reculer la vidéo (muted, playsinline, jamais lue en auto).
   ============================================================ */
.scrub-hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 340px;
  border-radius: var(--radius-lg);
  background: #12396b;
  color: #fff;
  cursor: none;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.scrub-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrub-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 22, 48, .72) 0%, rgba(8, 22, 48, 0) 55%); pointer-events: none; }
.scrub-hero__copy { position: absolute; left: 5%; bottom: 14%; max-width: 38%; pointer-events: none; }
.scrub-hero__copy h3 { margin: 0 0 8px; font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.1; color: #fff; }
.scrub-hero__copy p { margin: 0; font-size: .95rem; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.scrub-hero__pick {
  position: absolute; right: 16px; top: 16px; z-index: 4;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font-size: .78rem; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.scrub-hero__pick:hover { background: rgba(255, 255, 255, .3); }
.scrub-hero__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .18); pointer-events: none; }
.scrub-hero__bar i { display: block; height: 100%; width: 0; background: #bff4ea; }
@media (max-width: 640px) {
  .scrub-hero { aspect-ratio: auto; min-height: 380px; }
  .scrub-hero__copy { max-width: 90%; bottom: 10%; }
  .scrub-hero__shade { background: linear-gradient(0deg, rgba(8, 22, 48, .75) 0%, rgba(8, 22, 48, 0) 60%); }
}

/* Variante vidéo du décor 404 : le caméléon 3D est une vidéo pilotée par la souris */
.chameleon-stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; pointer-events: none; }
.chameleon-stage--video .chameleon-stage__404,
.chameleon-stage--video .chameleon-stage__copy { z-index: 1; }
.chameleon-stage--video .chameleon-stage__copy { bottom: 21%; }
.chameleon-stage--video .ch-fly { width: 42px; height: 42px; margin: -21px 0 0 -21px; z-index: 3; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .4)); }
.chameleon-stage--video .ch-fly__wings { transform-origin: 20px 16px; }
.ch-tongue3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
@media (max-width: 640px) {
  .chameleon-stage--video .chameleon-stage__404 { display: none; }
  .chameleon-stage--video .chameleon-stage__copy { bottom: auto; }
  /* sur mobile la vidéo occupe le bas de la scène (le texte reste au-dessus) et se fond dans le décor */
  .chameleon-stage__video {
    inset: auto 0 0 0; height: 64%; object-position: 76% 50%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  }
}

/* ============================================================
   PARALLAXE AU SCROLL — calques superposés qui défilent à des vitesses
   différentes (data-speed : <1 = traîne derrière, >1 = file devant).
   ============================================================ */
.pscroll {
  position: relative;
  height: 540px;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background: #1b1b3a;
  color: #fff;
}
.pscroll__layer { position: absolute; inset: 0; will-change: transform; pointer-events: none; }
.pscroll__sky { inset: -180px 0; background: linear-gradient(180deg, #14123a 0%, #3b2370 34%, #b4486f 62%, #f08a5d 82%, #ffc27a 100%); }
.pscroll__stars {
  inset: -40px 0 40% 0;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 22%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 19% 52%, #fff 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 31% 14%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 44% 40%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 56% 12%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 67% 48%, #fff 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 78% 20%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 90% 38%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 95% 10%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 3% 60%, #fff 50%, transparent 52%);
  opacity: .8;
}
.pscroll__sun {
  position: absolute; left: 63%; top: 31%; width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fff6d0 0%, #ffd27a 45%, #ff9f5a 100%);
  box-shadow: 0 0 80px 30px rgba(255, 170, 100, .45), 0 0 220px 90px rgba(255, 120, 120, .25);
}
.pscroll__ridge { position: absolute; left: 0; width: 100%; height: 540px; display: block; }
.pscroll__titlewrap { display: flex; align-items: center; justify-content: flex-start; padding: 0 7%; }
.pscroll__title { max-width: 440px; margin-top: -80px; }
.pscroll__eyebrow { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #ffd9b8; margin-bottom: 12px; }
.pscroll__title h3 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.025em; color: #fff; text-shadow: 0 4px 30px rgba(20, 8, 50, .5); }
.pscroll__title p { margin: 0; font-size: .98rem; line-height: 1.55; color: rgba(255, 255, 255, .85); max-width: 380px; }
.pscroll__cardwrap { display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 7% 7%; }
.pscroll__card {
  display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 20px;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(10, 4, 30, .45);
}
.pscroll__card b { font-size: 2.4rem; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.pscroll__card span { font-size: .8rem; line-height: 1.35; color: rgba(255, 255, 255, .85); }
.pscroll__dust i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255, 220, 170, .9) 40%, transparent 70%); box-shadow: 0 0 14px 4px rgba(255, 200, 150, .5); }
.pscroll__dust i:nth-child(even) { width: 4px; height: 4px; }
@media (max-width: 640px) {
  .pscroll { height: 500px; }
  .pscroll__titlewrap { align-items: flex-start; padding-top: 44px; }
  .pscroll__title { margin-top: 0; }
  .pscroll__sun { left: 54%; top: 46%; width: 130px; height: 130px; }
  .pscroll__cardwrap { padding-bottom: 7%; }
}

/* Variante « caméléon réel » (vidéo IA, fond bleu nuit) : l'animal est à droite, le texte à gauche */
.chameleon-stage--grok { background: radial-gradient(90% 120% at 72% 40%, #111b33 0%, #0a1020 55%, #060a14 100%); }
.chameleon-stage--grok .chameleon-stage__video {
  inset: auto; top: 0; right: 0; height: 100%; width: auto; aspect-ratio: 752 / 416; object-fit: cover; object-position: 50% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%);
}
.chameleon-stage--grok .chameleon-stage__404 { color: rgba(255, 255, 255, .09); }
.chameleon-stage--grok .chameleon-stage__eyebrow { color: #9fd0ff; }
@media (max-width: 640px) {
  .chameleon-stage--grok .chameleon-stage__video {
    top: auto; bottom: 0; right: -15%; width: 150%; height: auto;
    -webkit-mask-image: linear-gradient(0deg, #000 70%, transparent 100%); mask-image: linear-gradient(0deg, #000 70%, transparent 100%);
  }
}

/* Parallaxe au scroll — version animation CSS pilotée par le scroll : tourne sur le fil du compositeur,
   donc synchrone avec le défilement (aucune latence, même sur téléphone). Le JS ne sert que de secours. */
.pscroll__layer { --v: 1; --lim: 120px; }
.pscroll__sky, .pscroll__stars { --lim: 170px; }
@keyframes pscrollShift {
  from { transform: translate3d(0, clamp(calc(var(--lim) * -1), calc((1 - var(--v)) * -0.14 * (100vh + 540px)), var(--lim)), 0); }
  to   { transform: translate3d(0, clamp(calc(var(--lim) * -1), calc((1 - var(--v)) * 0.14 * (100vh + 540px)), var(--lim)), 0); }
}
@supports (animation-timeline: view()) {
  .pscroll { view-timeline: --pscroll block; }
  .pscroll__layer { animation: pscrollShift linear both; animation-timeline: --pscroll; animation-range: cover 0% cover 100%; }
}
@media (prefers-reduced-motion: reduce) { .pscroll__layer { animation: none !important; transform: none !important; } }
.pscroll { contain: layout paint; }
/* écrans tactiles : on retire les effets coûteux à recalculer à chaque image (flou d'arrière-plan, grands halos) */
@media (hover: none), (max-width: 640px) {
  .pscroll__card { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(54, 30, 96, .62); }
  .pscroll__sun { box-shadow: 0 0 60px 20px rgba(255, 170, 100, .4); }
  .pscroll__title h3 { text-shadow: none; }
  .pscroll__dust i { box-shadow: none; }
}

/* ============================================================
   SECTION IMMERSIVE — le fond change de couleur, puis l'image s'ouvre
   en plein cadre. Piloté par le scroll en CSS (animation-timeline: view()),
   repli en transitions déclenchées par IntersectionObserver.
   Pour une vraie photo : .imm { --imm-img: url(photo.jpg); }
   ============================================================ */
.imm { position: relative; height: 250vh; view-timeline: --imm block; }
.imm__stage {
  position: sticky; top: 10vh; height: 78vh; min-height: 440px; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); background: #f1ece2; color: #14231d;
}
.imm__bg { position: absolute; inset: 0; background: #0c3b2b; opacity: 0; }
.imm__title { position: absolute; left: 6%; top: 50%; transform: translateY(-50%); z-index: 1; max-width: 42%; color: inherit; }
.imm__eyebrow { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-bottom: 14px; }
.imm__title h3 { margin: 0 0 14px; font-size: clamp(2rem, 5vw, 4.2rem); line-height: .98; letter-spacing: -.035em; font-weight: 600; color: inherit; }
.imm__title p { margin: 0; font-size: .98rem; line-height: 1.55; opacity: .8; max-width: 340px; }
.imm__frame { position: absolute; inset: 0; z-index: 2; clip-path: inset(22% 6% 22% 54% round 22px); }
.imm__img {
  position: absolute; inset: -6%; transform: scale(1.3);
  background-color: #0b2a3a;
  background-image: var(--imm-img,
    radial-gradient(55% 55% at 22% 28%, #f6c453 0%, transparent 62%),
    radial-gradient(50% 60% at 78% 22%, #2fb59a 0%, transparent 62%),
    radial-gradient(70% 70% at 62% 82%, #0f6a78 0%, transparent 66%),
    radial-gradient(45% 50% at 14% 86%, #e0603a 0%, transparent 62%));
  background-size: cover; background-position: center;
}
.imm__img::after { content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.imm__over { position: absolute; left: 6%; bottom: 8%; z-index: 1; color: #fff; opacity: 0; max-width: 360px; }
.imm__over span { display: block; font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: -.03em; margin-bottom: 6px; text-shadow: 0 4px 30px rgba(0, 0, 0, .4); }
.imm__over p { margin: 0; font-size: .9rem; opacity: .85; }
.imm__over code { font-size: .8rem; background: rgba(255, 255, 255, .16); padding: 1px 6px; border-radius: 6px; }
@keyframes immDark { 0% { opacity: 0; } 30%, 100% { opacity: 1; } }
@keyframes immText { 0% { color: #14231d; } 30%, 100% { color: #f3efe6; } }
@keyframes immFrame { 0%, 30% { clip-path: inset(22% 6% 22% 54% round 22px); } 86%, 100% { clip-path: inset(0 0 0 0 round 0); } }
@keyframes immImg { from { transform: scale(1.3); } to { transform: scale(1); } }
@keyframes immOver { 0%, 80% { opacity: 0; transform: translateY(24px); } 100% { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .imm__bg, .imm__stage, .imm__frame, .imm__img, .imm__over { animation-timeline: --imm; animation-range: cover 26% cover 74%; animation-fill-mode: both; animation-timing-function: linear; }
  .imm__bg { animation-name: immDark; }
  .imm__stage { animation-name: immText; }
  .imm__frame { animation-name: immFrame; }
  .imm__img { animation-name: immImg; }
  .imm__over { animation-name: immOver; }
}
@supports not (animation-timeline: view()) {
  .imm { height: auto; }
  .imm__stage { position: relative; top: auto; height: 74vh; transition: color .9s ease; }
  .imm__bg { transition: opacity .9s ease; }
  .imm__frame { transition: clip-path 1.1s cubic-bezier(.65, 0, .25, 1); }
  .imm__img { transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
  .imm__over { transition: opacity .8s ease .5s, transform .8s ease .5s; transform: translateY(24px); }
  .imm.is-dark .imm__bg { opacity: 1; } .imm.is-dark .imm__stage { color: #f3efe6; }
  .imm.is-full .imm__frame { clip-path: inset(0 0 0 0 round 0); } .imm.is-full .imm__img { transform: scale(1); }
  .imm.is-full .imm__over { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .imm { height: auto; }
  .imm__stage { position: relative; top: auto; height: 70vh; animation: none !important; color: #f3efe6; }
  .imm__bg, .imm__frame, .imm__img, .imm__over { animation: none !important; transition: none !important; }
  .imm__bg { opacity: 1; } .imm__frame { clip-path: inset(0); } .imm__img { transform: none; } .imm__over { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .imm__title { max-width: 86%; top: 22%; transform: none; }
  .imm__title p { display: none; }
  .imm__frame { clip-path: inset(46% 8% 8% 8% round 20px); }
  @keyframes immFrame { 0%, 30% { clip-path: inset(46% 8% 8% 8% round 20px); } 86%, 100% { clip-path: inset(0 0 0 0 round 0); } }
}

/* ============================================================
   CARTE À RESSORT — glisser puis lâcher : intégration d'un ressort amorti
   (raideur / amortissement réglables), inspiré des gestes de Motion.
   ============================================================ */
.spring { position: relative; height: 380px; border-radius: var(--radius-lg); background: radial-gradient(90% 100% at 50% 40%, #1b1b3a 0%, #0c0c1c 100%); overflow: hidden; touch-action: none; color: #fff; }
.spring__string { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.spring__string line { stroke: rgba(255, 255, 255, .35); stroke-width: 2; stroke-dasharray: 4 6; }
.spring__string circle { fill: rgba(255, 255, 255, .55); }
.spring__card {
  position: absolute; left: 50%; top: 46%; width: 168px; height: 112px; margin: -56px 0 0 -84px; border-radius: 22px; cursor: grab;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; will-change: transform;
  background: linear-gradient(135deg, #8b7bff, #ff7ab6); box-shadow: 0 24px 50px rgba(139, 123, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
  user-select: none; -webkit-user-select: none; outline: none;
}
.spring__card.is-drag { cursor: grabbing; }
.spring__card b { font-size: 1.35rem; letter-spacing: -.02em; }
.spring__card span { font-size: .78rem; opacity: .85; }
.spring__ctrl { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; padding: 0 12px; }
.spring__ctrl label { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: rgba(255, 255, 255, .75); }
.spring__ctrl input { width: 110px; accent-color: #b7a8ff; }

/* ============================================================
   TEXTE MOT À MOT — chaque mot passe du gris à l'encre pendant le scroll
   ============================================================ */
.words { padding: 8vh 0; }
.words p { margin: 0; max-width: 880px; font-size: clamp(1.7rem, 4.2vw, 3.1rem); line-height: 1.18; letter-spacing: -.03em; font-weight: 600; }
.words .w { color: rgba(20, 20, 30, .16); }
html[data-theme="dark"] .words .w { color: rgba(255, 255, 255, .18); }
@keyframes wordOn { from { color: var(--w-off, rgba(20, 20, 30, .16)); } to { color: var(--ink); } }
@supports (animation-timeline: view()) {
  .words { view-timeline: --words block; }
  .words .w { animation: wordOn linear both; animation-timeline: --words;
    animation-range: cover calc(18% + var(--i) / var(--n) * 38%) cover calc(18% + var(--i) / var(--n) * 38% + 7%); }
}
html[data-theme="dark"] .words { --w-off: rgba(255, 255, 255, .18); }
@supports not (animation-timeline: view()) {
  .words .w { transition: color .5s ease; transition-delay: calc(var(--i) * 45ms); }
  .words.is-in .w { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .words .w { animation: none !important; transition: none !important; color: var(--ink); } }

/* ============================================================
   LISTE DE PROJETS — l'aperçu suit le curseur (survol), vignettes sur tactile
   ============================================================ */
.hlist { position: relative; border-top: 1px solid var(--line, rgba(0, 0, 0, .12)); }
.hlist__row {
  display: grid; grid-template-columns: 48px 1fr auto 70px; align-items: baseline; gap: 14px; padding: 26px 4px;
  border-bottom: 1px solid var(--line, rgba(0, 0, 0, .12)); text-decoration: none; color: var(--ink); transition: opacity .3s ease, padding .4s cubic-bezier(.2, .7, .2, 1);
}
.hlist__n { font-size: .8rem; opacity: .5; }
.hlist__t { font-size: clamp(1.5rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.hlist__c { font-size: .85rem; opacity: .6; }
.hlist__y { font-size: .85rem; opacity: .5; text-align: right; }
.hlist.is-hover .hlist__row { opacity: .28; }
.hlist.is-hover .hlist__row.is-on { opacity: 1; padding-left: 16px; }
.hlist__preview {
  position: absolute; left: 0; top: 0; width: 240px; height: 300px; border-radius: 18px; pointer-events: none; z-index: 3; opacity: 0; transform: translate3d(0, 0, 0) scale(.85);
  transition: opacity .25s ease, scale .35s cubic-bezier(.2, .7, .2, 1); scale: .9; will-change: transform;
  background: linear-gradient(145deg, var(--g1, #f6c453), var(--g2, #e0603a)); box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
}
.hlist__preview::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .25; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hlist.is-hover .hlist__preview { opacity: 1; scale: 1; }
@media (hover: none), (max-width: 640px) {
  .hlist__preview { display: none; }
  .hlist__row { grid-template-columns: 1fr auto; padding: 18px 4px; }
  .hlist__n, .hlist__c { display: none; }
  .hlist__row::before { content: ""; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(145deg, var(--g1), var(--g2)); grid-row: 1; grid-column: 1; }
  .hlist__row { display: flex; align-items: center; gap: 14px; }
  .hlist__t { flex: 1; font-size: 1.4rem; }
}

/* ============================================================
   PORTANT DE VÊTEMENTS — au repos les vêtements pendent de profil sur leur cintre ;
   au survol, celui visé se tourne de face (cintre compris, rotation 3D autour du crochet)
   et les voisins s'écartent. Au clic il passe en grand au centre (FLIP), les autres se floutent.
   ============================================================ */
.rack { position: relative; height: 372px; overflow: hidden; border-radius: var(--radius-lg); background: radial-gradient(90% 80% at 50% 30%, #f8f4ee 0%, #eee8de 100%); color: #1d1b18; }
.rack__defs { position: absolute; }
.rack__row { position: absolute; inset: 0 0 38px 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 0 clamp(8px, 2vw, 28px); transition: filter .5s ease, opacity .5s ease; }
.rack__row::-webkit-scrollbar { display: none; }
.rack__track { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: clamp(0px, .4vw, 6px); width: 100%; max-width: 940px; min-width: max-content; margin: 0 auto; padding-top: 40px; }
.rack__track::before { content: ""; position: absolute; left: 0; right: 0; top: 40px; height: 5px; border-radius: 5px; background: linear-gradient(#d9d3c8, #a39c8f); box-shadow: 0 2px 3px rgba(0, 0, 0, .12); }
.rack__track::after { content: ""; position: absolute; left: -7px; right: -7px; top: 34px; height: 17px; border: solid #a39c8f; border-width: 0 6px; border-radius: 7px; pointer-events: none; }
.rack__item {
  --tw: clamp(104px, 13vw, 150px); --ry: var(--ry0, -74deg); --w: calc(var(--tw) * .46);
  position: relative; flex: 0 0 var(--w); width: var(--w); padding: 0; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; text-align: center;
  perspective: 800px; transform-origin: 50% 0; -webkit-tap-highlight-color: transparent;
  transition: flex-basis .7s cubic-bezier(.3, 1, .4, 1), width .7s cubic-bezier(.3, 1, .4, 1), opacity .4s ease, filter .4s ease;
}
.rack__flip { display: block; position: relative; width: var(--tw); left: 50%; margin-left: calc(var(--tw) / -2); transform: rotateY(var(--ry)); transform-style: preserve-3d; transition: transform 1s cubic-bezier(.3, 1.25, .45, 1); }
.rack__face { display: block; width: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rack__face--back { position: absolute; inset: 0; transform: rotateY(180deg); }
.rack__hanger { display: block; width: 100%; height: auto; margin-top: -7px; position: relative; z-index: 2; overflow: visible; pointer-events: none; }
.rack__hanger .wire { fill: none; stroke: #9b958a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rack__hanger .wood { fill: #5b3a28; }
.rack__hanger .neck { fill: #b9b2a6; }
.rack__face .rack__tee { margin-top: -27px; }
.rack__tee { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 8px rgba(40, 30, 20, .16)); }
.rack__label { display: block; position: relative; width: var(--tw); left: 50%; margin: 12px 0 0 calc(var(--tw) / -2); font-size: .74rem; line-height: 1.3; opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .3s ease; }
.rack__label b { display: block; font-weight: 600; font-size: .82rem; }
.rack__label i { font-style: normal; opacity: .6; }
.rack__hint { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .5; pointer-events: none; }
@keyframes rackSwing { 0% { transform: rotate(0); } 22% { transform: rotate(3.6deg); } 50% { transform: rotate(-2.2deg); } 75% { transform: rotate(1deg); } 100% { transform: rotate(0); } }
@media (hover: hover) {
  .rack__item:hover, .rack__item:focus-visible { --ry: 0deg; --w: calc(var(--tw) * 1.06); z-index: 3; animation: rackSwing 1.3s ease-out; outline: none; }
  .rack__item:hover .rack__label, .rack__item:focus-visible .rack__label { opacity: 1; transform: none; }
}
@media (hover: none) {
  .rack__item { --ry: var(--ry0-touch, -50deg); --w: calc(var(--tw) * .62); }
  .rack__label { opacity: 1; transform: none; font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) { .rack__item:hover, .rack__item:focus-visible { animation: none; } .rack__flip, .rack__item { transition-duration: .01s; } }
/* vue agrandie */
.rack.is-focus .rack__row { filter: blur(9px); opacity: .45; pointer-events: none; }
.rack__focus { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; animation: rackFade .35s ease both; cursor: default; }
@keyframes rackFade { from { opacity: 0; } to { opacity: 1; } }
.rack__big { width: min(48vw, 200px); perspective: 900px; cursor: grab; touch-action: pan-y; }
.rack__big.is-drag { cursor: grabbing; }
.rack__bigflip { position: relative; transform-style: preserve-3d; will-change: transform; }
.rack__bigflip .rack__tee { filter: drop-shadow(0 22px 18px rgba(40, 30, 20, .25)); }
.rack__info { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.rack__info b { font-size: 1.05rem; letter-spacing: -.01em; }
.rack__info span { opacity: .6; font-size: .92rem; }
.rack__cta { border: 0; cursor: pointer; padding: 10px 20px; border-radius: 999px; background: #1d1b18; color: #f6f2ec; font: inherit; font-size: .85rem; font-weight: 600; }
.rack__cta:hover { background: #3a3631; }
.rack__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); background: rgba(255, 255, 255, .7); cursor: pointer; font-size: 1rem; color: #1d1b18; }
@media (max-width: 640px) { .rack { height: 380px; } .rack__item { --tw: 104px; } }

/* ============================================================
   PORTANT 3D — t-shirts générés en volume (Three.js, chargé à la demande)
   ============================================================ */
.rack3d { position: relative; height: 400px; overflow: hidden; border-radius: var(--radius-lg); background: radial-gradient(90% 80% at 50% 30%, #f8f4ee 0%, #eee8de 100%); color: #1d1b18; touch-action: pan-y; }
.rack3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rack3d__load { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; font-size: .85rem; letter-spacing: .08em; opacity: .55; }
.rack3d__ui { position: absolute; inset: 0; pointer-events: none; }
.rack3d__label { position: absolute; left: 0; top: 0; text-align: center; font-size: .74rem; line-height: 1.3; white-space: nowrap; }
.rack3d__label b { display: block; font-weight: 600; font-size: .86rem; }
.rack3d__label i { font-style: normal; opacity: .6; }
.rack3d__hint { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .5; }
.rack3d__focus { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding: 0 8%; pointer-events: none; }
.rack3d__info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 220px; pointer-events: auto; }
.rack3d__info b { font-size: 1.05rem; letter-spacing: -.01em; }
.rack3d__info span { opacity: .6; font-size: .92rem; }
.rack3d__cta { border: 0; cursor: pointer; padding: 10px 20px; border-radius: 999px; background: #1d1b18; color: #f6f2ec; font: inherit; font-size: .85rem; font-weight: 600; }
.rack3d__cta:hover { background: #3a3631; }
.rack3d__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); background: rgba(255, 255, 255, .7); cursor: pointer; font-size: 1rem; color: #1d1b18; pointer-events: auto; }
.rack3d.is-focus .rack3d__hint { opacity: 0; }
.rack3d.is-focus .rack3d__canvas { cursor: grab; }
.rack3d:not(.is-focus) .rack3d__canvas { cursor: pointer; }
@media (max-width: 640px) { .rack3d { height: 400px; } .rack3d__focus { align-items: flex-end; justify-content: center; padding: 0 0 34px; } .rack3d__info { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; max-width: none; } }
.rack3d__label[hidden], .rack3d__focus[hidden] { display: none; }
.rack3d:not(.is-focus) .rack3d__hint { opacity: .5; }

/* ============================================================
   IMAGE RÉVÉLÉE EN LARGEUR AU SCROLL — en deux temps :
   1) elle monte avec une petite largeur CONSTANTE (--reveal-w) ;
   2) quand elle est presque à hauteur de l'écran, elle s'ouvre jusqu'à 100vw.
   L'élément fait déjà 100vw (il déborde du conteneur) et on le rogne avec clip-path :
   inset(0 calc((100% - largeur) / 2)) → inset(0). Piloté par le scroll en CSS
   (animation-timeline: view()), donc sans latence. Réglages : --reveal-w, animation-range.
   ============================================================ */
.clip-reveal {
  --reveal-w: 340px;
  --reveal-start: inset(0 calc((100% - var(--reveal-w)) / 2) round 26px);
  width: 100vw; margin-inline: calc(50% - 50vw);
}
.clip-reveal img { display: block; width: 100%; height: min(56.25vw, 86vh); object-fit: cover; }
@keyframes clipReveal {
  from { clip-path: var(--reveal-start); }
  to { clip-path: inset(0 0 0 0 round 0px); }
}
@supports (animation-timeline: view()) {
  .clip-reveal { clip-path: var(--reveal-start); animation: clipReveal cubic-bezier(.65, 0, .25, 1) both; animation-timeline: view(); animation-range: cover 30% cover 54%; }
}
@supports not (animation-timeline: view()) {
  .clip-reveal { clip-path: var(--reveal-start); transition: clip-path 1.3s cubic-bezier(.65, 0, .2, 1); }
  .clip-reveal.is-in { clip-path: inset(0 0 0 0 round 0px); }
}
@media (max-width: 640px) { .clip-reveal { --reveal-w: 62vw; } .clip-reveal img { height: min(120vw, 80vh); } }
@media (prefers-reduced-motion: reduce) { .clip-reveal { animation: none !important; clip-path: none !important; transition: none !important; } }

/* ============================================================
   NOUVEAUX MODÈLES « NX » — contrôles, texte, cartes (inspirés de useplanes, uiarc, animos)
   Tout suit les variables du thème (clair / sombre) ; mouvement coupé si demandé.
   ============================================================ */

/* ---------- Bouton copier : l'icône devient une coche ---------- */
.nx-copy { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; border-radius: var(--radius-full); border: 1px solid var(--border); background: var(--paper); color: var(--ink); font: 600 .92rem var(--ff-body); cursor: pointer; transition: border-color .3s ease, background .3s ease, transform .15s ease, box-shadow .3s ease; }
.nx-copy:hover { border-color: var(--accent); box-shadow: 0 10px 26px -14px var(--accent); }
.nx-copy:active { transform: scale(.96); }
.nx-copy__ico { position: relative; width: 22px; height: 22px; display: grid; place-items: center; color: var(--ink-soft); }
.nx-copy__ico svg { position: absolute; inset: 0; width: 22px; height: 22px; transition: transform .45s var(--ease), opacity .3s ease; }
.nx-copy__ico .i-ok { opacity: 0; transform: scale(.3) rotate(-40deg); stroke-dasharray: 26; stroke-dashoffset: 26; }
.nx-copy__txt { position: relative; display: grid; height: 1.3em; overflow: hidden; min-width: 7.2em; text-align: left; }
.nx-copy__txt > span { grid-area: 1 / 1; line-height: 1.3em; transition: transform .45s var(--ease), opacity .3s ease; }
.nx-copy__txt .b { transform: translateY(110%); opacity: 0; }
.nx-copy.is-done { border-color: #16a34a; background: color-mix(in srgb, #16a34a 10%, var(--paper)); color: #15803d; }
.nx-copy.is-done .i-copy { opacity: 0; transform: scale(.3) rotate(40deg); }
.nx-copy.is-done .i-ok { opacity: 1; transform: none; color: #16a34a; animation: nxDraw .45s .05s ease forwards; }
.nx-copy.is-done .a { transform: translateY(-110%); opacity: 0; }
.nx-copy.is-done .b { transform: none; opacity: 1; }
@keyframes nxDraw { to { stroke-dashoffset: 0; } }

/* ---------- Contrôle segmenté : la pastille glisse ---------- */
.nx-seg { position: relative; display: inline-flex; padding: 5px; border-radius: var(--radius-full); background: var(--paper-alt); border: 1px solid var(--border); max-width: 100%; }
.nx-seg button { position: relative; z-index: 1; border: 0; background: none; padding: 8px 10px; border-radius: var(--radius-full); font: 600 .8rem var(--ff-body); color: var(--ink-soft); cursor: pointer; transition: color .25s ease; white-space: nowrap; }
.nx-seg button.is-on { color: var(--ink); }
.nx-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nx-seg__thumb { position: absolute; z-index: 0; left: 0; top: 5px; bottom: 5px; width: 60px; border-radius: var(--radius-full); background: var(--paper); box-shadow: 0 2px 8px rgba(15, 15, 30, .18), 0 0 0 1px var(--border); transition: transform .5s cubic-bezier(.3, 1.35, .45, 1), width .5s cubic-bezier(.3, 1.35, .45, 1); }

/* ---------- Compteur à chiffres qui roulent ---------- */
.nx-step { display: inline-flex; align-items: center; gap: 14px; }
.nx-step__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--paper); color: var(--ink); font: 500 1.4rem/1 var(--ff-body); cursor: pointer; transition: transform .15s ease, background .25s ease, border-color .25s ease; }
.nx-step__btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.nx-step__btn:active { transform: scale(.88); }
.nx-step__btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.nx-step__val { display: flex; height: 1.15em; font: 700 2.6rem/1.15 var(--ff-heading); letter-spacing: -.03em; overflow: hidden; color: var(--ink); -webkit-mask-image: linear-gradient(transparent 0, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(transparent 0, #000 22%, #000 78%, transparent 100%); }
.nx-step__col { position: relative; width: .62em; height: 100%; }
.nx-step__reel { position: absolute; left: 0; top: 0; width: 100%; transition: transform .55s cubic-bezier(.3, 1.2, .4, 1); }
.nx-step__reel span { display: block; height: 1.15em; text-align: center; }
.nx-step__col.is-gone { display: none; }

/* ---------- Bouton qui demande confirmation en place ---------- */
.nx-conf { position: relative; display: inline-flex; align-items: stretch; height: 46px; border-radius: var(--radius-full); background: #dc2626; color: #fff; overflow: hidden; transition: background .35s ease, box-shadow .35s ease; box-shadow: 0 10px 24px -12px #dc2626; }
.nx-conf button { border: 0; background: none; color: inherit; font: 600 .9rem var(--ff-body); cursor: pointer; padding: 0 20px; transition: width .45s var(--ease), padding .45s var(--ease), opacity .3s ease; }
.nx-conf__main { position: relative; display: grid; align-items: center; min-width: 108px; text-align: center; }
.nx-conf__main > span { grid-area: 1 / 1; transition: transform .4s var(--ease), opacity .25s ease; }
.nx-conf__main .l2, .nx-conf__main .l3 { transform: translateY(120%); opacity: 0; }
.nx-conf__no, .nx-conf__yes { width: 0; padding: 0 !important; opacity: 0; overflow: hidden; white-space: nowrap; }
.nx-conf__no { background: rgba(0, 0, 0, .18) !important; }
.nx-conf__yes { background: rgba(255, 255, 255, .22) !important; }
.nx-conf.is-ask .l1 { transform: translateY(-120%); opacity: 0; }
.nx-conf.is-ask .l2 { transform: none; opacity: 1; }
.nx-conf.is-ask .nx-conf__no { width: 82px; padding: 0 10px !important; opacity: 1; }
.nx-conf.is-ask .nx-conf__yes { width: 54px; padding: 0 10px !important; opacity: 1; }
.nx-conf.is-ask .nx-conf__main { pointer-events: none; }
.nx-conf.is-done { background: #16a34a; box-shadow: 0 10px 24px -12px #16a34a; }
.nx-conf.is-done .l1, .nx-conf.is-done .l2 { transform: translateY(-120%); opacity: 0; }
.nx-conf.is-done .l3 { transform: none; opacity: 1; }
.nx-conf.is-done .nx-conf__no, .nx-conf.is-done .nx-conf__yes { width: 0; padding: 0 !important; opacity: 0; }

/* ---------- Saisie de code (OTP) ---------- */
.nx-otp { display: grid; gap: 12px; justify-items: start; }
.nx-otp__cells { display: flex; gap: 6px; }
.nx-otp input { width: 38px; height: 50px; text-align: center; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--paper); color: var(--ink); font: 700 1.4rem var(--ff-heading); caret-color: var(--accent); transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease), background .25s ease; }
.nx-otp input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transform: translateY(-3px); }
.nx-otp input.has-v { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.nx-otp__msg { font-size: .82rem; color: var(--ink-faint); transition: color .3s ease; }
.nx-otp.is-ok input { border-color: #16a34a; background: color-mix(in srgb, #16a34a 9%, var(--paper)); animation: nxHop .5s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.nx-otp.is-ok .nx-otp__msg { color: #16a34a; }
.nx-otp.is-bad .nx-otp__cells { animation: nxShake .45s ease; }
.nx-otp.is-bad input { border-color: #dc2626; }
.nx-otp.is-bad .nx-otp__msg { color: #dc2626; }
@keyframes nxHop { 0% { transform: translateY(0); } 40% { transform: translateY(-9px); } 100% { transform: translateY(0); } }
@keyframes nxShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@media (max-width: 420px) { .nx-otp input { width: 34px; height: 46px; } .nx-otp__cells { gap: 5px; } }

/* ---------- Molette rotative ---------- */
.nx-knob { --a: 0deg; position: relative; width: 168px; height: 168px; display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.nx-knob__ticks { position: absolute; inset: 0; }
.nx-knob__ticks i { position: absolute; left: 50%; top: 0; width: 2px; height: 9px; margin-left: -1px; border-radius: 2px; background: var(--border); transform-origin: 50% 84px; transition: background .25s ease, height .25s ease; }
.nx-knob__ticks i.on { background: var(--accent); height: 12px; }
.nx-knob__dial { position: relative; width: 118px; height: 118px; border-radius: 50%; cursor: grab; transform: rotate(var(--a)); background: radial-gradient(circle at 32% 26%, #fff 0, var(--paper-alt) 55%, color-mix(in srgb, var(--paper-alt) 70%, #000) 100%); box-shadow: 0 18px 30px -12px rgba(10, 10, 30, .45), inset 0 2px 3px rgba(255, 255, 255, .9), inset 0 -6px 10px rgba(0, 0, 0, .12), 0 0 0 1px var(--border); transition: transform .08s linear; }
.nx-knob__dial::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(0, 0, 0, .05) 0 6deg, transparent 6deg 12deg); }
.nx-knob.is-drag .nx-knob__dial { cursor: grabbing; transition: none; }
.nx-knob__mark { position: absolute; left: 50%; top: 9px; width: 6px; height: 22px; margin-left: -3px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 10px var(--accent); z-index: 1; }
.nx-knob:focus-visible .nx-knob__dial { box-shadow: 0 18px 30px -12px rgba(10, 10, 30, .45), 0 0 0 3px var(--accent); }
.nx-knob__out { position: absolute; bottom: -2px; left: 0; right: 0; text-align: center; font: 700 .9rem var(--ff-heading); color: var(--ink-soft); pointer-events: none; }
html[data-theme="dark"] .nx-knob__dial { background: radial-gradient(circle at 32% 26%, #4a4560 0, #2b2740 55%, #17141f 100%); box-shadow: 0 18px 30px -12px #000, inset 0 2px 3px rgba(255, 255, 255, .12), inset 0 -6px 10px rgba(0, 0, 0, .4), 0 0 0 1px var(--border); }

/* ---------- Panneau à palettes (split-flap) ---------- */
.nx-flap { position: relative; padding: 34px 20px 44px; border-radius: var(--radius-lg); background: #15130d; color: #f6eac4; cursor: pointer; outline: none; display: grid; justify-items: center; gap: 22px; overflow: hidden; }
.nx-flap:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.nx-flap__row { display: flex; gap: clamp(3px, 1vw, 7px); }
.nx-flap__cap { font: 500 .72rem var(--ff-body); letter-spacing: .2em; text-transform: uppercase; color: #a59870; }
.nx-fc { position: relative; width: clamp(30px, 9vw, 58px); height: clamp(46px, 13vw, 84px); font: 700 clamp(26px, 8vw, 52px)/1 'Courier New', ui-monospace, monospace; perspective: 400px; }
.nx-fc > i, .nx-fc > b { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: #26231a; font-style: normal; font-weight: inherit; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.nx-fc > i::before, .nx-fc > b::before { content: attr(data-c); position: absolute; left: 0; right: 0; height: 200%; display: grid; place-items: center; }
.nx-fc .t, .nx-fc .ft { top: 0; border-radius: 6px 6px 0 0; transform-origin: 50% 100%; }
.nx-fc .bm, .nx-fc .fb { bottom: 0; border-radius: 0 0 6px 6px; transform-origin: 50% 0; }
.nx-fc .t::before, .nx-fc .ft::before { top: 0; }
.nx-fc .bm::before, .nx-fc .fb::before { bottom: 0; }
.nx-fc .fb { transform: rotateX(90deg); }
.nx-fc.is-flip .ft { animation: nxFlapTop .13s ease-in forwards; }
.nx-fc.is-flip .fb { animation: nxFlapBot .13s .13s ease-out forwards; }
@keyframes nxFlapTop { to { transform: rotateX(-90deg); } }
@keyframes nxFlapBot { to { transform: rotateX(0); } }
.nx-fc::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #000; z-index: 5; }

/* ---------- Carte à gratter ---------- */
.nx-scratch { position: relative; max-width: 360px; height: 190px; border-radius: var(--radius-md); overflow: hidden; background: linear-gradient(135deg, var(--accent), #ec4899); color: #fff; touch-action: none; user-select: none; -webkit-user-select: none; }
.nx-scratch__prize { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; }
.nx-scratch__prize small { font: 600 .72rem var(--ff-body); letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.nx-scratch__prize b { font: 800 3.4rem/1 var(--ff-heading); letter-spacing: -.04em; }
.nx-scratch__prize span { font: 600 .8rem 'Courier New', monospace; padding: 4px 10px; border-radius: 6px; background: rgba(0, 0, 0, .22); letter-spacing: .1em; }
.nx-scratch__layer { position: absolute; inset: 0; transition: opacity .7s ease; }
.nx-scratch__layer canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.nx-scratch.is-open .nx-scratch__layer { opacity: 0; pointer-events: none; }
.nx-scratch.is-open .nx-scratch__prize b { animation: nxPop .6s var(--ease) both; }
.nx-scratch__again { position: absolute; right: 10px; bottom: 10px; z-index: 2; border: 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .25); color: #fff; font: 600 .74rem var(--ff-body); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes nxPop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Chargement « réflexion » + message qui s'écrit ---------- */
.nx-think { max-width: 520px; display: grid; gap: 12px; }
.nx-think__q { justify-self: end; padding: 10px 16px; border-radius: 18px 18px 4px 18px; background: var(--accent); color: #fff; font-size: .92rem; max-width: 80%; }
.nx-think__a { position: relative; padding: 14px 18px; border-radius: 18px 18px 18px 4px; background: var(--paper-alt); border: 1px solid var(--border); font-size: .94rem; line-height: 1.6; min-height: 54px; }
.nx-think__dots { display: inline-flex; gap: 5px; vertical-align: middle; margin-right: 10px; }
.nx-think__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: nxDot 1s ease-in-out infinite; }
.nx-think__dots i:nth-child(2) { animation-delay: .15s; } .nx-think__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes nxDot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-6px); opacity: 1; } }
.nx-think__state { background: linear-gradient(100deg, var(--ink-faint) 30%, var(--ink) 50%, var(--ink-faint) 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: nxShimmer 1.6s linear infinite; font-weight: 500; }
@keyframes nxShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.nx-think__msg { display: none; }
.nx-think.is-writing .nx-think__dots, .nx-think.is-writing .nx-think__state { display: none; }
.nx-think.is-writing .nx-think__msg { display: inline; }
.nx-think__msg .w { opacity: 0; filter: blur(5px); display: inline-block; white-space: pre; animation: nxWord .35s ease forwards; }
.nx-think__msg::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: text-bottom; background: var(--accent); animation: nxCaret .8s steps(1) infinite; }
.nx-think.is-done .nx-think__msg::after { display: none; }
@keyframes nxWord { to { opacity: 1; filter: none; } }
@keyframes nxCaret { 50% { opacity: 0; } }
.nx-think__again { justify-self: start; border: 0; background: none; color: var(--accent); font: 600 .82rem var(--ff-body); cursor: pointer; padding: 4px 0; opacity: 0; transition: opacity .3s ease; }
.nx-think.is-done .nx-think__again { opacity: 1; }

/* ---------- Texte sur cylindre 3D ---------- */
.nx-cyl { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 26px 18px; border-radius: var(--radius-lg); background: var(--paper-alt); border: 1px solid var(--border); overflow: hidden; }
.nx-cyl__lead { font: 700 clamp(1.3rem, 3.4vw, 2.2rem) var(--ff-heading); letter-spacing: -.02em; color: var(--ink); }
.nx-cyl__stage { height: 74px; width: 11.5ch; margin-left: 6px; perspective: 520px; -webkit-mask-image: linear-gradient(transparent 0, #000 26%, #000 74%, transparent 100%); mask-image: linear-gradient(transparent 0, #000 26%, #000 74%, transparent 100%); font: 700 clamp(1.3rem, 3.4vw, 2.2rem) var(--ff-heading); letter-spacing: -.02em; }
.nx-cyl__ring { position: relative; height: 100%; width: 100%; transform-style: preserve-3d; animation: nxCyl 16s linear infinite; }
.nx-cyl__ring span { position: absolute; inset: 0; display: grid; align-items: center; justify-items: start; line-height: 1; color: var(--accent); backface-visibility: hidden; transform: rotateX(calc(var(--i) * -45deg)) translateZ(90px); }
.nx-cyl__ring span:nth-child(odd) { color: #ec4899; }
@keyframes nxCyl { from { transform: rotateX(0); } to { transform: rotateX(360deg); } }
.nx-cyl__stage:hover .nx-cyl__ring { animation-play-state: paused; }

/* ---------- Néon + arc-en-ciel ---------- */
.nx-neon { display: grid; gap: 26px; justify-items: center; padding: 38px 18px; border-radius: var(--radius-lg); background: #0a0710; overflow: hidden; }
.nx-neon p { margin: 0; }
.nx-neon__sign { font: 700 clamp(2.6rem, 9vw, 4.6rem) var(--ff-heading); letter-spacing: .04em; color: #ffe3f6; text-shadow: 0 0 4px #fff, 0 0 12px #ff3fb4, 0 0 26px #ff3fb4, 0 0 52px #d300a0, 0 0 90px #d300a0; animation: nxNeon 5.5s infinite; }
.nx-neon__sign span { animation: nxNeonB 7s infinite; display: inline-block; }
@keyframes nxNeon { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: .55; text-shadow: none; } }
@keyframes nxNeonB { 0%, 40%, 44%, 100% { opacity: 1; } 42% { opacity: .15; } 43% { opacity: .9; } }
.nx-neon__rainbow { font: 800 clamp(1.8rem, 6vw, 3.2rem) var(--ff-heading); letter-spacing: -.02em; background: linear-gradient(90deg, #ff4d4d, #ffb84d, #f6ff4d, #4dff88, #4dc3ff, #9b4dff, #ff4dd8, #ff4d4d); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: nxRainbow 4s linear infinite; }
@keyframes nxRainbow { to { background-position: -200% 0; } }

/* ---------- Carte à survol directionnel ---------- */
.nx-dir { --x: 0%; --y: -101%; position: relative; height: 200px; padding: 22px; border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); cursor: pointer; isolation: isolate; }
.nx-dir b { font: 700 1.3rem var(--ff-heading); letter-spacing: -.01em; }
.nx-dir span { font-size: .85rem; opacity: .85; }
.nx-dir__veil { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(12, 8, 28, .93); transform: translate(var(--x), var(--y)); transition: transform .45s var(--ease); }
.nx-dir__veil em { font: 600 .95rem var(--ff-body); font-style: normal; letter-spacing: .02em; }
.nx-dir.is-in .nx-dir__veil { transform: translate(0, 0); }
.nx-dir.no-anim .nx-dir__veil { transition: none; }
@media (hover: none) { .nx-dir__veil { display: none; } }

/* ---------- Pile de cartes à swiper ---------- */
.nx-deck { display: grid; justify-items: center; gap: 18px; }
.nx-deck__stack { position: relative; width: min(300px, 82vw); height: 270px; margin-bottom: 44px; touch-action: pan-y; }
.nx-deck__card { position: absolute; inset: 0; padding: 22px; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--g1), var(--g2)); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; box-shadow: 0 22px 40px -18px rgba(20, 10, 50, .55); user-select: none; -webkit-user-select: none; cursor: grab; transition: transform .5s var(--ease), opacity .4s ease; will-change: transform; }
.nx-deck__card.is-drag { transition: none; cursor: grabbing; }
.nx-deck__card small { position: absolute; top: 20px; left: 22px; font: 600 .78rem var(--ff-body); letter-spacing: .14em; opacity: .75; }
.nx-deck__card b { font: 700 1.7rem var(--ff-heading); letter-spacing: -.02em; }
.nx-deck__card p { margin: 0; font-size: .9rem; line-height: 1.45; opacity: .9; }
.nx-deck__ctrl { display: flex; gap: 10px; }
.nx-deck__ctrl button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--paper); color: var(--ink); font-size: 1.1rem; cursor: pointer; transition: transform .15s ease, border-color .25s ease; }
.nx-deck__ctrl button:hover { border-color: var(--accent); } .nx-deck__ctrl button:active { transform: scale(.9); }

/* ---------- Carte à flou progressif ---------- */
.nx-pblur { position: relative; height: 320px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; isolation: isolate; }
.nx-pblur__art { position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 25% 25%, #fbbf24 0, transparent 62%), radial-gradient(55% 55% at 78% 30%, #ec4899 0, transparent 62%),
  radial-gradient(70% 60% at 55% 85%, #6366f1 0, transparent 66%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .18) 0 2px, transparent 2px 22px), #1e1b4b; }
.nx-pblur__blur { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; pointer-events: none; }
.nx-pblur__blur i { position: absolute; inset: 0; }
.nx-pblur__blur i:nth-child(1) { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); -webkit-mask-image: linear-gradient(transparent 0, #000 25%, #000 50%, transparent 62%); mask-image: linear-gradient(transparent 0, #000 25%, #000 50%, transparent 62%); }
.nx-pblur__blur i:nth-child(2) { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); -webkit-mask-image: linear-gradient(transparent 25%, #000 50%, #000 70%, transparent 82%); mask-image: linear-gradient(transparent 25%, #000 50%, #000 70%, transparent 82%); }
.nx-pblur__blur i:nth-child(3) { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(transparent 50%, #000 72%, #000 88%, transparent 96%); mask-image: linear-gradient(transparent 50%, #000 72%, #000 88%, transparent 96%); }
.nx-pblur__blur i:nth-child(4) { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); -webkit-mask-image: linear-gradient(transparent 70%, #000 90%); mask-image: linear-gradient(transparent 70%, #000 90%); }
.nx-pblur__blur::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(10, 8, 30, .55)); }
.nx-pblur__txt { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; display: grid; gap: 6px; }
.nx-pblur__txt small { font: 600 .7rem var(--ff-body); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.nx-pblur__txt b { font: 700 1.4rem/1.15 var(--ff-heading); letter-spacing: -.02em; }

@media (prefers-reduced-motion: reduce) {
  .nx-seg__thumb, .nx-step__reel, .nx-conf, .nx-conf button, .nx-dir__veil, .nx-deck__card { transition-duration: .01s !important; }
  .nx-cyl__ring, .nx-neon__sign, .nx-neon__sign span, .nx-neon__rainbow, .nx-think__dots i, .nx-think__state, .nx-think__msg::after { animation: none !important; }
  .nx-think__msg .w { animation-duration: .01s !important; }
}

/* ============================================================
   HERO « ANIMAL » — l'animal entre en premier, puis les éléments apparaissent en séquence
   (navigation, titre en bas à gauche, cartes aux formes découpées en bas à droite).
   Tout est dimensionné en cqw (container query) : la scène garde ses proportions à toute taille.
   Formes atypiques : clip-path SVG (clipPathUnits="objectBoundingBox") → marche à toutes les tailles.
   ============================================================ */
.nxh { container-type: inline-size; position: relative; aspect-ratio: 16 / 9; min-height: 430px; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #c7d2df 0%, #bfcbd9 55%, #b3c1d2 100%); color: #10213f; }
.nxh__defs { position: absolute; }
.nxh__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; mix-blend-mode: darken; opacity: 0; z-index: 2; transform: scale(.9); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, #000 22%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, #000 22%); mask-composite: intersect; }
.nxh__glow { position: absolute; left: 58%; top: 46%; width: 56cqw; height: 40cqw; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(62, 140, 255, .34), transparent 70%); filter: blur(10px); opacity: 0; pointer-events: none; }
.nxh__ghost { position: absolute; left: 0; right: 0; top: 14%; text-align: center; font: 700 15cqw/1 Georgia, 'Times New Roman', serif; color: rgba(40, 80, 140, .2); letter-spacing: .04em; opacity: 0; z-index: 1; pointer-events: none; white-space: nowrap; }
.nxh__x { opacity: 0; }

/* navigation */
.nxh__nav { position: absolute; left: 3.2cqw; right: 3.2cqw; top: 2.6cqw; display: flex; align-items: center; justify-content: space-between; gap: 2cqw; z-index: 4; }
.nxh__logo { color: #10213f; display: inline-flex; align-items: center; gap: .7cqw; font: 700 clamp(12px, 1.5cqw, 18px) var(--ff-heading); letter-spacing: .02em; }
.nxh__logo i { width: 2.4cqw; height: 1.3cqw; min-width: 24px; min-height: 12px; background: linear-gradient(100deg, #1d6bff, #7cc0ff); clip-path: polygon(0 60%, 70% 0, 100% 20%, 40% 100%); }
.nxh__pills { display: flex; gap: .4cqw; padding: .35cqw; border-radius: 999px; background: rgba(255, 255, 255, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .6); }
.nxh__pills a { padding: .55cqw 1.2cqw; border-radius: 999px; font: 500 clamp(9px, 1.05cqw, 13px) var(--ff-body); color: rgba(16, 33, 63, .7); text-decoration: none; white-space: nowrap; }
.nxh__pills a.is-on { background: #fff; color: #10213f; }
.nxh__res { padding: .75cqw 1.5cqw; border-radius: 999px; background: #fff; color: #0b1730; font: 600 clamp(9px, 1.05cqw, 13px) var(--ff-body); text-decoration: none; }

/* titre, texte, boutons (bas gauche) */
.nxh__copy { position: absolute; left: 4cqw; bottom: 4.4cqw; z-index: 4; max-width: 32cqw; }
.nxh__copy h2 { margin: 0 0 1.2cqw; font: 500 clamp(22px, 4.3cqw, 56px)/1.02 var(--ff-heading); letter-spacing: -.03em; color: #10213f; }
.nxh__line { display: block; }
.nxh__line em { font-style: normal; color: #1d6bff; font-weight: 300; margin-right: .4ch; }
.nxh__copy p { margin: 0 0 1.6cqw; font: 400 clamp(11px, 1.15cqw, 15px)/1.5 var(--ff-body); color: rgba(16, 33, 63, .72); max-width: 28ch; }
.nxh__btns { display: flex; gap: .9cqw; flex-wrap: wrap; }
.nxh__cta, .nxh__ghostbtn { display: inline-flex; align-items: center; gap: .9cqw; padding: .8cqw 1.5cqw; border-radius: 999px; font: 600 clamp(10px, 1.1cqw, 14px) var(--ff-body); text-decoration: none; white-space: nowrap; }
.nxh__cta { background: #1d6bff; color: #fff; padding-right: .5cqw; box-shadow: 0 10px 24px -10px #1d6bff; }
.nxh__cta i { display: grid; place-items: center; width: 2.4cqw; height: 2.4cqw; min-width: 22px; min-height: 22px; border-radius: 50%; background: #fff; color: #1d6bff; font-style: normal; font-size: 1.4em; line-height: 1; }
.nxh__ghostbtn { background: rgba(255, 255, 255, .85); color: #10213f; }

/* cartes aux formes découpées (bas droite) */
.nxh__cards { position: absolute; right: 3.2cqw; bottom: 3.2cqw; display: flex; align-items: flex-end; gap: .9cqw; z-index: 4; filter: drop-shadow(0 1.4cqw 2cqw rgba(20, 40, 80, .3)); }
.nxh__card { position: relative; padding: 1.7cqw; color: #0e1b33; background: linear-gradient(150deg, rgba(255, 255, 255, .92), rgba(205, 226, 255, .78)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nxh__card h3 { margin: 0 0 .4cqw; font: 600 clamp(10px, 1.25cqw, 16px) var(--ff-heading); letter-spacing: -.01em; }
.nxh__card p { margin: 0; font: 400 clamp(9px, 1cqw, 13px)/1.4 var(--ff-body); color: rgba(14, 27, 51, .72); }
.nxh__card--step { width: 13.4cqw; aspect-ratio: .82; clip-path: url(#nxhShapeStep); padding-top: 4.6cqw; padding-bottom: 3.6cqw; align-self: flex-end; display: flex; flex-direction: column; justify-content: flex-end; }
.nxh__card--bite { width: 14.6cqw; aspect-ratio: 1.02; clip-path: url(#nxhShapeBite); background: linear-gradient(150deg, rgba(40, 110, 255, .92), rgba(20, 60, 170, .9)); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.nxh__card--bite p { color: rgba(255, 255, 255, .8); }
.nxh__big { display: flex; align-items: baseline; }
.nxh__card--bite strong { font: 300 clamp(30px, 4.9cqw, 70px)/1 var(--ff-heading); letter-spacing: -.04em; }
.nxh__card--bite .u { font: 300 clamp(16px, 2.4cqw, 32px) var(--ff-heading); margin-left: .2cqw; }
.nxh__card--ticket { width: 13.8cqw; aspect-ratio: 1.12; clip-path: url(#nxhShapeTicket); display: flex; flex-direction: column; justify-content: flex-end; padding-inline: 2.3cqw; }
.nxh__chart { width: 55%; height: auto; color: #1d6bff; margin-bottom: auto; }
.nxh__orb { position: absolute; left: 1.6cqw; top: 1.4cqw; width: 4.6cqw; height: 4.6cqw; min-width: 36px; min-height: 36px; clip-path: url(#nxhShapeBlob); background: radial-gradient(circle at 32% 28%, #bfe0ff, #2a7bff 55%, #1239a8); animation: nxhFloat 4s ease-in-out infinite; }
.nxh__arrow { position: absolute; right: 1.1cqw; bottom: 1.1cqw; display: grid; place-items: center; width: 2.4cqw; height: 2.4cqw; min-width: 22px; min-height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .8); font-style: normal; font-size: clamp(10px, 1.1cqw, 14px); color: #0e1b33; }
.nxh__arrow--bite { top: 3.4cqw; bottom: auto; right: .8cqw; background: #fff; }

/* pastille « projets livrés » */
.nxh__users { position: absolute; right: 3.4cqw; top: 13%; z-index: 4; display: flex; align-items: center; gap: .8cqw; padding: .55cqw 1.3cqw .55cqw .6cqw; border-radius: 999px; color: #10213f; background: rgba(255, 255, 255, .45); border: 1px solid rgba(255, 255, 255, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 400 clamp(9px, 1.1cqw, 14px) var(--ff-body); }
.nxh__users .av { display: grid; place-items: center; width: 2.6cqw; height: 2.6cqw; min-width: 24px; min-height: 24px; margin-right: -1.1cqw; border-radius: 50%; border: 2px solid #dfe7f0; font: 700 .85em var(--ff-heading); color: #fff; }
.nxh__users .a1 { background: linear-gradient(135deg, #7c3aed, #ec4899); } .nxh__users .a2 { background: linear-gradient(135deg, #0ea5e9, #6366f1); } .nxh__users .a3 { background: linear-gradient(135deg, #10b981, #0ea5e9); } .nxh__users .a4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.nxh__users em { font-style: normal; margin-left: 1.4cqw; color: rgba(16, 33, 63, .72); }
.nxh__users b { font-weight: 500; font-size: 1.25em; color: #10213f; margin-left: .3cqw; }
.nxh__replay { position: absolute; left: 50%; bottom: 1.2cqw; transform: translateX(-50%); z-index: 5; border: 1px solid rgba(16, 33, 63, .2); background: rgba(255, 255, 255, .5); color: #10213f; border-radius: 999px; padding: .5cqw 1.3cqw; font: 500 clamp(9px, 1cqw, 13px) var(--ff-body); cursor: pointer; opacity: 0; transition: opacity .4s ease; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nxh.is-done .nxh__replay { opacity: .85; } .nxh.is-done .nxh__replay:hover { opacity: 1; }

/* séquence d'apparition : pilotée par la lecture de la vidéo (data-at = seconde d'arrivée) */
.nxh.is-play .nxh__video { animation: nxhVideo .5s ease-out both; }
.nxh.is-play .nxh__ghost { animation: nxhGhost 2.6s cubic-bezier(.16, 1, .3, 1) .3s both; }
.nxh__x.is-in { animation: nxhIn 1s cubic-bezier(.2, 1.1, .35, 1) both; }
.nxh__line.is-in { animation: nxhLine .9s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes nxhVideo { from { opacity: 0; } to { opacity: 1; } }
@keyframes nxhGhost { from { opacity: 0; letter-spacing: .3em; filter: blur(16px); } to { opacity: 1; letter-spacing: .04em; filter: none; } }
@keyframes nxhIn { from { opacity: 0; transform: var(--from, translateY(24px)); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes nxhLine { from { opacity: 0; transform: translateX(-60px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.nxh__fx-right { --from: translate(90px, 30px) rotate(4deg) scale(.92); }
.nxh__fx-left { --from: translateX(-80px); }
.nxh__fx-down { --from: translateY(-34px); }
/* lumière qui suit le regard : un halo apparaît du côté où l'oiseau regarde */
.nxh__beam { position: absolute; top: 18%; bottom: 0; width: 46%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1s ease; filter: blur(8px); }
.nxh__beam--r { right: -6%; background: radial-gradient(70% 70% at 78% 62%, rgba(255, 255, 255, .85), transparent 70%); }
.nxh__beam--l { left: -6%; background: radial-gradient(70% 70% at 22% 66%, rgba(255, 255, 255, .8), transparent 70%); }
.nxh.g-right .nxh__beam--r, .nxh.g-left .nxh__beam--l { opacity: 1; }
@keyframes nxhFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(8deg); } }

/* petits écrans : l'animal en haut, texte puis cartes dessous
   (le conteneur lui-même se règle en @media : un @container ne peut pas styler son propre conteneur) */
@media (max-width: 760px) {
  .nxh { aspect-ratio: auto; min-height: 0; padding-top: calc((100vw - 40px) * .86); display: flex; flex-direction: column; gap: 22px; padding-bottom: 24px; }
}
@container (max-width: 760px) {
  .nxh__video { height: 86cqw; bottom: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, #000 22%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, #000 22%, #000 90%, transparent 100%); }
  .nxh__ghost { top: 4%; font-size: 24cqw; }
  .nxh__nav { left: 4cqw; right: 4cqw; top: 3cqw; }
  .nxh__pills { display: none; }
  .nxh__copy, .nxh__cards, .nxh__users { position: relative; left: auto; right: auto; top: auto; bottom: auto; max-width: none; margin-inline: 5cqw; }
  .nxh__copy h2 { font-size: 9cqw; } .nxh__copy p { font-size: 13px; max-width: 36ch; } .nxh__btns a { font-size: 12px; padding: 10px 16px; }
  .nxh__users { align-self: flex-start; font-size: 12px; } .nxh__users .av { width: 28px; height: 28px; margin-right: -10px; }
  .nxh__cards { justify-content: flex-start; gap: 3cqw; }
  .nxh__card--step { width: 40cqw; padding-top: 14cqw; } .nxh__card--bite { width: 42cqw; } .nxh__card--ticket { display: none; }
  .nxh__card h3 { font-size: 14px; } .nxh__card p { font-size: 11px; } .nxh__card { padding: 4cqw; }
  .nxh__card--bite strong { font-size: 13cqw; } .nxh__card--bite .u { font-size: 6cqw; }
  .nxh__orb { width: 11cqw; height: 11cqw; left: 4cqw; top: 3.5cqw; } .nxh__arrow { right: 3cqw; bottom: 3cqw; width: 24px; height: 24px; } .nxh__arrow--bite { top: 11cqw; right: 2.5cqw; }
  .nxh__replay { position: relative; left: auto; bottom: auto; transform: none; align-self: center; padding: 8px 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .nxh .nxh__x, .nxh__video, .nxh__ghost { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .nxh__orb { animation: none; } .nxh__ghost { opacity: 1; }
}

/* ===================== Hero abeille détourée — la vidéo avance avec le scroll ===================== */
.bee { position: relative; height: 480vh; }
.bee__sticky { position: sticky; top: 64px; height: calc(100vh - 76px); height: calc(100svh - 76px); min-height: 460px; }
.bee__stage { position: relative; height: 100%; overflow: hidden; border-radius: 22px; background: radial-gradient(80% 80% at 50% 50%, #f6b73a, #a85d06); color: #3a2204; isolation: isolate; }
.bee__world { position: absolute; inset: 0; perspective: 1300px; perspective-origin: 50% 45%; }
.bee__sec { position: absolute; inset: 0; overflow: hidden; font-family: Inter, sans-serif; will-change: transform, opacity; }
.bee__sec h3 { margin: 0; font-family: Poppins, Inter, sans-serif; font-weight: 700; letter-spacing: -.025em; }
.bee__sec h3 em { font-style: normal; }
/* 1 · accueil : l'écran se renverse vers l'arrière quand la page 2 arrive */
.bee__sec--1 {
  background: linear-gradient(158deg, #fff4d6 0%, #ffd873 48%, #f4a826 100%);
  transform-origin: 50% 0;
}
.bee__sun { position: absolute; right: -8%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 240, 180, .35) 55%, transparent); }
.bee__hex { position: absolute; inset: 0; opacity: .6; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='146' viewBox='0 0 56 97'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34zM28 100L0 84V50M56 84L28 100' fill='none' stroke='%23fff' stroke-opacity='.55' stroke-width='1'/%3E%3C/svg%3E"); -webkit-mask: linear-gradient(250deg, #000 5%, transparent 62%); mask: linear-gradient(250deg, #000 5%, transparent 62%); }
.bee__nav { position: absolute; left: 4%; right: 4%; top: 4.5%; z-index: 2; display: flex; align-items: center; gap: clamp(12px, 2.2vw, 30px); font-size: clamp(11px, 1.05vw, 14px); font-weight: 600; color: #4a2b05; }
.bee__nav b { display: flex; align-items: center; gap: 8px; margin-right: auto; font: 700 clamp(14px, 1.5vw, 19px) Poppins, Inter, sans-serif; letter-spacing: .04em; }
.bee__nav b i { width: 1.15em; aspect-ratio: 1; background: #3a2204; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }
.bee__navbtn { padding: .7em 1.4em; border-radius: 99px; background: #3a2204; color: #ffe29a; }
.bee__copy { position: absolute; right: 5%; top: 50%; width: min(38%, 500px); transform: translateY(-46%); }
.bee__copy small { display: block; margin-bottom: 14px; font-size: clamp(10px, .95vw, 13px); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.bee__copy h3 { font-size: clamp(34px, 5.6vw, 82px); line-height: 1; color: #3a2204; }
.bee__copy h3 em { color: #b85f00; }
.bee__copy p { margin: 18px 0 24px; font-size: clamp(13px, 1.25vw, 17px); line-height: 1.55; opacity: .85; max-width: 44ch; }
.bee__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.bee__btn { padding: .85em 1.6em; border-radius: 99px; border: 1.5px solid rgba(58, 34, 4, .55); font-size: clamp(11px, 1vw, 14px); font-weight: 700; }
.bee__btn--solid { background: #3a2204; color: #ffe29a; border-color: #3a2204; }
.bee__stats { display: flex; gap: clamp(14px, 2.4vw, 34px); margin: 30px 0 0; padding: 20px 0 0; list-style: none; border-top: 1.5px solid rgba(58, 34, 4, .25); }
.bee__stats b { display: block; font: 700 clamp(18px, 2.2vw, 30px) Poppins, Inter, sans-serif; }
.bee__stats span { font-size: clamp(10px, .9vw, 12.5px); opacity: .7; }
/* 2 · pollinisation : prairie en lumière dorée, plans étagés (fond, fleur, herbe d'avant-plan) */
.bee__sec--2 { border-radius: 28px 28px 0 0; visibility: hidden; transform: translate3d(0, 100%, 0); background: #cfe3a6; color: #173a14; }
.bee__sky { position: absolute; inset: 0; background: radial-gradient(70% 55% at 18% 8%, rgba(255, 244, 205, .95) 0%, rgba(255, 244, 205, 0) 62%), linear-gradient(180deg, #f4efc9 0%, #cfe3a2 34%, #8fbd64 66%, #4d8a3e 100%); }
.bee__rays { position: absolute; inset: 0; opacity: .55; background: repeating-linear-gradient(104deg, rgba(255, 255, 235, 0) 0 70px, rgba(255, 255, 235, .22) 70px 130px, rgba(255, 255, 235, 0) 130px 210px); -webkit-mask: radial-gradient(75% 70% at 14% 0%, #000 0%, transparent 72%); mask: radial-gradient(75% 70% at 14% 0%, #000 0%, transparent 72%); }
.bee__hills { position: absolute; left: -4%; right: -4%; bottom: 14%; height: 36%; background: linear-gradient(180deg, rgba(120, 170, 90, .55), rgba(70, 125, 60, .75)); clip-path: polygon(0 52%, 14% 30%, 30% 46%, 47% 22%, 64% 44%, 80% 26%, 100% 48%, 100% 100%, 0 100%); }
.bee__bokeh { position: absolute; inset: 0; opacity: .75; background: radial-gradient(circle at 9% 26%, rgba(255, 255, 255, .55) 0 4.5%, transparent 5%), radial-gradient(circle at 27% 62%, rgba(255, 244, 170, .5) 0 6%, transparent 6.5%), radial-gradient(circle at 64% 13%, rgba(255, 255, 255, .4) 0 3.5%, transparent 4%), radial-gradient(circle at 90% 32%, rgba(255, 250, 200, .5) 0 5.5%, transparent 6%), radial-gradient(circle at 78% 70%, rgba(255, 255, 255, .3) 0 8%, transparent 8.5%), radial-gradient(circle at 44% 44%, rgba(255, 240, 160, .28) 0 4%, transparent 4.5%); }
.bee__bgflowers { position: absolute; left: 0; right: 0; bottom: 6%; width: 100%; height: 70%; }
.bee__flower { position: absolute; left: 54%; bottom: -17%; width: 38%; transform: translate3d(-50%, 0, 0); }
.bee__flower3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.bee__sec--2.has-3d .bee__flower3d { opacity: 1; }
.bee__sec--2.has-3d .bee__flower { opacity: 0; transition: opacity .6s ease; }
.bee__pollens { position: absolute; inset: 0; pointer-events: none; }
.bee__pollen { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6c4, #ffd45e 60%, rgba(255, 190, 40, 0)); opacity: .85; animation: beePollen var(--d) ease-in-out var(--dl) infinite; }
@keyframes beePollen { 0%, 100% { transform: translate3d(0, 0, 0); } 33% { transform: translate3d(14px, -22px, 0); } 66% { transform: translate3d(-12px, -10px, 0); } }
.bee__stage:not(.is-s2) .bee__pollen { animation-play-state: paused; }
.bee__grass { position: absolute; left: -2%; right: -2%; bottom: -3%; width: 104%; height: 24%; pointer-events: none; }
.bee__copy--2 { right: auto; left: 5.5%; top: 16%; width: 31%; transform: none; color: #173a14; }
.bee__chip { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 14px 7px 10px; border-radius: 99px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(23, 58, 20, .14); font: 700 clamp(10px, .95vw, 12.5px) Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #2c5a22; }
.bee__chip i { width: 8px; height: 8px; border-radius: 50%; background: #ffd45e; box-shadow: 0 0 0 3px rgba(255, 212, 94, .35); }
.bee__copy--2 h3 { font-size: clamp(32px, 4.8vw, 70px); line-height: 1.02; color: #173a14; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.bee__copy--2 h3 em { color: #d9467f; }
.bee__copy--2 p { margin: 20px 0 26px; max-width: 40ch; color: #2d5226; opacity: 1; }
.bee__btn--light { background: #173a14; color: #fff; border-color: #173a14; box-shadow: 0 10px 24px rgba(23, 58, 20, .28); }
.bee__btn--ghostl { color: #173a14; border-color: rgba(23, 58, 20, .5); }
.bee__card {
  position: absolute; right: 3.5%; width: min(19.5%, 250px); box-sizing: border-box; padding: 16px 18px; border-radius: 22px 6px 22px 22px; color: #1f3a17;
  background: linear-gradient(160deg, rgba(255, 255, 255, .94), rgba(255, 250, 230, .84)); box-shadow: 0 18px 36px rgba(30, 70, 15, .28), inset 0 0 0 1px rgba(255, 255, 255, .8);
  opacity: 0; transition: opacity .5s ease, transform .8s cubic-bezier(.2, 1.1, .3, 1);
  transform: perspective(800px) translate3d(60px, 0, -160px) rotateY(-38deg);
}
.bee__card b { display: block; font: 700 clamp(18px, 2.1vw, 30px) Poppins, Inter, sans-serif; color: #1f3a17; line-height: 1.1; }
.bee__card .bee__sub { display: block; margin-top: 4px; font-size: clamp(10.5px, .95vw, 13px); color: #4c6a3f; line-height: 1.35; }
.bee__card.is-in { opacity: 1; transform: perspective(800px) translate3d(0, 0, 0) rotateY(-10deg); }
.bee__card--1 { top: 13%; } .bee__card--2 { top: 36%; right: 4%; border-radius: 6px 22px 22px 22px; } .bee__card--3 { top: 58%; right: 3%; }
.bee__ico { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: linear-gradient(135deg, #f7a8c9, #e0709f); }
.bee__ico svg { width: 22px; height: 22px; }
.bee__dots { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 10px 0 0; padding: 0; list-style: none; font-size: clamp(10px, .9vw, 12px); font-weight: 600; color: #35552b; }
.bee__dots li { display: flex; align-items: center; gap: 5px; }
.bee__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.bee__ring { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; }
.bee__ring-v { stroke: #e9a400 !important; stroke-dashoffset: 82; transition: stroke-dashoffset 1.1s cubic-bezier(.3, 1, .4, 1) .25s; }
.bee__card.is-in .bee__ring-v { stroke-dashoffset: 0; }
.bee__card--2 .bee__ring circle:first-child { stroke: rgba(31, 58, 23, .12); }
.bee__path { display: block; width: 78px; height: 24px; margin-bottom: 8px; }
.bee__path path { stroke: #e9a400; }
.bee__path circle { fill: #e9a400; }

/* la vidéo détourée (fond vert supprimé) : une image par position du scroll */
.bee__layer { position: absolute; left: 0; top: 0; z-index: 3; width: var(--lw, 100%); aspect-ratio: 1280 / 706; transform-origin: 0 0; pointer-events: none; will-change: transform; }
.bee__sprite { display: block; width: 100%; height: 100%; }
.bee__fly { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 4; pointer-events: none; will-change: transform; }
.bee__tag {
  --ox: .3; --oy: -.3; --k: .5;
  position: absolute; left: 0; top: 0; padding: .55em .9em; white-space: nowrap; line-height: 1.2; text-align: left;
  translate: calc(var(--ox) * var(--u, 300px)) calc(var(--oy) * var(--u, 300px));
  scale: var(--k); opacity: 0; transform: translate(-50%, -50%); transform-origin: 50% 100%;
  transition: scale .5s cubic-bezier(.2, 1.4, .4, 1), opacity .3s ease;
  background: rgba(255, 252, 240, .97); color: #3a2204; border-radius: 14px 14px 14px 4px;
  font: 600 clamp(11px, 1.1vw, 15px) Inter, sans-serif; box-shadow: 0 6px 14px rgba(70, 40, 0, .25);
}
.bee__tag b { display: block; margin-top: .15em; color: #c26a00; font-size: 1.12em; }
.bee__tag.is-in { --k: 1; opacity: 1; }
.bee__tag--a { --ox: .3; --oy: -.34; }
.bee__tag--b { --ox: -.32; --oy: -.26; border-radius: 14px 14px 4px 14px; transform-origin: 100% 100%; }
.bee__tag--c { --ox: .34; --oy: .3; border-radius: 4px 14px 14px 14px; }
.bee__tag--cta { --ox: 0; --oy: .46; background: #f2a812; clip-path: polygon(0 0, 100% 0, 100% 70%, 92% 100%, 0 100%); border-radius: 12px; }
.bee__hud { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 7; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; padding: 0 16px; pointer-events: none; }
.bee__step { font: 700 12px Inter, sans-serif; letter-spacing: .06em; color: rgba(58, 34, 4, .45); transition: color .3s ease; }
.bee__step.is-on { color: #3a2204; }
.bee__stage.is-s2 .bee__step { color: rgba(255, 255, 255, .6); }
.bee__stage.is-s2 .bee__step.is-on { color: #fff; }
.bee__progress { flex: 0 0 100%; max-width: 280px; height: 3px; border-radius: 3px; background: rgba(58, 34, 4, .18); overflow: hidden; }
.bee__stage.is-s2 .bee__progress { background: rgba(255, 255, 255, .3); }
.bee__progress b { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: #3a2204; }
.bee__stage.is-s2 .bee__progress b { background: #fff; }
.bee__hint { position: absolute; left: 50%; bottom: 62px; z-index: 7; transform: translateX(-50%); padding: 8px 16px; border-radius: 99px; background: rgba(58, 34, 4, .82); color: #ffe9b0; font: 600 13px Inter, sans-serif; pointer-events: none; transition: opacity .3s ease; }
.bee__hint.is-off { opacity: 0; }
.bee__hint i { display: inline-block; font-style: normal; animation: beeHint 1.2s ease-in-out infinite; }
@keyframes beeHint { 50% { transform: translateY(4px); } }
@media (max-width: 760px) {
  .bee { height: 440vh; }
  .bee__sticky { top: 56px; height: calc(100svh - 64px); }
  .bee__stage { border-radius: 16px; }
  .bee__nav span:not(.bee__navbtn) { display: none; }
  .bee__copy { right: 6%; left: 6%; width: auto; top: 14%; transform: none; }
  .bee__copy h3 { font-size: clamp(36px, 11vw, 56px); }
  .bee__copy p { max-width: none; }
  .bee__stats { margin-top: 18px; padding-top: 14px; }
  .bee__copy--2 { left: 6%; top: 9%; width: 88%; }
  .bee__chip { margin-bottom: 12px; }
  .bee__copy--2 p { display: none; }
  .bee__copy--2 .bee__btns { display: none; }
  .bee__flower { width: 82%; bottom: -8%; }
  .bee__card { right: auto; left: 0; min-width: 0; width: 30%; box-sizing: border-box; padding: 10px 11px; border-radius: 16px 4px 16px 16px; }
  .bee__ico, .bee__dots, .bee__ring, .bee__path { display: none; }
  .bee__card--1 { top: auto; bottom: 76px; left: 3%; }
  .bee__card--2 { top: auto; bottom: 76px; left: 35%; right: auto; }
  .bee__card--3 { top: auto; bottom: 76px; left: 66%; right: auto; }
  .bee__card b { font-size: 17px; }
  .bee__card .bee__sub { font-size: 10px; }
  .bee__tag { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .bee__hint i { animation: none; } }
