/* ===== Nos agences (pages agence, page Contact, pied de page) ===== */

/* ---------- Pied de page ---------- */
.footer-contact ul li.footer-agence {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4em;
}
.footer-contact .footer-agence__nom {
    font-weight: 700;
    color: #f2923d !important;
}
.footer-contact .footer-agence__nom:hover {
    color: #efefef !important;
}

/* ---------- Commun : badge, carte ---------- */
.agence-badge,
.agence-card__badge {
    display: inline-block;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #fff;
    background: #f2923d;
    border-radius: 20px;
    padding: 7px 12px;
    vertical-align: middle;
}

.agence-map {
    position: relative;
    min-height: 320px;
    background: #efefef;
    overflow: hidden;
}
.agence-map iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* ---------- Page agence ---------- */
.agence-page {
    padding: 60px 0 80px;
}
.agence-page .agence-page__head h1 {
    margin-bottom: 0;
    line-height: 1.25em;
}
.agence-page__head {
    margin-bottom: 45px;
}
.agence-page__bloc {
    margin-bottom: 70px;
}

/* Fiche coordonnées */
.agence-page__top {
    align-items: stretch;
}
.agence-fiche {
    height: 100%;
    background: #fff;
    border: 1px solid #ececec;
    border-top: 4px solid #f2923d;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(56, 56, 56, .08);
    padding: 35px 35px 30px;
    display: flex;
    flex-direction: column;
}
.agence-fiche__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 25px;
}
.agence-page .agence-fiche__title {
    font-family: 'Lexend', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #383838;
    margin: 0;
    line-height: 1.2em;
}
.agence-fiche__list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.agence-fiche__list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 17px;
    line-height: 1.5em;
    color: #383838;
}
.agence-fiche__list li:first-child {
    padding-top: 0;
}
.agence-fiche__list li:last-child {
    border-bottom: 0;
}
.agence-fiche__ico {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(242, 146, 61, .12);
    color: #f2923d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}
.agence-fiche__label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8a8a8a;
    margin-bottom: 3px;
}
.agence-fiche__list a {
    color: #383838;
    font-weight: 600;
}
.agence-fiche__list a:hover {
    color: #f2923d;
}
.agence-fiche__actions {
    margin-top: auto;
}

/* Carte page agence */
.agence-map--page {
    height: 100%;
    min-height: 480px;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(56, 56, 56, .08);
}
.agence-map__link {
    display: inline-block;
    margin-top: 12px;
    font-size: 15px;
    color: #383838;
    text-decoration: underline;
}
.agence-map__link:hover {
    color: #f2923d;
}

/* Présentation (texte back-office) */
.agence-presentation {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 45px 50px;
}
.agence-presentation .bloc-text p {
    font-size: 17px;
    line-height: 1.7em;
    margin-bottom: 18px;
}
.agence-presentation .bloc-text h2 {
    font-size: 28px;
    margin: 40px 0 22px;
}
.agence-presentation .bloc-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 30px;
}
.agence-presentation .bloc-text ul li {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px 16px 50px;
    font-size: 16px;
    line-height: 1.45em;
    box-shadow: 0 4px 14px rgba(56, 56, 56, .05);
}
.agence-presentation .bloc-text ul li:before {
    content: "\f00c";
    font-family: 'FontAwesome';
    position: absolute;
    left: 18px;
    top: 16px;
    color: #f2923d;
}
.agence-presentation .bloc-text ul li a {
    color: #383838;
    text-decoration: underline;
    text-decoration-color: rgba(242, 146, 61, .6);
}
.agence-presentation .bloc-text ul li a:hover {
    color: #f2923d;
}

/* Photos */
.agence-photos figure {
    margin: 0;
}
.agence-photos figure img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
}
.agence-photos figcaption {
    font-size: 15px;
    color: #5d5d5d;
    margin-top: 10px;
}

/* Communes desservies */
.agence-communes {
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 45px 50px;
}
.agence-page .agence-communes__title {
    font-family: 'Lexend', sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: #383838;
    margin: 0 0 30px;
}
.agence-communes__title span {
    color: #f2923d;
}
.agence-page .agence-communes__sub {
    font-family: 'Lexend', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #383838;
    margin: 0 0 16px;
}
.agence-communes__sub i {
    color: #f2923d;
    margin-right: 6px;
}
.agence-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.agence-tags li {
    background: #f7f7f7;
    border: 1px solid #ececec;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 16px;
    color: #383838;
}
.agence-tags a {
    color: #f2923d;
    font-weight: 600;
}
.agence-tags a:hover {
    text-decoration: underline;
}

/* Bandeau appel à l'action */
.agence-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: #383838;
    color: #efefef;
    border-radius: 12px;
    padding: 40px 50px;
    font-size: 17px;
}
.agence-cta__title {
    font-family: 'Lexend', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}
.agence-cta a {
    color: #f2923d;
    font-weight: 700;
}
.agence-cta .agence-cta__btn {
    display: inline-block;
    background: #f2923d;
    color: #fff;
    border-radius: 8px;
    padding: 16px 34px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s;
}
.agence-cta .agence-cta__btn:hover {
    background: #e07a22;
    color: #fff;
}

/* ---------- Page Contact ---------- */
.agences-contact-section {
    padding: 70px 0 50px;
}
.agences-contact-section .bloc-title {
    margin-bottom: 40px;
}
.agence-card {
    background: #fff;
    border: 1px solid #ececec;
    border-top: 4px solid #f2923d;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 35px rgba(56, 56, 56, .08);
}
.agence-card__body {
    padding: 35px;
}
.agences-contact-section .agence-card__title {
    font-family: 'Lexend', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #383838;
    margin-bottom: 20px;
    line-height: 1.3em;
}
.agence-card__badge {
    margin-left: 8px;
}
.agence-infos {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.agence-infos li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #383838;
    line-height: 1.5em;
}
.agence-infos li:last-child {
    border-bottom: 0;
}
.agence-infos a {
    color: #383838;
    font-weight: 600;
}
.agence-infos a:hover {
    color: #f2923d;
}
.agence-card .agence-map {
    flex: 1;
    min-height: 340px;
}


/* Fiches agence de la page Contact : reprennent le style .item-contact */
.agences-contact-section .sect-title {
    margin-bottom: 40px;
}
.agence-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.agence-box__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    text-align: center;
}
.agence-box__name {
    font-family: 'Lexend', sans-serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #383838;
}
.agence-box__items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.agence-box .agence-box__item {
    max-width: none;
    height: auto;
    min-height: 150px;
    margin: 0;
    padding: 22px 15px;
}
.agence-box__item .icon {
    color: #f2923d;
    font-size: 34px;
    line-height: 1;
}
.agence-box__item .icon img {
    height: 40px;
    width: auto;
}
.agence-box__item .title {
    font-size: 16px;
    line-height: 22px;
}
.agence-box__item .title a {
    word-break: break-word;
}
.agence-box__map {
    border-radius: 10px;
    overflow: hidden;
    background: #efefef;
    flex: 1;
    min-height: 360px;
}
.agence-box__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}

/* Alignement des deux fiches côte à côte (titres, blocs et cartes à la même hauteur) */
@media (min-width: 992px) {
    .agence-box__head {
        height: 60px;
    }
    .agence-box .agence-box__item {
        height: 230px;
        min-height: 0;
    }
    .agence-box__map,
    .agence-box__map iframe {
        flex: none;
        height: 380px;
        min-height: 0;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .agence-page {
        padding: 40px 0 60px;
    }
    .agence-page__bloc {
        margin-bottom: 50px;
    }
    .agence-map--page {
        min-height: 380px;
    }
}
@media (max-width: 767px) {
    .agence-fiche,
    .agence-card__body {
        padding: 25px 22px;
    }
    .agence-presentation,
    .agence-communes,
    .agence-cta {
        padding: 30px 22px;
    }
    .agence-presentation .bloc-text ul {
        grid-template-columns: 1fr;
    }
    .agence-page .agence-communes__title {
        font-size: 24px;
    }
    .agence-map--page {
        min-height: 320px;
    }
    .agence-photos figure img {
        height: 250px;
    }
    .agence-cta {
        text-align: center;
        justify-content: center;
    }
    .agence-box__items {
        grid-template-columns: 1fr;
    }
    .agence-box .agence-box__item {
        min-height: 0;
    }
}
