/* static/css/landing.css
   ════════════════════════════════════════════════════════════
   Vitrine publique (v2.0.1) — landing, CGU, mentions légales.

   Autonome : ne s'appuie QUE sur les variables de theme.css
   (couleurs des deux thèmes + police Inter). N'affecte pas
   l'application (préfixe .lp- sur toutes les classes). Mobile-first :
   le style de base vise le petit écran, les media queries élargissent.
   ════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.lp-body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.lp-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ── BOUTONS ──────────────────────────────────────────────── */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color .18s ease, border-color .18s ease,
                transform .18s ease, color .18s ease;
    min-height: 44px;            /* zone tactile */
    white-space: nowrap;
}
.lp-btn-lg    { padding: 14px 26px; font-size: 15px; }
.lp-btn-block { width: 100%; }

.lp-btn-primary { background: var(--accent); color: #fff; }
.lp-btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.lp-btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.lp-btn-outline:hover { background: var(--hover); }

.lp-btn-ghost { background: transparent; color: var(--text); padding: 8px 14px; }
.lp-btn-ghost:hover { background: var(--hover); }

.lp-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ── EN-TÊTE ──────────────────────────────────────────────── */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.lp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -.02em;
}
.lp-brand-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #2ea043, #1f6feb);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
}
.lp-header-actions { display: flex; align-items: center; gap: 10px; }
.lp-lang-form { margin: 0; }
.lp-lang-select {
    background: var(--bg-subtle);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    min-height: 40px;
}

/* ── HERO ─────────────────────────────────────────────────── */
.lp-hero {
    padding: 56px 0 40px;
    background:
        radial-gradient(1200px 400px at 80% -10%,
            color-mix(in srgb, var(--accent) 12%, transparent), transparent);
}
.lp-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: center;
}
.lp-hero-title {
    font-size: clamp(1.9rem, 7vw, 3.2rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 16px;
}
.lp-hero-subtitle {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 28px;
}
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Maquette dashboard — pur CSS, pas d'image */
.lp-hero-visual { display: flex; justify-content: center; }
.lp-mockup {
    width: 100%;
    max-width: 460px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.lp-mockup-bar {
    display: flex; gap: 6px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}
.lp-mockup-bar span {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--border);
}
.lp-mockup-body { padding: 18px; }
.lp-mockup-kpis { display: flex; gap: 10px; margin-bottom: 16px; }
.lp-mockup-kpi {
    flex: 1;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    display: flex; flex-direction: column; gap: 4px;
}
.lp-mockup-kpi b { font-size: 15px; color: var(--text); }
.lp-mockup-kpi i { font-size: 11px; color: var(--text-muted); font-style: normal; }
.lp-mockup-chart {
    display: flex; align-items: flex-end; gap: 8px;
    height: 120px;
    padding-top: 10px;
}
.lp-mockup-chart span {
    flex: 1;
    background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent));
    border-radius: 5px 5px 0 0;
    min-height: 8px;
}

/* ── SECTIONS GÉNÉRIQUES ──────────────────────────────────── */
.lp-section { padding: 56px 0; }
.lp-section-alt { background: var(--bg-subtle); }
.lp-section-title {
    font-size: clamp(1.5rem, 5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.02em;
    text-align: center;
    margin-bottom: 10px;
}
.lp-section-lead {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto 36px;
}

/* ── GRILLES ──────────────────────────────────────────────── */
.lp-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

/* ── CARTES FONCTIONNALITÉS ───────────────────────────────── */
.lp-card, .lp-persona {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.lp-card:hover, .lp-persona:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.lp-card-icon {
    font-size: 26px;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--success-bg);
    margin-bottom: 14px;
}
.lp-card h3, .lp-persona h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.lp-card p,  .lp-persona p  { color: var(--text-muted); font-size: .95rem; }
.lp-persona { text-align: center; }
.lp-persona .lp-card-icon { margin: 0 auto 14px; }

/* ── ARGUMENTS « POURQUOI » ───────────────────────────────── */
.lp-args {
    list-style: none;
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}
.lp-args li { display: flex; gap: 14px; align-items: flex-start; }
.lp-arg-check { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.lp-args b { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.lp-args span { color: var(--text-muted); font-size: .95rem; }

/* ── TARIFS ───────────────────────────────────────────────── */
.lp-plan {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.lp-plan-featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}
.lp-plan-badge {
    position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--accent); color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: .05em;
}
.lp-plan h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.lp-plan-price { color: var(--text-muted); font-size: .95rem; margin-bottom: 18px; }
.lp-plan-feats {
    list-style: none;
    display: grid; gap: 10px;
    margin-bottom: 24px;
    flex: 1;
}
.lp-plan-feats li {
    font-size: .92rem;
    padding-left: 24px;
    position: relative;
    color: var(--text);
}
.lp-plan-feats li::before {
    content: '✓';
    position: absolute; left: 0;
    color: var(--accent-text);
    font-weight: 700;
}

/* ── CONTACT ──────────────────────────────────────────────── */
.lp-contact-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
.lp-contact .lp-section-title,
.lp-contact .lp-section-lead { text-align: left; margin-left: 0; }
.lp-contact-list {
    list-style: none;
    display: grid; gap: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}
.lp-contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.lp-contact-list span:first-child { font-size: 18px; flex-shrink: 0; }
.lp-contact-list a { color: var(--accent-text); text-decoration: none; word-break: break-word; }
.lp-contact-list a:hover { text-decoration: underline; }

/* ── PAGES LÉGALES ────────────────────────────────────────── */
.lp-legal-inner { max-width: 760px; }
.lp-legal .lp-section-title { text-align: left; }
.lp-legal-maj { color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; }
.lp-legal h2 { font-size: 1.15rem; font-weight: 700; margin: 26px 0 8px; }
.lp-legal p  { color: var(--text-muted); margin-bottom: 10px; }
.lp-legal a  { color: var(--accent-text); }
.lp-legal-note {
    margin-top: 28px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    font-size: .88rem;
    font-style: italic;
}

/* ── PIED DE PAGE ─────────────────────────────────────────── */
.lp-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-subtle);
    padding: 36px 0;
}
.lp-footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.lp-footer-copy { color: var(--text-muted); font-size: .88rem; margin-top: 10px; }
.lp-footer-links { display: flex; flex-direction: column; gap: 10px; }
.lp-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .92rem;
}
.lp-footer-links a:hover { color: var(--text); text-decoration: underline; }
.lp-social { display: flex; gap: 10px; }
.lp-social a {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}
.lp-social a:hover { border-color: var(--accent); color: var(--accent-text); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — élargissements progressifs (mobile-first).
   ════════════════════════════════════════════════════════════ */

/* ≥ 600px : grilles 2 colonnes */
@media (min-width: 600px) {
    .lp-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .lp-footer-links { flex-direction: row; flex-wrap: wrap; gap: 18px; }
}

/* ≥ 768px : tablette — hero et contact sur 2 colonnes, footer réparti */
@media (min-width: 768px) {
    .lp-hero { padding: 80px 0 64px; }
    .lp-hero-inner { grid-template-columns: 1.1fr .9fr; gap: 48px; }
    .lp-section { padding: 72px 0; }
    .lp-contact-inner { grid-template-columns: 1.2fr .8fr; }
    .lp-footer-inner {
        grid-template-columns: 1.4fr 1fr auto;
        align-items: start;
    }
}

/* ≥ 960px : desktop — grilles 3 colonnes */
@media (min-width: 960px) {
    .lp-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .lp-btn, .lp-card, .lp-persona { transition: none; }
    .lp-btn-primary:hover, .lp-card:hover, .lp-persona:hover { transform: none; }
}
