/* MODULE : POURQUOI CHOISIR ELECTROJUL */

.ej-why {
    padding: 76px 24px;
    background: #f6f9fc;
    color: #172c45;
}

.ej-why-heading {
    max-width: 1000px;
    margin: 0 auto 52px;
    text-align: center;
}

.ej-why-accent {
    display: block;
    width: 54px;
    height: 4px;
    margin: 0 auto 20px;
    border-radius: 10px;
    background: #3185ee;
}

.ej-why-heading h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.15;
}

.ej-why-heading > p {
    margin: 0;
    color: #68809a;
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1.6;
}

.ej-why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto 28px;
}

.ej-why-card {
    padding: 30px 22px;
    text-align: center;
    background: #fff;
    border: 1px solid #dce5ef;
    border-radius: 18px;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.ej-why-card:hover {
    border-color: #9bcaff;
    box-shadow: 0 10px 28px rgb(23 60 100 / 8%);
    transform: translateY(-3px);
}

.ej-why-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #e5edf7;
    color: #104b87;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.ej-why-icon svg {
    width: 40px;
    height: 40px;
    stroke: currentColor;
}

.ej-why-card:hover .ej-why-icon {
    background: #1769aa;
    color: #fff;
}

.ej-why-card h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    line-height: 1.35;
}

.ej-why-card p {
    margin: 0;
    color: #68809a;
    font-size: 0.98rem;
    line-height: 1.6;
}

.ej-why-bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
}

.ej-why-panel {
    min-width: 0;
    padding: 28px;
    border: 1px solid #d5e9fb;
    border-radius: 17px;
    background: #edf6ff;
}

.ej-why-panel h3 {
    margin: 0 0 12px;
    color: #173b66;
    font-size: 1.35rem;
}

.ej-why-panel p {
    color: #607b98;
    line-height: 1.65;
}

.ej-why-qualirepar > img {
    display: block;
    width: 100%;
    max-width: 440px;
    max-height: 190px;
    height: auto;
    margin: 0 auto 24px;
    object-fit: contain;
    object-position: center;
}

.ej-why-qualirepar {
    text-align: center;
}

.ej-why-panel a {
    display: inline-block;
    margin-top: 10px;
    color: #07549a;
    font-weight: 700;
    text-decoration: none;
}

.ej-why-panel a:hover {
    text-decoration: underline;
}

/* Centrage du bloc Avis Google */

.ej-why-google {
    text-align: center;
}

.ej-why-google h3,
.ej-why-google .ej-google-subtitle {
    text-align: center;
}

.ej-why-google > a {
    display: block;
    width: fit-content;
    margin: 16px auto 0;
    text-align: center;
}

@media (max-width: 1000px) {
    .ej-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .ej-why {
        padding: 48px 16px;
    }

    .ej-why-heading {
        margin-bottom: 32px;
    }

    .ej-why-grid,
    .ej-why-bottom {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ej-why-card {
        padding: 26px 20px;
    }

    .ej-why-panel {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ej-why-card,
    .ej-why-icon {
        transition: none;
    }

    .ej-why-card:hover {
        transform: none;
    }
}