/* 01 · Navigation + Hero — Figma 174:359 (desktop), 72:903 (mobile), menus 77:640 / 77:678 / 77:699, burger 78:644 */

/* ---------- Navigation (fixe) ---------- */
.nav {
  --nav-muted: #6b6358;
  --nav-line: #e7e4df;
  --nav-page: #f2f2f2;
  --nav-soft-purple: #ebebfc;
  --nav-tile: #eaeaea;
  --nav-shadow: -10.5px 14.5px 11px 0 rgba(0,0,0,.04), -6px -5px 5px 0 rgba(0,0,0,.01);
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  color: #fff;
  background-color: rgba(20, 17, 15, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.nav.is-scrolled {
  background-color: rgba(12, 12, 13, .94);
  border-bottom-color: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; transition: padding .3s ease; }
.nav.is-scrolled .nav__bar { padding-block: 14px; }
.nav__logo { flex: none; }
.nav__logo img { width: 160px; height: auto; }   /* 01.10 (Diego) : logo plus grand sur desktop (128 px avant) */

.nav__list { display: flex; align-items: center; gap: 34px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  color: rgba(255, 255, 255, .86); white-space: nowrap;
  transition: color .2s ease;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: #fff; }
.nav__link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
.nav__caret { display: inline-block; transition: transform .2s ease; }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

/* Panneaux déroulants */
.nav__panel {
  position: absolute; top: 100%; left: -24px;
  padding-top: 18px;               /* pont de survol */
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.nav__panel--end { left: auto; right: -24px; }
.nav__item.is-open .nav__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.nav__menu {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--nav-line); border-radius: 20px;
  box-shadow: var(--nav-shadow);
  padding: 8px;
}
.nav__menu--methode { display: flex; gap: 8px; }
.nav__menu--list { width: 420px; display: flex; flex-direction: column; gap: 4px; }
.nav__menu-label { color: var(--nav-muted); }
.nav__muted { color: var(--nav-muted); }

/* Carte « Contrast Impulsion » : texture DA qui ondule, lueur qui suit le curseur, les deux étapes du programme */
.nav__feature {
  position: relative; isolation: isolate; overflow: hidden;
  width: 300px; flex: none;
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px; border-radius: 14px;
  background: #2a1409; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.nav__feature-bg { position: absolute; inset: -12%; z-index: -2; background: url(../../assets/01-nav-impulsion.jpg) 70% 50% / cover;
  animation: nav-drift 14s ease-in-out infinite alternate; transition: filter .5s ease; }
.nav__feature::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(20, 17, 15, .82) 0%, rgba(20, 17, 15, .55) 45%, rgba(20, 17, 15, .12) 100%); }
.nav__feature-glow { position: absolute; left: var(--gx, 80%); top: var(--gy, 20%); z-index: -1; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 190, 120, .55), rgba(255, 190, 120, 0)); mix-blend-mode: screen; opacity: .55; transition: opacity .4s ease; pointer-events: none; }
.nav__feature:hover .nav__feature-glow { opacity: 1; }
.nav__feature:hover .nav__feature-bg { filter: saturate(1.25) brightness(1.08); }
@keyframes nav-drift { from { transform: translate3d(-3%, -2%, 0) scale(1.02); } to { transform: translate3d(3%, 2%, 0) scale(1.1); } }
.nav__feature-top { display: flex; align-items: center; justify-content: space-between; }
.nav__feature .nav__menu-label { color: rgba(255, 255, 255, .72); }
.nav__feature-arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .45s cubic-bezier(.2, .8, .2, 1), background-color .3s ease, color .3s ease; }
.nav__feature:hover .nav__feature-arrow { transform: rotate(45deg); background: #fff; color: var(--ink); }
.nav__feature-title { margin-top: 6px; }
.nav__feature-desc { color: rgba(255, 255, 255, .78); }
.nav__steps { position: relative; display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding: 14px 14px 14px 12px; border-radius: 12px;
  background: rgba(70, 60, 55, .45); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav__steps::before { content: ""; position: absolute; left: 17px; top: 22px; bottom: 22px; width: 1px; background: rgba(255, 255, 255, .25); }
.nav__steps::after { content: ""; position: absolute; left: 15px; top: 20px; width: 5px; height: 5px; border-radius: 50%; background: #ffb25c;
  box-shadow: 0 0 10px 2px rgba(255, 178, 92, .8); animation: nav-pulse 2.6s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes nav-pulse { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(30px); opacity: 0; } }
.nav__step { position: relative; display: flex; align-items: center; gap: 10px; }
.nav__step-dot { flex: none; width: 11px; height: 11px; border-radius: 50%; background: #2a1d16; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.nav__step:first-child .nav__step-dot { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.nav__step .t-label { color: #ffb25c; }
.nav__feature-cta { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.nav__feature-cta::after { content: "→"; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.nav__feature:hover .nav__feature-cta::after { transform: translateX(4px); }
.nav__item.is-open .nav__feature { animation: nav-feature-in .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes nav-feature-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.nav__col-foot { display: flex; gap: 20px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--nav-line); }
.nav__col-foot a { color: var(--nav-muted); transition: color .2s ease; }
.nav__col-foot a:hover { color: var(--ink); }
.nav__rows .nav__tile { transition: background-color .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.nav__row:hover .nav__tile { background: #ffe6d2; }
@media (prefers-reduced-motion: reduce) { .nav__feature-bg, .nav__steps::after, .nav__item.is-open .nav__feature { animation: none; } }
.nav__feature:focus-visible, .nav__row:focus-visible, .nav__card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.nav__col { width: 300px; padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 4px; }
.nav__rows li + li .nav__row { border-top: 1px solid var(--nav-line); }
.nav__row { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.nav__row-text { flex: 1; min-width: 0; }
.nav__row-arrow { color: var(--nav-muted); transition: transform .2s ease; }
.nav__row:hover .nav__row-arrow { transform: translateX(3px); color: var(--ink); }

.nav__tile {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--nav-tile);
  display: grid; place-items: center;
}
.nav__tile img { width: 20px; height: 20px; }

.nav__card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; border-radius: 12px;
  transition: background-color .2s ease;
}
.nav__card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nav__card-title { color: var(--ink); }
.nav__bubble {
  flex: none; width: 32px; height: 32px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--nav-page); color: var(--ink);
  transition: background-color .2s ease, color .2s ease;
}
/* Premier élément mis en avant (état Figma), puis survol */
.nav__menu--list li:first-child .nav__card { background: var(--nav-page); }
.nav__menu--list li:first-child .nav__bubble { background: var(--ink); color: var(--surface); }
.nav__menu--list:hover li:first-child .nav__card:not(:hover) { background: transparent; }
.nav__menu--list:hover li:first-child .nav__card:not(:hover) .nav__bubble { background: var(--nav-page); color: var(--ink); }
.nav__card:hover { background: var(--nav-page); }
.nav__card:hover .nav__bubble { background: var(--ink); color: var(--surface); }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__burger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 12px 11px; border-radius: 10px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
}
.nav__burger span { display: block; width: 18px; height: 1.5px; background: #fff; }
.nav__burger:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Menu mobile ---------- */
.nav-mobile {
  position: fixed; inset: 0; z-index: 110;
  background: var(--ink-2); color: #fff;
  display: flex; flex-direction: column;
  padding: 16px 16px 32px;
  overflow-y: auto; overscroll-behavior: contain;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; }
.nav-mobile__head img { width: 104px; height: auto; }
.nav-mobile__close { width: 40px; height: 40px; margin-right: -8px; display: grid; place-items: center; color: #fff; }
.nav-mobile__list { flex: 1 0 auto; }
.nav-mobile__item { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.nav-mobile__link {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding-block: 16px; color: #fff; text-align: left;
}
.nav-mobile__link:focus-visible, .nav-mobile__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nav-mobile__arrow, .nav-mobile__sign { color: #b4ada3; }
.nav-mobile__sign::before { content: "+"; }
.nav-mobile__link[aria-expanded="true"] .nav-mobile__sign::before { content: "−"; }
.nav-mobile__sub { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 16px; }
.nav-mobile__sub[hidden] { display: none; }
.nav-mobile__feature {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px; border-radius: 14px;
  background: #2a1409 url(../../assets/01-nav-impulsion.jpg) 70% 50% / cover; color: #fff;
}
.nav-mobile__feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20, 17, 15, .85) 0%, rgba(20, 17, 15, .35) 100%); }
.nav-mobile__feature .nav__muted, .nav-mobile__feature .nav__menu-label { color: rgba(255, 255, 255, .75); }
.nav-mobile__row.nav-mobile__row--all { justify-content: space-between; margin-top: 4px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); color: #ffb25c; }
.nav-mobile__label { color: #b4ada3; }
.nav-mobile__row { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .88); }
.nav-mobile__tile { flex: none; width: 32px; height: 32px; border-radius: 10px; background: #373737; display: grid; place-items: center; }
.nav-mobile__tile img { width: 20px; height: 20px; }
.nav-mobile__plain { display: flex; flex-direction: column; gap: 2px; color: rgba(255, 255, 255, .88); }
.nav-mobile__plain-desc { color: #b4ada3; }
.nav-mobile__cta { width: 100%; justify-content: space-between; margin-top: 24px; }

html.nav-lock { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(640px, 100svh, 880px);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--ink-2);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__poster, .hero__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__film { opacity: 0; transition: opacity .5s ease; }
.hero__film.is-ready { opacity: 1; }
.hero__motion {
  position: absolute; right: max(24px, calc((100vw - 1312px) / 2)); bottom: 24px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  background: rgba(20,17,15,.6); color: #fff; font-size: 12px; cursor: pointer;
}
.hero__motion[hidden] { display: none; }
.hero__motion:hover { background: rgba(20,17,15,.9); }
.hero__motion:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.hero__play-icon, .hero__motion.is-paused .hero__pause-icon { display: none; }
.hero__motion.is-paused .hero__play-icon { display: block; }
@media (max-width: 640px) {
  .hero__poster, .hero__film { object-position: center top; }
  .hero .hero__content { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .hero__motion { right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__film, .hero__motion { display: none; }
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,17,15,.55) 0%, rgba(20,17,15,0) 25%, rgba(20,17,15,0) 75%, rgba(20,17,15,.7) 100%),
    linear-gradient(90deg, rgba(20,17,15,.74) 0%, rgba(20,17,15,.6) 38%, rgba(20,17,15,.3) 60%, rgba(20,17,15,.08) 100%);
}
.hero__content { padding-top: 120px; padding-bottom: 88px; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero__eyebrow { color: rgba(255, 255, 255, .8); }
.hero__eyebrow::before { background: #fff; }
.hero__title { max-width: 820px; }
.hero__title-a, .hero__title-b { display: block; }
.hero__title-a { color: rgba(240, 240, 240, .9); }
.hero__title-b { color: #fff; }
.hero__lead { max-width: 640px; color: rgba(255, 255, 255, .78); }
.hero__lead a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hero__lead a:hover { text-decoration-thickness: 2px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__proof { color: rgba(255, 255, 255, .7); }

/* ---------- ≤ 1024 : burger ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__bar { padding-block: 16px; }
  .nav.is-scrolled .nav__bar { padding-block: 12px; }
  .hero__content { padding-bottom: 72px; }
}

/* ---------- ≤ 640 : frame mobile 72:903 ---------- */
@media (max-width: 640px) {
  .nav__logo img { width: 104px; }
  .nav__cta { padding: 10px 12px 10px 14px; }
  .nav.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgba(12, 12, 13, .96); }

  .hero { min-height: 0; justify-content: flex-start; }
  .hero__veil { background: rgba(20, 17, 15, .72); }
  .hero__content { padding-top: 96px; padding-bottom: 56px; }
  .hero__text { gap: 20px; }
  .hero__eyebrow { color: #fff; align-items: flex-start; }
  .hero__eyebrow::before { margin-top: 4px; }
  /* Les deux phrases restent sur leurs propres lignes : jamais de « La » isolé en fin de ligne */
  .hero__lead { color: rgba(255, 255, 255, .8); }
  .hero__ctas { width: 100%; flex-direction: column; gap: 10px; padding-top: 4px; }
  .hero__ctas .btn { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .nav, .nav__bar, .nav__panel, .nav__caret { transition: none; }
}

/* ---------- Menu au défilement (01.10.2026, demande de Diego) ----------
   Bande noire sur toute la largeur dès le premier défilement : le menu ne laisse jamais voir le texte qui passe dessous.
   (Remplace la capsule flottante essayée le même jour.) */
.nav.is-scrolled { background-color: rgba(12, 12, 13, .97); }
