/* =========================================================
   APSM — PAGE NOTRE ÉQUIPE
   Kadence Child
   ========================================================= */


/* =========================================================
   CONTENEUR PRINCIPAL
   ========================================================= */

.apsm-team {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 25px;
}


/* =========================================================
   EN-TÊTE
   ========================================================= */

.apsm-team-header {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.apsm-surtitle {
    display: inline-block;
    margin-bottom: 12px;
    color: #f1582c;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.apsm-team-header h1 {
    margin: 0 0 18px;
    color: #1f2326;
    font-size: 46px;
    line-height: 1.1;
    font-weight: 800;
}

.apsm-team-header p {
    margin: 0;
    color: #666;
    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   GRILLE ÉQUIPE
   ========================================================= */

.apsm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}


/* =========================================================
   CARTE SALARIÉ
   ========================================================= */

.apsm-card {
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(31, 35, 38, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.apsm-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 45px rgba(31, 35, 38, 0.15);
}

.apsm-card > a {
    display: block;
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   PHOTO
   ========================================================= */

.apsm-photo {
    position: relative;
    width: 100%;
    height: 330px;
    overflow: hidden;
    background: #f4f4f4;
}

.apsm-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.apsm-card:hover .apsm-photo img {
    transform: scale(1.04);
}

.apsm-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f1582c;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 3px;
}


/* =========================================================
   CONTENU CARTE
   ========================================================= */

.apsm-card-content {
    padding: 25px;
}

.apsm-card-content h2 {
    margin: 0 0 12px;
    color: #1f2326;
    font-size: 24px;
    line-height: 1.2;
}


/* =========================================================
   POSTE
   ========================================================= */

.apsm-poste {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 50px;
    background: #f1582c;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}


/* =========================================================
   LIEN FICHE
   ========================================================= */

.apsm-card-link {
    display: block;
    margin-top: 20px;
    color: #1f2326;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.apsm-card:hover .apsm-card-link {
    color: #f1582c;
}


/* =========================================================
   AUCUN RÉSULTAT
   ========================================================= */

.apsm-no-results {
    padding: 60px 30px;
    text-align: center;
    background: #f7f7f7;
    border-radius: 18px;
}

.apsm-no-results h2 {
    margin-bottom: 10px;
    color: #1f2326;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.apsm-team .navigation {
    margin-top: 50px;
    text-align: center;
}


/* =========================================================
   ÉQUIPE — TABLETTE
   ========================================================= */

@media (max-width: 900px) {

    .apsm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .apsm-team-header h1 {
        font-size: 40px;
    }

}


/* =========================================================
   ÉQUIPE — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .apsm-team {
        padding: 45px 18px;
    }

    .apsm-team-header {
        margin-bottom: 35px;
    }

    .apsm-team-header h1 {
        font-size: 34px;
    }

    .apsm-team-header p {
        font-size: 16px;
    }

    .apsm-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .apsm-photo {
        height: 360px;
    }

}


/* =========================================================
   APSM — FICHE SALARIÉ
   ========================================================= */

.apsm-salarie-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 70px 25px;
}

.apsm-salarie-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(31, 35, 38, 0.10);
}


/* =========================================================
   EN-TÊTE FICHE SALARIÉ
   ========================================================= */

.apsm-salarie-header {
    display: flex;
    align-items: center;
    gap: 45px;
    padding: 50px;
    background: #f7f7f7;
}

.apsm-salarie-photo {
    width: 230px;
    height: 230px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 20px;
}

.apsm-salarie-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apsm-salarie-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f1582c;
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 3px;
}

.apsm-salarie-label {
    display: block;
    margin-bottom: 12px;
    color: #f1582c;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.apsm-salarie-identite h1 {
    margin: 0 0 12px;
    color: #1f2326;
    font-size: 42px;
    line-height: 1.1;
}

.apsm-salarie-poste {
    color: #f1582c;
    font-size: 21px;
    font-weight: 700;
}

.apsm-salarie-date {
    margin-top: 8px;
    color: #777;
    font-size: 15px;
}


/* =========================================================
   CONTACT SALARIÉ
   ========================================================= */

.apsm-salarie-contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 35px 50px;
    border-bottom: 1px solid #eeeeee;
}

.apsm-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    background: #f8f8f8;
    color: #1f2326;
    text-decoration: none;
    transition: 0.2s ease;
}

.apsm-contact-item:hover {
    background: #fff0eb;
    color: #f1582c;
}

.apsm-contact-icon {
    font-size: 24px;
}

.apsm-contact-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    color: #777;
}


/* =========================================================
   PRÉSENTATION SALARIÉ
   ========================================================= */

.apsm-salarie-presentation {
    padding: 45px 50px;
}

.apsm-salarie-presentation h2 {
    margin-bottom: 25px;
    color: #1f2326;
    font-size: 30px;
}

.apsm-salarie-presentation h2::after {
    content: "";
    display: block;
    width: 55px;
    height: 4px;
    margin-top: 10px;
    background: #f1582c;
    border-radius: 5px;
}

.apsm-presentation-content {
    color: #555;
    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   RETOUR
   ========================================================= */

.apsm-salarie-retour {
    padding: 0 50px 45px;
}

.apsm-salarie-retour a {
    color: #f1582c;
    font-weight: 700;
    text-decoration: none;
}

.apsm-salarie-retour a:hover {
    text-decoration: underline;
}


/* =========================================================
   TERRITOIRE DU SALARIÉ
   ========================================================= */

.apsm-territoire {
    display: block;
    margin-top: 12px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.apsm-salarie-territoire {
    margin-top: 8px;
    color: #555;
    font-size: 16px;
    font-weight: 600;
}


/* =========================================================
   FICHE SALARIÉ — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .apsm-salarie-page {
        padding: 40px 18px;
    }

    .apsm-salarie-header {
        flex-direction: column;
        text-align: center;
        padding: 35px 25px;
    }

    .apsm-salarie-photo {
        width: 190px;
        height: 190px;
    }

    .apsm-salarie-identite h1 {
        font-size: 32px;
    }

    .apsm-salarie-contact {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .apsm-salarie-presentation {
        padding: 35px 25px;
    }

    .apsm-salarie-retour {
        padding: 0 25px 35px;
    }

}


/* =========================================================
   APSM — PAGE TERRITOIRE
   ========================================================= */

.apsm-territoire-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 25px;
}

.apsm-territoire-header {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.apsm-territoire-hero-title h1 {
    margin: 0;
    color: #ffffff;
    font-size: 58px;
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase !important;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.35);
}

.apsm-territoire-description {
    color: #666;
    font-size: 17px;
    line-height: 1.7;
}

.apsm-territoire-section {
    margin-top: 40px;
}

.apsm-section-title {
    margin-bottom: 35px;
}

.apsm-section-title > span {
    display: block;
    margin-bottom: 8px;
    color: #f1582c;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.apsm-section-title h2 {
    margin: 0;
    color: #1f2326;
    font-size: 32px;
}

.apsm-empty {
    padding: 40px;
    background: #f7f7f7;
    border-radius: 16px;
    text-align: center;
}


/* =========================================================
   IMAGE ET PRÉSENTATION DU TERRITOIRE
   ========================================================= */

.apsm-territoire-image {
    max-width: 850px;
    height: 380px;
    margin: 35px auto 30px;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(31, 35, 38, 0.12);
}

.apsm-territoire-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apsm-territoire-description {
    max-width: 800px;
    margin: 30px auto 0;
    color: #555;
    font-size: 17px;
    line-height: 1.8;
    text-align: left;
}

.apsm-territoire-description p {
    margin-bottom: 15px;
}


/* =========================================================
   STRUCTURE PAGE TERRITOIRE
   ========================================================= */

.apsm-territoire-columns {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 50px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}


/* =========================================================
   COLONNE GAUCHE
   ========================================================= */

.apsm-territoire-main {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
}


/* =========================================================
   COLONNE DROITE
   ========================================================= */

.apsm-territoire-sidebar {
    flex: 0 0 360px !important;
    width: 360px !important;
    max-width: 360px !important;
    min-width: 360px !important;
}


/* =========================================================
   SECTIONS TERRITOIRE
   ========================================================= */

.apsm-territoire-section {
    margin-top: 0;
    margin-bottom: 40px;
}

.apsm-section-heading {
    margin-bottom: 30px;
}

.apsm-section-heading > span {
    display: block;
    margin-bottom: 8px;
    color: #f1582c;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.apsm-section-heading h2 {
    margin: 0;
    color: #1f2326;
    font-size: 32px;
    line-height: 1.2;
}


/* =========================================================
   GRILLE DES PROFESSIONNELS
   ========================================================= */

.apsm-territoire-main .apsm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}


/* =========================================================
   BOÎTES COLONNE DROITE
   ========================================================= */

.apsm-territoire-box {
    width: 100%;
    box-sizing: border-box;
    padding: 28px;
    margin-bottom: 30px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(31, 35, 38, 0.08);
}

.apsm-territoire-box-kicker {
    display: block;
    margin-bottom: 8px;
    color: #f1582c;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.apsm-territoire-box h2 {
    margin-top: 0;
    margin-bottom: 25px;
}


/* =========================================================
   INFORMATIONS
   ========================================================= */

.apsm-info-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.apsm-info-icon {
    flex: 0 0 30px;
    font-size: 20px;
}

.apsm-info-icon img {
    max-width: 22px;
    height: auto;
}

.apsm-info-item strong {
    display: block;
    margin-bottom: 4px;
}

.apsm-info-item p {
    margin: 0;
    line-height: 1.5;
}

.apsm-info-item a {
    color: #1f2326;
    text-decoration: none;
}

.apsm-info-item a:hover {
    color: #f1582c;
}


/* =========================================================
   GOOGLE MAPS
   ========================================================= */

.apsm-map-button {
    display: block;
    margin-top: 25px;
    padding: 13px 18px;
    background: #f1582c;
    color: #ffffff !important;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    text-decoration: none !important;
}

.apsm-map-button:hover {
    opacity: 0.9;
}


/* =========================================================
   ACTUALITÉS
   ========================================================= */

.apsm-territoire-news {
    width: 100%;
    box-sizing: border-box;
}

.apsm-news-list {
    display: block !important;
    width: 100%;
}

.apsm-news-card {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e8e8e8;
}

.apsm-news-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.apsm-news-image {
    display: block;
    margin-bottom: 15px;
}

.apsm-news-image img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.apsm-news-content time {
    display: block;
    margin-bottom: 6px;
    color: #777777;
    font-size: 13px;
}

.apsm-news-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
}

.apsm-news-content h3 a {
    color: #1f2326;
    text-decoration: none;
}

.apsm-news-content h3 a:hover {
    color: #f1582c;
}

.apsm-news-link {
    color: #f1582c;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}


/* =========================================================
   TERRITOIRE — TABLETTE
   ========================================================= */

@media (max-width: 900px) {

    .apsm-territoire-page {
        padding: 55px 25px;
    }

    .apsm-territoire-header h1 {
        font-size: 40px;
    }

    .apsm-territoire-columns {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 35px !important;
    }

    .apsm-territoire-main {
        width: 100% !important;
        flex: none !important;
    }

    .apsm-territoire-sidebar {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: none !important;
    }

}


/* =========================================================
   TERRITOIRE — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .apsm-territoire-page {
        padding: 45px 18px;
    }

    .apsm-territoire-header h1 {
        font-size: 36px;
    }

    .apsm-territoire-image {
        height: 250px;
        border-radius: 16px;
    }

    .apsm-territoire-description {
        font-size: 16px;
    }

    .apsm-territoire-main .apsm-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .apsm-territoire-box {
        padding: 22px;
        border-radius: 14px;
    }

}
/* =========================================================
   APSM — INTRODUCTION TERRITOIRE
   ========================================================= */

.apsm-territoire-intro {
    max-width: 900px;
    margin: 0 auto 65px;
    text-align: center;
}

.apsm-territoire-kicker {
    display: block;
    margin-bottom: 12px;
    color: #f1582c;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.apsm-territoire-intro h2 {
    margin: 0 0 25px;
    color: #1f2326;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 800;
}

.apsm-territoire-presentation {
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    font-size: 17px;
    line-height: 1.8;
}

.apsm-territoire-presentation p {
    margin: 0 0 16px;
}

.apsm-territoire-presentation p:last-child {
    margin-bottom: 0;
}

.apsm-territoire-presentation strong {
    color: #1f2326;
    font-weight: 700;
}


/* =========================================================
   INTRODUCTION — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .apsm-territoire-intro {
        margin-bottom: 45px;
    }

    .apsm-territoire-intro h2 {
        font-size: 36px;
    }

    .apsm-territoire-presentation {
        font-size: 16px;
        line-height: 1.7;
    }

}
/* =========================================================
   APSM — SÉPARATION INTRO / ÉQUIPE
   ========================================================= */

.apsm-territoire-intro {
    position: relative;
    margin-bottom: 75px;
    padding-bottom: 45px;
}

.apsm-territoire-intro::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 70px;
    height: 4px;
    transform: translateX(-50%);
    background: #f1582c;
    border-radius: 10px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .apsm-territoire-intro {
        margin-bottom: 50px;
        padding-bottom: 30px;
    }

    .apsm-territoire-intro::after {
        width: 55px;
        height: 3px;
    }

}
/* =========================================================
   APSM — GRANDE PHOTO TERRITOIRE
   ========================================================= */

.apsm-territoire-image {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 500px !important;
    min-height: 500px !important;
    margin: 40px 0 50px !important;
    overflow: hidden !important;
    border-radius: 22px !important;
}

.apsm-territoire-image img {
    display: block !important;
    width: 100% !important;
    height: 500px !important;
    min-height: 500px !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
}

@media (max-width: 900px) {

    .apsm-territoire-image {
        height: 400px !important;
        min-height: 400px !important;
    }

    .apsm-territoire-image img {
        height: 400px !important;
        min-height: 400px !important;
    }

}

@media (max-width: 600px) {

    .apsm-territoire-image {
        height: 300px !important;
        min-height: 300px !important;
        border-radius: 16px !important;
    }

    .apsm-territoire-image img {
        height: 300px !important;
        min-height: 300px !important;
    }

}
/* =========================================================
   APSM — HERO TERRITOIRE
   ========================================================= */

.apsm-territoire-hero {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 60px;
    overflow: hidden;
    border-radius: 22px;
}

.apsm-territoire-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* Voile sombre */

.apsm-territoire-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
}


/* Titre sur la photo */

.apsm-territoire-hero-title {
    position: absolute;
    z-index: 2;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.apsm-territoire-hero-title h1 {
    margin: 0;

    color: #f1582c;
    font-size: 58px;
    line-height: 1.1;
    font-weight: 800;

    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 900px) {

    .apsm-territoire-hero {
        height: 400px;
    }

    .apsm-territoire-hero-title h1 {
        font-size: 48px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .apsm-territoire-hero {
        height: 300px;
        margin-bottom: 40px;
        border-radius: 16px;
    }

    .apsm-territoire-hero-title h1 {
        font-size: 36px;
    }

}
/* =========================================================
   APSM — PAGE NOS TERRITOIRES
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

.apsm-territoires-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 25px;
}


/* =========================================================
   HERO
   ========================================================= */

.apsm-territoires-hero {
    position: relative;

    padding: 80px 40px;

    margin-bottom: 75px;

    background:
        linear-gradient(
            135deg,
            #1f2326 0%,
            #30363a 100%
        );

    border-radius: 24px;

    overflow: hidden;
}

.apsm-territoires-hero::after {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    right: -80px;
    bottom: -100px;

    background: #f1582c;

    border-radius: 50%;

    opacity: 0.15;
}

.apsm-territoires-hero-content {
    position: relative;

    z-index: 2;

    max-width: 760px;

    margin: 0 auto;

    text-align: center;
}

.apsm-territoires-kicker {
    display: block;

    margin-bottom: 15px;

    color: #f1582c;

    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 2px;
}

.apsm-territoires-hero h1 {
    margin: 0 0 20px;

    color: #ffffff;

    font-size: 56px;
    line-height: 1.05;

    font-weight: 800;

    text-transform: uppercase;
}

.apsm-territoires-hero p {
    max-width: 680px;

    margin: 0 auto;

    color: rgba(255, 255, 255, 0.85);

    font-size: 18px;

    line-height: 1.7;
}


/* =========================================================
   INTRODUCTION
   ========================================================= */

.apsm-territoires-intro {
    max-width: 820px;

    margin: 0 auto 65px;

    text-align: center;
}

.apsm-territoires-intro-kicker {
    display: block;

    margin-bottom: 10px;

    color: #f1582c;

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 2px;
}

.apsm-territoires-intro h2 {
    margin: 0 0 20px;

    color: #1f2326;

    font-size: 34px;
    line-height: 1.2;

    font-weight: 800;
}

.apsm-territoires-intro p {
    margin: 0;

    color: #666;

    font-size: 17px;

    line-height: 1.8;
}


/* =========================================================
   GRILLE
   ========================================================= */

.apsm-territoires-grid-section {
    width: 100%;
}

.apsm-territoires-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 30px;
}


/* =========================================================
   CARTE
   ========================================================= */

.apsm-territoire-card {
    position: relative;

    overflow: hidden;

    min-width: 0;

    border-radius: 22px;

    background: #1f2326;

    box-shadow:
        0 10px 35px rgba(31, 35, 38, 0.10);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.apsm-territoire-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 20px 45px rgba(31, 35, 38, 0.18);
}


/* =========================================================
   LIEN
   ========================================================= */

.apsm-territoire-card-link {
    display: block;

    color: inherit;

    text-decoration: none;
}


/* =========================================================
   IMAGE
   ========================================================= */

.apsm-territoire-card-image {
    position: relative;

    height: 390px;

    overflow: hidden;
}

.apsm-territoire-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.6s ease;
}

.apsm-territoire-card:hover
.apsm-territoire-card-image img {
    transform: scale(1.06);
}


/* =========================================================
   PLACEHOLDER
   ========================================================= */

.apsm-territoire-card-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: #f1582c;

    color: #ffffff;

    font-size: 38px;
    font-weight: 800;

    letter-spacing: 4px;
}


/* =========================================================
   VOILE
   ========================================================= */

.apsm-territoire-card-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.82) 0%,
            rgba(0, 0, 0, 0.35) 45%,
            rgba(0, 0, 0, 0.05) 75%
        );
}


/* =========================================================
   CONTENU DE LA CARTE
   ========================================================= */

.apsm-territoire-card-content {
    position: absolute;

    z-index: 2;

    left: 30px;
    right: 30px;
    bottom: 28px;
}

.apsm-territoire-card-label {
    display: block;

    margin-bottom: 8px;

    color: #fbd3c7;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.apsm-territoire-card-content h2 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: 32px;
    line-height: 1.1;

    font-weight: 800;

    text-transform: uppercase;
}

.apsm-territoire-card-button {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    transition:
        gap 0.25s ease;
}

.apsm-territoire-card:hover
.apsm-territoire-card-button {
    gap: 16px;
}


/* =========================================================
   SÉPARATION
   ========================================================= */

.apsm-territoires-bottom {
    margin-top: 75px;

    text-align: center;
}

.apsm-territoires-bottom-line {
    width: 70px;
    height: 4px;

    margin: 0 auto 20px;

    background: #f1582c;

    border-radius: 10px;
}

.apsm-territoires-bottom span {
    color: #777;

    font-size: 13px;
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 900px) {

    .apsm-territoires-page {
        padding: 50px 20px;
    }

    .apsm-territoires-hero {
        padding: 65px 30px;
    }

    .apsm-territoires-hero h1 {
        font-size: 46px;
    }

    .apsm-territoires-grid {
        gap: 22px;
    }

    .apsm-territoire-card-image {
        height: 330px;
    }

    .apsm-territoire-card-content h2 {
        font-size: 27px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .apsm-territoires-page {
        padding: 40px 18px;
    }

    .apsm-territoires-hero {
        padding: 55px 22px;

        margin-bottom: 50px;

        border-radius: 18px;
    }

    .apsm-territoires-hero h1 {
        font-size: 38px;
    }

    .apsm-territoires-hero p {
        font-size: 16px;
    }

    .apsm-territoires-intro {
        margin-bottom: 45px;
    }

    .apsm-territoires-intro h2 {
        font-size: 28px;
    }

    .apsm-territoires-intro p {
        font-size: 16px;
    }

    .apsm-territoires-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .apsm-territoire-card-image {
        height: 330px;
    }

    .apsm-territoire-card-content {
        left: 24px;
        right: 24px;
        bottom: 24px;
    }

    .apsm-territoire-card-content h2 {
        font-size: 27px;
    }

}
