/* ───────────────────────────────────────────
   Ombrika — site vitrine (accueil, tarifs, pages légales)
   S'appuie sur les variables et composants de app.css
   ─────────────────────────────────────────── */
body.site { background: var(--bg); }
.site-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.site-narrow { max-width: 760px; }
.text-dim { color: #6b6b6b; }

/* Navigation */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .72); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--border); }
.site-nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.site-brand img { border-radius: 8px; }
.site-links { display: flex; gap: 22px; }
.site-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s; }
.site-links a:hover, .site-links a.is-active { color: var(--text); }
.site-cta { margin-left: auto; display: flex; gap: 8px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14px; border-radius: 10px; }

/* Héros */
.landing-hero { position: relative; overflow: hidden; padding: 96px 0 72px; border-bottom: 1px solid var(--border); }
.landing-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000, transparent 75%);
    opacity: .6;
}
.landing-hero::after { content: ''; position: absolute; width: 640px; height: 640px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .09), transparent 65%); pointer-events: none; }
.landing-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.landing-chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); font-size: 12.5px; color: var(--text-2); }
.landing-hero h1 { margin: 22px 0 18px; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 800; }
.landing-lead { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 560px; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 14px; }

/* Maquette produit */
.mock-window { border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset; overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-strong); }
.mock-bar em { margin-left: 10px; font: 12px var(--mono); color: var(--muted); font-style: normal; }
.mock-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.mock-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.mock-tile.is-erased { border-color: var(--white); }
.mock-tile b { font: 500 11px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-tile small { font-size: 10.5px; color: var(--faint); }
.mock-tile i { display: block; aspect-ratio: 1; border-radius: 6px; background-color: #1a1a1a;
    background-image: linear-gradient(45deg, #262626 25%, transparent 25%), linear-gradient(-45deg, #262626 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #262626 75%), linear-gradient(-45deg, transparent 75%, #262626 75%);
    background-size: 12px 12px; background-position: 0 0, 0 6px, 6px -6px, -6px 0; }
.mock-texture { background: linear-gradient(135deg, #3a3a3a, #1c1c1c 60%, #2a2a2a) !important; }
.mock-texture.is-alt { background: radial-gradient(circle at 50% 50%, #555 0 18%, #222 19% 38%, #444 39% 41%, #1a1a1a 42%) !important; }
.mock-logo { position: relative; }
.mock-logo::before { content: ''; position: absolute; inset: 28%; border: 3px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.mock-logo.is-wing::before { inset: 38% 14%; border-radius: 50% 50% 8px 8px; }
.mock-logo.is-text::before { inset: 42% 16%; border-radius: 3px; }
.mock-tile.is-erased::after { content: 'Effacé'; position: absolute; top: 34%; left: 50%; transform: translateX(-50%); padding: 3px 9px; border-radius: 999px; background: var(--white); color: #000; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.mock-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.mock-foot strong { padding: 4px 10px; border-radius: 6px; background: var(--white); color: #000; font-size: 11.5px; }

/* Sections */
.landing-section { padding: 88px 0; border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.section-head h1, .section-head h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.035em; line-height: 1.1; }
.section-head p { font-size: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.feature { display: flex; flex-direction: column; gap: 10px; padding: 28px 26px; background: var(--bg); transition: background .2s; }
.feature:hover { background: var(--surface); }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--surface-2); }
.feature h3 { font-size: 16px; }
.feature p { font-size: 14px; line-height: 1.6; }

.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: how; }
.how li { counter-increment: how; display: flex; flex-direction: column; gap: 8px; padding: 26px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.how li::before { content: counter(how, decimal-leading-zero); font: 600 13px var(--mono); color: var(--muted); }
.how strong { font-size: 18px; letter-spacing: -0.02em; }
.how span { color: var(--muted); font-size: 14px; line-height: 1.6; }

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 4px; font-size: 15.5px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; font-size: 14.5px; line-height: 1.65; }

.landing-cta { padding: 96px 0; }
.landing-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.landing-cta-inner img { border-radius: 14px; margin-bottom: 6px; }
.landing-cta h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.035em; }
.landing-cta .btn { margin-top: 10px; }

.pricing-page .alert { max-width: 760px; margin: 0 auto 28px; }

/* Pages légales */
.legal h1 { margin: 26px 0 6px; font-size: 32px; letter-spacing: -0.03em; }
.legal h2 { margin: 30px 0 8px; font-size: 18px; }
.legal p { color: var(--text-2); line-height: 1.7; }
.legal .tabs { margin: 0 auto; }

/* Pied de page */
.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--border); }
.site-footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.site-footer-brand p { line-height: 1.6; }
.site-footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.site-footer-cols div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer-cols strong { font-size: 13px; margin-bottom: 2px; }
.site-footer-cols a { color: var(--muted); }
.site-footer-cols a:hover { color: var(--text); }
.site-footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); }

@media (max-width: 960px) {
    .landing-hero { padding: 64px 0 48px; }
    .landing-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .mock-window { transform: none; }
    .feature-grid, .how { grid-template-columns: 1fr; }
    .site-links { display: none; }
    .landing-section { padding: 64px 0; }
}
@media (max-width: 560px) {
    .site-wrap { padding: 0 16px; }
    .site-cta .btn:not(.btn-primary) { display: none; }
    .mock-body { grid-template-columns: repeat(2, 1fr); }
}

/* ───────────────────────────────────────────
   Animations du site vitrine
   ─────────────────────────────────────────── */
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

html { scroll-behavior: smooth; }
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* Apparition au défilement (classe posée par app.js) */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* Navigation qui se densifie au défilement */
.site-nav { transition: background .4s var(--ease-out), border-color .4s, box-shadow .4s; }
.site-nav-inner { transition: height .4s var(--ease-out); }
.site-nav.is-scrolled { background: rgba(0, 0, 0, .86); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .9); }
.site-nav.is-scrolled .site-nav-inner { height: 56px; }
.site-links a { position: relative; }
.site-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--white); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.site-links a:hover::after, .site-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.site-brand img { transition: transform .8s var(--ease-out); }
.site-brand:hover img { transform: rotate(-20deg) scale(1.06); }

/* Héros : entrée en cascade, halo et grille vivants */
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.landing-hero-text > * { animation: rise 1s var(--ease-out) both; }
.landing-hero-text > *:nth-child(1) { animation-delay: .05s; }
.landing-hero-text > *:nth-child(2) { animation-delay: .15s; }
.landing-hero-text > *:nth-child(3) { animation-delay: .25s; }
.landing-hero-text > *:nth-child(4) { animation-delay: .35s; }
.landing-hero-text > *:nth-child(5) { animation-delay: .45s; }
.landing-visual { animation: rise 1.2s var(--ease-out) .3s both; }
@keyframes glow-drift { 0%, 100% { transform: translate(0, 0) scale(1); opacity: .9; } 50% { transform: translate(-60px, 40px) scale(1.12); opacity: 1; } }
.landing-hero::after { animation: glow-drift 14s ease-in-out infinite; }
@keyframes grid-pan { from { background-position: 0 0, 0 0; } to { background-position: 56px 56px, 56px 56px; } }
.landing-hero::before { animation: grid-pan 18s linear infinite; }
.text-dim { background: linear-gradient(90deg, #5a5a5a, #9a9a9a, #5a5a5a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: text-sheen 6s ease-in-out infinite; }
@keyframes text-sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.landing-chip .icon { animation: pulse-icon 2.4s ease-in-out infinite; }
@keyframes pulse-icon { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.18); opacity: .7; } }

/* Maquette produit : flottement, balayage et logos effacés un par un */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float-tilt {
    0%, 100% { transform: perspective(1400px) rotateY(-6deg) rotateX(3deg) translateY(0); }
    50% { transform: perspective(1400px) rotateY(-3deg) rotateX(2deg) translateY(-10px); }
}
.mock-window { animation: float-tilt 7s ease-in-out infinite; }
.mock-body { position: relative; }
.mock-body::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 60px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .07), transparent); border-bottom: 1px solid rgba(255, 255, 255, .35); animation: scan 4.5s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes scan { 0% { transform: translateY(-60px); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(330px); opacity: 0; } }
.mock-tile { transition: border-color .6s, transform .5s var(--ease-out); }
.mock-tile:hover { transform: translateY(-3px); }
.mock-tile.is-erased { animation: tile-erase 4.5s ease-in-out infinite; }
.mock-tile.is-erased::after { animation: badge-pop 4.5s var(--ease-out) infinite; }
.mock-tile.is-erased .mock-logo::before { animation: logo-fade 4.5s ease-in-out infinite; }
.mock-tile.is-erased:nth-child(2), .mock-tile.is-erased:nth-child(2)::after, .mock-tile.is-erased:nth-child(2) .mock-logo::before { animation-delay: .25s; }
.mock-tile.is-erased:nth-child(4), .mock-tile.is-erased:nth-child(4)::after, .mock-tile.is-erased:nth-child(4) .mock-logo::before { animation-delay: 1.1s; }
@keyframes tile-erase { 0%, 25% { border-color: var(--border); } 35%, 90% { border-color: var(--white); } 100% { border-color: var(--border); } }
@keyframes badge-pop { 0%, 28% { opacity: 0; transform: translateX(-50%) scale(.6); } 36% { opacity: 1; transform: translateX(-50%) scale(1.08); } 42%, 88% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) scale(.9); } }
@keyframes logo-fade { 0%, 28% { opacity: 1; } 40%, 90% { opacity: 0; } 100% { opacity: 1; } }
.mock-foot strong { animation: ready 4.5s ease-in-out infinite; }
@keyframes ready { 0%, 40% { opacity: .35; } 55%, 92% { opacity: 1; } 100% { opacity: .35; } }

/* Boutons : légère élévation et reflet */
.btn { transition: background .2s, border-color .2s, color .2s, transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(0, 0, 0, .14), transparent); transform: skewX(-20deg); transition: left .7s var(--ease-out); }
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .35); }
.btn .icon { transition: transform .35s var(--ease-out); }
.btn:hover .icon:last-child { transform: translateX(3px); }

/* Halo qui suit la souris (variables --mx / --my posées par app.js) */
.feature, .price-card, .how li { --mx: 50%; --my: 50%; }
.feature { position: relative; }
.feature::before, .how li::before { pointer-events: none; }
.feature::after, .price-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .07), transparent 45%); }
.feature:hover::after, .price-card:hover::after { opacity: 1; }
.feature-icon { transition: transform .5s var(--ease-out), border-color .3s, background .3s; }
.feature:hover .feature-icon { transform: translateY(-3px) rotate(-6deg); border-color: #555; background: var(--surface-3); }

/* Étapes et FAQ */
.how li { position: relative; transition: transform .5s var(--ease-out), border-color .3s; }
.how li:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--white); }
.faq details[open] p { animation: faq-open .45s var(--ease-out); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Tarifs : élévation au survol, bordure lumineuse tournante sur la formule recommandée */
.price-card { transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), border-color .3s; }
.price-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .95); border-color: var(--border-strong); }
.price-card.is-featured { border-color: transparent; background:
    linear-gradient(180deg, #141414, var(--surface) 55%) padding-box,
    conic-gradient(from var(--angle), #2a2a2a, #ffffff 12%, #2a2a2a 28%, #2a2a2a 62%, #9a9a9a 75%, #2a2a2a 88%) border-box;
    animation: border-spin 6s linear infinite; }
@keyframes border-spin { to { --angle: 360deg; } }
.price-flag { display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 8px 24px -8px rgba(255, 255, 255, .45); animation: flag-in .9s var(--ease-out) .4s both; }
@keyframes flag-in { from { opacity: 0; transform: translateY(6px) scale(.9); } to { opacity: 1; transform: none; } }
.price-amount strong { transition: letter-spacing .5s var(--ease-out); }
.price-card:hover .price-amount strong { letter-spacing: -0.02em; }
.price-features li { transition: transform .35s var(--ease-out); }
.price-card:hover .price-features li { transform: translateX(2px); }

/* Appel final : logo en lévitation */
.landing-cta-inner img { animation: float 6s ease-in-out infinite; box-shadow: 0 20px 50px -20px rgba(255, 255, 255, .25); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; filter: none; }
}