/**
 * Refonte "S'installer en Espagne" — styles propres à la page 07 · Agence.
 * Chargée en plus de refonte-common.css (.sec, .ic2b, .cta, .coords, .btn-red
 * y sont déjà communs). Pas de conflit avec .hero2 : cette page utilise sa
 * propre classe de hero (.ah), cf. bug de cascade corrigé sur la page 06.
 */

.ah {
    background: var(--navy);
    position: relative;
    overflow: hidden;
    padding-bottom: 44px;
}
.ah .ph {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 62%;
    background: url('../images/agence-hero.webp') center/cover;
}
.ah .ph:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #14215b 0%, rgba(20, 33, 91, .75) 18%, rgba(20, 33, 91, 0) 45%);
}
.ah .wrap {
    position: relative;
    padding-top: 44px;
    color: #fff;
}
.ah h1 {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 600;
    width: 600px;
}
.ah p {
    font-size: 15px;
    line-height: 1.6;
    width: 500px;
    margin-top: 16px;
}
.ah .ic2b > div {
    color: #fff;
}

.hist {
    display: grid;
    grid-template-columns: 1.15fr 1.25fr 1.2fr;
    gap: 24px;
    align-items: center;
}
.eyl {
    color: var(--red);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .05em;
}
.hist h2 {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--navy);
    margin-top: 8px;
}
.hist p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--navy);
    margin-top: 12px;
}
.k3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.k3 > div {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--navy);
    box-shadow: 0 4px 14px rgba(20, 33, 91, .05);
}
.k3 b {
    display: block;
    font-size: 24px;
    color: var(--red);
    font-weight: 600;
    margin: 6px 0 2px;
}
.hist img.dv {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.acc {
    border: 1px solid var(--line);
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 20px;
    background: #fff;
}
.acc > div {
    padding: 22px 22px;
    border-right: 1px solid var(--line);
}
.acc > div:last-child {
    border-right: none;
}
.acc h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}
.acc h3.r {
    color: var(--red);
    letter-spacing: .04em;
}
.acc p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 10px;
}
.row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}
.row b {
    display: block;
    font-size: 14px;
    color: var(--navy);
    font-weight: 600;
}
.row span {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}
.row .mnum {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    margin-top: 2px;
}

.el {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
.el > div {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 22px;
    background: #f8f9fd;
}
.el h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
}
.g6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin-top: 14px;
}
.g6 > div {
    text-align: center;
    font-size: 12px;
    line-height: 1.35;
    color: var(--navy);
    padding: 0 6px;
    border-right: 1px solid var(--line);
}
.g6 > div:last-child {
    border-right: none;
}
.g5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 10px;
    text-align: center;
    font-size: 12.5px;
    color: var(--navy);
}

.qual {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px 28px;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    gap: 24px;
    align-items: center;
    background: #fff;
}
.qual .gq {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--navy);
}

.part {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 26px;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1.55fr;
    gap: 20px;
    align-items: center;
    background: #fff;
}
.logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: 0;
}
.logos > div {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--line);
    padding: 0 10px;
}
.logos img {
    max-width: 100%;
    max-height: 62px;
    object-fit: contain;
}

@media (max-width: 980px) {
    .hist {
        grid-template-columns: 1fr;
    }
    .acc {
        grid-template-columns: 1fr;
    }
    .acc > div {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    .acc > div:last-child {
        border-bottom: none;
    }
    .el {
        grid-template-columns: 1fr;
    }
    .qual,
    .part {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .ah .ph {
        position: relative;
        width: 100%;
        height: 230px;
    }
    .ah .ph:after {
        background: linear-gradient(0deg, #14215b 0%, rgba(20, 33, 91, 0) 40%);
    }
    .ah .wrap {
        padding-top: 20px;
    }
    .ah h1 {
        font-size: 28px;
        width: auto;
    }
    .ah p {
        width: auto;
    }
    .el > div {
        min-width: 0;
    }
    .g6 > div,
    .g5 > div {
        overflow-wrap: anywhere;
    }
    .g6 {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 16px;
    }
    .g6 > div:nth-child(3n) {
        border-right: none;
    }
    .g5 {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 12px;
    }
    .qual .gq {
        grid-template-columns: 1fr 1fr;
    }
    .logos {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 10px;
    }
    .logos > div {
        border-left: none;
    }
    .hist h2 {
        font-size: 23px;
    }
}

/* ---- classes extraites du HTML inline ---- */
.ah-icon {
    width: 54px;
    height: 54px;
    flex: none;
}
.sec--agence-histoire {
    padding-top: 40px;
}
.icon-50 {
    width: 50px;
    height: 50px;
    flex: none;
}
.k3 b.k3-label-empty {
    font-size: 15px;
    color: var(--navy);
}
.eyl--accompagnement {
    margin-top: 40px;
}
.acc-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--navy);
    margin-top: 6px;
}
.acc-role-head {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}
.icon-46 {
    width: 46px;
    height: 46px;
    flex: none;
}
.acc h3.acc-role-title {
    margin: 0;
}
.icon-48 {
    width: 48px;
    height: 48px;
    flex: none;
}
.el > div.el-card--multilingue {
    background: #fff;
}
.el-multilingue-intro {
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
    margin-top: 6px;
}
.qual-title {
    font-size: 21px;
    font-weight: 600;
    color: var(--navy);
    margin-top: 6px;
    line-height: 1.3;
}
.part-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-top: 6px;
}
.part-intro {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text);
    margin-top: 8px;
}
.part-intro--second {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text);
    margin-top: 6px;
}
