/* Lémo — couche « moderne » : profondeur, mouvement, finitions (chargée après style.css) */

:root { --shadow-sm: 0 1px 2px rgba(16,48,42,.06), 0 4px 14px rgba(16,48,42,.06); --shadow-lg: 0 10px 40px rgba(16,48,42,.12); --ease: cubic-bezier(.2,.8,.2,1); }
::selection { background: var(--lemon); color: var(--ink); }

/* En-tête : verre dépoli et ombre au défilement */
.header { transition: box-shadow .25s var(--ease), background .25s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(16,48,42,.08); background: rgba(255,255,255,.82); }
.nav__links a:not(.btn) { position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--leaf); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav__links a:not(.btn):hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); }

/* Boutons : relief + reflet */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::before { transform: translateX(120%); }
.btn--dark { box-shadow: 0 6px 18px rgba(16,48,42,.25); }

/* HERO ------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; background: #FFF9DE; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .7; }
.hero::before { width: 520px; height: 520px; right: -120px; top: -140px; background: #FFE36B; }
.hero::after { width: 420px; height: 420px; left: -160px; bottom: -200px; background: #CDEBD6; }
.hero h1 { font-size: clamp(44px, 6.6vw, 80px); letter-spacing: -0.045em; }
.hero h1 .hl { position: relative; white-space: nowrap; color: var(--leaf); }
.hero h1 .hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .28em; background: var(--lemon); z-index: -1; border-radius: 6px; transform: rotate(-1.2deg); }
.hero__art::before { background: radial-gradient(circle at 40% 35%, #FFF3A8, #FFE36B 60%, #FFD95A); box-shadow: inset 0 -20px 60px rgba(242,174,0,.25); }
.hchip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; white-space: nowrap; animation: float 6s ease-in-out infinite; }
.hchip i { font-style: normal; width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #E3F3E9; color: var(--leaf); font-size: 14px; }
.hchip--1 { top: 8%; left: -2%; }
.hchip--2 { top: 46%; right: -4%; animation-delay: -2s; }
.hchip--3 { bottom: 6%; left: 6%; animation-delay: -4s; }
.hchip--3 i { background: var(--lemon); color: var(--ink); font-weight: 800; font-size: 11px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 860px) { .hchip--1 { left: 0; } .hchip--2 { right: 0; } }

/* Bandeau banques défilant */
.banks { background: #fff; border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; }
.banks p { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.banks__track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.banks__track span { font: 700 20px/1 var(--display); color: #9AAAA3; white-space: nowrap; letter-spacing: -0.01em; }
.banks:hover .banks__track { animation-play-state: paused; }
.banks__mask { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Simulateur : carte résultat plus profonde */
.sim__result { background: radial-gradient(120% 90% at 100% 0%, #1E5244 0%, var(--ink) 55%); box-shadow: var(--shadow-lg); }
.sim__result::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(255,208,47,.35), transparent 70%); }
.sim__form { box-shadow: inset 0 0 0 1px #E6ECE7; }
.sim__big { font-variant-numeric: tabular-nums; }

/* Section IA ------------------------------------------------------------- */
.ia-sec { background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.ia-sec::before { content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; left: -250px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(255,208,47,.18), transparent 65%); }
.ia-sec__grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.ia-sec__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ia-sec__copy .eyebrow { color: var(--lemon); }
.ia-sec__copy p { color: #D3DED9; font-size: 18px; line-height: 1.65; }
.ia-sec__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ia-sec__list li { display: flex; gap: 12px; color: #E4ECE8; }
.ia-sec__list li::before { content: "\2713"; color: var(--ink); background: var(--lemon); width: 24px; height: 24px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.ia-demo { flex: 1 1 440px; min-width: 0; position: relative; display: flex; gap: 18px; align-items: center; justify-content: center; }
.ia-doc { width: 230px; flex: none; background: #FFFDF5; border-radius: 16px; padding: 18px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; transform: rotate(-3deg); color: var(--ink); }
.ia-doc b { font: 700 13px var(--display); display: block; margin-bottom: 12px; }
.ia-doc i { display: block; height: 8px; border-radius: 4px; background: #E9E3CC; margin-bottom: 9px; }
.ia-doc i:nth-child(3n) { width: 70%; } .ia-doc i:nth-child(4n) { width: 85%; }
.ia-doc .row { display: flex; gap: 6px; } .ia-doc .row i { flex: 1; }
.ia-doc::after { content: ""; position: absolute; left: 0; right: 0; height: 46px; top: -50px; background: linear-gradient(180deg, transparent, rgba(255,208,47,.55), transparent); animation: scanline 2.6s ease-in-out infinite; }
@keyframes scanline { 0% { top: -50px; } 60%, 100% { top: 105%; } }
.ia-out { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 10px; }
.ia-out div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 10px 14px; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; opacity: 0; transform: translateX(-8px); }
.ia-out div span { color: #C9D6D0; }
.ia-out div b { color: #fff; }
.ia-out div.is-hl { background: var(--lemon); border-color: var(--lemon); }
.ia-out div.is-hl span, .ia-out div.is-hl b { color: var(--ink); }
.ia-sec.is-in .ia-out div { animation: factin .5s var(--ease) forwards; }
.ia-sec.is-in .ia-out div:nth-child(3) { animation-delay: .5s; } .ia-sec.is-in .ia-out div:nth-child(4) { animation-delay: 1s; }
.ia-sec.is-in .ia-out div:nth-child(5) { animation-delay: 1.5s; } .ia-sec.is-in .ia-out div:nth-child(6) { animation-delay: 2.1s; }
.ia-ex { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #9FB3AC; margin: 0 0 2px; }
@keyframes factin { to { opacity: 1; transform: none; } }
.ia-sec__fine { font-size: 13px !important; color: #9FB3AC !important; }

/* Cartes : relief au survol */
.step, .law, .why__item, .who, .p-card, .faq details, .t-modes span { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s, background .2s; }
.step { box-shadow: var(--shadow-sm); }
.step:hover, .law:hover, .p-three .p-card:hover, .p-two .p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.law { background: #fff; border-width: 1px; border-color: #DCE4DE; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.law::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--lemon), #9BD8A8); }
.why__item { border: 1px solid rgba(255,255,255,.06); }
.why__item:hover { background: #1E4A3F; transform: translateY(-3px); }
.faq details { box-shadow: var(--shadow-sm); border-color: transparent; }
.faq details[open] { border-color: var(--leaf); }
.cta { background: linear-gradient(120deg, #FFD02F 0%, #FFE36B 60%, #FFF0A3 100%); box-shadow: var(--shadow-lg); }

/* Frise des délais : points */
.timeline li::before { height: 8px; }
.timeline li { position: relative; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hchip, .banks__track, .ia-doc::after { animation: none !important; }
  .ia-out div { opacity: 1; transform: none; }
}

/* ===== Parcours dynamique (4 étapes) ===== */
.flow { position: relative; display: flex; flex-direction: column; gap: 22px; padding-left: 76px; }
.flow__rail { position: absolute; left: 27px; top: 30px; bottom: 30px; width: 4px; border-radius: 4px; background: #DDE6E1; overflow: hidden; }
.flow__fill { position: absolute; inset: 0; background: linear-gradient(var(--lemon), #F2B705); transform-origin: top; transform: scaleY(0); transition: transform .15s linear; }
.fstep { position: relative; }
.fstep__dot { position: absolute; left: -76px; top: 28px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 800 24px/1 var(--display); background: #fff; color: var(--muted); border: 3px solid #DDE6E1; transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease), box-shadow .35s; z-index: 1; }
.fstep.is-active .fstep__dot { background: var(--lemon); color: var(--ink); border-color: var(--lemon); transform: scale(1.06); box-shadow: 0 0 0 8px rgba(255,208,47,.22); }
.fstep__card { background: #fff; border-radius: var(--radius); padding: 34px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 34px; align-items: center; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.fstep__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fstep--star .fstep__card { background: linear-gradient(135deg, #fff 55%, var(--lemon-soft)); outline: 2px solid var(--lemon); outline-offset: -2px; }
.fstep__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fstep__body h3 { font-size: clamp(24px, 2.6vw, 32px); }
.fstep__body h3 em { font-style: normal; background: linear-gradient(transparent 60%, rgba(255,208,47,.6) 60%); }
.fstep__body > p { line-height: 1.6; color: var(--text); margin: 0; }
.fstep__top { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--ink); }
.tag--time { background: var(--ink); color: #fff; }
.tag--ia { background: var(--lemon); }
.spark { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 0 rgba(31,122,77,.6); animation: spark 1.6s infinite; }
@keyframes spark { 70% { box-shadow: 0 0 0 8px rgba(31,122,77,0); } 100% { box-shadow: 0 0 0 0 rgba(31,122,77,0); } }
.duo { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.duo li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 15px; line-height: 1.5; color: var(--ink); }
.duo b { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.duo--lemo b { color: var(--leaf); }

/* Visuels */
.fviz { position: relative; border-radius: 22px; background: var(--mist); padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.fviz__cap { margin: 0; font-size: 12px; color: var(--muted); text-align: right; }
.fviz--sim .fviz__bars { display: flex; align-items: flex-end; justify-content: center; gap: 34px; height: 150px; }
.fviz__bars span { position: relative; width: 70px; height: var(--h); border-radius: 14px 14px 6px 6px; background: #C9D4CF; transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); }
.fviz__bars span + span { background: var(--lemon); transition-delay: .25s; }
.fviz__bars i { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 12px/1 var(--body); font-style: normal; color: var(--muted); }
.fstep.is-in .fviz__bars span { transform: scaleY(1); }
.fviz__badge { align-self: center; margin-top: 18px; font-size: 14px; background: #fff; padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.fviz--read { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 16px; background: var(--ink); }
.fviz--read .fviz__cap { grid-column: 1 / -1; color: #9DB3AB; }
.doc { position: relative; background: #fff; border-radius: 10px; padding: 10px; height: 140px; overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.doc__head { font-size: 8px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 4px; margin-bottom: 8px; word-break: break-all; }
.doc__head span { width: 10px; height: 12px; border-radius: 2px; background: #E5484D; flex: none; }
.doc__lines i { display: block; height: 5px; border-radius: 3px; background: #E3E9E6; margin: 0 0 7px; }
.doc__lines i:nth-child(odd) { width: 80%; } .doc__lines i:nth-child(3n) { width: 60%; }
.doc__scan { position: absolute; left: 0; right: 0; height: 28px; top: -30px; background: linear-gradient(transparent, rgba(255,208,47,.55)); border-bottom: 2px solid var(--lemon); }
.fstep.is-in .doc__scan { animation: scan 2.2s var(--ease) infinite; }
@keyframes scan { 0% { top: -30px; } 80%, 100% { top: 140px; } }
.reads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.reads li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; background: rgba(255,255,255,.07); border-radius: 8px; padding: 7px 10px; color: #CFE0D9; opacity: 0; transform: translateX(12px); }
.reads b { color: #fff; white-space: nowrap; }
.reads li::after { content: "✓"; color: var(--lemon); font-weight: 800; margin-left: 6px; }
.reads li span { flex: 1; }
.fstep.is-in .reads li { animation: factin .5s var(--ease) forwards; }
.fstep.is-in .reads li:nth-child(2) { animation-delay: .45s; } .fstep.is-in .reads li:nth-child(3) { animation-delay: .9s; }
.fstep.is-in .reads li:nth-child(4) { animation-delay: 1.35s; } .fstep.is-in .reads li:nth-child(5) { animation-delay: 1.8s; }
.fviz--offers { gap: 10px; }
.offer { position: relative; display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 14px; padding: 14px 16px; font-size: 15px; border: 2px solid transparent; opacity: 0; transform: translateY(10px); }
.offer b { font: 800 20px/1 var(--display); }
.offer--best { border-color: var(--leaf); box-shadow: 0 8px 20px rgba(31,122,77,.15); }
.offer--best b { color: var(--leaf); }
.offer em { position: absolute; top: -10px; right: 14px; font-style: normal; font-size: 11px; font-weight: 700; background: var(--leaf); color: #fff; padding: 3px 8px; border-radius: 999px; }
.fstep.is-in .offer { animation: factin .5s var(--ease) forwards; }
.fstep.is-in .offer:nth-child(2) { animation-delay: .35s; } .fstep.is-in .offer:nth-child(3) { animation-delay: .7s; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 18px; }
.tl::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 3px; background: #DDE6E1; border-radius: 3px; }
.tl li { position: relative; padding-left: 34px; display: flex; flex-direction: column; gap: 2px; }
.tl li::before { content: ""; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 3px solid #C9D4CF; transition: background .4s, border-color .4s; }
.tl b { font: 800 17px/1.2 var(--display); color: var(--ink); }
.tl span { font-size: 14px; color: var(--muted); }
.fstep.is-in .tl li::before { background: var(--lemon); border-color: var(--lemon); }
.fstep.is-in .tl li:nth-child(2)::before { transition-delay: .5s; } .fstep.is-in .tl li:nth-child(3)::before { transition-delay: 1s; background: var(--leaf); border-color: var(--leaf); }
.flow__cta { display: flex; justify-content: center; margin-top: 34px; }
@media (max-width: 900px) {
  .fstep__card { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 22px; }
  .flow { padding-left: 50px; }
  .flow__rail { left: 17px; }
  .fstep__dot { left: -50px; width: 40px; height: 40px; font-size: 18px; top: 22px; }
}
@media (max-width: 480px) { .fviz--read { grid-template-columns: minmax(0, 1fr); } .doc { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .fviz__bars span, .reads li, .offer { transform: none; opacity: 1; animation: none; }
  .fstep .doc__scan { display: none; }
}
@media (max-width: 600px) {
  .reads li { flex-wrap: wrap; }
  .reads b { white-space: normal; }
  .duo li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
