/* ==========================================================================
   Relance — page d'accueil
   ========================================================================== */

section { position: relative; }
.section-head { display: grid; gap: 20px; margin-bottom: var(--s80); max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head .tag { margin-bottom: -4px; }

/* --- Ouverture ---------------------------------------------------------- */
.intro { display: none; }
.motion:not(.intro-seen) .intro {
  position: fixed; inset: 0; z-index: 120;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: var(--paper);
}
.intro-word { overflow: hidden; padding: 0 .06em .08em; }
.intro-text { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 13vw, 168px); letter-spacing: -0.04em; line-height: 1; }
.intro-rule { width: min(240px, 50vw); height: 1px; background: var(--ink); transform: scaleX(0); }
.intro-caption { font-size: 14px; color: var(--ash); opacity: 0; }

/* États initiaux posés avant le premier rendu (évite tout clignotement) */
.motion [data-hero="fade"], .motion .hero .art-card, .motion .nav-inner, .motion .scroll-hint { opacity: 0; }
.motion [data-split="hero"] { visibility: hidden; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 120px var(--gutter) 96px;
  overflow: clip;
}
.hero-copy { position: relative; z-index: 3; max-width: 900px; text-align: center; display: grid; justify-items: center; gap: 28px; }
.hero-tag { color: var(--slate); }
.dot-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--sienna); }
.dot-live::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: var(--peach); z-index: -1; animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.hero h1 { max-width: 16.5ch; font-size: clamp(40px, min(7.2vw, 10vh), 90px); }
@media (min-width: 901px) and (max-height: 860px) { .hero { padding-top: 100px; padding-bottom: 64px; } .hero-copy { gap: 22px; } }
.hero-sub { font-size: clamp(17px, 1.5vw, 19px); color: var(--slate); line-height: 1.5; max-width: 36em; font-weight: 430; letter-spacing: -0.009em; }
.hero .hero-sub { max-width: 31em; }
.hero .pill-row { justify-content: center; margin-top: 4px; }

.hero-arts { position: absolute; inset: 0; z-index: 2; pointer-events: none; max-width: 1600px; margin: 0 auto; }
.art { position: absolute; will-change: transform; }
.art-mouse, .art-card { will-change: transform; }
.art-a { left: max(16px, 3vw); top: 15%; width: 292px; }
.art-b { right: max(16px, 3.5vw); top: 17%; width: 248px; }
.art-c { left: max(28px, 6vw); bottom: 11%; width: 300px; }
.art-d { right: max(20px, 5vw); bottom: 10%; width: 340px; }
.art-a .art-card { transform: rotate(-2.5deg); }
.art-b .art-card { transform: rotate(2deg); }
.art-c .art-card { transform: rotate(1.5deg); }
.art-d .art-card { transform: rotate(-1.5deg); }

.art-table { padding: 14px 14px 10px; }
.art-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--slate); padding: 0 4px 10px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 450; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--sienna); box-shadow: 0 0 0 3px var(--peach); }
.row { display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 10px; padding: 7px 4px; border-top: 1px solid var(--hairline); font-size: 14px; }
.row .t { font-weight: 450; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .m { color: var(--smoke); font-size: 13px; font-variant-numeric: tabular-nums; }
.row .p { font-variant-numeric: tabular-nums; font-weight: 450; }
.row.dim { opacity: .45; }
.thumb { width: 30px; height: 30px; border-radius: 8px; background: var(--mist); display: grid; place-items: center; }
.thumb svg { width: 15px; height: 15px; fill: none; stroke: var(--slate); stroke-width: 1.6; stroke-linejoin: round; }

.art-stat { padding: 18px 20px 14px; display: grid; gap: 2px; }
.stat-label { font-size: 13px; color: var(--slate); }
.stat-value { font-size: 34px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.stat-delta { font-size: 13px; color: var(--slate); }
.spark { width: 100%; height: 56px; margin-top: 10px; overflow: visible; }
.spark path { fill: none; stroke: var(--sienna); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.art-fav { padding: 14px; display: grid; gap: 10px; }
.fav-top { display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 1.35; color: var(--slate); }
.fav-top b { color: var(--ink); font-weight: 500; }
.fav-sent { display: flex; align-items: center; gap: 8px; background: var(--mist); border-radius: 12px; padding: 9px 12px; font-size: 13.5px; }
.fav-sent svg { width: 15px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fav-sent b { font-weight: 500; margin-left: auto; white-space: nowrap; }

.composer { padding: 16px; border-radius: var(--r-input); display: grid; gap: 14px; }
.composer-q { font-size: 15px; line-height: 1.4; }
.composer-bar { display: flex; align-items: center; gap: 4px; }
.ghost-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.ghost-ic svg { width: 17px; height: 17px; fill: none; stroke: var(--smoke); stroke-width: 1.8; stroke-linecap: round; }
.send { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.send svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; width: 24px; height: 38px; margin-left: -12px; border: 1px solid var(--smoke); border-radius: 12px; z-index: 3; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: wheel 2s var(--ease-out) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 1380px) {
  .art-a { width: 260px; left: 16px; top: max(96px, 12%); }
  .art-b { width: 220px; right: 16px; top: max(104px, 13%); }
  .art-c { width: 250px; left: 16px; bottom: 6%; }
  .art-d { width: 262px; right: 16px; bottom: 6%; }
  .hero .hero-sub { max-width: 28em; }
  .art-a .row .m { display: none; }
  .art-a .row { grid-template-columns: 30px 1fr auto; }
  .art-a .art-table .row:nth-child(5) { display: none; }
}
@media (max-width: 1080px) {
  .art-a, .art-b { top: max(92px, 11%); }
  .art-c { width: 228px; }
  .art-d { width: 236px; }
  .art-c .fav-top { font-size: 13px; }
  .art-a { width: 236px; }
  .art-b { width: 200px; }
  .art-a .row .m { display: none; }
  .art-a .row { grid-template-columns: 30px 1fr auto; }
  .hero h1 { font-size: 64px; }
}
/* Tablette et mobile : le collage passe sous le texte (tablettes en portrait comprises) */
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait), (max-height: 520px) and (orientation: landscape) {
  .hero { display: block; padding: 112px var(--gutter) 64px; min-height: 0; }
  .hero-copy { margin: 0 auto; gap: 22px; }
  .hero-arts { position: relative; inset: auto; width: 100%; height: 330px; margin: 44px auto 0; max-width: 520px; }
  .art-a, .art-d { display: none; }
  .art-b { top: 0; right: 4%; width: 230px; }
  .art-c { bottom: auto; top: 170px; left: 2%; width: 290px; }
  .scroll-hint { display: none; }
  .hero h1 { font-size: clamp(40px, 7.4vw, 72px); }
}
/* Tablettes : les quatre fragments, en collage plus large */
@media (min-width: 601px) and (max-width: 900px), (min-width: 601px) and (max-width: 1100px) and (orientation: portrait) {
  .hero { padding-top: 136px; }
  .hero-arts { max-width: 760px; height: 400px; margin-top: 56px; }
  .art-a, .art-d { display: block; }
  .art-a { left: 0; top: 0; width: 280px; }
  .art-a .row .m { display: block; }
  .art-a .row { grid-template-columns: 30px 1fr auto auto; }
  .art-b { right: 2%; top: 24px; width: 236px; }
  .art-c { left: 6%; top: 226px; width: 290px; }
  .art-d { right: 0; top: 214px; bottom: auto; width: 320px; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .hero h1 { font-size: clamp(36px, 10.6vw, 52px); max-width: none; }
}
@media (max-width: 480px) {
  .hero { padding-top: 100px; }
  .hero-copy { text-align: left; justify-items: start; }
  .hero .pill-row { justify-content: flex-start; }
  .hero .pill-row .pill { flex: 1 1 100%; }
  .hero-arts { height: 300px; }
  .art-b { width: 210px; right: 0; }
  .art-c { top: 160px; left: 0; width: min(290px, 88vw); }
}

/* --- Manifeste ---------------------------------------------------------- */
.manifesto { padding: var(--section) 0 calc(var(--section) * .8); }
.manifesto .wrap { display: grid; grid-template-columns: 1fr 3fr; column-gap: var(--s40); }
.manifesto .tag { align-self: start; padding-top: .9em; }
.manifesto-text {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4.4vw, 60px); line-height: 1.16; letter-spacing: -0.018em;
  text-wrap: pretty;
}
.manifesto .ticker { grid-column: 1 / -1; }
@media (max-width: 760px) { .manifesto .wrap { grid-template-columns: 1fr; } .manifesto .tag { padding: 0 0 24px; } }
.manifesto-text em { font-style: italic; }
.ticker { margin-top: var(--s96); overflow: hidden; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; padding: 22px 0; }
.ticker-track span { font-size: 15px; color: var(--slate); padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.ticker-track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--smoke); margin-left: 0; position: relative; left: 28px; }
html:not(.motion) .ticker-track { animation: ticker 50s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- Fonctionnalités : récit défilant ----------------------------------- */
.features { padding: var(--section) 0; background: var(--fog); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.story-stage { order: 2; position: sticky; top: calc(50vh - 290px); }
.story-steps { order: 1; }
.stage {
  position: relative; height: 580px;
  background: var(--mist); border-radius: var(--r-card);
  overflow: hidden;
}
.stage-meta { position: absolute; left: 28px; right: 28px; top: 24px; display: flex; align-items: center; gap: 16px; z-index: 2; }
.stage-count { font-size: 14px; color: var(--ash); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage-count b { font-weight: 450; color: var(--ink); }
.stage-bar { flex: 1; height: 1px; background: rgba(23, 25, 28, .1); position: relative; overflow: hidden; }
.stage-bar i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(.1667); transform-origin: left; }
.panel { position: absolute; inset: 72px 28px 28px; display: grid; place-items: center; visibility: hidden; }
.panel.is-active { visibility: visible; }
.p-card { width: min(100%, 440px); padding: 20px; display: grid; gap: 14px; }
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 500; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field { background: var(--fog); border: 1px solid var(--hairline); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; }
.field small { font-size: 12.5px; color: var(--ash); }
.field b { font-weight: 500; font-size: 16px; }
.steps-price { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; height: 150px; padding-top: 8px; }
.sp { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 8px; }
.sp i { display: block; border-radius: 10px 10px 4px 4px; background: var(--mist-2); transform-origin: bottom; }
.sp.now i { background: var(--ink); }
.sp span { font-size: 12.5px; color: var(--slate); text-align: center; font-variant-numeric: tabular-nums; }
.sp.now span { color: var(--ink); font-weight: 500; }

.p-chat { gap: 10px; }
.notif { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--slate); padding-bottom: 6px; }
.notif b { color: var(--ink); font-weight: 500; }
.bubble { max-width: 86%; padding: 11px 14px; font-size: 14.5px; line-height: 1.42; border-radius: 18px; }
.bubble.me { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bubble.them { justify-self: start; background: var(--mist); border-bottom-left-radius: 6px; }
.offer { justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--slate); }
.offer svg, .pdf svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.offer b { color: var(--ink); font-weight: 500; }
.ab { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--hairline); font-size: 12.5px; color: var(--ash); align-items: center; }
.ab span:not(:first-child) { background: var(--fog); border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: 4px 10px; color: var(--slate); }
.ab span.win { background: var(--ink); color: #fff; border-color: var(--ink); }

.incoming { display: flex; align-items: center; gap: 12px; background: var(--fog); border: 1px solid var(--hairline); border-radius: 14px; padding: 10px 14px; font-size: 14px; color: var(--slate); }
.incoming b { color: var(--ink); font-weight: 500; }
.incoming strong { margin-left: auto; font-size: 20px; font-weight: 500; color: var(--ink); }
.rules { display: grid; gap: 6px; }
.rule { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; font-size: 14px; color: var(--slate); border: 1px solid transparent; }
.rule span:last-child { color: var(--ink); font-weight: 450; }
.rule.on { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.rule.on span:last-child { font-weight: 500; }

.timeline { display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 8px 0; position: relative; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 13.5px; top: 36px; bottom: -8px; width: 1px; background: var(--hairline); }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; }
.tl-dot svg { width: 13px; height: 13px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.timeline li:last-child .tl-dot { background: var(--ink); }
.timeline li:last-child .tl-dot svg { stroke: #fff; stroke-width: 2; }
.timeline b { display: block; font-weight: 500; font-size: 14.5px; }
.timeline small { display: block; font-size: 13px; color: var(--slate); line-height: 1.4; margin-top: 2px; }

.seg { display: inline-flex; background: var(--mist); border-radius: var(--r-pill); padding: 3px; font-size: 12.5px; font-weight: 450; }
.seg span { padding: 4px 10px; border-radius: var(--r-pill); color: var(--slate); }
.seg span.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.sheets { position: relative; height: 200px; }
.sheet {
  position: absolute; top: 10px; left: 50%; width: 118px; height: 172px; margin-left: -59px;
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 10px;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .18);
  padding: 12px 11px; display: flex; flex-direction: column; gap: 8px;
}
.sheet b { font-size: 11.5px; font-weight: 500; }
.sheet .code { display: block; height: 52px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); opacity: .85; }
.sheet small { margin-top: auto; font-size: 10.5px; color: var(--slate); border-top: 1px dashed var(--hairline); padding-top: 6px; }
.sheet[data-fan="0"] { transform: translateX(-138px) rotate(-8deg); }
.sheet[data-fan="1"] { transform: translateX(-46px) rotate(-2.5deg); }
.sheet[data-fan="2"] { transform: translateX(46px) rotate(2.5deg); }
.sheet[data-fan="3"] { transform: translateX(138px) rotate(8deg); }
.pdf { display: flex; align-items: center; gap: 12px; background: var(--fog); border: 1px solid var(--hairline); border-radius: 14px; padding: 10px 14px; }
.pdf b { display: block; font-size: 14px; font-weight: 500; }
.pdf small { font-size: 12.5px; color: var(--slate); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--fog); border: 1px solid var(--hairline); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; }
.tile small { font-size: 12px; color: var(--ash); white-space: nowrap; }
.tile b { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.chart { width: 100%; height: 150px; overflow: visible; }
.chart-line { fill: none; stroke: var(--sienna); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart-area { fill: rgba(93, 42, 26, .06); stroke: none; }

.story-steps { display: grid; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 40px 0; }
.step:first-child { min-height: 58vh; justify-content: flex-start; padding-top: 0; }
.step:last-child { min-height: 92vh; justify-content: flex-start; padding-top: 22vh; }
.step-num { font-family: var(--serif); font-size: 18px; color: var(--ash); font-variant-numeric: tabular-nums; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.015em; }
.step p { color: var(--slate); max-width: 30em; }
.checks { display: grid; gap: 10px; margin-top: 6px; }
.checks li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat; }
.motion .step { opacity: .28; transition: opacity .6s var(--ease-out); }
.motion .step.is-active { opacity: 1; }

@media (max-width: 1100px) {
  .stage { height: 540px; }
  .story-stage { top: calc(50vh - 270px); }
}
/* Mobile : la scène reste collée en haut, le texte défile dessous */
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-stage { order: 0; top: 72px; z-index: 2; padding-bottom: 12px; background: linear-gradient(var(--fog) 85%, transparent); }
  .stage { height: min(420px, 54vh); }
  .stage-meta { left: 18px; right: 18px; top: 16px; }
  .panel { inset: 52px 14px 14px; }
  .p-card { padding: 14px; gap: 10px; width: 100%; max-width: 400px; }
  .hide-sm, .ab, .timeline li:nth-child(3) { display: none; }
  .steps-price { height: 110px; }
  .sheets { height: 150px; }
  .sheet { transform-origin: top center; width: 96px; height: 136px; margin-left: -48px; }
  .sheet[data-fan="0"] { transform: translateX(-108px) rotate(-8deg) scale(.95); }
  .sheet[data-fan="1"] { transform: translateX(-36px) rotate(-2.5deg) scale(.95); }
  .sheet[data-fan="2"] { transform: translateX(36px) rotate(2.5deg) scale(.95); }
  .sheet[data-fan="3"] { transform: translateX(108px) rotate(8deg) scale(.95); }
  .sheet .code { height: 36px; }
  .chart { height: 110px; }
  .bubble { font-size: 13.5px; padding: 9px 12px; }
  .step, .step:first-child, .step:last-child { min-height: 0; padding: 48px 0 32px; justify-content: flex-start; }
  .step h3 { font-size: 30px; }
}
@media (max-width: 860px) and (max-height: 720px) {
  .stage { height: 46vh; min-height: 330px; }
  .fields { display: none; }
}

/* --- IA : carte d'accent ------------------------------------------------ */
.ai { padding: var(--section) 0; }
.ai-card {
  background: var(--peach); color: var(--sienna);
  border-radius: var(--r-card);
  padding: clamp(32px, 6vw, 80px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  will-change: clip-path;
}
.ai-copy { display: grid; gap: 22px; align-content: start; }
.tag-warm { color: var(--sienna); opacity: .75; }
.ai-copy p { font-size: 18px; font-weight: 430; line-height: 1.5; letter-spacing: -0.009em; }
.ai-points { display: grid; gap: 12px; margin-top: 6px; }
.ai-points li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.45; }
.ai-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 1px; background: var(--sienna); }
.ai-visual { display: grid; justify-items: center; }
.ai-chat { width: min(100%, 440px); padding: 18px; display: grid; gap: 12px; color: var(--ink); }
.ai-msg.user { justify-self: end; max-width: 88%; background: var(--mist); border-radius: 18px 18px 6px 18px; padding: 11px 14px; font-size: 15px; line-height: 1.4; }
.ai-tool { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--slate); background: var(--fog); border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: 5px 12px 5px 8px; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--smoke); border-top-color: var(--ink); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-msg.bot { font-size: 15px; line-height: 1.45; display: grid; gap: 10px; }
.ai-msg.bot ul { display: grid; gap: 0; border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.ai-msg.bot li { display: flex; justify-content: space-between; padding: 9px 14px; font-size: 14.5px; }
.ai-msg.bot li + li { border-top: 1px solid var(--hairline); }
.ai-msg.bot li b { font-weight: 500; font-variant-numeric: tabular-nums; }
.ai-msg.bot .muted { font-size: 14px; }
.ai-chat .composer-bar { border: 1px solid var(--hairline); border-radius: var(--r-input); padding: 6px 6px 6px 16px; margin-top: 4px; }
.ph { font-size: 15px; color: var(--smoke); }

@media (max-width: 900px) {
  .ai-card { grid-template-columns: minmax(0, 1fr); }
}
.ai-copy, .ai-visual { min-width: 0; }
.ai-chat .composer-bar { min-width: 0; }

/* --- Tout le reste ------------------------------------------------------ */
.more { padding: var(--section) 0; background: var(--fog); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ncard {
  background: var(--mist); border-radius: var(--r-card); padding: 28px 24px 30px;
  display: flex; flex-direction: column; gap: 8px;
  transition: background-color .5s var(--ease-out);
}
.ncard:hover { background: var(--mist-2); }
.ncard .cat { font-size: 14px; color: var(--ash); }
.ncard h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.ncard p:not(.cat) { font-size: 16px; color: var(--slate); line-height: 1.5; }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .ncard-ic { margin-bottom: 24px; } }

/* --- Sécurité ----------------------------------------------------------- */
.safety { padding: var(--section) 0; }
.safety-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.safety-head { position: sticky; top: 140px; display: grid; gap: 20px; }
.safety-list li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 30px 0; }
.safety-list li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); opacity: .12; transform-origin: left; transform: scaleX(var(--line, 1)); }
.safety-list li:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hairline); }
.safety-list .n { font-family: var(--serif); font-size: 20px; color: var(--ash); padding-top: 2px; }
.safety-list h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 6px; }
.safety-list p { color: var(--slate); font-size: 16px; }
@media (max-width: 900px) {
  .safety-grid { grid-template-columns: 1fr; }
  .safety-head { position: static; }
  .safety-list li { grid-template-columns: 44px 1fr; }
}

/* --- Étapes ------------------------------------------------------------- */
.how { padding: var(--section) 0; background: var(--fog); }
.how .section-head { margin-bottom: var(--s64); }
.how-track { position: relative; height: 1px; background: rgba(23, 25, 28, .1); margin: 0 12.5%; top: 28px; }
.how-progress { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(1); }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; position: relative; }
.how-steps li { display: grid; justify-items: center; gap: 10px; padding: 0 8px; }
.how-n { width: 56px; height: 56px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px var(--hairline); display: grid; place-items: center; font-family: var(--serif); font-size: 24px; margin-bottom: 18px; transition: background-color .5s, color .5s, box-shadow .5s; }
.how-steps li.is-on .how-n { background: var(--ink); color: #fff; box-shadow: 0 0 0 1px var(--ink); }
.how-steps h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.how-steps p { font-size: 16px; color: var(--slate); max-width: 22ch; }
@media (max-width: 860px) {
  .how-track { display: none; }
  .how-steps { grid-template-columns: 1fr; text-align: left; gap: 0; }
  .how-steps li { grid-template-columns: 56px 1fr; justify-items: start; column-gap: 18px; row-gap: 4px; padding: 20px 0; border-top: 1px solid var(--hairline); }
  .how-n { grid-row: span 2; margin: 0; }
  .how-steps p { max-width: none; }
}

/* --- Tarifs ------------------------------------------------------------- */
.pricing { padding: var(--section) 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 920px; margin: 0 auto; }
.plan { background: var(--mist); border-radius: var(--r-card); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.plan-main { background: var(--paper); box-shadow: var(--sh-float); }
.plan:not(.plan-main) .chip { background: var(--paper); }
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.015em; }
.amount { display: flex; align-items: baseline; gap: 10px; }
.amount-n { font-family: var(--serif); font-size: 64px; line-height: 1; letter-spacing: -0.03em; }
.amount-soon { font-size: 44px; }
.amount small { color: var(--slate); font-size: 15px; }
.plan-note { color: var(--slate); font-size: 16px; margin-top: -6px; }
.plan .checks { flex: 1; margin-bottom: 8px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* --- FAQ ---------------------------------------------------------------- */
.faq { padding: var(--section) 0; background: var(--fog); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq-head { position: sticky; top: 140px; display: grid; gap: 20px; }
.faq-list details { border-top: 1px solid var(--hairline); }
.faq-list details:last-child { border-bottom: 1px solid var(--hairline); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: 19px; font-weight: 450; letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.pm { position: relative; width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--paper); box-shadow: 0 0 0 1px var(--hairline); transition: background-color .4s, transform .6s var(--ease-out); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); transition: transform .6s var(--ease-out), background-color .4s; }
.pm::after { transform: rotate(90deg); }
details[open] .pm { background: var(--ink); transform: rotate(180deg); }
details[open] .pm::before, details[open] .pm::after { background: #fff; }
details[open] .pm::after { transform: rotate(0deg); }
.faq-a { overflow: hidden; }
.faq-a p { color: var(--slate); padding: 0 56px 26px 0; max-width: 60ch; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .faq-list summary { font-size: 17px; }
  .faq-a p { padding-right: 0; }
}

/* --- Appel final -------------------------------------------------------- */
.final { padding: calc(var(--section) * 1.1) var(--gutter); overflow: clip; min-height: 86vh; display: grid; place-items: center; }
.final-copy { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 26px; max-width: 920px; }
.final-title { max-width: 12ch; }
.final .pill-row { justify-content: center; }
.final-arts { position: absolute; inset: 0; pointer-events: none; max-width: 1400px; margin: 0 auto; }
.fa { position: absolute; }
.mini { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 450; white-space: nowrap; }
.fa-1 { left: 6%; top: 18%; }
.fa-2 { right: 8%; top: 22%; }
.fa-3 { left: 10%; bottom: 18%; }
.fa-4 { right: 6%; bottom: 16%; }
@media (max-width: 900px) {
  .final { min-height: 0; }
  .fa-1 { top: 4%; left: 2%; } .fa-2 { top: 9%; right: 2%; }
  .fa-3 { bottom: 4%; left: 2%; } .fa-4 { bottom: 9%; right: 2%; }
  .mini { font-size: 13px; }
  .mini .ic-round { width: 26px; height: 26px; }
}
@media (max-width: 560px) { .fa-2, .fa-3 { display: none; } .fa-1 { top: 2%; } .fa-4 { bottom: 2%; } }
@media (max-width: 480px) { .final-copy { text-align: left; justify-items: start; } .final .pill-row { justify-content: flex-start; } .final .pill-row .pill { flex: 1 1 100%; } }


/* --- Téléphones en paysage (écran bas) ------------------------------------ */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding: 92px var(--gutter) 40px; }
  .hero-copy { gap: 16px; }
  .hero h1 { font-size: clamp(32px, 9vh, 46px); max-width: 20ch; }
  .hero-sub { font-size: 16px; }
  .hero-arts { height: 300px; max-width: 640px; margin-top: 32px; }
  .art-a, .art-d { display: none !important; }
  .art-b { top: 0; right: 6%; width: 230px; }
  .art-c { top: 130px; left: 6%; width: 290px; }
  .scroll-hint { display: none; }
  .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .story-stage { order: 2; top: 72px; background: none; padding: 0; }
  .story-steps { order: 1; }
  .stage { height: calc(100svh - 92px); min-height: 0; }
  .stage-meta { top: 12px; }
  .panel { inset: 40px 10px 10px; }
  .p-card { zoom: .72; }
  .step, .step:first-child, .step:last-child { min-height: calc(100svh - 72px); padding: 24px 0; justify-content: center; }
  .step h3 { font-size: 26px; }
  .fields { display: grid; }
  .final { min-height: 0; }
  .section-head { margin-bottom: var(--s40); }
}

/* --- Petits écrans : le contenu des fragments reste dans son cadre --------- */
@media (max-width: 860px) {
  .p-head { flex-wrap: wrap; row-gap: 6px; }
  .seg { white-space: nowrap; }
  .pdf b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pdf span:last-child { min-width: 0; }
  .ph { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .ai-chat .composer-bar { gap: 10px; }
}
@media (max-width: 400px) {
  .sheet { width: 82px; height: 118px; margin-left: -41px; padding: 9px 8px; }
  .sheet b { font-size: 10px; }
  .sheet small { font-size: 9.5px; }
  .sheet .code { height: 30px; }
  .sheet[data-fan="0"] { transform: translateX(-90px) rotate(-8deg); }
  .sheet[data-fan="1"] { transform: translateX(-30px) rotate(-2.5deg); }
  .sheet[data-fan="2"] { transform: translateX(30px) rotate(2.5deg); }
  .sheet[data-fan="3"] { transform: translateX(90px) rotate(8deg); }
  .sheets { height: 132px; }
  .tiles { gap: 6px; }
  .tile { padding: 8px 9px; }
  .tile b { font-size: 16px; white-space: nowrap; }
  .tile small { font-size: 11px; }
  .bubble { max-width: 92%; }
  .final-title { font-size: 40px; }
  .amount-n { font-size: 52px; }
  .plan { padding: 24px; }
  .faq-list summary { font-size: 16px; gap: 16px; }
}
/* Pas d'effet de survol collé sur les écrans tactiles */
@media (hover: none) {
  .ncard:hover { background: var(--mist); }
}
@media (pointer: coarse) {
  .faq-list summary { min-height: 64px; }
}
