/* ------------------------------ SECTION: articles.tpl - Page de liste des articles ------------------------------ */

/* Page title */
.shttrealisationPage__title {
    font-size: 2.75rem;
    line-height: 1.2em;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.shttrealisationPage__title span{
    font-weight: 300;
    color: var(--color-primary);
}

/* Page title */
.shttrealisationPage__subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2em;
    text-align: center;
    margin-bottom: 30px;
}

/* Categories navigation */
.shttrealisationList__categories {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
    width: 100%;
    flex-wrap: wrap;
}

.shttrealisationList__univers,
.shttrealisationList__category {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 40px;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--color-black);
    border: 1px solid var(--color-black);
    font-size: 1rem;
    line-height: 1.25rem;
    position: relative;
    border-radius: 50px;
}

.shttrealisationList__univers--active,
.shttrealisationList__category--active {
    color: var(--color-white) !important;
    border-color: var(--color-primary) !important;
    background-color: var(--color-primary) !important;
}

.shttrealisationList:not(.shttrealisationList--filter) .shttrealisationList__list .shttrealisationMinia--highlighted,
.shttrealisationList:not(.shttrealisationList--filter) .shttrealisationList__list .shttrealisationMinia--top {
    display: none;
}

/* Map functionality */
.shttrealisationList__gmWrapper {
    height: 700px;
    width: 100%;
    transition: 400ms ease;
}

.shttrealisationList__gmWrapper--hidden {
    height: 0;
}

.shttrealisationList__gm {
    height: 100%;
    width: 100%;
}

.shttrealisationList__stateMap {
    margin-bottom: 85px;
    width: 100%;
    padding-top: 8px;
}

.shttrealisationList__stateMapShow,
.shttrealisationList__stateMapHide {
    font-size: 0.875rem;
    line-height: 1.1875rem;
    color: var(--color-black);
    display: inline-block;
    cursor: pointer;
}

.shttrealisationList__gmWrapper--open + .shttrealisationList__stateMap .shttrealisationList__stateMapShow {
    display: none;
}

.shttrealisationList__gmWrapper--close + .shttrealisationList__stateMap .shttrealisationList__stateMapHide {
    display: none;
}

.shttrealisationList__gmWrapper--close {
    height: 0 !important;
}

/* Highlighted article section */
.shttrealisationHighlighted {
    width: 100%;
    margin-bottom: 60px;
}

.shttrealisationHighlighted a {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 30px;
}

.shttrealisationHighlighted .shttrealisationMinia__imgs {
    margin-bottom: 0;
    max-height: 600px;
}

.shttrealisationHighlighted .shttrealisationMinia__text{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Top articles section */
.shttrealisationTops {
    background: var(--color-white);
    box-shadow: 0 0 0 100vmax var(--color-white);
    clip-path: inset(0 -100vmax);
    padding: 40px 0;
    margin-bottom: 100px;
}

.shttrealisationTops h3 {
    font-size: 1.875rem;
    line-height: 2.1875rem;
    font-weight: 500;
    margin-bottom: 25px;
}

/* ------------------------------ SECTION: article.tpl - Page d'article individuel ------------------------------ */

#shtt-realisation-article #wrapper > .container{
    max-width: 1260px;
    width: 100%;
}

/* Main article container */
.shttrealisation {
    padding-top: 30px;
    margin-bottom: 30px;
}

.shttrealisation__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.shttrealisation__name {
    text-align: center;
    font-size: 2.5rem;
    line-height: 3.1875rem;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.shttrealisation__shortDescription {
    text-align: center;
    max-width: 690px;
    margin: 0 auto;
    font-size: 0.9375rem;
    line-height: 1.25rem;
    margin-bottom: 74px;
}

/* Article header */
.shttrealisation__header {
    margin-bottom: 40px;
}

.shttrealisation__articleData {
    color: var(--color-dark-grey);
    font-size: 0.875rem;
    line-height: 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
}

.shttrealisation__title {
    font-size: 2.25rem;
    line-height: 1.2em;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.shttrealisation__excerpt {
    margin-bottom: 0;
}

/* Article content */
.shttrealisation__imgs {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-bottom: 50px;
}

.shttrealisation__imgs img {
    width: 100%;
    aspect-ratio: 1140/480;
}

.shttrealisation__description {
    font-size: 0.9375rem;
    line-height: 1.875rem;
    margin-bottom: 32px;
}

.shttrealisation__acticleContent {
    font-size: 1rem;
    color: var(--color-black);
}

.shttrealisation__acticleContent * {
    color: var(--color-black) !important;
}

.shttrealisation__acticleContent a {
    color: var(--color-black) !important;
    text-decoration: underline !important;
}

.shttrealisation__acticleContent img {
    width: 100%;
    max-width: 80%;
    margin-inline: auto;
    display: block;
    height: auto;
}

.shttrealisation__contact {
    padding: 10px 12px;
    border: 1px solid var(--color-black);
    color: var(--color-black);
    font-size: 0.875rem;
    transition: 300ms ease;
    display: inline-block;
}

/* Products section */
.shttrealisation__products {
    margin-top: 100px;
}

.shttrealisation__productsTitle {
    font-size: 1.875rem;
    line-height: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}

.shttrealisation__productsList {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 20px;
}

/* Related articles section */
.shttrealisation__sameCategoryRealWrapper {
    padding: 40px 0 60px 0;
    background: var(--color-white);
    box-shadow: 0 0 0 100vmax var(--color-white);
    clip-path: inset(0 -100vmax);
    margin-top: 50px;
}

.shttrealisation__sameCategoryRealTitle {
    font-size: 1.5625rem;
    line-height: 1.875rem;
    max-width: 500px;
    text-align: left;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.shttrealisation__sameCategoryReals {
    grid-template-columns: repeat(3, 1fr);
}

.shttrealisation__sameCategoryReals h2.shttrealisationMinia__title {
    font-size: 1.25rem;
    line-height: 1.5625rem;
    width: 85%;
}

.shttrealisation__sameCategoryReals .shttrealisationMinia__description {
    display: none;
}

/* ------------------------------ SECTION: articleMinia.tpl - Miniature d'article ------------------------------ */

/* Article miniature container */
.shttrealisationMinia {
    width: 100%;
}

.shttrealisationMinia--hidden,
.shttrealisationHighlighted--hidden,
.shttrealisationTops--hidden {
    display: none;
}

/* Article miniature image */
.shttrealisationMinia__imgs {
    width: 100%;
    margin-bottom: 18px;
    position: relative;
}

.shttrealisationMinia__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    aspect-ratio: 535/355;
}

/* Article miniature content */
.shttrealisationMinia__category {
    font-size: 0.875rem;
    line-height: 1.1875rem;
    margin-bottom: 12px;
    display: block;
    color: var(--color-black);
}

.shttrealisationMinia__date {
    color: var(--color-dark-grey);
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.shttrealisationMinia__title {
    font-size: 24px;
    line-height: 28px;
    font-weight: bold;
    color: var(--color-black) !important;
    margin-bottom: 16px !important;
    text-transform: uppercase;
}

.shttrealisationMinia__description {
    font-size: 1rem !important;
    line-height: 1.25rem !important;
    color: var(--color-black);
    margin-bottom: 0px !important;
}

.shttrealisationMinia__link {
    font-size: 0.9375rem;
    line-height: 1.1875rem;
    color: var(--color-black);
}

.shttrealisationMinia__highlightIndication {
    color: var(--color-primary);
    margin-bottom: 18px;
    display: block;
    font-size: 1.25rem;
    font-weight: bold;
}

/* ------------------------------ SECTION: lastrealisationArticle.tpl - Derniers articles ------------------------------ */

.shttLastArticles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.shttLastArticles .shttrealisationMinia  {
    background-color: #fff;
}

.shttLastArticles .shttrealisationMinia .shttrealisationMinia__content{
    padding: 8px 25px 15px 25px;
}

@media (max-width: 768px) {
    .shttLastArticles .shttrealisationMinia .shttrealisationMinia__content{
        padding: 8px 20px 15px 20px;
    }
}

/* ------------------------------ SECTION: productRelatedArticle.tpl - Articles liés aux produits ------------------------------ */

.shttProductRelatedArticles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 20px;
}


/* ------------------------------ MEDIA QUERIES - TABLET (max-width: 1600px) ------------------------------ */
@media (max-width: 1600px) {
    .shttrealisationMinia__title {
        font-size: 22px;
        line-height: 26px;
    }
    .shttrealisationPage__title {
        font-size: 2.1875rem;
    }
}

/* ------------------------------ MEDIA QUERIES - TABLET (max-width: 1200px) ------------------------------ */
@media (max-width: 1200px) {
    /* articles.tpl */
    .shttrealisationList__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 30px;
    }
    
    .shttrealisationTops__articles {
        grid-template-columns: repeat(2, 1fr);
    }
    .shttrealisationMinia__title {
        font-size: 20px;
        line-height: 24px;
    }
}

/* ------------------------------ MEDIA QUERIES - DESKTOP HOVER (min-width: 993px) ------------------------------ */
@media (min-width: 993px) {
    /* article.tpl */
    .shttrealisation__contact:hover {
        color: white;
        background-color: var(--color-black);
    }
    
    /* articles.tpl */
    .shttrealisationList__univers:hover,
    .shttrealisationList__category:hover {
        color: var(--color-white);
        border-color: var(--color-primary);
        background-color: var(--color-primary);
    }
    
    /* articleMinia.tpl - highlighted */
    .shttrealisationHighlighted p.shttrealisationMinia__description {
        font-size: 1.0625rem;
        line-height: 1.5rem;
    }

    .shttrealisationHighlighted h2.shttrealisationMinia__title {
        font-size: 1.5625rem;
        line-height: 1.875rem;
    }

    .shttrealisationHighlighted p.shttrealisationMinia__date {
        font-size: 1rem;
    }
}

/* ------------------------------ MEDIA QUERIES - TABLET (max-width: 992px) ------------------------------ */
@media (max-width: 992px) {
    /* articles.tpl */
    .shttrealisationList__categories {
        gap: 35px;
    }
    
    .shttrealisationPage__title {
        font-size: 1.625rem;
    }
    
    .shttrealisationHighlighted {
        margin-bottom: 40px;
    }
    
    .shttrealisationTops h3 {
        font-size: 1.375rem;
        line-height: 1.625rem;
        margin-bottom: 20px;
    }
    
    .shttrealisationTops__articles .shttrealisationMinia:nth-child(3),
    .shttrealisation__sameCategoryReals .shttrealisationMinia:nth-child(3) {
        display: none;
    }
    
    .shttrealisationTops {
        margin-bottom: 40px;
    }
    
    /* article.tpl */
    .shttrealisation__shortDescription {
        font-size: 1rem;
        line-height: 1.375rem;
    }
    
    .shttrealisation__name {
        font-size: 1.875rem;
        line-height: 2.5rem;
    }
    
    .shttrealisation__title {
        font-size: 1.625rem;
        line-height: 1.25rem;
    }
    
    .shttrealisation__header {
        margin-bottom: 20px;
    }
    
    .shttrealisation__imgs {
        margin-bottom: 30px;
    }
    
    .shttrealisation__productsTitle {
        font-size: 1.25rem;
        line-height: 1.5rem;
        margin-bottom: 20px;
    }
    
    .shttrealisation__productsList {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* articleMinia.tpl */
    .shttrealisationMinia__title {
        font-size: 1.125rem;
        line-height: 1.4375rem;
    }

    .shttrealisationMinia__description {
        font-size: 0.875rem;
        line-height: 1.125rem;
    }
    
    /* lastrealisationArticle.tpl */
    .shttLastArticles {
        grid-template-columns: 1fr;
    }
    
    /* productRelatedArticle.tpl */
    .shttProductRelatedArticles {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* ------------------------------ MEDIA QUERIES - MOBILE (max-width: 767px) ------------------------------ */
@media (max-width: 767px) {
    /* articles.tpl */    
    .shttrealisationList__list {
        grid-template-columns: 1fr;
    }
    
    .shttrealisationList__categories {
        width: 100vw;
        transform: translateX(-20px);
        padding-inline: 20px;
    }
    
    .shttrealisationHighlighted a {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .shttrealisationTops__articles {
        grid-template-columns: 1fr;
    }
    
    .shttrealisationTops__articles .shttrealisationMinia:nth-child(3),
    .shttrealisation__sameCategoryReals .shttrealisationMinia:nth-child(3) {
        display: block;
    }
    
    /* article.tpl */
    .shttrealisation {
        padding-top: 0;
    }
    
    .shttrealisation__sameCategoryReals {
        grid-template-columns: 1fr;
    }
    
    .shttrealisation__acticleContent {
        font-size: 0.9375rem;
    }
    
    .shttrealisation__acticleContent img {
        max-width: 100%;
    }
    
    .shttrealisation__productsList {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    
    /* articleMinia.tpl */
    .shttrealisationMinia__highlightIndication {
        color: var(--color-black);
        margin-bottom: 10px;
        display: block;
        font-size: 1rem;
        font-weight: bold;
        padding-top: 0;
    }
    
    /* productRelatedArticle.tpl */
    .shttProductRelatedArticles {
        display: grid;
        grid-template-columns: 1fr;
        gap: 45px;
    }
}

/* ------------------------------ MEDIA QUERIES - TOUCH DEVICES ------------------------------ */
@media (max-width: 767px) {
    .shttrealisationList__categories {
        flex-wrap: nowrap;
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
        justify-content: flex-start;
        gap: 20px;
        margin-bottom: 35px;
        overflow-x: scroll;
    }
    
    .shttrealisationList__categories::-webkit-scrollbar {
        display: none;
    }
}

/* ------------------------------ AJAX PAGINATION & LOADING STYLES ------------------------------ */

/* Pagination Container */
.shttrealisationPagination {
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
}

/* Pagination Wrapper */
.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Pagination Numbers Container */
.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Pagination Buttons */
.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--color-black);
    background: white;
    color: var(--color-black);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.pagination-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    font-weight: 600;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Previous/Next buttons */
.pagination-prev,
.pagination-next {
    padding: 8px 20px;
    font-weight: 600;
}

/* Pagination Dots */
.pagination-dots {
    padding: 0 8px;
    color: var(--color-black);
    font-weight: 600;
}

/* Pagination Info */
.pagination-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Loading State */
.shttrealisationList__list.is-loading {
    position: relative;
    min-height: 400px;
    opacity: 0.5;
    pointer-events: none;
}

.shttrealisationLoading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

/* Loading Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsiveness for Pagination */
@media (max-width: 767px) {
    .shttrealisationPagination {
        margin: 30px auto;
    }

    .pagination-wrapper {
        gap: 5px;
    }

    .pagination-btn {
        min-width: 35px;
        height: 35px;
        padding: 6px 12px;
        font-size: 13px;
    }

    .pagination-prev,
    .pagination-next {
        padding: 6px 15px;
        font-size: 12px;
    }

    .pagination-numbers {
        gap: 5px;
    }

    .pagination-info {
        font-size: 13px;
    }
}