/* =========================================
   K-DRE — PAGE FONCTIONNEMENT (STYLE BLEU & BLANC)
========================================= */

.how-page {
    background: #eef3f9;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* HERO */

.how-hero {
    padding: 60px 0 55px;
    background: #eef3f9;
    border-bottom: 1px solid #dce6f4;
}

.how-hero .eyebrow,
.how-section-head .eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #2864c8;
    background: #ffffff;
    border: 1px solid #d5e2f5;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.how-cta .eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.how-hero h1 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(36px, 4.1vw, 56px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1.3px;
    color: #111827;
    margin: 0 0 20px;
    max-width: 780px;
}

.how-hero h1 span {
    display: block;
    color: #0077ed;
}

.how-hero > .container > p {
    max-width: 660px;
    font-size: 14.5px;
    line-height: 1.8;
    color: #4b5563;
    margin: 0 0 28px;
}

.how-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-how-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #0077ed;
    color: #ffffff;
    text-decoration: none;
    padding: 15px 26px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 119, 237, 0.22);
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-how-primary:hover {
    background: #0062c4;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 119, 237, 0.3);
}

.btn-how-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #d1d9e6;
    color: #1f2937;
    text-decoration: none;
    padding: 15px 22px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.btn-how-secondary:hover {
    border-color: #0077ed;
    color: #0077ed;
    background: #f8fbff;
}

/* SECTIONS COMMUNES */

.how-delegate {
    padding: 75px 0;
    background: #ffffff;
}

.how-steps {
    padding: 75px 0;
    background: #eef3f9;
    border-top: 1px solid #dce6f4;
}

.how-section-head {
    max-width: 680px;
    margin-bottom: 42px;
}

.how-section-head h2 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(28px, 3.3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.8px;
    color: #111827;
    margin: 0 0 14px;
}

.how-section-head p {
    font-size: 14px;
    line-height: 1.75;
    color: #4b5563;
    margin: 0;
}

/* GRILLE DÉLÉGATION */

.delegate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.delegate-card {
    background: #f8fafe;
    border: 1px solid #dce6f4;
    border-radius: 14px;
    padding: 24px 22px;
    box-shadow: 0 6px 18px rgba(16, 42, 86, 0.04);
}

.delegate-card h3 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0077ed;
    margin: 0 0 10px;
}

.delegate-card p {
    font-size: 13px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

/* GRILLE 5 ÉTAPES */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.step-card {
    background: #ffffff;
    border: 1px solid #dce6f4;
    border-radius: 14px;
    padding: 22px 18px;
    box-shadow: 0 6px 18px rgba(16, 42, 86, 0.05);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #0077ed;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 999px;
    margin-bottom: 16px;
}

.step-card h3 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
}

.step-card p {
    font-size: 12.5px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

/* CTA BAS DE PAGE */

.how-cta {
    background: #0077ed;
    color: #ffffff;
    padding: 65px 0;
}

.how-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.how-cta h2 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(28px, 3.3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.7px;
    margin: 0 0 12px;
    max-width: 640px;
}

.how-cta p {
    font-size: 13.5px;
    line-height: 1.75;
    color: #e6f2ff;
    margin: 0;
    max-width: 560px;
}

.btn-how-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #ffffff;
    color: #0077ed;
    text-decoration: none;
    padding: 15px 26px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(9, 41, 90, 0.16);
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-how-light:hover {
    background: #f4f8ff;
    transform: translateY(-1px);
}

/* RESPONSIVE — TABLETTE & TÉLÉPHONE */

@media (max-width: 1050px) {
    .delegate-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .how-hero {
        padding: 36px 0 34px;
    }

    .how-hero h1 {
        font-size: clamp(32px, 8.8vw, 42px);
        letter-spacing: -1px;
        margin-bottom: 16px;
    }

    .how-hero > .container > p {
        font-size: 13.5px;
        line-height: 1.75;
        margin-bottom: 22px;
    }

    .how-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .btn-how-primary,
    .btn-how-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .how-delegate,
    .how-steps {
        padding: 48px 0;
    }

    .how-section-head {
        margin-bottom: 28px;
    }

    .delegate-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .delegate-card,
    .step-card {
        padding: 20px 18px;
        border-radius: 12px;
    }

    .how-cta {
        padding: 48px 0;
    }

    .how-cta-box {
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
    }

    .btn-how-light {
        width: 100%;
        justify-content: center;
    }
}