/* ===========================================================
   kwenta.app — identité Flow (décision 2026-05-05)
   bleu ciel #38BDF8 / #0EA5E9 · corail #F97316 · encre #0F172A
   Mobile d'abord. Aucune dépendance hors Google Fonts.
   =========================================================== */

:root {
    --sky: #38BDF8;
    --blue: #0EA5E9;
    --blue-text: #0369A1;      /* bleu lisible en texte sur blanc (AA 5.6:1) */
    --orange: #F97316;
    --orange-soft: #FED7AA;
    --ink: #0F172A;
    --ink-2: #1E293B;
    --text: #0F172A;
    --muted: #475569;           /* AA 7.5:1 sur blanc */
    --muted-dark: #CBD5E1;      /* sur encre */
    --line: #E2E8F0;
    --paper: #FFFFFF;
    --snow: #F8FAFC;
    --sky-50: #F0F9FF;
    --sky-100: #E0F2FE;
    --radius: 20px;
    --radius-sm: 12px;
    --container: 1120px;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --shadow: 0 10px 40px rgba(15, 23, 42, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--blue-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px;
    text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* --- Boutons ------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px; border-radius: 999px;
    font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: 0 6px 18px rgba(249, 115, 22, .28); }
.btn-primary:hover { background: #FB923C; color: var(--ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-dark { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost-dark:hover { background: #fff; color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; box-shadow: none; }

/* --- En-tête ------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1; }
.nav-links { display: none; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); }
.lang-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; min-height: 30px; padding: 0 8px; border-radius: 999px;
    font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: var(--muted);
}
.lang-btn.active { background: var(--ink); color: #fff; }
.lang-btn:hover:not(.active) { color: var(--ink); }
.nav .btn-primary { display: none; }

/* --- Hero --------------------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    padding: 48px 0 40px;
    background:
        radial-gradient(60% 50% at 100% 0%, rgba(56, 189, 248, .18), transparent 70%),
        radial-gradient(40% 40% at 0% 100%, rgba(249, 115, 22, .10), transparent 70%),
        var(--paper);
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
.eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--blue-text); margin-bottom: 16px;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
.accent {
    background: linear-gradient(90deg, #0369A1, #0EA5E9);
    -webkit-background-clip: text; background-clip: text; color: #0369A1; -webkit-text-fill-color: transparent;
}
.lead { font-size: 1.1rem; color: var(--muted); margin-top: 18px; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.hero-note::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; margin-right: 8px; vertical-align: 1px; }

.hero-art-wrap { margin: 0 -8px; }
.hero-art { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 40px rgba(15, 23, 42, .10)); }
.hero-art text { font-family: var(--font); font-size: 13px; font-weight: 500; fill: var(--ink); }
.hero-art .art-title { font-weight: 700; font-size: 14px; }
.hero-art .art-muted { fill: #64748B; font-size: 12px; }
.hero-art .art-small { font-size: 12px; font-weight: 500; }
.hero-art .art-on-dark { fill: #FFFFFF; }
.hero-art .art-on-dark-muted { fill: #CBD5E1; }

/* Animation sobre : les barres glissent, la bulle apparaît, le point voyage. */
.bar { transform-origin: left center; animation: bar-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.bar-2 { animation-delay: .15s; } .bar-3 { animation-delay: .3s; } .bar-4 { animation-delay: .45s; }
.bar-5 { animation-delay: 1.9s; } .bar-6 { animation-delay: .6s; } .bar-7 { animation-delay: .75s; }
.bubble { transform-box: fill-box; transform-origin: 16px 100%; animation: pop .5s cubic-bezier(.2, .8, .2, 1) 1.4s both; }
.art-row-new { animation: fade .5s ease 3.4s both; }
.fed-dot {
    offset-path: path('M352 176 C 386 176 338 252 372 252');
    offset-distance: 0%;
    animation: travel 1.6s ease-in-out 2s both;
}
@keyframes bar-in { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes travel { from { offset-distance: 0%; opacity: 1; } 90% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }
@supports not (offset-path: path('M0 0')) { .fed-dot { display: none; } }

/* --- Sections ----------------------------------------------- */
.section { padding: 64px 0; }
.section-soft { background: var(--snow); }
.section-dark { background: var(--ink); color: #fff; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; max-width: 40rem; }
.section-lead { color: var(--muted); margin-top: 14px; max-width: 40rem; font-size: 1.05rem; }
.section-foot { color: var(--muted); margin-top: 28px; font-weight: 500; }
.section-dark .section-title { color: #fff; }

.grid-3, .grid-2 { display: grid; gap: 16px; margin-top: 36px; }

.icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 14px; background: var(--sky-50); color: var(--blue-text);
    flex: none;
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 36px; height: 36px; border-radius: 10px; }
.icon-sm svg { width: 20px; height: 20px; }
.icon-dark { background: rgba(56, 189, 248, .14); color: var(--sky); }

.card-feature {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.card-feature h3 { font-size: 1.2rem; letter-spacing: -.01em; }
.card-feature p { color: var(--muted); }
.card-feature .fine { font-size: .82rem; color: #64748B; margin-top: auto; }

/* --- Modules ------------------------------------------------- */
.modules { margin-top: 36px; display: grid; gap: 12px; }
.module {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 18px 20px;
}
.module p { color: var(--muted); font-size: .95rem; margin-top: 10px; }
.module h3 { font-size: 1.05rem; flex: 1; }
.module-head { display: flex; align-items: center; gap: 12px; }
.module-base { border-color: var(--sky); background: var(--sky-50); }
.module-base .module-head { justify-content: space-between; }
.module-tag { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-text); }
.module-row { display: grid; gap: 12px; }
.module-cross { border-style: dashed; }
.switch {
    width: 38px; height: 22px; border-radius: 999px; background: #CBD5E1; position: relative; flex: none;
}
.switch::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
    transition: transform .2s ease;
}
.switch.on { background: var(--blue); }
.switch.on::after { transform: translateX(16px); }
.badge {
    font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: #9A3412; background: var(--orange-soft); padding: 4px 9px; border-radius: 999px; flex: none;
}

/* --- Por qué ------------------------------------------------- */
.why-item { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--ink-2); }
.why-item h3 { font-size: 1.15rem; color: #fff; }
.why-item p { color: var(--muted-dark); font-size: .98rem; }

/* --- Prueba -------------------------------------------------- */
.proof { display: grid; gap: 28px; align-items: center; }
.proof-art svg { width: 100%; max-width: 420px; display: block; border-radius: var(--radius); }
.checks { margin-top: 22px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: var(--muted); font-size: 1.02rem; }
.checks li::before {
    content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* --- CTA ----------------------------------------------------- */
.section-cta { padding-top: 0; }
.cta-box {
    background: linear-gradient(135deg, #0369A1, #0EA5E9 70%, #38BDF8);
    color: #fff; border-radius: 28px; padding: 44px 24px; text-align: center;
    box-shadow: var(--shadow);
}
.cta-box h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -.02em; font-weight: 800; }
.cta-box p { margin: 14px auto 0; max-width: 36rem; color: #F0F9FF; font-size: 1.05rem; }
.cta-box .hero-actions { justify-content: center; }
.cta-box .btn-primary { box-shadow: 0 6px 18px rgba(15, 23, 42, .18); }

/* --- Pied ---------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand-footer .brand-name { font-size: 1.1rem; }
.footer-links { display: flex; gap: 20px; font-size: .92rem; }
.footer-links a { color: var(--muted); }
.copyright { color: #64748B; font-size: .88rem; }

/* --- Tablette et plus ---------------------------------------- */
@media (min-width: 640px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .module-row { grid-template-columns: repeat(3, 1fr); }
    .module-row-2 { grid-template-columns: 1fr 1fr; }
    .cta-box { padding: 60px 40px; }
    .nav .btn-primary { display: inline-flex; }
}
@media (min-width: 900px) {
    .nav-links { display: flex; }
    .hero { padding: 72px 0 64px; }
    .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
    .hero-art-wrap { margin: 0; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .grid-2 { gap: 20px; }
    .section { padding: 88px 0; }
    .proof { grid-template-columns: 1fr 1.2fr; gap: 56px; }
    .why-item { padding: 28px; }
}

/* --- Mouvement réduit ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bar, .bubble, .art-row-new, .fed-dot, .btn, .switch::after { animation: none !important; transition: none !important; }
    .fed-dot { offset-distance: 100%; opacity: 0; }
}
