/* ========================================
   PAGE DÉCOUVRIR LA COMMUNE
   ======================================== */

.city-page {
    --city-green-dark: #173f3f;
    --city-green: #256764;
    --city-green-light: #eaf2f0;
    --city-orange: #e14924;
    --city-orange-dark: #c23827;
    --city-cream: #f8f5f0;
    --city-beige: #f5efe8;
    --city-white: #ffffff;
    --city-black: #171715;
    --city-grey: #5f6564;
    --city-border: #dce3e1;

    color: var(--city-black);
    background: var(--city-white);
}

/* ========================================
   TYPOGRAPHIE GÉNÉRALE DE LA PAGE
   ======================================== */

.city-page,
.city-page button,
.city-page input,
.city-page textarea,
.city-page select {
    font-family: inherit;
}

.city-page h1,
.city-page h2,
.city-page h3,
.city-page h4,
.city-page p,
.city-page ol,
.city-page ul,
.city-page li,
.city-page figure,
.city-page blockquote {
    font-family: inherit;
}

.city-page h3 {
    margin: 32px 0 18px;
    color: var(--city-green-dark);
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.city-page ul,
.city-page ol {
    margin: 20px 0 26px;
    padding-left: 25px;
}

.city-page li {
    color: var(--city-grey);
    font-size: 16px;
    line-height: 1.8;
}

.city-page li + li {
    margin-top: 10px;
}

.city-page li strong {
    color: var(--city-green-dark);
    font-weight: 800;
}

.city-introduction__text h3 {
    margin: 35px 0 20px;
    color: var(--city-green-dark);
    font-size: 22px;
    line-height: 1.3;
}

.city-introduction__text ol {
    margin: 0 0 28px;
    padding-left: 28px;
}

.city-introduction__text ol li {
    padding-left: 8px;
    color: var(--city-grey);
    font-size: 16px;
    line-height: 1.8;
}

.city-introduction__text ol li + li {
    margin-top: 16px;
}

.city-introduction__text ol li strong {
    color: var(--city-green-dark);
}
.city-content-grid__text ul,
.city-content-grid__text ol {
    margin: 22px 0 26px;
    padding-left: 23px;
}

.city-content-grid__text li {
    color: var(--city-grey);
    font-size: 16px;
    line-height: 1.8;
}

.city-content-grid__text li + li {
    margin-top: 9px;
}

.city-container {
    width: min(90%, 1280px);
    margin-inline: auto;
}

.city-eyebrow {
    margin: 0 0 13px;
    color: var(--city-orange);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

/* HERO */

.city-hero {
    position: relative;
    min-height: 730px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: var(--city-white);
}

.city-hero__background,
.city-hero__overlay {
    position: absolute;
    inset: 0;
}

.city-hero__background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.city-hero__overlay {
    background:
        linear-gradient(
            90deg,
            rgb(9 40 39 / 90%) 0%,
            rgb(9 40 39 / 68%) 48%,
            rgb(9 40 39 / 25%) 100%
        );
}

.city-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45%;
    height: 8px;
    background: var(--city-orange);
}

.city-hero__content {
    position: relative;
    z-index: 1;
    padding-top: 120px;
    padding-bottom: 100px;
}

.city-hero h1 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(52px, 8vw, 100px);
    line-height: 0.92;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.city-hero p:not(.city-eyebrow) {
    max-width: 680px;
    margin: 30px 0 0;
    color: rgb(255 255 255 / 85%);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.7;
}

.city-hero__button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    gap: 30px;
    margin-top: 35px;
    padding: 14px 22px;
    color: var(--city-white);
    border: 1px solid rgb(255 255 255 / 50%);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.city-hero__button:hover {
    color: var(--city-green-dark);
    background: var(--city-white);
}

/* NAVIGATION */

.city-navigation {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--city-white);
    border-bottom: 1px solid var(--city-border);
    box-shadow: 0 8px 25px rgb(23 63 63 / 7%);
}

.admin-bar .city-navigation {
    top: 32px;
}

.city-navigation .city-container {
    display: flex;
    gap: 8px;
    padding-top: 13px;
    padding-bottom: 13px;
    overflow-x: auto;
}

.city-navigation a {
    flex: 0 0 auto;
    padding: 11px 15px;
    color: var(--city-green-dark);
    background: var(--city-green-light);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.city-navigation a:hover {
    color: var(--city-white);
    background: var(--city-green-dark);
}

/* INTRODUCTION */

.city-introduction {
    scroll-margin-top: 100px;
    padding: clamp(75px, 9vw, 125px) 0;
}

.city-introduction__grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(55px, 9vw, 125px);
}

.city-introduction__heading h2,
.city-section__header h2,
.city-content-grid__text h2,
.city-conclusion h2 {
    margin: 0;
    color: var(--city-green-dark);
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.city-introduction__text p {
    margin: 0 0 22px;
    color: var(--city-grey);
    font-size: 17px;
    line-height: 1.85;
}

.city-introduction__notice {
    padding: 20px 23px;
    color: #705248 !important;
    background: #fff3ee;
    border-left: 5px solid var(--city-orange);
    font-size: 14px !important;
}

/* CHIFFRES CLÉS */

.city-statistics {
    padding: 35px 0;
    background: var(--city-green-dark);
}

.city-statistics__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.city-statistics article {
    display: flex;
    min-height: 130px;
    flex-direction: column;
    justify-content: center;
    padding: 20px 30px;
    border-right: 1px solid rgb(255 255 255 / 14%);
}

.city-statistics article:last-child {
    border-right: 0;
}

.city-statistics strong {
    color: var(--city-orange);
    font-size: clamp(27px, 4vw, 43px);
    line-height: 1;
}

.city-statistics span {
    margin-top: 9px;
    color: rgb(255 255 255 / 75%);
    font-size: 13px;
    text-transform: uppercase;
}

/* SECTIONS GÉNÉRALES */

.city-section {
    scroll-margin-top: 100px;
    padding: clamp(75px, 9vw, 120px) 0;
}

.city-section--white {
    background: var(--city-white);
}

.city-section--cream {
    background: var(--city-cream);
}

.city-section--green {
    color: var(--city-white);
    background: var(--city-green-dark);
}

.city-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.9fr);
    gap: clamp(50px, 8vw, 110px);
    align-items: center;
}

.city-content-grid--reverse .city-content-grid__text {
    order: 2;
}

.city-content-grid--reverse .city-content-grid__image {
    order: 1;
}

.city-content-grid__text p {
    margin: 0 0 21px;
    color: var(--city-grey);
    font-size: 16px;
    line-height: 1.85;
}

.city-content-grid__image {
    margin: 0;
}

.city-content-grid__image img {
    display: block;
    width: 100%;
    height: 570px;
    object-fit: cover;
    border-radius: 12px;
}

.city-content-grid__image figcaption,
.city-wide-image figcaption {
    padding: 13px 4px 0;
    color: var(--city-grey);
    font-size: 13px;
    line-height: 1.6;
}

.city-section__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
    gap: 50px;
    align-items: end;
    margin-bottom: 55px;
}

.city-section__header > p {
    margin: 0;
    color: var(--city-grey);
    font-size: 16px;
    line-height: 1.75;
}

.city-section__header--light h2 {
    color: var(--city-white);
}

.city-section__header--light > p {
    color: rgb(255 255 255 / 72%);
}

/* LOCALISATION */

.city-location-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    overflow: hidden;
    background: var(--city-white);
    border-radius: 12px;
    box-shadow: 0 16px 42px rgb(23 63 63 / 10%);
}

.city-location-grid__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.city-location-grid__content {
    padding: clamp(35px, 6vw, 70px);
}

.city-location-grid__content > p {
    margin: 0 0 30px;
    color: var(--city-grey);
    font-size: 17px;
    line-height: 1.8;
}

.city-border-list {
    display: grid;
    gap: 12px;
}

.city-border-list div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    border-bottom: 1px solid var(--city-border);
}

.city-border-list span {
    color: var(--city-grey);
    font-size: 13px;
    text-transform: uppercase;
}

.city-border-list strong {
    color: var(--city-green-dark);
    text-align: right;
}

.city-localities {
    margin-top: 55px;
}

.city-localities h3 {
    margin: 0 0 25px;
    color: var(--city-green-dark);
    font-size: 25px;
}

.city-localities__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.city-localities__grid span {
    padding: 11px 16px;
    color: var(--city-green-dark);
    background: var(--city-white);
    border: 1px solid var(--city-border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

/* POPULATION */

.city-population-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgb(255 255 255 / 15%);
    border-left: 1px solid rgb(255 255 255 / 15%);
}

.city-population-grid article {
    padding: clamp(30px, 5vw, 50px);
    border-right: 1px solid rgb(255 255 255 / 15%);
    border-bottom: 1px solid rgb(255 255 255 / 15%);
}

.city-population-grid__number {
    color: var(--city-orange);
    font-size: 13px;
    font-weight: 800;
}

.city-population-grid h3 {
    margin: 30px 0 18px;
    color: var(--city-white);
    font-size: 27px;
}

.city-population-grid p,
.city-population-grid li {
    color: rgb(255 255 255 / 73%);
    font-size: 15px;
    line-height: 1.75;
}

.city-population-grid ul {
    margin: 0;
    padding-left: 20px;
}

/* CULTURE */

.city-gallery-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    overflow: hidden;
    background: var(--city-green-dark);
    border-radius: 12px;
}

.city-gallery-feature > img {
    display: block;
    width: 100%;
    height: 540px;
    object-fit: cover;
}

.city-gallery-feature__content {
    padding: clamp(35px, 6vw, 70px);
}

.city-gallery-feature__content h3 {
    margin: 0 0 25px;
    color: var(--city-white);
    font-size: clamp(30px, 4vw, 44px);
}

.city-gallery-feature__content p,
.city-gallery-feature__content li {
    color: rgb(255 255 255 / 75%);
    font-size: 15px;
    line-height: 1.8;
}

.city-culture-grid,
.city-economic-sectors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.city-culture-grid article,
.city-economic-sectors article {
    padding: 30px;
    background: var(--city-white);
    border: 1px solid var(--city-border);
    border-radius: 10px;
}

.city-culture-grid h3,
.city-economic-sectors h3 {
    margin: 0 0 16px;
    color: var(--city-green-dark);
    font-size: 22px;
}

.city-culture-grid p,
.city-economic-sectors p {
    margin: 0 0 15px;
    color: var(--city-grey);
    font-size: 15px;
    line-height: 1.75;
}

.city-wide-image {
    margin: 55px 0 0;
}

.city-wide-image img {
    display: block;
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 12px;
}

/* ÉCONOMIE */

.city-economy-feature,
.city-market-feature {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    background: var(--city-cream);
    border-radius: 12px;
}

.city-economy-feature__image img,
.city-market-feature__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.city-economy-feature__content,
.city-market-feature__content {
    padding: clamp(35px, 6vw, 70px);
}

.city-economy-feature__content h3,
.city-market-feature__content h3 {
    margin: 0 0 22px;
    color: var(--city-green-dark);
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.1;
}

.city-economy-feature__content p,
.city-market-feature__content p {
    margin: 0 0 20px;
    color: var(--city-grey);
    font-size: 16px;
    line-height: 1.8;
}

.city-economic-sectors {
    margin: 30px 0;
}

.city-economic-sectors span {
    color: var(--city-orange);
    font-size: 13px;
    font-weight: 800;
}

/* CONCLUSION */

.city-conclusion {
    padding: clamp(80px, 10vw, 135px) 0;
    color: var(--city-white);
    background:
        radial-gradient(
            circle at 80% 20%,
            rgb(255 255 255 / 10%),
            transparent 28%
        ),
        var(--city-green-dark);
    border-bottom: 8px solid var(--city-orange);
}

.city-conclusion__content {
    text-align: center;
}

.city-conclusion h2 {
    max-width: 850px;
    margin-inline: auto;
    color: var(--city-white);
}

.city-conclusion p:last-child {
    max-width: 760px;
    margin: 30px auto 0;
    color: rgb(255 255 255 / 78%);
    font-size: 18px;
    line-height: 1.8;
}

/* TABLETTE */

@media (max-width: 950px) {
    .city-introduction__grid,
    .city-content-grid,
    .city-section__header,
    .city-location-grid,
    .city-gallery-feature,
    .city-economy-feature,
    .city-market-feature {
        grid-template-columns: 1fr;
    }

    .city-content-grid--reverse .city-content-grid__text,
    .city-content-grid--reverse .city-content-grid__image {
        order: initial;
    }

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

    .city-statistics article:nth-child(2) {
        border-right: 0;
    }

    .city-population-grid {
        grid-template-columns: 1fr;
    }

    .city-culture-grid,
    .city-economic-sectors {
        grid-template-columns: 1fr;
    }
}

/* TÉLÉPHONE */

@media (max-width: 700px) {
    .city-container {
        width: min(91%, 1280px);
    }

    .city-hero {
        min-height: 620px;
    }

    .city-hero__content {
        padding-top: 100px;
        padding-bottom: 70px;
    }

    .city-hero h1 {
        font-size: clamp(43px, 14vw, 65px);
        overflow-wrap: anywhere;
    }

    .city-hero p:not(.city-eyebrow) {
        font-size: 16px;
    }

    .admin-bar .city-navigation {
        top: 46px;
    }

    .city-introduction {
        padding: 65px 0;
    }

    .city-introduction__grid {
        gap: 35px;
    }

    .city-statistics__grid {
        grid-template-columns: 1fr;
    }

    .city-statistics article {
        border-right: 0;
        border-bottom: 1px solid rgb(255 255 255 / 14%);
    }

    .city-section {
        padding: 65px 0;
    }

    .city-section__header {
        gap: 20px;
        margin-bottom: 35px;
    }

    .city-content-grid {
        gap: 35px;
    }

    .city-content-grid__image img {
        height: 380px;
    }

    .city-location-grid__image img,
    .city-gallery-feature > img,
    .city-wide-image img,
    .city-economy-feature__image img,
    .city-market-feature__image img {
        height: 380px;
        min-height: 0;
    }

    .city-border-list div {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .city-border-list strong {
        text-align: left;
    }

    .city-population-grid article {
        padding: 30px 22px;
    }

    .city-culture-grid article,
    .city-economic-sectors article {
        padding: 25px 22px;
    }

    .city-conclusion p:last-child {
        font-size: 16px;
    }
    .city-page h3,
.city-introduction__text h3 {
    margin-top: 28px;
    font-size: 20px;
}

.city-page ul,
.city-page ol,
.city-introduction__text ol,
.city-content-grid__text ul,
.city-content-grid__text ol {
    padding-left: 22px;
}

.city-page li,
.city-introduction__text ol li,
.city-content-grid__text li {
    font-size: 15px;
    line-height: 1.75;
}

.city-introduction__text ol li {
    padding-left: 4px;
}
}

@media (max-width: 700px) {
    .city-hero h1 {
        font-size: clamp(38px, 10.5vw, 48px);
        line-height: 0.98;
        letter-spacing: -0.04em;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }
}

@media (max-width: 380px) {
    .city-hero h1 {
        font-size: 36px;
    }
}