/* Eden Flavors, monde visuel : velours vert profond, soie doree, creme, souffle rose.
   Palette echantillonnee sur l'image du hero pour que page et visuel ne fassent qu'un. */

:root {
  --canvas: #0c2017;
  --canvas-deep: #081710;
  --panel: #12291c;
  --panel-2: #173322;
  --line: rgba(217, 169, 78, 0.16);
  --line-strong: rgba(217, 169, 78, 0.42);
  --accent: #d9a94e;
  --accent-hover: #e6bc6a;
  --accent-muted: rgba(217, 169, 78, 0.24);
  --or-doux: #f0e2c2;
  --creme: #faf6ec;
  --creme-2: #ffffff;
  --encre: #0c2017;
  --encre-douce: #4a5f52;
  --blush: #e8c3b8;
  --text-primary: #f5efe0;
  --text-secondary: #b4c2b2;
  --tshadow: 0 1px 2px rgba(4, 10, 7, 0.95), 0 3px 12px rgba(4, 10, 7, 0.78), 0 10px 44px rgba(4, 10, 7, 0.8);
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Un display: flex ou grid pose plus bas l'emporte sur le display:none que le
   navigateur donne a [hidden] : un bloc masque par le script resterait visible,
   vide. Cette ligne rend l'attribut fiable partout. */
[hidden] { display: none !important; }

html, body {
  overflow-x: hidden;
  overflow-x: clip;
}

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--text-primary);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* le fondu d'entree ne s'applique que si JavaScript est present :
   sans lui, la page reste entierement visible */
html.js body { opacity: 0; transition: opacity 0.8s var(--ease-soft); }

html.js body.ready { opacity: 1; }

html:not(.js) .reveal .part { opacity: 1; transform: none; }

html:not(.js) .promises .promise { opacity: 1; transform: none; }

h1, h2, h3 { font-family: 'Bricolage Grotesque', 'Figtree', sans-serif; line-height: 1.08; }

.kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--canvas-deep);
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  z-index: 200;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { left: 0; }

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

/* ------------------------------------------------ environnement fixe */

.environment {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 60% at 78% 8%, rgba(217, 169, 78, 0.09), transparent 60%),
    radial-gradient(ellipse 70% 55% at 15% 92%, rgba(232, 195, 184, 0.05), transparent 65%),
    linear-gradient(180deg, var(--canvas-deep), var(--canvas) 40%);
}

.environment::after {
  content: "";
  position: absolute;
  inset: -60px;
  background-image: radial-gradient(rgba(217, 169, 78, 0.35) 1px, transparent 1.5px);
  background-size: 340px 340px;
  opacity: 0.15;
  animation: dust-drift 90s linear infinite;
}

@keyframes dust-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-170px, -340px, 0); }
}

/* ------------------------------------------------ navigation */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 48px);
  transition: background 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft);
}

/* voile permanent en haut : le logo et les liens restent lisibles meme quand
   la soie doree passe juste derriere eux */
.nav::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 160%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--creme) 0%, rgba(250, 246, 236, 0.72) 55%, rgba(250, 246, 236, 0) 100%);
  transition: opacity 0.5s var(--ease-soft);
}

.nav.scrolled::before { opacity: 0; }

.nav.scrolled {
  background: rgba(8, 23, 16, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-links a:not(.btn) { color: var(--encre-douce); }

.nav-links a:not(.btn):hover { color: var(--accent); }

.nav.scrolled .nav-links a:not(.btn) { color: var(--text-secondary); }

.nav.scrolled .nav-links a:not(.btn):hover { color: var(--text-primary); }

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}

.brand img {
  height: 36px;
  width: auto;
  display: block;
  filter: none;
}

footer .brand img { filter: none; }

@media (max-width: 640px) { .brand img { height: 30px; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease-soft);
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a.btn, .nav-links a.btn:hover { color: #221803; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #221803;
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease-soft), transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
  text-shadow: none;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(217, 169, 78, 0.25);
}

.btn.small { padding: 10px 20px; font-size: 14px; }

.btn.ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--line-strong);
}

.btn.ghost:hover { border-color: var(--accent); box-shadow: none; color: var(--accent-hover); }

@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .nav-links a { padding: 8px 0; }
}

/* ------------------------------------------------ hero clair */

.hero {
  position: relative;
  background: var(--creme);
  overflow: hidden;
  isolation: isolate;
}

.hero-curve {
  position: absolute;
  inset: 0 0 0 auto;
  width: 54%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(104px, 13vh, 150px) clamp(20px, 5vw, 48px) clamp(48px, 7vh, 84px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
}

.hero-text { color: var(--encre); }

.badge-master {
  display: inline-block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 9px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 78px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--encre);
}

.hero h1 .gold { color: var(--encre); }

.hero-sub {
  margin-top: 18px;
  max-width: 46ch;
  font-size: clamp(15.5px, 1.65vw, 17.5px);
  color: var(--encre-douce);
  line-height: 1.6;
}

.hero-infos {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 28px;
  background: var(--canvas);
  border-radius: 18px;
  padding: 16px 20px;
  color: #fff;
}

.hero-dates { display: grid; align-content: center; gap: 3px; padding-right: 12px; }

.hero-dates strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(19px, 2.3vw, 25px);
  font-weight: 800;
}

.hero-dates span { font-size: 14px; color: #cfd8cc; }
.hero-dates em { font-style: normal; color: var(--accent); }

.hero-tarifs { display: flex; gap: 10px; margin-left: auto; }

.tarif-pill {
  background: var(--accent);
  color: #241a04;
  border-radius: 12px;
  padding: 9px 15px;
  text-align: center;
  display: grid;
  gap: 1px;
  align-content: center;
}

.tarif-pill span { font-size: 11px; font-weight: 600; opacity: .85; }

.tarif-pill b {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 28px;
}

.btn-lg { padding: 17px 34px; font-size: 17px; }

.btn-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--encre-douce);
  text-decoration: none;
  border-bottom: 1.5px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color .25s var(--ease-soft), border-color .25s var(--ease-soft);
}

.btn-link:hover { color: var(--accent); border-color: var(--accent); }

.hero-avantages {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 9px;
  font-size: 14.5px;
  color: var(--encre-douce);
}

.hero-avantages li { display: flex; align-items: flex-start; gap: 9px; }

.hero-avantages li::before {
  content: "";
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/13px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/13px no-repeat;
}

.hero-visual { position: relative; }

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.hero-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--encre-douce);
  animation: cue-float 3.2s var(--ease-soft) infinite;
  opacity: .6;
  z-index: 2;
}

@keyframes cue-float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@media (max-height: 560px) { .hero-cue { display: none; } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 8px; text-align: left; }
  .hero-curve { width: 100%; opacity: .38; }
  .hero-visual { order: 2; margin-top: 6px; }
  .hero-tarifs { margin-left: 0; }
}

/* ------------------------------------------------ structure des sections */

main { position: relative; }

.section {
  position: relative;
  padding: clamp(72px, 11vw, 130px) clamp(20px, 5vw, 48px);
}

.section-inner { width: min(1120px, 100%); margin: 0 auto; }

.section h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 14px 0 18px;
}

.section .lede { max-width: 58ch; color: var(--text-secondary); font-size: clamp(16px, 1.9vw, 19px); }

/* le ruban signature qui se dessine le long de la page */
.ribbon-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.ribbon-path path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.5;
}

.section-inner, .metier-grid, .prog-list { position: relative; z-index: 1; }

/* ------------------------------------------------ le metier */

.metier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.metier-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--panel-2), var(--canvas-deep));
}

.metier-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

.metier-visual .badge-float {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(8, 20, 14, 0.72);
  border: 1px solid rgba(217, 169, 78, 0.3);
  backdrop-filter: blur(12px);
  font-size: 14px;
  color: var(--text-primary);
}

.metier-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.stat {
  border-left: 2px solid var(--accent-muted);
  padding: 4px 0 4px 16px;
}

.stat b {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--accent);
}

.stat span { font-size: 13.5px; color: var(--text-secondary); }

/* ------------------------------------------------ programme */

.prog-list {
  counter-reset: prog;
  display: grid;
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.prog-item {
  counter-increment: prog;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease-soft), padding-left 0.4s var(--ease-soft);
}

.prog-item:hover { background: rgba(217, 169, 78, 0.05); padding-left: 18px; }

.prog-item::before {
  content: counter(prog, decimal-leading-zero);
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent);
  font-size: 15px;
}

.prog-item h3 { font-size: clamp(19px, 2.6vw, 26px); font-weight: 600; }

.prog-item p { grid-column: 2; color: var(--text-secondary); font-size: 15.5px; max-width: 56ch; }

.prog-item .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--blush);
  white-space: nowrap;
}

/* ------------------------------------------------ le ruban a nouer + promesses */

.knot-zone { text-align: center; }

.knot-zone h2 { margin-left: auto; margin-right: auto; }

.knot-zone .lede { margin: 0 auto; }

.hold-btn {
  position: relative;
  margin: 44px auto 0;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: none;
  background: var(--panel-2);
  color: var(--text-primary);
  font-family: 'Figtree', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-soft);
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.hold-btn:active { transform: scale(0.97); }

.hold-btn svg {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  transform: rotate(-90deg);
}

.hold-btn svg circle {
  fill: none;
  stroke-width: 3;
}

.hold-btn svg .track { stroke: var(--line); }

.hold-btn svg .fill {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 427;
  stroke-dashoffset: calc(427 * (1 - var(--hold, 0)));
}

.hold-btn .label { max-width: 90px; line-height: 1.3; pointer-events: none; }

.knot-state {
  margin-top: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--text-secondary);
  min-height: 20px;
}

.promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
  text-align: left;
}

.promise {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 26px;
  opacity: 0.45;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft), border-color 0.7s var(--ease-soft);
}

.promises.revealed .promise {
  opacity: 1;
  transform: none;
  border-color: var(--line-strong);
}

.promises.revealed .promise:nth-child(2) { transition-delay: 0.15s; }
.promises.revealed .promise:nth-child(3) { transition-delay: 0.3s; }

.promise .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-muted);
  color: var(--accent);
  margin-bottom: 18px;
}

.promise h3 { font-size: 20px; margin-bottom: 8px; }

.promise p { color: var(--text-secondary); font-size: 15px; }

/* ------------------------------------------------ infos pratiques et tarifs */

.infos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.info-card {
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
}

.info-card .kicker { font-size: 11px; }

.info-card b {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  margin-top: 10px;
}

.info-card span { color: var(--text-secondary); font-size: 14.5px; }

.tarifs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px;
  margin-top: 16px;
}

.tarif {
  position: relative;
  border-radius: 18px;
  padding: 30px 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.tarif.featured {
  border-color: var(--line-strong);
  background: linear-gradient(160deg, rgba(217, 169, 78, 0.14), var(--panel) 55%);
}

.tarif .amount {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.tarif .amount small { font-size: 0.45em; font-weight: 600; }

.tarif h3 { margin: 10px 0 6px; font-size: 19px; }

.tarif p { color: var(--text-secondary); font-size: 14.5px; max-width: 40ch; }

.tarif .glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 80% 0%, rgba(217, 169, 78, 0.22), transparent 70%);
  opacity: 0;
}

.tarif.featured .glow { animation: glow-pulse 5.5s var(--ease-soft) -1.2s infinite; }

@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.infos-cta { margin-top: 40px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ------------------------------------------------ faq */

.faq-wrap { max-width: 780px; }

.faq { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 600;
  transition: color 0.3s var(--ease-soft);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent);
  font-size: 20px;
  transition: transform 0.35s var(--ease);
  flex: none;
}

.faq[open] summary::after { transform: rotate(45deg); }

.faq summary:hover { color: var(--accent-hover); }

.faq .answer {
  padding: 0 4px 24px;
  color: var(--text-secondary);
  max-width: 62ch;
  font-size: 15.5px;
}

/* ------------------------------------------------ cta final */

.final {
  text-align: center;
  padding-bottom: clamp(90px, 13vw, 160px);
}

.final .ending-visual {
  width: min(680px, 100%);
  margin: 0 auto 38px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.final .ending-visual img { width: 100%; display: block; }

.final h2 { margin: 0 auto 14px; }

.final .lede { margin: 0 auto 34px; }

/* ------------------------------------------------ footer */

footer {
  border-top: 1px solid var(--line);
  padding: 44px clamp(20px, 5vw, 48px) 54px;
  background: var(--canvas-deep);
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-inner .brand img { height: 32px; }

.footer-contact { display: grid; gap: 8px; font-size: 15px; color: var(--text-secondary); }

.footer-contact a { color: var(--text-primary); text-decoration: none; }

.footer-contact a:hover { color: var(--accent-hover); }

.footer-note {
  width: 100%;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(217, 169, 78, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(190, 203, 188, 0.82);
}

/* ------------------------------------------------ entrees choreographiees */

.reveal .part {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-soft) var(--stagger, 0s), transform 0.9s var(--ease-soft) var(--stagger, 0s);
}

.reveal .part:nth-child(1) { --stagger: 0s; }
.reveal .part:nth-child(2) { --stagger: 0.1s; }
.reveal .part:nth-child(3) { --stagger: 0.2s; }
.reveal .part:nth-child(4) { --stagger: 0.3s; }
.reveal .part:nth-child(5) { --stagger: 0.4s; }
.reveal .part:nth-child(6) { --stagger: 0.5s; }

.reveal.in .part { opacity: 1; transform: none; }

/* une fois l'entree jouee, les delais se retirent pour ne pas retarder les hovers */
.reveal.done .part,
.reveal.done .part:nth-child(n) { transition-delay: 0s; }

/* ------------------------------------------------ responsive */

@media (max-width: 900px) {
  .metier-grid { grid-template-columns: 1fr; }
  .metier-visual { aspect-ratio: 16 / 11; order: -1; }
  .promises { grid-template-columns: 1fr; }
  .infos-grid { grid-template-columns: 1fr; }
  .tarifs { grid-template-columns: 1fr; }
  .metier-stats { grid-template-columns: 1fr; gap: 18px; }
  .prog-item { grid-template-columns: 48px minmax(0, 1fr); }
  .prog-item .tag { grid-column: 2; }
}

@media (max-width: 840px) {
  .nav-links li.hide-mobile { display: none; }
}

@media (max-width: 640px) {
  .hero-inner { padding-top: 120px; }
}

@media (max-width: 720px) {
  .hero-scrim {
    background:
      radial-gradient(ellipse 120% 90% at 50% 100%, rgba(6, 16, 11, 0.82) 0%, rgba(6, 16, 11, 0.35) 55%, rgba(6, 16, 11, 0) 100%),
      linear-gradient(180deg, rgba(6, 16, 11, 0.72), rgba(6, 16, 11, 0) 50%);
  }
}

/* ------------------------------------------------ mouvement reduit */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  body { opacity: 1; }
  .reveal .part { opacity: 1; transform: none; }
  .promises .promise { opacity: 1; transform: none; }
  .ribbon-path path { stroke-dashoffset: 0 !important; }
  html { scroll-behavior: auto; }
}

body.paused *, body.paused *::before, body.paused *::after {
  animation-play-state: paused !important;
}

/* ------------------------------------------------ compte a rebours du hero */

/* Le temps qui reste avant la premiere matinee. Clair sur le creme : il respire
   entre le bloc sombre des dates et le bouton, sans alourdir le haut de page.
   Cache tant que le script n'a pas calcule : personne ne doit voir « -- ». */

.hero-compte { margin-top: 16px; display: grid; gap: 9px; }

.compte-titre {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

.compte-cases { display: flex; flex-wrap: wrap; gap: 8px; }

.compte-cases .case {
  background: var(--creme-2);
  border: 1.5px solid var(--accent-muted);
  border-radius: 14px;
  padding: 10px 14px 8px;
  min-width: 76px;
  display: grid;
  gap: 2px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(12, 32, 23, 0.06);
}

.compte-cases b {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1;
  color: var(--encre);
  /* chiffres de largeur fixe : la case ne tressaute pas a chaque seconde */
  font-variant-numeric: tabular-nums;
}

.compte-cases span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--encre-douce);
}

/* Pendant la formation, il n'y a plus rien a decompter : le titre suffit. */
.hero-compte.en-cours .compte-cases { display: none !important; }

.hero-compte.en-cours .compte-titre {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--encre);
}

@media (max-width: 520px) {
  .compte-cases { gap: 6px; }
  .compte-cases .case { min-width: 0; flex: 1 1 0; padding: 9px 6px 7px; }
}

/* ------------------------------------------------ signaux d'urgence */

/* Le bandeau des places, dans le hero. Discret par defaut ; il ne prend une
   teinte chaude que quand la salle se remplit vraiment (voir .tendu). */

.urgence-places {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--creme-2);
  border: 1.5px solid var(--accent-muted);
  font-size: 14.5px;
  color: var(--encre);
}

.urgence-places strong { font-weight: 700; }
.urgence-places span:last-child { color: var(--encre-douce); }

/* La pastille bat doucement : elle signale que le chiffre est vivant, pas grave. */
.urgence-places .pastille {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(217, 169, 78, 0.55);
  animation: pouls 2.6s var(--ease-soft) infinite;
}

.urgence-places.tendu {
  background: #fdf2e6;
  border-color: rgba(198, 106, 40, 0.4);
}

.urgence-places.tendu .pastille {
  background: #c66a28;
  box-shadow: 0 0 0 0 rgba(198, 106, 40, 0.5);
}

@keyframes pouls {
  0% { box-shadow: 0 0 0 0 rgba(217, 169, 78, 0.5); }
  70% { box-shadow: 0 0 0 11px rgba(217, 169, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 169, 78, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .urgence-places .pastille { animation: none; }
}

/* ------------------------------------------------ section « vous etes encore la » */

.elu { text-align: center; }
.elu h2 { margin: 0 auto 14px; }
.elu .lede { margin: 0 auto 16px; max-width: 62ch; }

.signaux {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.signaux .signal {
  min-width: 168px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
}

.signaux b {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.signaux span { font-size: 13.5px; color: var(--text-secondary); }

@media (max-width: 520px) {
  .signaux { gap: 8px; }
  .signaux .signal { min-width: 0; flex: 1 1 44%; padding: 15px 12px; }
}
