/* ═══════════════════════════════════════════════════════════════
   LAUNCH · identité « plan technique » : grille, cotes, couches
   ═══════════════════════════════════════════════════════════════ */
@property --x { syntax: "<percentage>"; inherits: true; initial-value: 0%; }

.lh-hero { position: relative; overflow: hidden; padding-bottom: clamp(3.5rem, 7vw, 6rem);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 40px 40px; }
.lh-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.lh-hero-grid { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; }
.lh-hero-copy { display: grid; gap: 1.4rem; justify-items: start; }
.lh-hero h1 { font-size: var(--step-5); }
@media (min-width: 960px) { .lh-hero-grid { grid-template-columns: .95fr 1.05fr; gap: 4rem; } }

.lh-build { position: relative; padding: 2.2rem 0 1rem 2.2rem; }
.dim { position: absolute; font-size: 11px; letter-spacing: .06em; color: var(--accent); font-variant-numeric: tabular-nums; }
.dim--top { top: 0; left: 2.2rem; right: 0; text-align: center; border-top: 1px dashed currentColor; padding-top: 3px; line-height: 1; }
.dim--left { left: 0; top: 2.2rem; bottom: 1rem; width: 1.2rem; border-left: 1px dashed currentColor; }
.dim--left { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; padding-block: 0; padding-left: 4px; }
.lh-browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface-solid); box-shadow: var(--shadow); }
.lh-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.lh-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); } .lh-bar span { margin-left: 10px; font-size: 11px; color: var(--text-3); padding: 3px 12px; border-radius: 6px; background: var(--surface-2); }
.lh-page { position: relative; aspect-ratio: 16 / 11.5; animation: lh-sweep 9s var(--ease-in-out) infinite; }
@keyframes lh-sweep { 0%, 10% { --x: 0%; } 45%, 65% { --x: 100%; } 100% { --x: 0%; } }
.lh-final, .lh-wire { position: absolute; inset: 0; padding: 7% 6%; display: grid; grid-template-rows: auto 1fr auto; gap: 7%; }
.lh-final { background: #fff; }
.lh-wire { background-color: #0d0b24; background-image: linear-gradient(rgba(157,101,245,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(157,101,245,.16) 1px, transparent 1px); background-size: 22px 22px; clip-path: inset(0 0 0 var(--x)); }
.lh-page::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; background: var(--violet-400); box-shadow: 0 0 18px 2px var(--violet-500); z-index: 3; opacity: .9; }
.f-nav { display: flex; align-items: center; gap: 4%; } .f-nav b { width: 15%; height: 12px; border-radius: 3px; } .f-nav span { width: 9%; height: 6px; border-radius: 3px; } .f-nav em { margin-left: auto; width: 15%; height: 16px; border-radius: 99px; }
.f-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 6%; align-items: center; } .f-hero > div:first-child { display: grid; gap: 9px; }
.f-hero h4 { margin: 0; height: 14px; width: 92%; border-radius: 3px; } .f-hero h4 + h4 { width: 64%; }
.f-hero p { margin: 0; height: 6px; width: 86%; border-radius: 3px; } .f-hero p + p { width: 58%; }
.f-hero u { display: block; text-decoration: none; width: 38%; height: 20px; border-radius: 99px; margin-top: 4px; }
.f-img { align-self: stretch; border-radius: 10px; }
.f-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; } .f-cards i { height: 44px; border-radius: 8px; }
/* couche finale */
.lh-final .f-nav b { background: #1b1240; } .lh-final .f-nav span { background: #cfcbe0; } .lh-final .f-nav em { background: var(--violet-500); }
.lh-final h4 { background: #1b1240; } .lh-final p { background: #cfcbe0; } .lh-final u { background: var(--violet-500); }
.lh-final .f-img { background: linear-gradient(140deg, #c4a5ff, #7c3aed); } .lh-final .f-cards i { background: #f1edfd; }
/* couche plan */
.lh-wire * { background: transparent !important; border: 1.5px dashed rgba(196,165,255,.75); }
.chip-float { position: absolute; padding: 6px 14px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-solid); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); animation: floaty 6s ease-in-out infinite; z-index: 4; }
.chip-float::before { content: "✓ "; color: var(--ok); }
.cf-a { right: -4px; top: 30%; } .cf-b { left: 4%; bottom: -2px; animation-delay: -2s; } .cf-c { right: 12%; bottom: -12px; animation-delay: -4s; }
@keyframes floaty { 50% { transform: translateY(-7px); } }
@media (max-width: 520px) { .chip-float { display: none; } .lh-build { padding-left: 1.6rem; } }

/* Pour qui */
.who-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.who-tabs [role="tab"] { padding: .7rem 1.25rem; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-weight: 600; font-size: .95rem; color: var(--text-2); transition: all var(--dur-2) var(--ease); }
.who-tabs [role="tab"]:hover { color: var(--text); border-color: var(--text-3); }
.who-tabs [role="tab"][aria-selected="true"] { background: var(--violet-500); border-color: var(--violet-500); color: #fff; box-shadow: 0 10px 28px -10px var(--glow); }
.who-panels > div { display: grid; gap: 2rem; align-items: center; padding: clamp(1.5rem, 3.5vw, 3rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); animation: swap .5s var(--ease) both; }
.who-panels > div[hidden] { display: none; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
.who-text { display: grid; gap: 1rem; justify-items: start; } .who-text h3 { font-size: var(--step-2); max-width: 24ch; } .who-text p { color: var(--text-2); max-width: 34rem; }
.who-mock { aspect-ratio: 4 / 3; border-radius: var(--r-md); padding: 7%; display: grid; gap: 6%; background: #0d0b24; border: 1px solid var(--line); }
.who-mock i, .who-mock u { display: block; border-radius: 8px; text-decoration: none; }
.who-mock.m-a { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1.3fr 1fr; } .m-a i { background: linear-gradient(140deg, #7c3aed, #3b1a8f); } .m-a i:first-child { grid-column: span 2; } .m-a u { grid-column: span 3; background: var(--violet-500); height: 26px; width: 42%; border-radius: 99px; }
.who-mock.m-b { grid-template-rows: repeat(3, 1fr) auto; } .m-b i { background: rgba(196,165,255,.22); } .m-b i:nth-child(2) { width: 82%; } .m-b i:nth-child(3) { width: 64%; } .m-b u { background: var(--violet-500); height: 26px; width: 46%; border-radius: 99px; }
.who-mock.m-c { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr auto; } .m-c i { background: rgba(196,165,255,.22); } .m-c i:first-child { grid-row: span 2; background: linear-gradient(160deg, #7c3aed, #3b1a8f); } .m-c u { grid-column: span 2; background: var(--violet-500); height: 26px; width: 40%; border-radius: 99px; }
@media (min-width: 900px) { .who-panels > div { grid-template-columns: 1.1fr .9fr; } }

/* Comparatif */
.vs { display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.vs-head, .vs-row { display: grid; grid-template-columns: 1fr 1fr; }
.vs-head > span { display: none; } .vs-row > span { grid-column: 1 / -1; padding: 1rem 1.25rem .2rem; font-weight: 600; font-size: .85rem; color: var(--text-3); }
.vs-head b { padding: 1rem 1.25rem; font-family: var(--font-display); font-size: 1.05rem; } .vs-them { color: var(--text-3); } .vs-head .vs-us { color: var(--accent); }
.vs-row p { padding: .2rem 1.25rem 1.1rem; margin: 0; font-size: .95rem; } .vs-row p.vs-them { color: var(--text-3); }
.vs-row p.vs-us { color: var(--text); font-weight: 500; }
.vs-us { background: var(--accent-soft); } .vs-row, .vs-head { border-bottom: 1px solid var(--line); } .vs-row:last-child { border-bottom: 0; }
.vs-row p.vs-us::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: .55rem; transform: translateY(1px); background: var(--ok); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.vs-foot { margin-top: 1.75rem; color: var(--text-2); }
@media (min-width: 760px) { .vs-head, .vs-row { grid-template-columns: 11rem 1fr 1fr; } .vs-head > span { display: block; } .vs-row > span { grid-column: auto; padding: 1.1rem 1.25rem; align-self: center; } .vs-row p { padding: 1.1rem 1.25rem; align-self: center; } }

/* Couches : pile de cartes (bureau) / puces collantes (mobile) */
.lh-layers-grid { display: grid; gap: 1.5rem 4rem; grid-template-columns: 1fr; }
.lh-l-head { margin-bottom: 0; }
.layers { position: sticky; top: 76px; z-index: 5; display: flex; gap: .5rem; overflow-x: auto; padding: .7rem 0; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.layers::-webkit-scrollbar { display: none; }
.layer { flex: none; display: flex; align-items: center; gap: .5rem; padding: .45rem .9rem .45rem .5rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font-size: .85rem; font-weight: 600; transition: background-color .3s, border-color .3s, color .3s, transform .45s var(--ease), box-shadow .3s; }
.layer i { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 800; }
.layer.is-on { background: var(--violet-500); border-color: var(--violet-500); color: #fff; box-shadow: 0 8px 24px -8px var(--glow); } .layer.is-on i { background: rgba(255,255,255,.22); color: #fff; }
.incl { display: grid; } .incl li { padding: 1.25rem 0 1.25rem 1.4rem; border-top: 1px solid var(--line); border-left: 2px solid transparent; transition: border-color var(--dur-2), background-color var(--dur-2); outline-offset: -2px; cursor: default; }
.incl li:last-child { border-bottom: 1px solid var(--line); } .incl li:hover, .incl li:focus-visible, .incl li.is-on { border-left-color: var(--violet-500); background: var(--accent-soft); }
.incl h3 { font-size: var(--step-1); margin-bottom: .3rem; } .incl p { color: var(--text-2); font-size: .95rem; max-width: 34rem; }
@media (min-width: 960px) {
  .lh-layers-grid { grid-template-columns: .85fr 1.15fr; grid-template-areas: "stack head" "stack list"; align-items: start; }
  .lh-l-head { grid-area: head; } .incl { grid-area: list; }
  .layers { grid-area: stack; grid-row: 1 / span 2; position: sticky; top: 120px; flex-direction: column; gap: 0; overflow: visible; margin: 0; padding: 0; background: none; border: 0; height: 410px; display: block; }
  .layer { position: absolute; left: 0; width: 82%; height: 76px; border-radius: 20px; background: var(--surface-solid); padding: 0 1.4rem; font-size: 1.05rem; box-shadow: 0 14px 30px -18px rgba(0,0,0,.5); top: calc(var(--n) * 66px); z-index: var(--n); }
  .layer i { width: 34px; height: 34px; font-size: .95rem; }
  .layer:nth-child(1) { --n: 0; } .layer:nth-child(2) { --n: 1; } .layer:nth-child(3) { --n: 2; } .layer:nth-child(4) { --n: 3; } .layer:nth-child(5) { --n: 4; }
  .layer:nth-child(even) { left: 14%; }
  .layer.is-on { transform: translateX(18px) scale(1.04); z-index: 10; box-shadow: 0 24px 50px -14px var(--glow); }
}

/* Timeline */
.tl { position: relative; display: grid; gap: 2.5rem; padding-left: 3rem; --p: 0; max-width: 46rem; }
.tl::before, .tl::after { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.tl::before { background: var(--line-2); } .tl::after { background: var(--violet-500); transform-origin: top; transform: scaleY(var(--p)); box-shadow: 0 0 14px var(--glow); }
.tl-step { position: relative; } .tl-dot { position: absolute; left: -3rem; top: .15rem; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--line-2); transition: all .5s var(--ease); z-index: 1; }
.tl-step.is-in .tl-dot { background: var(--violet-500); border-color: var(--violet-500); box-shadow: 0 0 0 6px var(--accent-soft); }
.tl-step h3 { font-size: var(--step-2); margin-bottom: .5rem; } .tl-step p { color: var(--text-2); max-width: 34rem; }

/* Cibles Lighthouse */
.lh-targets-grid { display: grid; gap: 2.5rem; align-items: center; } .lh-targets .sec-head { margin-bottom: 0; } .lh-note { font-size: .92rem !important; color: var(--text-3) !important; margin-top: 1rem !important; }
.rings { display: grid; grid-template-columns: 1fr; gap: .9rem; align-items: start; }
.ring-card { position: relative; margin: 0; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); outline-offset: 3px; transition: border-color .25s, transform .35s var(--ease); cursor: help; }
.ring-card:hover, .ring-card:focus-visible { border-color: var(--violet-500); transform: translateY(-3px); }
.rc-top { display: flex; align-items: center; gap: 1rem; } .rc-top p { margin: .15rem 0 0; color: var(--text-2); font-size: .9rem; line-height: 1.4; }
.rc-ring { position: relative; flex: none; width: 76px; height: 76px; } .rc-ring svg { width: 100%; transform: rotate(-90deg); } .ring-card circle { fill: none; stroke-width: 7; }
.rc-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.r-bg { stroke: var(--line-2); } .r-val { stroke: var(--ok); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.rings.is-in .r-val { stroke-dashoffset: 10; }
.ring-card figcaption { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.rc-tip { display: grid; grid-template-rows: 0fr; overflow: hidden; max-height: 0; opacity: 0; font-size: .85rem; line-height: 1.5; color: var(--text-2); transition: max-height .4s var(--ease), opacity .3s, margin .3s; }
.ring-card:hover .rc-tip, .ring-card:focus .rc-tip, .ring-card:focus-within .rc-tip { max-height: 9rem; opacity: 1; margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed var(--line-2); }
@media (hover: none) { .rc-tip { max-height: none; opacity: 1; margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed var(--line-2); } .ring-card { cursor: default; } }
@media (min-width: 900px) { .lh-targets-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; } .rings { grid-template-columns: 1fr 1fr; } }

/* Comparatif en cartes sur mobile : la ligne-titre se distingue des deux colonnes */
@media (max-width: 759px) {
  .vs-head { display: none; }
  .vs-row { grid-template-columns: 1fr; padding: 1.1rem 1.1rem 1.2rem; gap: .5rem; }
  .vs-row > span { padding: 0 0 .35rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
  .vs-row p { padding: .7rem .9rem !important; border-radius: 12px; }
  .vs-row p.vs-them { background: color-mix(in srgb, var(--text) 5%, transparent); } .vs-row p.vs-us { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
  .vs-row p::after { content: ""; display: none; }
  .vs-row p.vs-them::before { content: "Wix, Shopify"; display: block; margin: 0 0 .15rem; width: auto; height: auto; transform: none; background: none; -webkit-mask: none; mask: none; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
  .vs-row p.vs-us::before { content: "Hevolve Launch"; display: block; margin: 0 0 .15rem; width: auto; height: auto; transform: none; background: none; -webkit-mask: none; mask: none; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
}

/* Profils : scènes animées */
.who-scene { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: radial-gradient(circle at 30% 20%, #26175f, #0b0b18 75%); border: 1px solid var(--line); }
.who-scene svg { display: block; width: 100%; height: 100%; } .who-scene svg * { transform-box: fill-box; transform-origin: center; }
.wr1 { animation: w-r1 7s ease-in-out infinite; } .wr2 { animation: w-r2 7s ease-in-out infinite; } .wr3 { animation: w-r3 7s ease-in-out infinite; }
@keyframes w-r1 { 0%,15% { transform: translateY(92px); } 32%,92% { transform: translateY(0); } 100% { transform: translateY(92px); } }
@keyframes w-r2 { 0%,15% { transform: translateY(0); } 32%,92% { transform: translateY(46px); } 100% { transform: translateY(0); } }
@keyframes w-r3 { 0%,15% { transform: translateY(0); } 32%,92% { transform: translateY(46px); } 100% { transform: translateY(0); } }
.wbadge { animation: w-badge 7s infinite; } @keyframes w-badge { 0%,30% { opacity: 0; transform: scale(.3); } 38%,92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.wcur { animation: w-cur 7s ease-in-out infinite; } @keyframes w-cur { 0%,45% { transform: translate(250px,190px); opacity: 0; } 55%,70% { transform: translate(100px,204px); opacity: 1; } 72% { transform: translate(100px,204px) scale(.85); } 76%,92% { transform: translate(100px,204px); opacity: 1; } 100% { opacity: 0; transform: translate(100px,204px); } }
.wch1, .wch2 { animation: none; } .wch2 { animation: w-ch 7s infinite; } @keyframes w-ch { 0%,28% { fill: rgba(255,255,255,.1); } 36%,92% { fill: #7c3aed; } 100% { fill: rgba(255,255,255,.1); } }
.wok { animation: w-ok 7s infinite; } @keyframes w-ok { 0%,42% { opacity: 0; transform: translateY(8px); } 50%,92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.wcur2 { animation: w-cur2 7s ease-in-out infinite; } @keyframes w-cur2 { 0%,10% { transform: translate(300px,200px); opacity: 0; } 22%,34% { transform: translate(262px,118px); opacity: 1; } 36% { transform: translate(262px,118px) scale(.85); } 40%,88% { transform: translate(262px,118px); opacity: 1; } 100% { opacity: 0; } }
.wf rect { transform-origin: 0 50%; } .wf2 rect { animation: w-f2 7s ease-in-out infinite; } .wf3 rect { animation: w-f3 7s ease-in-out infinite; }
@keyframes w-f2 { 0%,12% { transform: scaleX(.42); } 40%,92% { transform: scaleX(.86); } 100% { transform: scaleX(.42); } }
@keyframes w-f3 { 0%,12% { transform: scaleX(.18); } 55%,92% { transform: scaleX(.6); } 100% { transform: scaleX(.18); } }
.wdots circle { animation: w-dot 3s linear infinite; } @keyframes w-dot { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(124px); opacity: 0; } }
html[data-motion="reduce"] .who-scene * { animation: none !important; }
