/* =========================================================
   app.css : styles globaux (sans le header)
   ========================================================= */

:root {
    --paper: #FAF7F2;
    --paper-2: #F1ECE2;
    --ink: #1B1720;
    --ink-soft: #5B5566;
    --line: rgba(27, 23, 32, 0.12);

    --violet: #6C5CE7;
    --violet-soft: #EDEBFD;
    --coral: #FF5B4E;
    --coral-soft: #FFEAE7;
    --amber: #FFA53E;
    --amber-soft: #FFF1DE;
    --teal: #0FA793;
    --teal-soft: #E1F5F1;
    --pink: #FF4D97;
    --pink-soft: #FFE6F1;
    --blue: #3E7BFA;
    --blue-soft: #E8EFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

h1,
h2,
h3,
.serif {
    font-family: 'Fraunces', serif;
    letter-spacing: -0.015em;
    font-weight: 480;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 640px) {
    .wrap {
        padding: 0 22px;
    }
}

/* ---------- Boutons (partagés : header, hero, CTA) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 100px;
    font-size: 0.94rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(27, 23, 32, 0.22);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--ink);
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 88px 0 60px;
    overflow: hidden;
}

.aurora {
    position: absolute;
    inset: -160px 0 auto 0;
    height: 760px;
    width: 100%;
    max-width: 100vw;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(38% 46% at 20% 24%, rgba(108, 92, 231, 0.34), transparent 70%),
        radial-gradient(34% 40% at 78% 12%, rgba(255, 91, 78, 0.30), transparent 70%),
        radial-gradient(30% 38% at 62% 46%, rgba(255, 165, 62, 0.30), transparent 70%),
        radial-gradient(30% 36% at 12% 55%, rgba(15, 167, 147, 0.26), transparent 70%);
    filter: blur(10px);
    animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(2%, 3%) scale(1.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    .aurora {
        animation: none;
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--ink-soft);
    margin-bottom: 28px;
}

.kicker::before,
.kicker::after {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--line);
}

h1.headline {
    font-size: clamp(2.9rem, 7vw, 5.6rem);
    line-height: 0.98;
    font-weight: 600;
}

h1.headline .grad {
    background: linear-gradient(100deg, var(--violet), var(--coral) 45%, var(--amber) 75%, var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
    font-weight: 480;
}

.hero-sub {
    margin: 30px auto 0;
    max-width: 46ch;
    font-size: 1.15rem;
    color: var(--ink-soft);
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 22px;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.chip-row {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 64px;
}

.chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border-radius: 100px;
    background: var(--paper);
    border: 1px solid var(--line);
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: 0 2px 0 rgba(27, 23, 32, 0.03);
}

.chip i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: none;
}

/* ---------- Section shared ---------- */
section {
    padding: 96px 0;
}

@media (max-width: 640px) {
    section {
        padding: 60px 0;
    }
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 700px) {
    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

.eyebrow-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--ink-soft);
    font-weight: 500;
    margin-bottom: 14px;
}

.eyebrow-dot i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--coral);
}

.section-head h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 540;
}

.section-head p {
    color: var(--ink-soft);
    max-width: 36ch;
    font-size: 1rem;
}

/* ---------- Bento tests grid ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.card {
    border-radius: 22px;
    padding: 32px;
    border: 1px solid var(--line);
    background: var(--paper);
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(27, 23, 32, 0.10);
}

.card .tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 520;
    margin-bottom: 10px;
}

.card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    max-width: 42ch;
}

.card .meta {
    margin-top: 22px;
    font-size: 0.82rem;
    color: var(--ink-soft);
    display: flex;
    gap: 14px;
}

.c-span4 {
    grid-column: span 4;
}

.c-span2 {
    grid-column: span 2;
}

.c-span3 {
    grid-column: span 3;
}

@media (max-width: 900px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .c-span4,
    .c-span3,
    .c-span2 {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .bento {
        grid-template-columns: 1fr;
    }

    .c-span4,
    .c-span3,
    .c-span2 {
        grid-column: span 1;
    }
}

.card.violet {
    background: var(--violet-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card.violet .tag {
    background: var(--violet);
    color: #fff;
}

.card.coral .tag {
    background: var(--coral);
    color: #fff;
}

.card.amber .tag {
    background: var(--amber);
    color: #241300;
}

.card.teal .tag {
    background: var(--teal);
    color: #fff;
}

.card.pink .tag {
    background: var(--pink);
    color: #fff;
}

.card.blue .tag {
    background: var(--blue);
    color: #fff;
}

.card.violet .big-num {
    font-family: 'Fraunces', serif;
    font-size: 3.4rem;
    font-weight: 560;
    color: var(--violet);
    line-height: 1;
    margin-top: 24px;
}

/* ---------- Steps ---------- */
.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}

.step {
    padding: 34px 30px 34px 0;
    border-right: 1px solid var(--line);
}

.step:last-child {
    border-right: none;
}

@media (max-width: 800px) {
    .steps-row {
        grid-template-columns: 1fr;
    }

    .step {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 30px 0;
    }

    .step:last-child {
        border-bottom: none;
    }
}

.step-num {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.6rem;
    margin-bottom: 16px;
    background: linear-gradient(100deg, var(--violet), var(--coral));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 540;
    margin-bottom: 10px;
}

.step p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    max-width: 36ch;
}

/* ---------- Stats ---------- */
.stats-band {
    background: var(--ink);
    color: var(--paper);
    border-radius: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 60px 44px;
}

@media (max-width: 800px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 48px 26px;
    }
}

.stat b {
    display: block;
    font-family: 'Fraunces', serif;
    font-weight: 540;
    font-size: 2.6rem;
}

.stat:nth-child(1) b {
    color: var(--amber);
}

.stat:nth-child(2) b {
    color: var(--coral);
}

.stat:nth-child(3) b {
    color: var(--teal);
}

.stat:nth-child(4) b {
    color: var(--violet);
}

.stat span {
    color: rgba(250, 247, 242, 0.6);
    font-size: 0.9rem;
}

/* ---------- Testimonials ---------- */
.quote-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 800px) {
    .quote-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.quote-block p {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.4;
    font-weight: 440;
}

.quote-attr {
    margin-top: 26px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quote-attr .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    flex: none;
}

.mini-cards {
    display: grid;
    gap: 14px;
}

.mini-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--paper);
}

.mini-card .sw {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex: none;
}

.mini-card b {
    display: block;
    font-size: 0.92rem;
}

.mini-card span {
    color: var(--ink-soft);
    font-size: 0.82rem;
}

/* ---------- CTA ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--violet), var(--coral) 55%, var(--amber));
    border-radius: 28px;
    padding: 76px 56px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-band h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.5rem);
    max-width: 16ch;
    font-weight: 540;
}

.cta-band .btn-primary {
    background: #fff;
    color: var(--ink);
}

@media (max-width: 640px) {
    .cta-band {
        padding: 44px 28px;
    }
}

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid var(--line);
    padding: 50px 0 40px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links {
    display: flex;
    gap: 28px;
    font-size: 0.9rem;
    color: var(--ink-soft);
    flex-wrap: wrap;
}

.footer-bottom {
    margin-top: 34px;
    display: flex;
    justify-content: space-between;
    color: var(--ink-soft);
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 10px;
}