/* ==========================================================================
   Landing page publique (login.php) — reprend l'identité visuelle de la
   plateforme net-educ (thème « Ardoise » : fond sombre, accent vert,
   composants glass-card, police Inter). Feuille de style dédiée, séparée du
   design-system.css de l'application connectée pour ne jamais interférer
   avec lui.
   ========================================================================== */

:root {
    --lp-primary: #0D6EFD;
    --lp-secondary: #3D8BFD;
    --lp-accent: #0B5ED7;
    --lp-bg: #14171F;
    --lp-glass-bg: #1B1F2A;
    --lp-glass-border: rgba(237, 237, 231, 0.08);
    --lp-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    --lp-shadow-lg: 0 10px 34px rgba(0, 0, 0, 0.45);
    --lp-text: #EDEDE7;
    --lp-text-secondary: #C7C9D1;
    --lp-text-muted: #9BA0AC;
    --lp-danger: #D9584B;
    --lp-success: #4CAF7D;
    --lp-sidebar-bg: #10131A;
    --lp-border: var(--lp-glass-border);
    --lp-radius: 8px;
    --lp-radius-sm: 6px;
    --lp-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --lp-header-h: 72px;
}

* { box-sizing: border-box; }

body.lp-body {
    margin: 0;
    font-family: var(--lp-font);
    color: var(--lp-text);
    background: var(--lp-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
img { max-width: 100%; display: block; }

.lp-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.lp-reveal.lp-visible { opacity: 1; transform: translateY(0); }

/* -------------------- Header -------------------- */
.lp-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--lp-header-h);
    background: rgba(16, 19, 26, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--lp-glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}
.lp-header-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lp-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; color: var(--lp-text); text-decoration: none; }
.lp-logo i { color: var(--lp-primary); font-size: 1.3rem; }

.lp-nav { display: flex; align-items: center; gap: 28px; }
.lp-nav a { text-decoration: none; color: var(--lp-text-secondary); font-weight: 600; font-size: 0.95rem; transition: color .15s; }
.lp-nav a:hover { color: var(--lp-primary); }

.lp-header-actions { display: flex; align-items: center; gap: 12px; }

.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: var(--lp-radius-sm); font-weight: 700; font-size: 0.95rem;
    text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.lp-btn:active { transform: scale(0.97); }
.lp-btn-primary { background: var(--lp-primary); color: #fff; }
.lp-btn-primary:hover { background: var(--lp-secondary); box-shadow: 0 8px 20px rgba(13,110,253,.35); }
.lp-btn-outline { background: transparent; color: var(--lp-text); border-color: var(--lp-glass-border); }
.lp-btn-outline:hover { background: color-mix(in srgb, var(--lp-primary) 14%, transparent); border-color: var(--lp-primary); }
.lp-btn-block { width: 100%; }
.lp-btn-lg { padding: 15px 32px; font-size: 1.05rem; }

.lp-burger { display: none; background: none; border: none; font-size: 1.5rem; color: var(--lp-text); cursor: pointer; }

/* -------------------- Écran de connexion (deux colonnes, façon net-educ) -------------------- */
.lp-split { padding-top: var(--lp-header-h); min-height: 100vh; display: flex; }
.lp-split-left {
    flex: 1;
    background: var(--lp-sidebar-bg);
    padding: 72px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.lp-split-left h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 800; margin: 0 0 20px; color: var(--lp-text); }
.lp-split-left h1 span { color: var(--lp-primary); }
.lp-split-left > p.lp-lead { font-size: 1.15rem; color: var(--lp-text-secondary); max-width: 480px; margin: 0 0 32px; }
.lp-split-left .lp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.lp-highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 480px; }
.lp-highlight { display: flex; align-items: flex-start; gap: 14px; }
.lp-icon-circle {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
    background: color-mix(in srgb, var(--lp-primary) 14%, transparent);
    color: var(--lp-primary);
}
.lp-highlight h3 { font-size: 0.98rem; font-weight: 800; margin: 0 0 4px; color: var(--lp-text); }
.lp-highlight p { font-size: 0.85rem; color: var(--lp-text-muted); margin: 0; }

.lp-split-right { flex: 1; background: var(--lp-bg); padding: 72px 56px; display: flex; flex-direction: column; justify-content: center; }
.lp-login-card { max-width: 420px; width: 100%; margin: 0 auto; }
.lp-login-card h2 { font-size: 1.5rem; margin: 0 0 6px; font-weight: 800; color: var(--lp-text); }
.lp-login-card .lp-login-sub { color: var(--lp-text-muted); font-size: 0.95rem; margin: 0 0 28px; }

.lp-field { margin-bottom: 18px; }
.lp-field label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 7px; color: var(--lp-text-secondary); }
.lp-field input[type="email"],
.lp-field input[type="text"],
.lp-field input[type="password"],
.lp-field input[type="tel"] {
    width: 100%; padding: 12px 14px;
    background: color-mix(in srgb, var(--lp-text) 5%, transparent);
    border: 1px solid var(--lp-glass-border);
    border-radius: var(--lp-radius-sm);
    color: var(--lp-text);
    font-size: 0.96rem; font-family: inherit;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.lp-field input::placeholder { color: var(--lp-text-muted); }
.lp-field input:focus {
    outline: none; border-color: var(--lp-primary); background: color-mix(in srgb, var(--lp-text) 8%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-primary) 25%, transparent);
}
.lp-password-wrap { position: relative; }
.lp-password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--lp-text-muted); cursor: pointer; font-size: 1rem; padding: 4px; }

.lp-row-between { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; font-size: 0.86rem; }
.lp-checkbox { display: flex; align-items: center; gap: 7px; color: var(--lp-text-secondary); }
.lp-link-muted { color: var(--lp-primary); text-decoration: none; font-weight: 600; }
.lp-link-muted:hover { text-decoration: underline; }

.lp-alert { padding: 12px 14px; border-radius: var(--lp-radius-sm); font-size: 0.9rem; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.lp-alert-danger { background: color-mix(in srgb, var(--lp-danger) 14%, transparent); color: #ff9c90; border: 1px solid color-mix(in srgb, var(--lp-danger) 35%, transparent); }
.lp-alert-info { background: color-mix(in srgb, var(--lp-primary) 14%, transparent); color: var(--lp-secondary); border: 1px solid color-mix(in srgb, var(--lp-primary) 35%, transparent); }

.lp-login-footer { text-align: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--lp-glass-border); font-size: 0.9rem; color: var(--lp-text-muted); }

/* Carte « glass » générique, réutilisée pour les pages légales/inscription */
.lp-glass-card { background: var(--lp-glass-bg); border: 1px solid var(--lp-glass-border); border-radius: var(--lp-radius); box-shadow: var(--lp-shadow); padding: 32px; }

/* -------------------- Bandeau de confiance -------------------- */
.lp-trust { padding: 48px 0; border-bottom: 1px solid var(--lp-glass-border); background: var(--lp-glass-bg); }
.lp-trust-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; margin-bottom: 32px; }
.lp-stat-num { font-size: 2.1rem; font-weight: 800; color: var(--lp-primary); }
.lp-stat-label { color: var(--lp-text-muted); font-size: 0.92rem; }
.lp-trust-partners { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; color: var(--lp-text-secondary); font-weight: 600; }
.lp-trust-partners i { color: var(--lp-primary); margin-right: 6px; }

/* -------------------- Section générique -------------------- */
.lp-section { padding: 84px 0; }
.lp-section-soft { background: var(--lp-glass-bg); }
.lp-section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.lp-section-eyebrow { color: var(--lp-primary); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.lp-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 12px; color: var(--lp-text); }
.lp-section-head p { color: var(--lp-text-muted); font-size: 1.05rem; margin: 0; }

/* -------------------- Fonctionnalités -------------------- */
.lp-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-feature-card { background: var(--lp-glass-bg); border: 1px solid var(--lp-glass-border); border-radius: var(--lp-radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
.lp-feature-card:hover { transform: translateY(-4px); box-shadow: var(--lp-shadow); }
.lp-feature-icon {
    width: 52px; height: 52px; border-radius: var(--lp-radius);
    background: color-mix(in srgb, var(--lp-primary) 14%, transparent);
    color: var(--lp-primary);
    display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 16px;
}
.lp-feature-card h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 8px; color: var(--lp-text); }
.lp-feature-card p { color: var(--lp-text-muted); font-size: 0.93rem; margin: 0; }

/* -------------------- Comment ça marche -------------------- */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.lp-step { text-align: center; }
.lp-step-num {
    width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
    background: var(--lp-primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.25rem;
}
.lp-step h3 { font-weight: 800; margin: 0 0 8px; color: var(--lp-text); }
.lp-step p { color: var(--lp-text-muted); font-size: 0.93rem; margin: 0; }

/* -------------------- Tarifs (façon net-educ : pricing-section / price-card) -------------------- */
.lp-billing-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 44px; }
.lp-switch { position: relative; width: 52px; height: 28px; background: var(--lp-glass-border); border-radius: 999px; border: none; cursor: pointer; transition: background .2s; }
.lp-switch.is-annual { background: var(--lp-primary); }
.lp-switch-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.lp-switch.is-annual .lp-switch-knob { left: 27px; }
.lp-billing-label { font-weight: 700; font-size: 0.95rem; color: var(--lp-text-muted); }
.lp-billing-label.is-active { color: var(--lp-text); }
.lp-save-badge { background: var(--lp-primary); color: #fff; font-size: 0.75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }

.lp-pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.lp-plan-card {
    background: var(--lp-glass-bg); border: 1px solid var(--lp-glass-border); border-radius: var(--lp-radius);
    padding: 28px 24px; display: flex; flex-direction: column; position: relative;
}
.lp-plan-card.is-populaire {
    border-color: var(--lp-primary);
    background: color-mix(in srgb, var(--lp-primary) 6%, var(--lp-glass-bg));
    box-shadow: var(--lp-shadow-lg);
    transform: scale(1.04);
}
.lp-plan-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--lp-primary); color: #fff; font-size: 0.75rem; font-weight: 800;
    padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.lp-plan-name { font-weight: 800; font-size: 1.15rem; margin: 6px 0 6px; color: var(--lp-text); }
.lp-plan-desc { color: var(--lp-text-muted); font-size: 0.85rem; min-height: 38px; margin: 0 0 16px; }
.lp-plan-price { font-size: 2rem; font-weight: 800; color: var(--lp-text); }
.lp-plan-price small { font-size: 0.95rem; font-weight: 600; color: var(--lp-text-muted); }
.lp-plan-cycle-note { font-size: 0.8rem; color: var(--lp-text-muted); margin-bottom: 20px; min-height: 18px; }
.lp-plan-limits { font-size: 0.82rem; color: var(--lp-text-secondary); margin-bottom: 18px; }
.lp-plan-limits i { color: var(--lp-primary); width: 16px; }
.lp-plan-features { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.lp-plan-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.88rem; padding: 7px 0; color: var(--lp-text-secondary); border-bottom: 1px dashed var(--lp-glass-border); }
.lp-plan-features li:last-child { border-bottom: none; }
.lp-plan-features .lp-feat-ok { color: var(--lp-primary); }
.lp-plan-features .lp-feat-ko { color: #4b5160; }
.lp-plan-features li.is-ko { color: var(--lp-text-muted); }

.lp-plans-empty { text-align: center; padding: 48px; color: var(--lp-text-muted); background: var(--lp-glass-bg); border: 1px dashed var(--lp-glass-border); border-radius: var(--lp-radius); }

/* -------------------- Ils nous font confiance (logos clients, dynamique) -------------------- */
.lp-clients-grid {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 28px; max-width: 920px; margin: 0 auto;
}
.lp-client-logo {
    display: flex; align-items: center; justify-content: center;
    height: 64px; padding: 0 20px;
}
.lp-client-logo img { max-height: 48px; max-width: 160px; object-fit: contain; filter: grayscale(100%) brightness(1.6); opacity: 0.75; transition: filter .2s, opacity .2s; }
.lp-client-logo img:hover { filter: none; opacity: 1; }
.lp-client-badge {
    display: inline-flex; align-items: center; padding: 10px 20px;
    background: var(--lp-glass-bg); border: 1px solid var(--lp-glass-border); border-radius: 999px;
    color: var(--lp-text-secondary); font-weight: 700; font-size: 0.95rem;
}

/* -------------------- FAQ -------------------- */
.lp-faq { max-width: 760px; margin: 0 auto; }
.lp-faq-item { border: 1px solid var(--lp-glass-border); border-radius: var(--lp-radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--lp-glass-bg); }
.lp-faq-question { width: 100%; text-align: left; background: transparent; border: none; padding: 18px 20px; font-weight: 700; font-size: 0.98rem; color: var(--lp-text); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.lp-faq-question i { transition: transform .2s; color: var(--lp-primary); }
.lp-faq-item.is-open .lp-faq-question i { transform: rotate(180deg); }
.lp-faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.lp-faq-answer-inner { padding: 0 20px 18px; color: var(--lp-text-muted); font-size: 0.92rem; }

/* -------------------- CTA final -------------------- */
.lp-cta { background: linear-gradient(135deg, var(--lp-sidebar-bg) 0%, var(--lp-bg) 100%); border: 1px solid var(--lp-glass-border); color: var(--lp-text); text-align: center; padding: 72px 0; border-radius: var(--lp-radius); margin: 0 20px; }
.lp-cta h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin: 0 0 14px; }
.lp-cta p { color: var(--lp-text-muted); margin: 0 0 28px; }

/* -------------------- Footer -------------------- */
.lp-footer { background: var(--lp-sidebar-bg); color: var(--lp-text-muted); padding: 56px 0 24px; margin-top: 40px; border-top: 1px solid var(--lp-glass-border); }
.lp-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.lp-footer-logo { color: var(--lp-text); font-weight: 800; font-size: 1.2rem; margin-bottom: 10px; display: block; }
.lp-footer-logo i { color: var(--lp-primary); }
.lp-footer-desc { font-size: 0.88rem; max-width: 280px; }
.lp-footer-col h4 { color: var(--lp-text); font-size: 0.9rem; margin: 0 0 14px; }
.lp-footer-col a { display: block; color: var(--lp-text-muted); text-decoration: none; font-size: 0.88rem; margin-bottom: 10px; }
.lp-footer-col a:hover { color: var(--lp-primary); }
.lp-footer-social { display: flex; gap: 12px; margin-top: 14px; }
.lp-footer-social a { width: 36px; height: 36px; border-radius: 50%; background: var(--lp-glass-bg); border: 1px solid var(--lp-glass-border); display: flex; align-items: center; justify-content: center; color: var(--lp-text); }
.lp-footer-bottom { border-top: 1px solid var(--lp-glass-border); padding-top: 20px; text-align: center; font-size: 0.82rem; }

/* -------------------- Responsive -------------------- */
@media (max-width: 1024px) {
    .lp-pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-features-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .lp-split { flex-direction: column; }
    .lp-split-left { display: none; }
    .lp-split-right { padding: 48px 24px; }
    .lp-nav { display: none; }
    .lp-burger { display: block; }
    .lp-header-actions .lp-btn-outline { display: none; }
}

@media (max-width: 768px) {
    .lp-trust-stats { grid-template-columns: 1fr; gap: 20px; }
    .lp-steps { grid-template-columns: 1fr; }
    .lp-plan-card.is-populaire { transform: none; }
}

@media (max-width: 600px) {
    .lp-features-grid { grid-template-columns: 1fr; }
    .lp-pricing-grid { grid-template-columns: 1fr; }
    .lp-footer-grid { grid-template-columns: 1fr; }
    .lp-section { padding: 56px 0; }
    .lp-highlight-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .lp-cta { margin: 0 10px; padding: 48px 20px; }
}

/* Mobile nav déroulant */
.lp-mobile-nav { display: none; position: fixed; top: var(--lp-header-h); left: 0; right: 0; background: var(--lp-glass-bg); border-bottom: 1px solid var(--lp-glass-border); box-shadow: var(--lp-shadow); z-index: 999; padding: 16px 20px; }
.lp-mobile-nav.is-open { display: block; }
.lp-mobile-nav a { display: block; padding: 12px 0; text-decoration: none; color: var(--lp-text); font-weight: 700; border-bottom: 1px solid var(--lp-glass-border); }
.lp-mobile-nav a:last-child { border-bottom: none; }

/* Accessibilité : focus visible clavier */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--lp-primary);
    outline-offset: 2px;
}
