/* ============================================
   STYLES — pages outils gratuits
   ============================================ */

.tool-hero {
    padding: 4rem 0 2rem;
    background: var(--white);
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: var(--text-muted);
}

.tool-hero h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tool-subtitle {
    font-size: 1.1rem;
    color: var(--text-body);
    max-width: 720px;
    line-height: 1.6;
}

/* Calculateur form */
.tool-calculator {
    padding: 2rem 0 4rem;
    background: var(--light-bg);
}

.calc-form {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.calc-form h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.2s var(--motion-easing),
                box-shadow 0.2s var(--motion-easing);
}

.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(39, 87, 135, 0.15);
}

.form-group small {
    display: block;
    margin-top: 0.4rem;
    color: var(--text-muted);
    font-size: 0.825rem;
    line-height: 1.5;
}

.label-optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85rem;
}

.calc-submit {
    width: 100%;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    padding: 0.95rem 1.5rem;
}

/* Résultat */
.calc-result {
    max-width: 640px;
    margin: 2rem auto 0;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--accent-gold);
    text-align: center;
}

.calc-result h2 {
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.result-zone {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.result-zone:empty {
    display: none;
}

.result-range {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.result-low,
.result-high {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.result-separator {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.result-unit {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.result-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.result-label {
    font-size: 0.825rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.result-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.result-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: left;
    background: var(--light-bg);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-gold);
}

.result-note + .result-note {
    margin-top: 0.75rem;
}

.result-note-energy {
    background: #ecfdf5;
    border-left-color: #059669;
    color: #064e3b;
}

.result-note-energy i {
    color: #059669;
    margin-right: 0.4rem;
}

.result-note-energy strong {
    color: #064e3b;
}

/* CTA Expert Copro Gestion */
.tool-cta {
    padding: 4rem 0;
    background: var(--white);
}

.cta-card {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-card h2 {
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    opacity: 0.92;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* CTA secondaire : outil à venir (Coming Soon) */
.cta-card-soon {
    max-width: 800px;
    margin: 1.5rem auto 0;
    padding: 2rem;
    background: var(--white);
    border: 1px dashed var(--accent-gold);
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
}

.soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-gold-light);
    color: var(--accent-gold-hover);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.cta-card-soon h3 {
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.cta-card-soon p {
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.btn-soon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--accent-gold-hover);
    border: 2px solid var(--accent-gold);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s var(--motion-easing),
                color 0.2s var(--motion-easing);
}

.btn-soon:hover,
.btn-soon:focus-visible {
    background: var(--accent-gold);
    color: var(--dark);
    outline: none;
}

/* FAQ */
.tool-faq {
    padding: 4rem 0;
    background: var(--light-bg);
}

.tool-faq h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.faq-block {
    max-width: 800px;
    margin: 0 auto 1rem;
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.faq-block summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    list-style: none;
    position: relative;
    padding-right: 2rem;
}

.faq-block summary::-webkit-details-marker {
    display: none;
}

.faq-block summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.2s var(--motion-easing);
}

.faq-block[open] summary::after {
    content: "−";
}

.faq-block p {
    margin: 1rem 0 0;
    color: var(--text-body);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 640px) {
    .tool-hero h1 {
        font-size: 1.85rem;
    }
    .calc-form,
    .calc-result {
        padding: 1.5rem;
    }
    .result-low,
    .result-high {
        font-size: 1.85rem;
    }
    .result-breakdown {
        grid-template-columns: 1fr;
    }
    .cta-card {
        padding: 2rem 1.25rem;
    }
}

/* ===== Opt-in newsletter (funnel social) ===== */
.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;
}
.newsletter-optin {
    margin-top: 1.75rem;
    padding: 1.5rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.newsletter-title {
    color: #F1F5F9;
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 1.2rem;
    margin: 0 0 0.35rem;
}
.newsletter-sub {
    color: #94A3B8;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.1rem;
}
.newsletter-form .form-group { margin-bottom: 0.9rem; }
.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 9px;
    border: 1px solid #334155;
    background: #0b1220;
    color: #F1F5F9;
    font-size: 1rem;
}
.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
.newsletter-consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: #CBD5E1;
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 1rem;
    cursor: pointer;
}
.newsletter-consent input { margin-top: 0.2rem; flex-shrink: 0; }
.newsletter-consent a { color: #FBBF24; }
.newsletter-feedback {
    margin: 0.9rem 0 0;
    font-size: 0.92rem;
    font-weight: 600;
}
.newsletter-feedback.is-success { color: #34D399; }
.newsletter-feedback.is-error { color: #F87171; }
