/* ==========================================================
   DYBNESS — charte graphique issue de l'application mobile
   Rouge #AC2601 · Blanc · Urbanist
========================================================== */

:root {
  /* Palette officielle (cf. theme.dart de l'app) */
  --red:        #AC2601;
  --red-light:  #D43A0A;
  --red-deep:   #7E1B00;
  --field:      #F5F5F5;
  --hint:       #AAAAAA;
  --subtitle:   #999999;

  --ink:        #1C1310;   /* texte principal, noir chaud */
  --ink-soft:   #4F4540;
  --paper:      #FFFFFF;
  --paper-warm: #FBF8F6;
  --line:       #ECE5E1;

  /* Lumière des bâtiments */
  --glow:       #FFC98F;
  --glow-hot:   #FFE3C2;

  /* Bâtiments (SVG) */
  --b-face:      #FCF9F6;
  --b-side:      #E0D4CC;
  --b-roof:      #F1E9E3;
  --b-roof-dark: #C9B8AE;
  --b-line:      rgba(70, 35, 20, .22);

  --radius: 20px;
  --header-h: 72px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Urbanist', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--red); color: #fff; }

/* ---------- Typo utilitaires ---------- */
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}
.kicker--center { text-align: center; }

.title {
  font-size: clamp(30px, 5.4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 18em;
}

.lede {
  margin-top: 22px;
  max-width: 560px;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 400;
  color: var(--ink-soft);
}
.lede--center { margin-inline: auto; text-align: center; }
.lede strong { color: var(--red); font-weight: 700; }

.br-md { display: none; }
@media (min-width: 768px) { .br-md { display: inline; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background-color .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(172, 38, 1, .55);
}
.btn--primary:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(172, 38, 1, .6);
}

.btn--ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, .65);
}
.btn--ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

.btn--inverse { background: #fff; color: var(--red); }
.btn--inverse:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(0,0,0,.35); }

.btn--outline { border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.btn--outline:hover { border-color: #fff; transform: translateY(-2px); }

.btn--sm { padding: 11px 22px; font-size: 13.5px; }

/* ==========================================================
   HEADER
========================================================== */
#site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
#site-header.is-scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  max-width: 1200px;
  margin-inline: auto;
  height: var(--header-h);
  padding-inline: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; object-fit: contain; }
.brand-word {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-links { display: none; }
@media (min-width: 1024px) {
  .nav-links { display: flex; gap: 34px; }
  .nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    position: relative;
    transition: color .25s;
  }
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: -6px;
    height: 2px;
    background: var(--red);
    transition: right .3s var(--ease-out);
  }
  .nav-links a:hover { color: var(--red); }
  .nav-links a:hover::after { right: 0; }
}

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }

.menu-toggle {
  width: 42px; height: 42px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.7);
}
.menu-toggle span {
  display: block;
  width: 17px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease-out);
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 28px 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform .35s var(--ease-out), opacity .3s;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 18px; }
.mobile-menu ul a { font-size: 22px; font-weight: 700; color: var(--ink); }
.mobile-menu .btn { align-self: flex-start; }

/* ==========================================================
   HERO
========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 36px) 20px 88px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 46% at 78% 26%, rgba(212, 58, 10, .085), transparent 70%),
    radial-gradient(48% 42% at 12% 84%, rgba(172, 38, 1, .055), transparent 70%),
    linear-gradient(180deg, var(--paper-warm), var(--paper) 55%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 24px; }
}

.hero-copy { text-align: center; }
@media (min-width: 1024px) { .hero-copy { text-align: left; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(172, 38, 1, .22);
  background: rgba(172, 38, 1, .05);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
}
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red-light);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 58, 10, .45); }
  50%       { box-shadow: 0 0 0 7px rgba(212, 58, 10, 0); }
}

.hero-title {
  font-size: clamp(40px, 7.6vw, 76px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-title em {
  font-style: normal;
  color: var(--red);
  background: linear-gradient(95deg, var(--red), var(--red-light) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin: 26px auto 0;
  max-width: 430px;
  font-size: clamp(16px, 2.1vw, 19px);
  color: var(--ink-soft);
}
@media (min-width: 1024px) { .hero-sub { margin-inline: 0; } }

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
@media (min-width: 1024px) { .hero-actions { justify-content: flex-start; } }

.hero-tagline {
  position: relative;
  z-index: 2;
  margin-top: 60px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--subtitle);
}

/* Animation d'entrée du hero */
[data-hero] {
  opacity: 0;
  transform: translateY(26px);
  animation: hero-in .9s var(--ease-out) forwards;
  animation-delay: calc(var(--d) * 130ms + 150ms);
}
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------
   Scène : téléphone + bâtiments
---------------------------------------------------------- */
.hero-stage {
  position: relative;
  margin-inline: auto;
  width: min(440px, 94vw);
  aspect-ratio: 44 / 60;
  perspective: 1400px;
}

.phone {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 0;
  width: 62%;
  aspect-ratio: 9 / 19.2;          /* proportions iPhone moderne */
  transform: rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out);
}

.phone-frame {
  position: absolute;
  inset: 0;
  border-radius: 13% / 6.2%;
  background: linear-gradient(160deg, #3A3330, #171210 55%, #2C2522);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.14),
    0 50px 90px -32px rgba(48, 16, 2, .5),
    0 18px 44px -18px rgba(48, 16, 2, .38);
  padding: 3.2%;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 11% / 5.2%;
  overflow: hidden;
  background: linear-gradient(180deg, #1A0A04 0%, #3B1003 52%, #6E2104 86%, #93330A 100%);
}

.screen-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 46% at 50% 102%, rgba(255, 132, 64, .5), transparent 72%),
    radial-gradient(45% 26% at 50% 100%, rgba(255, 201, 143, .55), transparent 75%);
}

.screen-grid {
  position: absolute;
  inset: 56% 0 0 0;
  background-image:
    linear-gradient(rgba(255, 190, 130, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 190, 130, .14) 1px, transparent 1px);
  background-size: 34px 26px;
  transform: perspective(280px) rotateX(48deg);
  transform-origin: top;
  mask-image: linear-gradient(180deg, transparent, #000 28%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 28%);
}

.screen-horizon {
  position: absolute;
  inset-inline: 8%;
  top: 55.5%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 210, 160, .8), transparent);
  filter: blur(.4px);
}

.phone-island {
  position: absolute;
  top: 4.6%;
  left: 50%;
  translate: -50% 0;
  width: 26%;
  height: 2.9%;
  border-radius: 999px;
  background: #0A0605;
  box-shadow: inset 0 0 4px rgba(255,255,255,.12);
}

.phone-reflect {
  position: absolute;
  left: 50%;
  bottom: -7%;
  translate: -50% 0;
  width: 120%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(50% 100% at 50% 50%, rgba(110, 33, 4, .22), transparent 75%);
  filter: blur(4px);
}

/* ---------- Bâtiments ---------- */
.buildings { position: absolute; inset: 0; }

.building {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: transform .45s var(--ease-out);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.b-visual {
  position: relative;
  display: block;
  width: 100%;
  filter: drop-shadow(0 22px 22px rgba(20, 6, 0, .42));
  transition: filter .45s var(--ease-out);
  /* flottement fluide : transform uniquement (composité GPU, aucun reflow) */
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}
.b-visual svg { position: relative; z-index: 1; width: 100%; height: auto; }

/* Halo lumineux à l'entrée */
.b-halo {
  position: absolute;
  left: 50%;
  bottom: -4%;
  translate: -50% 0;
  width: 105%;
  aspect-ratio: 2.1 / 1;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 58%, rgba(255, 201, 143, .55), rgba(255, 140, 64, .22) 48%, transparent 72%);
  filter: blur(7px);
  transition: opacity .45s, transform .45s;
  animation: halo-breathe 4.2s ease-in-out infinite;
}
.b-halo--strong { width: 118%; animation-delay: -1.6s; }
@keyframes halo-breathe {
  0%, 100% { opacity: .75; }
  50%       { opacity: 1; }
}

/* Détails SVG lumineux */
.b-window  { fill: #FFD9A8; opacity: .92; }
.b-door    { fill: #FFC98F; }
.b-doorglow{ fill: #FFC98F; opacity: .5; filter: blur(3px); }
.b-col     { fill: var(--b-side); }
.b-sign    { opacity: .9; }
.b-text {
  font-family: 'Urbanist', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  fill: var(--red);
}

/* Étiquettes sous les bâtiments */
.b-label {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(16, 6, 2, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 201, 143, .28);
  color: var(--glow-hot);
  font-size: clamp(9px, 2.4vw, 12px);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .35s, border-color .35s, color .35s;
}

/* Positions — émergent de l'écran */
.building--lab {
  width: 41%;
  left: 50%;
  translate: -50% 0;
  bottom: 35.5%;
  z-index: 3;
}
.building--atelier {
  width: 33%;
  left: -2%;
  bottom: 26%;
  z-index: 4;
}
.building--atelier .b-visual { animation-delay: -2.1s; }
.building--biblio {
  width: 34%;
  right: -3%;
  bottom: 25%;
  z-index: 4;
}
.building--biblio .b-visual { animation-delay: -4.2s; }

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

/* Petits écrans : on resserre la scène pour ne rien rogner */
@media (max-width: 560px) {
  .building--atelier { left: 1%; }
  .building--biblio  { right: 1%; }
  .b-label { letter-spacing: .08em; padding: 5px 10px; }
}

/* Hover : élévation + halo accentué */
.building:hover, .building:focus-visible {
  transform: translateY(-10px) scale(1.045);
  z-index: 6;
}
.building--lab:hover, .building--lab:focus-visible {
  transform: translateY(-10px) scale(1.045);
}
.building:hover .b-visual, .building:focus-visible .b-visual {
  filter: drop-shadow(0 30px 30px rgba(20, 6, 0, .5))
          drop-shadow(0 0 26px rgba(255, 170, 90, .55));
}
.building:hover .b-halo, .building:focus-visible .b-halo {
  opacity: 1;
  transform: scale(1.22);
  animation-play-state: paused;
}
.building:hover .b-label, .building:focus-visible .b-label {
  background: rgba(172, 38, 1, .82);
  border-color: rgba(255, 201, 143, .55);
  color: #fff;
}
.building:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; border-radius: 12px; }

/* Clic : zoom fluide avant le scroll */
.building.is-zooming {
  transform: translateY(-22px) scale(1.22);
  z-index: 7;
  transition: transform .55s var(--ease-out), opacity .5s ease .1s;
  opacity: 0;
}
.building--lab.is-zooming { transform: translate(0, -22px) scale(1.22); }

/* Indicateur de scroll */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  translate: -50% 0;
  z-index: 3;
  width: 26px; height: 42px;
  border: 1.5px solid var(--hint);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: .7;
  transition: opacity .3s, border-color .3s;
}
.scroll-hint:hover { opacity: 1; border-color: var(--red); }
.scroll-hint span {
  width: 3px; height: 8px;
  border-radius: 3px;
  background: var(--red);
  animation: scroll-drop 1.8s ease-in-out infinite;
}
@keyframes scroll-drop {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(13px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================
   SECTIONS GÉNÉRIQUES
========================================================== */
.container { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }

.section { padding-block: 96px; }
@media (min-width: 768px) { .section { padding-block: 140px; } }

.section--tinted {
  background: var(--paper-warm);
  border-block: 1px solid var(--line);
}

/* Révélations au scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Vision ---------- */
.vision-grid {
  margin-top: 56px;
  display: grid;
  gap: 36px;
}
@media (min-width: 768px) { .vision-grid { grid-template-columns: 1fr 1fr; gap: 60px; } }

.prose p { color: var(--ink-soft); font-size: 16.5px; }
.prose p + p { margin-top: 18px; }
@media (min-width: 768px) { .prose p { font-size: 18px; } }

.pillars {
  margin-top: 72px;
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.pillar {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
.pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(172, 38, 1, .3);
  box-shadow: 0 22px 44px -22px rgba(172, 38, 1, .22);
}
.pillar-num {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(172, 38, 1, .08);
  color: var(--red);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 18px;
}
.pillar h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.pillar p { margin-top: 8px; font-size: 14.5px; color: var(--subtitle); }

/* ---------- The Lab ---------- */
.lab-grid {
  margin-top: 64px;
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .lab-grid { grid-template-columns: 1fr auto 1fr; gap: 36px; }
}

.lab-col { display: grid; gap: 18px; }

.feature {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(172, 38, 1, .3);
  box-shadow: 0 22px 44px -22px rgba(172, 38, 1, .22);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--red), var(--red-light));
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 10px 22px -8px rgba(172, 38, 1, .5);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; font-weight: 800; }
.feature p { margin-top: 8px; font-size: 14.5px; color: var(--subtitle); }

/* Mockup app */
.lab-phone-wrap { display: flex; justify-content: center; }

.app-phone {
  width: 264px;
  aspect-ratio: 9 / 19;
  border-radius: 40px;
  background: linear-gradient(160deg, #3A3330, #171210 55%, #2C2522);
  padding: 9px;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.13),
    0 44px 80px -28px rgba(48, 16, 2, .42);
}
.app-screen {
  height: 100%;
  border-radius: 32px;
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Écran "flux vidéo" — fidèle à l'accueil de la bêta */
.app-screen--feed { background: #120B08; }

.feed-video {
  position: relative;
  flex: 1;
  overflow: hidden;
  background:
    radial-gradient(90% 60% at 70% 20%, rgba(212, 58, 10, .35), transparent 65%),
    radial-gradient(80% 55% at 25% 85%, rgba(172, 38, 1, .4), transparent 70%),
    linear-gradient(165deg, #2A1610 0%, #1A0E09 55%, #120B08 100%);
}

.feed-island {
  position: absolute;
  top: 10px;
  left: 50%;
  translate: -50% 0;
  width: 72px; height: 16px;
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 4px rgba(255,255,255,.14);
}

.feed-chip-top {
  position: absolute;
  top: 36px;
  left: 50%;
  translate: -50% 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--red-light);
}

.feed-rail {
  position: absolute;
  right: 11px;
  bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.rail-item {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #fff;
}
.rail-item svg { width: 21px; height: 21px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.rail-item:first-child svg { color: var(--red-light); }
.rail-item i { font-style: normal; font-size: 9px; font-weight: 700; opacity: .85; }

.feed-meta {
  position: absolute;
  left: 13px;
  right: 52px;
  bottom: 14px;
}
.feed-author {
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.feed-title {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255,255,255,.75);
}
.seance-chip {
  margin-top: 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(172, 38, 1, .88);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.seance-play {
  width: 0; height: 0;
  border-style: solid;
  border-width: 4.5px 0 4.5px 7px;
  border-color: transparent transparent transparent #fff;
}

.feed-nav {
  flex: none;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-inline: 10px;
  background: #0C0705;
  border-top: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.55);
}
.feed-nav svg { width: 20px; height: 20px; }
.feed-nav svg.is-active { color: #fff; }
.feed-nav svg.is-dim { opacity: .35; }
.nav-plus {
  display: grid;
  place-items: center;
  width: 36px; height: 26px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 12px -3px rgba(172, 38, 1, .6);
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mini-badge svg { width: 9px; height: 9px; }

/* ---------- Dybness Certified ---------- */
.section--certified {
  position: relative;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(172, 38, 1, .05), transparent 70%),
    var(--paper);
}

.certified-head { max-width: 720px; margin-inline: auto; text-align: center; }
.certified-head .title { margin-inline: auto; }

.certified-grid {
  margin-top: 72px;
  display: grid;
  gap: 60px;
  align-items: center;
}
@media (min-width: 1024px) { .certified-grid { grid-template-columns: 1fr 1.15fr; gap: 80px; } }

.badge-wrap { display: flex; justify-content: center; }

.badge {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.badge-ring {
  position: absolute;
  inset: 0;
  animation: ring-rotate 26s linear infinite;
}
.badge-ring text {
  font-family: 'Urbanist', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .34em;
  fill: var(--red);
  opacity: .85;
}
@keyframes ring-rotate { to { transform: rotate(360deg); } }

.badge-core {
  position: relative;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--red);
  background:
    radial-gradient(80% 80% at 30% 25%, #fff, #FBF3EF);
  border: 1px solid rgba(172, 38, 1, .18);
  box-shadow:
    0 30px 60px -24px rgba(172, 38, 1, .35),
    inset 0 1px 0 #fff;
}
.badge-core img { width: 74px; height: 74px; object-fit: contain; }
.badge-check {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px -6px rgba(172, 38, 1, .55);
}
.badge-check svg { width: 16px; height: 16px; }

.cert-steps { display: grid; gap: 14px; counter-reset: step; }

.cert-step {
  display: flex;
  gap: 20px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
.cert-step:hover {
  transform: translateX(6px);
  border-color: rgba(172, 38, 1, .3);
  box-shadow: 0 18px 40px -22px rgba(172, 38, 1, .25);
}
.cert-num {
  flex: none;
  font-size: 15px;
  font-weight: 800;
  color: var(--red);
  padding-top: 2px;
  letter-spacing: .06em;
}
.cert-step h3 { font-size: 17px; font-weight: 800; }
.cert-step p { margin-top: 6px; font-size: 14.5px; color: var(--subtitle); }

.cert-step--final {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  border-color: transparent;
  box-shadow: 0 24px 48px -20px rgba(172, 38, 1, .55);
}
.cert-step--final .cert-num,
.cert-step--final h3 { color: #fff; }
.cert-step--final p { color: rgba(255,255,255,.75); }
.cert-step--final:hover { box-shadow: 0 28px 54px -20px rgba(172, 38, 1, .65); }

.cert-uses {
  margin-top: 72px;
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) { .cert-uses { grid-template-columns: repeat(3, 1fr); } }

.cert-use {
  text-align: center;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease-out), border-color .3s;
}
.cert-use:hover { transform: translateY(-5px); border-color: rgba(172, 38, 1, .3); }
.cert-use h3 { font-size: 16.5px; font-weight: 800; color: var(--red); }
.cert-use p { margin-top: 8px; font-size: 14px; color: var(--subtitle); }

/* ---------- L'Atelier Textile ---------- */
.atelier-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) { .atelier-grid { grid-template-columns: 1.1fr .9fr; gap: 80px; } }

.atelier-list { margin-top: 44px; display: grid; gap: 26px; }
.atelier-list li { display: flex; gap: 18px; }
.atelier-list .dot {
  flex: none;
  margin-top: 7px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(172, 38, 1, .12);
}
.atelier-list h3 { font-size: 17.5px; font-weight: 800; }
.atelier-list p { margin-top: 4px; font-size: 14.5px; color: var(--subtitle); max-width: 440px; }

.atelier-visual {
  position: relative;
  min-height: 340px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.weave {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg,  rgba(172, 38, 1, .07) 0 2px,  transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(172, 38, 1, .055) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #FDF8F5, #F8ECE5);
}
.weave-card {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 30px 40px;
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(172, 38, 1, .15);
  box-shadow: 0 26px 50px -26px rgba(172, 38, 1, .3);
  text-align: center;
}
.weave-card svg { width: 44px; height: 44px; color: var(--red); }
.weave-card p {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---------- La Bibliothèque ---------- */
.lib-grid {
  margin-top: 56px;
  display: grid;
  gap: 18px;
}
@media (min-width: 640px)  { .lib-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .lib-grid { grid-template-columns: repeat(3, 1fr); } }

.lib-card {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
  cursor: pointer;
}
.lib-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s var(--ease-out);
}
.lib-card:hover, .lib-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(172, 38, 1, .3);
  box-shadow: 0 22px 44px -22px rgba(172, 38, 1, .22);
}
.lib-card:hover::before, .lib-card:focus-visible::before { transform: scaleY(1); }

.lib-index {
  font-size: 13px;
  font-weight: 800;
  color: var(--hint);
  letter-spacing: .1em;
}
.lib-card h3 { margin-top: 14px; font-size: 19px; font-weight: 800; }
.lib-card p { margin-top: 8px; font-size: 14.5px; color: var(--subtitle); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding-block: 110px;
  background:
    radial-gradient(70% 90% at 50% 110%, rgba(255, 140, 64, .25), transparent 65%),
    linear-gradient(150deg, var(--red) 0%, var(--red-deep) 90%);
  color: #fff;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 80% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 80% at 50% 50%, #000, transparent);
}

.cta-inner { position: relative; text-align: center; max-width: 680px; }
.cta h2 {
  font-size: clamp(32px, 5.6vw, 54px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.05;
}
.cta p {
  margin: 20px auto 0;
  max-width: 480px;
  font-size: 17px;
  color: rgba(255,255,255,.82);
}
.cta-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 48px; background: var(--paper); }

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}
@media (min-width: 900px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 54px; height: 54px; object-fit: contain; }
.footer-slogan {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hint);
}

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.footer-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--subtitle);
  transition: color .25s;
}
.footer-links a:hover { color: var(--red); }

.footer-copy { font-size: 12.5px; color: var(--hint); }

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-hero], [data-reveal] { opacity: 1; transform: none; }
}
