/* ===== Lov'Arbitre — Styles Landing Page ===== */
/* Tenant: lovable44 / lovable2026 */

:root {
    /* PALETTE (OBLIGATOIRE) */
    --black: #020101;
    --y-main: #F7D147;
    --y-bright: #FAE358;
    --y-soft: #F6DF93;
    --red: #C93925;
    --offwhite: #FCF9F0;

    /* illustration only */
    --skin: #D69958;
    --brown: #603E22;

    --maxw: 1120px;
    --r: 18px;
    --shadow: 0 14px 34px rgba(2, 1, 1, 0.18);
    --shadow2: 0 10px 24px rgba(2, 1, 1, 0.14);
    --line: rgba(2, 1, 1, 0.10);

    --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--black);
    background: linear-gradient(180deg, var(--y-soft) 0%, var(--offwhite) 18%, var(--offwhite) 100%);
    line-height: 1.45;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(var(--maxw), calc(100% - 40px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1.15rem;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.2px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
    user-select: none;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 3px solid var(--y-bright);
    outline-offset: 3px;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.btn:active {
    transform: translateY(0px);
    filter: brightness(0.98);
}

.btn-primary {
    background: var(--red);
    color: var(--offwhite);
    box-shadow: 0 12px 26px rgba(201, 57, 37, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}

.btn-secondary.inverse {
    color: var(--offwhite);
    border-color: var(--y-bright);
}

.btn-ghost {
    background: rgba(2, 1, 1, 0.08);
    color: var(--black);
    border-color: rgba(2, 1, 1, 0.08);
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--black);
    color: var(--offwhite);
    border-bottom: 1px solid rgba(252, 249, 240, 0.10);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(252, 249, 240, 0.06);
    padding: 4px;
}

.brand .title {
    font-weight: 950;
    letter-spacing: 0.2px;
    line-height: 1.1;
    font-size: 1.02rem;
}

.brand .tag {
    font-size: 0.78rem;
    color: rgba(252, 249, 240, 0.76);
    margin-top: 2px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    gap: 18px;
    align-items: center;
}

nav a {
    color: rgba(252, 249, 240, 0.86);
    font-weight: 750;
    font-size: 0.92rem;
    padding: 10px 10px;
    border-radius: 12px;
}

nav a:hover {
    color: var(--offwhite);
    background: rgba(252, 249, 240, 0.08);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(252, 249, 240, 0.10);
    color: var(--offwhite);
    border: 1px solid rgba(252, 249, 240, 0.16);
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    font-weight: 850;
    cursor: pointer;
}

.menu-btn:focus-visible {
    outline: 3px solid var(--y-bright);
    outline-offset: 3px;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    padding: 0 0 14px 0;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(252, 249, 240, 0.06);
    border: 1px solid rgba(252, 249, 240, 0.10);
    margin-top: 10px;
    color: var(--offwhite);
    font-weight: 800;
}

/* Sections */
section {
    padding: 56px 0;
    scroll-margin-top: 90px;
}

.section-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.82rem;
    letter-spacing: 0.2px;
    background: var(--y-bright);
    color: var(--black);
    border: 1px solid rgba(2, 1, 1, 0.12);
}

.h2 {
    font-size: clamp(1.45rem, 2.8vw, 2.15rem);
    font-weight: 1000;
    letter-spacing: -0.6px;
    margin: 0;
}

.lead {
    font-size: 1.05rem;
    color: rgba(2, 1, 1, 0.78);
    margin: 0;
    max-width: 64ch;
}

/* Hero */
.hero {
    padding: 26px 0 30px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 560px at 20% 10%, rgba(252, 249, 240, 0.80), transparent 55%),
        radial-gradient(900px 520px at 80% 20%, rgba(250, 227, 88, 0.62), transparent 55%),
        radial-gradient(900px 520px at 55% 90%, rgba(246, 223, 147, 0.70), transparent 55%),
        linear-gradient(135deg, var(--y-main) 0%, var(--y-bright) 100%);
    border-bottom: 1px solid rgba(2, 1, 1, 0.10);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -200px;
    background:
        repeating-conic-gradient(from 220deg, rgba(2, 1, 1, 0.06) 0 10deg, rgba(2, 1, 1, 0) 10deg 22deg);
    opacity: 0.35;
    transform: rotate(-6deg);
    pointer-events: none;
    mix-blend-mode: multiply;
}

.hero .wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.05rem, 4.8vw, 3.4rem);
    margin: 6px 0 10px;
    letter-spacing: -1.2px;
    font-weight: 1000;
}

.hero .subtitle {
    font-size: 1.05rem;
    margin: 0 0 16px;
    color: rgba(2, 1, 1, 0.86);
    max-width: 62ch;
}

.hero .signature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 950;
    padding: 0.6rem 0.9rem;
    border-radius: 16px;
    background: rgba(252, 249, 240, 0.72);
    border: 1px solid rgba(2, 1, 1, 0.12);
    width: fit-content;
    box-shadow: var(--shadow2);
}

.hero .signature small {
    font-weight: 800;
    color: rgba(2, 1, 1, 0.78);
}

.hero .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.hero .disclaimer {
    margin-top: 12px;
    color: rgba(2, 1, 1, 0.75);
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0 6px;
}

.hero-visual .logo-card {
    width: min(420px, 92vw);
    border-radius: 28px;
    background: rgba(252, 249, 240, 0.70);
    border: 1px solid rgba(2, 1, 1, 0.12);
    box-shadow: var(--shadow);
    padding: 18px;
}

.hero-visual img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    background: rgba(2, 1, 1, 0.04);
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
}

.card {
    background: var(--offwhite);
    border: 1px solid rgba(2, 1, 1, 0.10);
    border-radius: var(--r);
    padding: 16px;
    box-shadow: var(--shadow2);
}

.card .top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.pict {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    font-weight: 900;
    background: var(--y-bright);
    border: 1px solid rgba(2, 1, 1, 0.12);
}

.card h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 950;
    letter-spacing: -0.2px;
}

.card p {
    margin: 0;
    color: rgba(2, 1, 1, 0.78);
    font-weight: 650;
}

/* Black blocks */
.on-black {
    background: var(--black);
    color: var(--offwhite);
}

.on-black .lead {
    color: rgba(252, 249, 240, 0.80);
}

.on-black .badge {
    background: rgba(250, 227, 88, 0.18);
    border-color: rgba(250, 227, 88, 0.35);
    color: var(--offwhite);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
}

.step {
    border-radius: var(--r);
    border: 1px solid rgba(252, 249, 240, 0.12);
    background: rgba(252, 249, 240, 0.06);
    padding: 16px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.step .num {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(250, 227, 88, 0.45);
    background: rgba(250, 227, 88, 0.16);
    font-weight: 950;
}

.step h3 {
    margin: 0;
    font-weight: 950;
    letter-spacing: -0.2px;
    font-size: 1.05rem;
}

.step p {
    margin: 0;
    color: rgba(252, 249, 240, 0.82);
    font-weight: 650;
}

/* Accordion */
.accordion {
    margin-top: 18px;
    border-radius: var(--r);
    border: 1px solid rgba(250, 227, 88, 0.25);
    overflow: hidden;
    background: rgba(252, 249, 240, 0.06);
}

details {
    border-top: 1px solid rgba(252, 249, 240, 0.10);
}

details:first-child {
    border-top: none;
}

summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 14px;
    font-weight: 950;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

summary::-webkit-details-marker {
    display: none;
}

.chev {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(250, 227, 88, 0.35);
    background: rgba(250, 227, 88, 0.14);
    font-weight: 1000;
}

details[open] .chev {
    transform: rotate(45deg);
}

.acc-body {
    padding: 0 14px 14px 14px;
    color: rgba(252, 249, 240, 0.80);
    font-weight: 650;
}

.rule {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(2, 1, 1, 0.22);
    border: 1px solid rgba(252, 249, 240, 0.10);
    margin-top: 10px;
}

.rule b {
    display: block;
}

.chip {
    flex: 0 0 auto;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(201, 57, 37, 0.22);
    border: 1px solid rgba(201, 57, 37, 0.45);
    color: var(--offwhite);
    font-weight: 950;
    font-size: 0.78rem;
}

/* Stats scoreboard */
.scoreboards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
}

.score {
    background: var(--black);
    color: var(--offwhite);
    border-radius: var(--r);
    padding: 16px;
    border: 1px solid rgba(2, 1, 1, 0.22);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.score::before {
    content: "";
    position: absolute;
    inset: -140px;
    background: radial-gradient(circle at 25% 30%, rgba(250, 227, 88, 0.18), transparent 58%),
                radial-gradient(circle at 80% 70%, rgba(201, 57, 37, 0.14), transparent 58%);
    pointer-events: none;
}

.score .row {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.score .kpi {
    font-size: 2rem;
    font-weight: 1000;
    letter-spacing: -0.8px;
    line-height: 1;
}

.score .label {
    font-weight: 900;
    color: rgba(252, 249, 240, 0.86);
}

.mini {
    position: relative;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(252, 249, 240, 0.12);
    background: rgba(252, 249, 240, 0.06);
    overflow: hidden;
}

.bar {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, rgba(250, 227, 88, 0.95), rgba(201, 57, 37, 0.90));
    border-right: 1px solid rgba(252, 249, 240, 0.18);
}

.mini .ticks {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(252, 249, 240, 0.10) 0 1px, transparent 1px 18px);
    opacity: 0.7;
    pointer-events: none;
}

.signature-big {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: var(--r);
    background: rgba(252, 249, 240, 0.68);
    border: 1px solid rgba(2, 1, 1, 0.12);
    font-weight: 1000;
    letter-spacing: -0.3px;
    box-shadow: var(--shadow2);
}

/* Demo */
.demo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
    align-items: start;
}

.panel {
    background: var(--offwhite);
    border-radius: var(--r);
    border: 1px solid rgba(2, 1, 1, 0.10);
    box-shadow: var(--shadow2);
    padding: 16px;
}

.panel.black {
    background: var(--black);
    color: var(--offwhite);
    border-color: rgba(252, 249, 240, 0.12);
    box-shadow: var(--shadow);
}

label {
    display: block;
    font-weight: 950;
    margin-bottom: 8px;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(2, 1, 1, 0.18);
    background: #fff;
    font-family: var(--font);
    font-size: 1rem;
    resize: vertical;
}

textarea:focus-visible {
    outline: 3px solid var(--y-bright);
    outline-offset: 3px;
}

.demo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.result {
    display: grid;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    font-weight: 950;
    border: 1px solid rgba(252, 249, 240, 0.16);
    background: rgba(252, 249, 240, 0.06);
    width: fit-content;
}

.pill .dot {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    background: var(--y-bright);
    box-shadow: 0 0 0 4px rgba(250, 227, 88, 0.14);
}

.cards-mini {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.mini-card {
    border-radius: 14px;
    padding: 12px;
    border: 1px solid rgba(252, 249, 240, 0.12);
    background: rgba(252, 249, 240, 0.06);
}

.mini-card b {
    display: block;
    font-weight: 1000;
    margin-bottom: 2px;
}

.mini-card span {
    color: rgba(252, 249, 240, 0.82);
    font-weight: 650;
}

/* FAQ */
.faq {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.faq details {
    border-radius: var(--r);
    border: 1px solid rgba(2, 1, 1, 0.10);
    background: var(--offwhite);
    overflow: hidden;
    box-shadow: var(--shadow2);
}

.faq summary {
    padding: 14px 14px;
    font-weight: 1000;
    color: var(--black);
}

.faq .acc-body {
    color: rgba(2, 1, 1, 0.80);
}

/* Final CTA */
.final-cta {
    border-radius: 26px;
    padding: 22px 16px;
    border: 1px solid rgba(252, 249, 240, 0.12);
    background: linear-gradient(180deg, rgba(252, 249, 240, 0.08), rgba(252, 249, 240, 0.04));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    display: grid;
    gap: 12px;
}

.final-cta p {
    margin: 0;
    color: rgba(252, 249, 240, 0.82);
    font-weight: 650;
}

.final-cta .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Footer */
footer {
    padding: 26px 0 34px;
    background: var(--black);
    color: rgba(252, 249, 240, 0.86);
    border-top: 1px solid rgba(252, 249, 240, 0.10);
}

footer a {
    color: rgba(252, 249, 240, 0.92);
    font-weight: 800;
}

.footer-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
}

.small {
    font-size: 0.92rem;
    color: rgba(252, 249, 240, 0.72);
    font-weight: 650;
}

/* Desktop */
@media (min-width: 920px) {
    nav ul {
        display: flex;
    }
    .menu-btn {
        display: none;
    }
    .mobile-menu {
        display: none !important;
    }

    section {
        padding: 72px 0;
    }
    .hero {
        padding: 44px 0 56px;
    }
    .hero .wrap {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 26px;
    }
    .hero-visual {
        justify-content: flex-end;
    }
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
    .scoreboards {
        grid-template-columns: repeat(4, 1fr);
    }
    .demo {
        grid-template-columns: 1fr 1fr;
    }
    .cards-mini {
        grid-template-columns: 1fr 1fr;
    }
    .footer-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}
