:root {
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --cta: #c2410c;
    --cta-hover: #9a3412;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #fffbeb;
    --error: #dc2626;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
}

[hidden] { display: none !important; }

.lead-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lead-card {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    padding: 32px 24px;
}

.lead-card h1 { font-size: 1.6rem; margin: 0 0 8px; text-align: center; }
.lead-subtitle { color: var(--muted); text-align: center; margin: 0 0 24px; }

/* Progression */
.progress { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }

.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 1.5rem;
    margin: 12px 0 24px;
    font-size: .9rem;
    color: var(--muted);
}
.step-nav span { margin-left: auto; }
.link-back { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.link-back:hover { color: var(--text); }

/* Étapes */
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step-title { display: block; font-size: 1.25rem; font-weight: 600; margin: 0 0 16px; }

/* Choix en cartes */
.choices { display: grid; gap: 12px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span {
    display: block;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-weight: 500;
    transition: border-color .15s, background .15s;
}
.choice:hover span { border-color: var(--accent); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-light); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Champs texte */
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.lead-form input[type=text],
.lead-form input[type=tel],
.lead-form input[type=email] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem; /* 16px minimum : évite le zoom auto sur iPhone */
}
.lead-form input:focus { outline: none; border-color: var(--accent); }

.field-checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-size: .9rem; }
.field-checkbox input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }

/* Erreurs Symfony */
.lead-form ul { list-style: none; padding: 0; margin: 8px 0; color: var(--error); font-size: .9rem; }

/* Bouton */
.btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 16px;
    border: 0;
    border-radius: 12px;
    background: var(--cta);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
}
.btn:hover { background: var(--cta-hover); }

.reassurance { text-align: center; color: var(--muted); font-size: .85rem; margin: 16px 0 0; }

/* Remerciement */
.thanks { text-align: center; }
.thanks-icon { font-size: 3rem; margin-bottom: 8px; }

@media (max-width: 480px) {
    .field-grid { grid-template-columns: 1fr; gap: 0; }
    .lead-card { padding: 24px 16px; }
}

/* Honeypot : hors écran (pas display:none, que certains bots détectent) */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Admin */
.admin { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-header h1 { margin: 0; }
.admin-header small { color: var(--muted); font-weight: 400; }
.btn-inline { display: inline-block; width: auto; margin: 0; padding: 10px 18px; text-decoration: none; font-size: .95rem; }

.table-wrap { overflow-x: auto; background: #fff; border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, .06); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table th { background: #f9fafb; font-weight: 600; }
.admin-table a { color: var(--cta); }

.pagination { display: flex; justify-content: center; gap: 16px; margin-top: 16px; }
.pagination a { color: var(--cta); }

/* Pages légales */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 16px 48px;
    line-height: 1.6;
}
.legal-page h1 { margin-top: 16px; }
.legal-page h2 { font-size: 1.2rem; margin-top: 32px; }
.legal-page a { color: var(--cta); }
.legal-back { text-decoration: none; font-size: .9rem; }

.reassurance a { color: var(--muted); }

/* Pied de page */
.site-footer {
    text-align: center;
    padding: 16px;
    font-size: .85rem;
    color: var(--muted);
}
.site-footer a { color: var(--muted); }

/* ===== Landing page ===== */
html { scroll-behavior: smooth; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Barre du haut */
.topbar { background: #fff; border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.logo { font-weight: 700; font-size: 1.1rem; }
.topbar-badge { font-size: .85rem; color: var(--muted); }

/* Hero */
.hero { padding: 48px 0; background: linear-gradient(180deg, var(--bg) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-text h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; margin: 0 0 16px; }
.hero-subtitle { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; font-weight: 500; }
.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--cta);
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title { margin: 0 0 16px; font-size: 1.3rem; text-align: center; }
#etude { scroll-margin-top: 16px; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg); }
.section-title { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 40px; }

.steps-grid,
.cards-grid,
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-grid li { text-align: center; }
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cta);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}
.steps-grid h3, .feature h3 { font-size: 1.1rem; margin: 16px 0 8px; }
.steps-grid p, .feature p { color: var(--muted); margin: 0; line-height: 1.5; }

.feature { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 4px 16px rgba(0, 0, 0, .05); }
.feature h3 { margin-top: 0; }

.trust-item { text-align: center; padding: 24px; border: 2px solid var(--border); border-radius: 16px; }
.trust-item strong { display: block; font-size: 1.6rem; color: var(--cta); margin-bottom: 4px; }
.trust-item span { color: var(--muted); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 12px; padding: 16px 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--cta); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }

/* CTA final */
.final-cta { padding: 64px 16px; text-align: center; background: var(--text); color: #fff; }
.final-cta h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2rem); }
.final-cta p { color: #d1d5db; margin: 0 0 24px; }

/* Bouton flottant (mobile uniquement) */
.sticky-cta { display: none; }

@media (max-width: 900px) {
    .hero { padding: 32px 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero .lead-card { margin: 0 auto; }
    .topbar-badge { display: none; }
    .section { padding: 48px 0; }

    .sticky-cta {
        display: block;
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: 16px;
        z-index: 10;
        padding: 16px;
        border-radius: 12px;
        background: var(--cta);
        color: #fff;
        text-align: center;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    }

    /* Évite que le bouton flottant cache le pied de page */
    .site-footer { padding-bottom: 96px; }
}

/* Qualification */
.filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filters a {
    padding: 8px 16px;
    border-radius: 999px;
    border: 2px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-size: .9rem;
    background: #fff;
}
.filters a.active { border-color: var(--cta); color: var(--cta); font-weight: 600; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; cursor: default; }
.badge-qualifie { background: #dcfce7; color: #166534; }
.badge-a_verifier { background: #fef3c7; color: #92400e; }

.thanks-hint {
    margin: 24px 0 0;
    padding: 16px;
    border-radius: 12px;
    background: var(--accent-light);
    text-align: left;
    line-height: 1.5;
}
