/*
 * Page d'accueil en registre Vitrine (#7), d'après la maquette « #landing » de la charte v14.
 * Tokens : styles.css ([data-register="vitrine"]). Ici, seulement les composants de la page.
 *
 * Règles de la charte tenues ici :
 * - l'or (--action-*) ne sert qu'au bouton principal, un seul par écran visible ;
 * - lisibilité d'abord : textes quasi blancs, contrastes ≥ 7,5:1, corps à 18 px, peu de capitales ;
 * - titres en Space Grotesk, texte en Inter, pas d'italique ; violet sombre en halo seulement.
 */

[data-register="vitrine"] {
  --pad: clamp(16px, 4vw, 56px);
  --max: 1180px;
  --header-h: 68px;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.7 var(--font-sans);
}

[data-register="vitrine"] h1,
[data-register="vitrine"] h2,
[data-register="vitrine"] h3 {
  font-family: var(--font-display);
  letter-spacing: -.015em;
  color: var(--text);
  text-wrap: balance;
  margin: 0;
}

[data-register="vitrine"] p { margin: 0; }

[data-register="vitrine"] a:focus-visible,
[data-register="vitrine"] button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

[data-register="vitrine"] ::selection { background: #6622DA; color: #fff; }

[data-register="vitrine"] section[id] { scroll-margin-top: var(--header-h); }

.v-wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px; border-radius: 6px; background: var(--surface); color: var(--text);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- En-tête ---------- */
.v-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(24, 18, 31, .85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
/* Barre lumineuse sous le menu */
.v-header::after {
  content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 1px;
  background: var(--horizon); box-shadow: var(--horizon-glow);
}
.v-header .v-wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.v-logo { display: inline-flex; flex: none; }
.v-logo img { height: 30px; width: auto; display: block; }

.v-nav { margin: 0 auto; display: flex; gap: 32px; }
.v-nav a, .v-mobile-nav a {
  position: relative; padding-block: 6px; text-decoration: none;
  font: 500 15px/1 var(--font-sans);
  color: var(--text-secondary); transition: color .3s;
}
.v-nav a:hover, .v-nav a.nav-link-active { color: var(--text); }
/* Page active : point lavande lumineux */
.v-nav a.nav-link-active::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--apx-lavande); box-shadow: 0 0 8px 2px #9B6BFFB3;
}

.v-icon-link {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  color: var(--text-secondary); border-radius: 50%; transition: color .3s;
}
.v-icon-link:hover { color: var(--text); }
.v-icon-link svg { width: 18px; height: 18px; fill: currentColor; }

.v-burger { display: none; margin-left: auto; padding: 10px 6px; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 6px; }
.v-burger .burger-line { width: 22px; height: 2px; background: var(--text); }

.v-mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0; max-height: 0; overflow: hidden;
  background: rgba(24, 18, 31, .98); transition: max-height .3s ease;
}
.v-mobile-menu.mobile-menu-open { max-height: 24rem; border-bottom: 1px solid var(--border); }
.v-mobile-nav { display: grid; gap: 4px; padding: 16px var(--pad) 20px; }
.v-mobile-nav a { padding-block: 12px; font-size: 17px; }
.v-mobile-nav a.nav-link-active { color: var(--text); }

/* ---------- Boutons ---------- */
.v-btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none;
  padding: 15px 26px; border-radius: 999px; min-height: 48px;
  font: 600 16px/1 var(--font-sans);
  transition: background .25s, box-shadow .25s, color .25s;
}
/* Le seul élément doré de l'écran */
.v-btn-primary { background: var(--action-fill); color: var(--action-text); box-shadow: var(--action-shadow); }
.v-btn-primary:hover { background: var(--action-bg-hover); }
.v-btn-primary svg { width: 16px; height: 16px; transition: transform .25s; }
.v-btn-primary:hover svg { transform: translateX(3px); }
.v-btn-secondary {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(192, 192, 192, .35);
}
.v-btn-secondary:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); }
.v-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero : « le cycle en scène » ----------
   Titre centré en très grand, le cycle 3D en scène panoramique dessous, sur toute la largeur. */
.v-hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 0;
  background: radial-gradient(70% 55% at 50% 78%, #5A2A7A 0%, #2E1A46 45%, transparent 75%),
    linear-gradient(180deg, var(--prune), var(--prune-deep));
}
/* Grain léger : matière, et plus de bandes dans les dégradés */
.v-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: .035; background-image: var(--grain);
}
.v-hero-copy {
  position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; padding-inline: var(--pad);
  display: grid; gap: 26px; justify-items: center;
}
.v-eyebrow, .v-kick {
  font: 600 13px/1.5 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--link);
}
.v-h1 { font-size: clamp(48px, 7.6vw, 120px); font-weight: 700; line-height: .98; letter-spacing: -.04em; }
.v-chrome, .v-h1 .v-h1-main {
  display: block; background-image: var(--title-fill);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: var(--title-glow);
}
.v-h1 .v-h1-sub {
  display: block; margin-top: .3em; font-size: .4em; line-height: 1.2;
  font-weight: 500; letter-spacing: -.02em; color: var(--text-soft);
}
.v-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.65; color: var(--text-secondary); max-width: 54ch; }
.v-hero .v-ctas { justify-content: center; }
.v-hero .v-btn { font-size: 17px; padding: 18px 30px; }

/* Cycle de livraison 3D : décoratif, en scène panoramique */
.v-art { position: relative; z-index: 1; width: min(1200px, 100%); margin: -10px auto 0; }
.art3d {
  position: relative; aspect-ratio: 2 / 1; width: 100%;
  cursor: crosshair; touch-action: manipulation;
}
.art3d .stage { position: absolute; inset: -20% -6%; }
.art3d canvas { width: 100%; height: 100%; display: block; }
.art3d .fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.cut-lbl {
  position: absolute; z-index: 2; pointer-events: none; white-space: nowrap;
  font: 500 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--link); opacity: .55; transition: opacity .6s ease;
}
.cut-lbl.tl { top: 6%; left: 6%; }
.cut-lbl.br { bottom: 6%; right: 6%; text-align: right; }
.art3d.open .cut-lbl { opacity: .8; }
.stage-lbl {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; white-space: nowrap; will-change: transform;
  font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  opacity: 0;
}

/* ---------- Sections : une couleur du cycle par section, illustrée ---------- */
.v-sec { position: relative; padding-block: clamp(72px, 9vw, 120px); border-top: 1px solid var(--border); }
.v-sec .v-wrap { display: grid; gap: 44px; }
.v-h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 700; line-height: 1.12; max-width: 24ch; }
.v-intro { color: var(--text-secondary); max-width: 62ch; font-size: 19px; }

/* Couleurs, reprises de la palette du cycle 3D */
.acc-rose   { --acc: #F2B8D2; --acc2: #E58FB5; background: radial-gradient(50% 60% at 100% 0%, #E58FB526, transparent 70%); }
.acc-peche  { --acc: #F6C6A0; --acc2: #E0956A; background: radial-gradient(50% 60% at 0% 0%, #F6C6A01F, transparent 70%); }
.acc-lav    { --acc: #CDB2FF; --acc2: #8A4AF7; background: radial-gradient(50% 60% at 100% 0%, #8A4AF72E, transparent 70%); }
.acc-violet { --acc: #C3A2FF; --acc2: #9B6BFF; background: radial-gradient(50% 60% at 0% 0%, #9B6BFF26, transparent 70%); }

.s3-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.s3-head .v-kick { color: var(--acc); }
.s3-head h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; margin-top: 14px; }
.s3-head h2 em { font-style: normal; color: var(--acc); }
.s3-head .v-intro { margin-top: 16px; }
.s3-illu { width: 100%; max-width: 380px; justify-self: end; }

/* Liste à pastilles (le constat) */
.s3-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.s3-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 14px; background: var(--surface); }
.s3-item p { font-size: 18px; line-height: 1.45; }
.s3-dot { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--acc2) 22%, transparent); }
.s3-dot svg, .s3-tick svg { width: 22px; height: 22px; fill: none; stroke: var(--acc); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Encadré de conclusion */
.s3-result { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 28px 32px; border-radius: 16px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--acc2) 30%, #221B2C), #221B2C 70%); }
.s3-result .arrow { font: 700 48px/1 var(--font-display); color: var(--acc); }
.s3-result p { font: 600 clamp(20px, 2.2vw, 26px)/1.4 var(--font-display); letter-spacing: -.01em; }
.s3-result p small { display: block; margin-bottom: 6px; font: 500 17px/1.4 var(--font-sans); letter-spacing: 0; color: var(--text-secondary); }

/* Cartes à bandeau coloré */
.s3-cards { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 16px; }
.s3-card { position: relative; overflow: hidden; border-radius: 16px; background: var(--surface); display: grid; align-content: start;
  transition: transform .3s, box-shadow .3s; }
.s3-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -24px var(--acc2); }
.s3-card .top { height: 120px; display: grid; place-items: center; background: var(--g); }
.s3-card .top svg { width: 52px; height: 52px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 14px #0006); }
.s3-card .body { padding: 22px; display: grid; gap: 8px; }
.s3-card h3 { font-size: 22px; line-height: 1.2; }
.s3-card p { font-size: 17px; color: var(--text-secondary); }

/* Pour qui : oui / non */
.s3-duo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.s3-duo > div { border-radius: 16px; padding: 30px; display: grid; gap: 18px; align-content: start; background: var(--surface); }
.s3-duo .yes { background: linear-gradient(160deg, color-mix(in srgb, var(--acc2) 34%, #221B2C), #221B2C 65%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 35%, transparent); }
.s3-duo h3 { font-size: 24px; line-height: 1.2; }
.s3-duo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.s3-duo li { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; line-height: 1.45; }
.s3-tick { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--acc2) 30%, transparent); }
.s3-tick svg { width: 16px; height: 16px; stroke-width: 2.4; }
.s3-duo .no li { color: var(--text-secondary); }
.s3-duo .no .s3-tick { background: #FFFFFF12; }
.s3-duo .no .s3-tick svg { stroke: var(--text-muted); }
.v-note { color: var(--text-secondary); font-size: 18px; }

/* Travailler ensemble */
.v-cta {
  text-align: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(55% 80% at 50% 108%, #7A2EE0B3, #4B008259 45%, transparent 75%);
}
.v-cta::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #C9A8FF, #FFFFFF, #C9A8FF, transparent);
  box-shadow: 0 0 22px 3px #9B6BFF99;
}
.v-cta .v-wrap { justify-items: center; }
.v-cta .v-h2 { max-width: none; font-size: clamp(36px, 5vw, 56px); }
.v-cta-lines { display: grid; gap: 10px; color: var(--text-secondary); font-size: 20px; max-width: 56ch; }
.v-cta-close { font: 700 clamp(24px, 2.8vw, 30px)/1.3 var(--font-display); color: var(--text); }

/* Pied de page */
.v-footer { padding-block: 28px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.v-footer .v-wrap { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.v-footer a { color: var(--text-secondary); text-underline-offset: 3px; }
.v-footer a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .s3-head { grid-template-columns: 1fr; }
  .s3-illu { justify-self: start; max-width: 260px; }
  .s3-grid, .s3-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .v-nav, .v-header .v-icon-link { display: none; }
  .v-burger { display: flex; }
  .art3d { aspect-ratio: 4 / 3; }
  .art3d .stage { inset: -10% -14%; }
  .s3-duo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .s3-grid, .s3-cards { grid-template-columns: 1fr; }
  .s3-illu { display: none; }
  .s3-result { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
  .cut-lbl { display: none; }
  .v-btn { white-space: normal; }
}
@media (min-width: 861px) {
  .v-mobile-menu { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-register="vitrine"] *,
  [data-register="vitrine"] *::before,
  [data-register="vitrine"] *::after { transition-duration: .01ms !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
