/* ==========================================================
   SoftPépite — feuille de style commune
   1. Base + page d'accueil
   2. Pages légales (body.legal) : surcharges spécifiques
   ========================================================== */

/* ---------- 1. Base + accueil ---------- */
:root {
    color-scheme: light;
    --ink: #20251f;
    --muted: #626a60;
    --paper: #f7f5ef;
    --white: #fffefa;
    --green: #275c43;
    --green-dark: #1b4532;
    --lime: #d9ee88;
    --line: rgba(32, 37, 31, .13);
    --serif: Georgia, "Times New Roman", serif;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.topbar { padding: 22px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 20px; font-weight: 760; letter-spacing: -.7px; }
.brand-mark { display: block; width: 42px; height: 42px; flex: 0 0 42px; }
.brand-mark img { display: block; width: 100%; height: 100%; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--green); }
.nav-links .nav-cta { padding: 11px 17px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 650; }

.hero { position: relative; overflow: hidden; padding: clamp(68px, 11vw, 128px) 0 92px; }
.hero::before { position: absolute; z-index: 0; top: 20px; right: -120px; width: 520px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(217,238,136,.43), rgba(217,238,136,0) 68%); content: ""; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 54px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 23px; color: var(--green); font-size: 12px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { width: 22px; height: 1px; background: currentColor; content: ""; }
h1 { max-width: 720px; margin: 0; font-family: var(--serif); font-size: clamp(48px, 7vw, 82px); font-weight: 500; line-height: .99; letter-spacing: -.055em; }
h1 em { color: var(--green); font-weight: 500; }
.hero-copy { max-width: 535px; margin: 25px 0 0; color: var(--muted); font-size: clamp(16px, 1.8vw, 19px); line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; min-height: 49px; align-items: center; justify-content: center; gap: 10px; padding: 0 19px; border: 1px solid transparent; border-radius: 999px; background: var(--green); color: white; font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); background: var(--green-dark); }
.button.secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--white); }
.arrow { font-size: 18px; line-height: 1; }

.visual { position: relative; min-height: 380px; display: grid; place-items: center; }
.visual-halo { position: absolute; width: min(100%, 370px); aspect-ratio: 1; border: 1px solid rgba(39,92,67,.13); border-radius: 50%; }
.visual-halo::before, .visual-halo::after { position: absolute; inset: 24px; border: 1px solid rgba(39,92,67,.1); border-radius: 50%; content: ""; }
.visual-halo::after { inset: 52px; }
.app-card { position: absolute; display: flex; align-items: center; gap: 12px; min-width: 190px; padding: 14px 17px; border: 1px solid rgba(32,37,31,.08); border-radius: 17px; background: var(--white); box-shadow: 0 16px 45px rgba(34,48,37,.09); }
.app-card.one { top: 18%; left: 3%; transform: rotate(-5deg); }
.app-card.two { top: 36%; right: 0; transform: rotate(4deg); }
.app-card.three { bottom: 17%; left: 11%; transform: rotate(3deg); }
.app-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 13px; background: #eaf1d4; color: var(--green); font-size: 20px; }
.app-card:nth-of-type(3) .app-icon { background: #f7e8d8; color: #9a6033; }
.app-card:nth-of-type(4) .app-icon { background: #e7e5f6; color: #5d559a; }
.app-card strong { display: block; font-size: 13px; }
.app-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.spark { position: absolute; display: grid; width: 43px; height: 43px; place-items: center; border-radius: 50%; background: var(--lime); color: var(--green); font-size: 20px; }
.spark.a { top: 17%; right: 20%; }
.spark.b { bottom: 16%; right: 20%; width: 30px; height: 30px; background: #e8dfd0; font-size: 15px; }

.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker-inner { display: flex; min-height: 75px; align-items: center; justify-content: space-between; gap: 20px; }
.ticker p { margin: 0; color: var(--muted); font-size: 13px; }
.ticker strong { color: var(--green); font-family: var(--serif); font-size: 20px; font-weight: 500; }

.section { padding: 104px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 37px; }
.section-heading h2 { max-width: 600px; margin: 0; font-family: var(--serif); font-size: clamp(36px, 5vw, 58px); font-weight: 500; line-height: 1.04; letter-spacing: -.045em; }
.section-heading p { max-width: 365px; margin: 0 0 3px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { min-height: 250px; padding: 27px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,254,250,.63); }
.card-number { display: inline-grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #e9eddc; color: var(--green); font-size: 12px; font-weight: 750; }
.card h3 { margin: 39px 0 11px; font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: -.025em; }
.card p { max-width: 300px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.manifesto { padding: 57px clamp(24px, 7vw, 78px); border-radius: 26px; background: var(--green); color: white; }
.manifesto .eyebrow { color: var(--lime); }
.manifesto-row { display: flex; align-items: end; justify-content: space-between; gap: 42px; }
.manifesto h2 { max-width: 660px; margin: 0; font-family: var(--serif); font-size: clamp(35px, 5vw, 56px); font-weight: 500; line-height: 1.08; letter-spacing: -.04em; }
.manifesto p { max-width: 330px; margin: 0; color: rgba(255,255,255,.76); font-size: 15px; line-height: 1.75; }
.contact-section { padding: 100px 0 90px; text-align: center; }
.contact-section .eyebrow { justify-content: center; }
.contact-section h2 { max-width: 720px; margin: 0 auto; font-family: var(--serif); font-size: clamp(40px, 6vw, 68px); font-weight: 500; line-height: 1.02; letter-spacing: -.05em; }
.contact-section > p { max-width: 475px; margin: 20px auto 26px; color: var(--muted); line-height: 1.7; }
.contact-section .button { background: var(--ink); }
footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.footer-inner a { text-decoration: none; }

@media (max-width: 800px) {
    .hero-inner { grid-template-columns: 1fr; gap: 16px; }
    .visual { min-height: 325px; }
    .section { padding: 78px 0; }
    .section-heading, .manifesto-row { align-items: start; flex-direction: column; gap: 18px; }
    .cards { grid-template-columns: 1fr; }
    .card { min-height: 205px; }
    .card h3 { margin-top: 28px; }
}
@media (max-width: 560px) {
    .wrap { width: min(100% - 36px, 1160px); }
    .topbar { padding: 16px 0; }
    .nav-links { gap: 13px; }
    .nav-links a:first-child { display: none; }
    .nav-links .nav-cta { padding: 9px 12px; font-size: 12px; }
    .brand { font-size: 18px; }
    .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
    .hero { padding-top: 67px; }
    h1 { font-size: clamp(46px, 14vw, 66px); }
    .visual { min-height: 285px; transform: scale(.92); }
    .app-card { min-width: 172px; padding: 11px 13px; }
    .ticker-inner { align-items: start; flex-direction: column; justify-content: center; gap: 7px; padding: 17px 0; }
    .manifesto { padding: 34px 24px; }
    .contact-section { padding: 78px 0; }
    .footer-inner { align-items: start; flex-direction: column; justify-content: center; gap: 7px; padding: 17px 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- 2. Pages légales (<body class="legal">) ---------- */
.legal .narrow { width: min(820px, calc(100% - 48px)); }

.legal .lang-switch { display: flex; gap: 8px; margin-bottom: 28px; }
.legal .lang-switch a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.legal .lang-switch a:hover { background: var(--white); color: var(--green); }
.legal .lang-switch a[aria-current="true"] { border-color: var(--green); background: var(--green); color: #fff; }

.legal .hero { padding: clamp(48px, 8vw, 88px) 0 40px; }
.legal .hero::before { top: -40px; right: -140px; width: 460px; }
.legal .hero .wrap { position: relative; z-index: 1; }
.legal .eyebrow { margin-bottom: 20px; }
.legal h1 { max-width: none; font-size: clamp(38px, 6vw, 62px); line-height: 1.02; letter-spacing: -.05em; }
.legal .intro { max-width: 620px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.legal .updated { display: inline-block; margin-top: 20px; padding: 7px 14px; border-radius: 999px; background: #e9eddc; color: var(--green); font-size: 12px; font-weight: 700; }

.legal .content { padding: 20px 0 80px; }
.legal .card { min-height: 0; margin-bottom: 16px; padding: 27px 29px; }
.legal .card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.legal .card-number { flex: 0 0 36px; }
.legal .card h2 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -.025em; }
.legal .card p { max-width: none; margin: 0 0 12px; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.legal .card p:last-child { margin-bottom: 0; }
.legal .button { background: var(--ink); }
.legal .button:hover { background: var(--green-dark); }
.legal footer .footer-inner a { color: var(--muted); }

@media (max-width: 560px) {
    .legal .narrow { width: calc(100% - 36px); }
    .legal .card { padding: 22px 20px; }
}
