/* =========================================================
   TAG / VILLE - RESET LAYOUT SIMONE
   ========================================================= */

body.tag {
    background: #0f0f0f !important;
}

body.tag #secondary {
    display: none !important;
}

body.tag #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.tag .site-content {
    background: #0f0f0f !important;
    padding: 0 !important;
    max-width: 100% !important;
}

body.tag .site-main {
    padding: 0 !important;
    margin: 0 !important;
}


/* =========================================================
   TAG / VILLE - WRAPPER GLOBAL
   ========================================================= */

.tag-city-wrap {
    max-width: 100%;
    margin: 0;
    padding: 1rem 8px 3rem;
}


/* =========================================================
   TAG / VILLE - HERO / HEADER
   ========================================================= */

.tag-city-hero {
    max-width: 1150px;
    margin: 0 auto 2.5rem;
    padding: 2.4rem 3rem;
    background: #1a1a1a;
    border-radius: 14px;
    border-left: 5px solid #e8334a;
    text-align: center;
}

.tag-city-kicker {
    margin: 0 0 .7rem !important;
    color: #e8334a !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px !important;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tag-city-hero h1 {
    margin: 0 0 1rem;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.2rem, 3vw, 3.3rem);
    font-weight: 800;
    line-height: 1.2;
}

.tag-city-hero h1 span {
    color: #e8334a;
}


/* =========================================================
   TAG / VILLE - DESCRIPTION AVEC LIRE LA SUITE
   ========================================================= */

.tag-city-desc {
    max-width: 950px;
    margin: 0 auto;
    color: #d6d6d6;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
}

.tag-city-desc p {
    margin: 0 0 1rem;
}

.tag-city-desc p:last-child {
    margin-bottom: 0;
}

.tag-city-desc strong {
    color: #fff;
    font-weight: 800;
}

.tag-city-desc a {
    color: #e8334a;
    text-decoration: none;
    font-weight: 700;
}

.tag-city-desc a:hover {
    text-decoration: underline;
}

.tag-city-desc h2,
.tag-city-desc h3 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.3;
}

.tag-city-desc h2 {
    font-size: 1.6rem;
    margin: 1.4rem 0 .8rem;
}

.tag-city-desc h3 {
    font-size: 1.3rem;
    margin: 1.2rem 0 .6rem;
    color: #e8334a;
}

.tag-desc-toggle {
    display: none;
}

.tag-city-desc-collapsible {
    position: relative;
    max-height: 135px;
    overflow: hidden;
}

.tag-city-desc-collapsible::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 60px;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0),
        #1a1a1a
    );
}

.tag-desc-toggle:checked ~ .tag-city-desc-collapsible {
    max-height: none;
}

.tag-desc-toggle:checked ~ .tag-city-desc-collapsible::after {
    display: none;
}

.tag-desc-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: .9rem;
    padding: 8px 22px;
    background: #e8334a;
    color: #fff;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    transition: all .2s ease;
}

.tag-desc-more:hover {
    background: #ff4a60;
    transform: translateY(-1px);
}

.tag-desc-more-close {
    display: none;
}

.tag-desc-toggle:checked ~ .tag-desc-more .tag-desc-more-open {
    display: none;
}

.tag-desc-toggle:checked ~ .tag-desc-more .tag-desc-more-close {
    display: inline;
}


/* =========================================================
   TAG / VILLE - HEADER GRILLE
   ========================================================= */

.tag-city-header {
    text-align: center;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #222;
}

.tag-city-header h2 {
    margin: 0;
    color: #e8334a;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}


/* =========================================================
   TAG / VILLE - GRILLE PROFILS
   ========================================================= */

.tag-city-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

.tag-city-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #1a1a1a;
    border-radius: 10px;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.tag-city-card:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 40px rgba(232, 51, 74, .3);
}

.tag-city-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform .4s ease;
}

.tag-city-card:hover img {
    transform: scale(1.08);
}

.tag-city-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .88) 0%,
        rgba(0, 0, 0, .2) 50%,
        transparent 100%
    );
}

.tag-city-card-body {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1rem .9rem .9rem;
}

.tag-city-card-tag {
    display: inline-block;
    background: #e8334a;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 30px;
}

.tag-city-card-title {
    display: -webkit-box;
    overflow: hidden;
    margin: .45rem 0 0;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* =========================================================
   TAG / VILLE - PAGINATION
   ========================================================= */

.tag-city-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.tag-city-nav .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid #333;
    border-radius: 50%;
    color: #aaa;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    transition: all .2s;
}

.tag-city-nav .page-numbers:hover,
.tag-city-nav .page-numbers.current {
    background: #e8334a;
    border-color: #e8334a;
    color: #fff;
}

.tag-city-nav .page-numbers.prev,
.tag-city-nav .page-numbers.next {
    width: auto;
    padding: 0 16px;
    border-radius: 30px;
}


/* =========================================================
   TAG / VILLE - AUCUN PROFIL
   ========================================================= */

.tag-city-empty {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 14px;
    text-align: center;
}

.tag-city-empty h2 {
    margin: 0 0 .8rem;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
}

.tag-city-empty p {
    margin: 0;
    color: #d0d0d0;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   TAG / VILLE - RESPONSIVE TABLETTE
   ========================================================= */

@media (max-width: 1100px) {
    .tag-city-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =========================================================
   TAG / VILLE - RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 700px) {
    .tag-city-wrap {
        padding: 1rem 6px 3rem;
    }

    .tag-city-hero {
        padding: 1.6rem 1.2rem;
    }

    .tag-city-kicker {
        font-size: 11px !important;
        letter-spacing: 1.5px;
    }

    .tag-city-hero h1 {
        font-size: 1.85rem;
    }

    .tag-city-desc {
        font-size: 16px;
        line-height: 1.7;
    }

    .tag-city-desc-collapsible {
        max-height: 125px;
    }

    .tag-desc-more {
        font-size: 12px;
        padding: 7px 18px;
    }

    .tag-city-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tag-city-card-body {
        padding: .8rem .7rem .7rem;
    }

    .tag-city-card-title {
        font-size: .85rem;
    }

    .tag-city-card-tag {
        font-size: .62rem;
        padding: 3px 8px;
    }
}

@media (max-width: 420px) {
    .tag-city-grid {
        grid-template-columns: 1fr;
    }

    .tag-city-card-title {
        font-size: 1rem;
    }
}