/*
BANNERS
BLOCKQUOTE
EVENTS
FAQ
FLIPBOOK
HIGHLIGHTS
HIGHLIGHTS PAGES
INTRO
JOBS
MAP
MARQUEE
SITES
STATS
TEAM
TEXTS
*/

.card {
    border-radius: var(--rad-s);
    box-shadow: var(--shadow);
    background-color: var(--color-light);
    padding: 20px;
}

/*********************************************************
**********************************************************
********************** BANNERS ***************************
**********************************************************
*********************************************************/
.banner .row {
    align-items: center;
    justify-content: space-between;
    color: var(--color-light);
    border-radius: var(--rad-s);
    overflow: hidden;
    padding: var(--gap-s);
}

.banner--classic .row {
    background-color: var(--color-secondary);
}

.banner__img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner__img img {
    object-fit: cover;
    height: 100%;
}

.banner__img__filter {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.7;
}

.banner__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1;
}

.banner .title--section::after {
    display: none;
}

.banner__aside {
    z-index: 1;
}

.banner .banner--photo {
    padding-top: var(--gap-xl);
}

@media screen and (max-width: 767px) {
    .banner .row {
        flex-direction: column;
        gap: var(--gap-s);
    }
}

@media screen and (min-width: 768px) {
    .banner .row {
        padding: var(--gap-m);
    }

    .banner__content {
        max-width: 75%;
    }

    .banner .banner--photo {
        align-items: flex-end;
    }
}


/*********************************************************
**********************************************************
********************** BLOCKQUOTE ************************
**********************************************************
*********************************************************/
.blockquote {
    position: relative;
    font-style: italic;
    padding: 0 1.5rem;
}

.blockquote::before {
    content: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%23ffffff'><path d='M9.983 3v7.391C9.983 16.095 6.252 19.961 1 21l-.995-2.151C2.437 17.932 4 15.211 4 13H0V3h9.983zM24 3v7.391c0 5.704-3.748 9.571-9 10.609l-.996-2.151C16.437 17.932 18 15.211 18 13h-3.983V3H24z'/></svg>");
    position: absolute;
    top: 0;
    left: 0;
    font-weight: bold;
}

.blockquote::after {
    position: absolute;
    content: "";
    left: 5px;
    top: 25px;
    width: 1px;
    height: calc(100% - 20px);
    background-color: var(--color-light);
}

/*********************************************************
**********************************************************
*********************** EVENTS ***************************
**********************************************************
*********************************************************/
.events .row {
    justify-content: space-between;
}

.events__content {
    display: flex;
    gap: var(--gap-s);
    flex-wrap: wrap;
}

.event__item {
    display: flex;
    padding: 0;
    flex: 1 1 100%;
}

.event__item.stats__item {
    flex: 1 1 100%;
}

@media screen and (min-width: 768px) {
    .events__content {
        gap: var(--radius);
    }

    .event__item.stats__item {
        flex: 0 0 calc((100% - var(--radius)) / 2);
    }
}

@media screen and (min-width: 1024px) {
    .event__item.stats__item {
        flex: 0 0 calc((100% - (var(--radius) * 2)) / 3);
    }
}

.event__item__aside {
    padding: var(--radius) var(--radius);
    border: 3px solid var(--color-secondary);
    border-radius: var(--rad-s) 0 0 var(--rad-s);
}

#agenda-events time,
.events time,
.event__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: var(--title-m);
    line-height: 1;
}

.event__date__picto {
    width: 20px;
    height: 20px;
}

.event__month {
    text-transform: uppercase;
}

.event__item__content {
    width: 100%;
    border: 1px solid var(--color-secondary);
    border-radius: 0 var(--rad-s) var(--rad-s) 0;
    padding: var(--gap-s);
}

.event__title {
    font-size: var(--base);
    margin-top: 10px;
    margin-bottom: 20px;
}

.events__content path {
    fill: none;
}

.event__address {
    display: flex;
    align-items: center;
    gap: 5px;
}

.event__address svg {
    width: 15px;
}

.event__item__term {
    font-size: calc(var(--base) - 1px);
    font-weight: 700;
}

.events .link {
    margin-top: 10px;
    margin-bottom: 10px;
}

/*********************************************************
**********************************************************
************************ FAQ *****************************
**********************************************************
*********************************************************/
.faq__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq__img img {
    object-fit: contain;
    max-height: 500px;
}

.faq__item {
    border-radius: var(--rad-s);
    box-shadow: var(--shadow);
    background-color: var(--color-light);
    padding: var(--gap-s);
    margin-bottom: var(--gap-s);
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion .bold {
    font-size: var(--title-m);
    width: calc(100% - 60px);
}

.accordion {
    cursor: pointer;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq__item .panel {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: grid-template-rows;
    padding-top: 0;
    padding-bottom: 0;
    max-height: 0;
}

.faq__item.active .panel {
    grid-template-rows: 1fr;
    padding-top: var(--gap-s);
    padding-bottom: var(--gap-s);
    max-height: 100%;
}

.faq__item.active .panel {
    grid-template-rows: 1fr;
}

.faq__item .panel>* {
    overflow: hidden;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.faq__item.active .panel>* {
    opacity: 1;
}

.faq__item .panel ul {
    list-style-type: disc;
    padding-left: 18px;
}

.faq__item .panel li {
    list-style-type: disc;
}

.accordion__toggle {
    position: relative;
    transition: all 0.3s ease;
}

.faq__item .panel a {
    text-decoration: underline;
    color: var(--color-primary);
}

.accordion__toggle::before,
.accordion__toggle::after {
    content: '';
    position: absolute;
    background-color: var(--color-light);
    transition: all 0.3s ease;
}

.accordion__toggle::before {
    top: 50%;
    left: 50%;
    width: 15px;
    height: 1px;
    transform: translate(-50%, -50%);
}

.accordion__toggle::after {
    top: 50%;
    left: 50%;
    width: 1px;
    height: 15px;
    transform: translate(-50%, -50%);
}

body .btn.accordion__toggle:hover,
.faq__item.active .accordion__toggle {
    background: var(--color-light);
}

.accordion__toggle:hover::before,
.faq__item.active .accordion__toggle::before {
    background: var(--color-secondary);
    left: 50%;
}

.accordion__toggle:hover::after,
.faq__item.active .accordion__toggle::after {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.faq__item.active {
    border: 2px solid var(--color-secondary);
}

.faq__content--custom .faq__item {
    padding: var(--radius) var(--gap-m);
}

.accordion__toggle--img {
    color: var(--color-primary);
}

.accordion__toggle--img svg {
    transform: rotate(90deg);
    transition: all .3s ease;
    width: 20px;
    height: 20px;
}

.faq__img img {
    border-radius: var(--radius);
}

.faq__item.active .accordion__toggle--img svg {
    transform: rotate(270deg);
}

.faq__content--custom .faq__item.active {
    border: 2px solid var(--color-primary);
}

/* FAQ Question avec icône */
.faq__question-text {
    display: flex;
    align-items: center;
    gap: var(--gap-s);
}

.faq__icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

@media screen and (min-width: 768px) {
    .faq__icon {
        width: 40px;
        height: 40px;
    }
}

@media screen and (min-width: 768px) {
    .accordion__toggle--img svg {
        width: 28px;
        height: 28px;
    }
}


@media screen and (min-width: 1024px) {
    .faq__content--custom {
        display: flex;
        gap: var(--gap-l);
    }

}

/*********************************************************
**********************************************************
******************** FLIPBOOK ****************************
**********************************************************
*********************************************************/
.flip__content {
    width: 100%;
    height: 100%;
}

/*********************************************************
**********************************************************
******************** HIGHLIGHTS **************************
**********************************************************
*********************************************************/
.home .highlights {
    margin-top: -40px;
}

.highlights .row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.highlights__item {
    flex: 1;
    background-color: rgba(255, 255, 255, 1);
}

.highlights svg path {
    fill: none;
}

.highlights__item__text,
.highlights__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.highlights__item__tag {
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.highlights__item__content {
    display: flex;
    gap: var(--radius);
}

.highlights__item__image {
    width: 150px;
}

.highlights__item__image img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.highlights__item__excerpt {
    color: var(--color-dark);
}

.highlights__item__categories {
    display: flex;
    gap: 10px;
}

.hightlights__item__tag {
    display: flex;
    gap: 5px;
    line-height: 1;
    align-items: center;
    text-transform: uppercase;
}

@media screen and (max-width: 767px) {
    .highlights .row {
        flex-direction: column;
    }

    .highlights__item {
        flex: none;
        width: 100%;
    }

    .highlights__item__excerpt {
        display: none;
    }
}

@media screen and (min-width: 768px) {
    .highlights__item {
        flex: 0 0 calc((100% - 60px) / 3);
    }

    .home .highlights {
        margin-top: -160px;
    }
}

/*********************************************************
**********************************************************
******************** HIGHLIGHTS PAGES ********************
**********************************************************
*********************************************************/
.high-pages__block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--radius);
}

.high-pages__item {
    position: relative;
    flex: 1 1 100%;
    padding: calc(var(--gap-s) * 2) var(--gap-s);
}


.high-pages__content {
    max-width: 90%;
}

.high-pages__title {
    margin: calc(var(--gap-s) /2) 0;
}

.hp--simple .high-pages__title {
    font-size: var(--base);
    font-weight: 500;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
}

.hp--full .high-pages__icon {
    width: 30px;
}

.hp--simple .high-pages__icon img {
    margin: auto;
    width: 70px;
    box-shadow: var(--shadow);
    border-radius: 50%;
}

.high-pages__excerpt {
    font-size: calc(var(--base) - 2px);
    color: var(--color-dark);
}

.dot__link {
    position: absolute;
    bottom: calc(var(--gap-s) / 2);
    right: calc(var(--gap-s) / 2);
    z-index: 1;
}

.dot__link svg {
    color: var(--color-light);
}

.dot__link svg path {
    fill: inherit;
}

@media screen and (min-width: 540px) {
    .high-pages__item {
        flex: 0 0 calc((100% - var(--radius)) / 2);
    }
}

@media screen and (min-width: 768px) {
    .high-pages__item {
        flex: 0 0 calc((100% - (var(--radius) * 2)) / 3);
    }
}

@media screen and (min-width: 1024px) {
    .hp--simple .high-pages__item {
        flex: 0 0 calc((100% - (var(--radius) * 3)) / 4);
    }
}

@media screen and (min-width: 1280px) {
    .hp--simple .high-pages__item {
        flex: 0 0 calc((100% - (var(--radius) * 4)) / 5);
    }
}

@media screen and (min-width: 1440px) {
    .hp--simple .high-pages__item {
        flex: 0 0 calc((100% - (var(--radius) * 5)) / 6);
    }
}

/*********************************************************
**********************************************************
*********************** INTRO ****************************
**********************************************************
*********************************************************/
.intro {
    position: relative;
    background-color: #e4e7eb;
    height: 50vh;
}

body .intro--small {
    height: 40vh;
}

.intro__bg {
    height: 100%;
    display: flex;
    justify-content: flex-end;
}

.intro__bg img {
    height: 100%;
    object-fit: cover;
}

/* .home .intro__bg img {
    width: 40%;
    max-width: 768px;
    min-width: 300px;
} */

.intro__content {
    position: absolute;
    top: 50%;
    left: 3%;
    transform: translateY(-50%);
    min-width: 300px;
    gap: var(--gap-s);
}

.intro__edit {
    padding: var(--gap-s);
}

.intro__title>span:nth-child(2) {
    font-weight: 300;
    font-size: var(--title-l);
}

@media screen and (max-width: 767px) {
    .intro__edit {
        display: none;
    }
}

@media screen and (min-width: 768px) {
    .intro {
        height: calc(100vh - 150px);
        margin-top: 120px;
    }

    .category .intro {
        height: calc(50vh - 150px);
    }

    .intro__content {
        max-width: 55%;
    }
}

/*********************************************************
**********************************************************
*********************** JOBS ****************************
**********************************************************
*********************************************************/
.jobs {
    padding: var(--gap-s) 0;
}

#job_listing {
    padding-top: var(--gap-s);
}

/* Conteneur grille responsive pour les offres d'emploi */
.posts1_bloc {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-s);
    width: 100%;
    position: relative;
}

/* Tablette : 2 colonnes */
@media (max-width: 1024px) {
    .posts1_bloc {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile : 1 colonne */
@media (max-width: 768px) {
    .posts1_bloc {
        grid-template-columns: 1fr;
    }
}

/* Loader centré dans la grille */
#job_loader {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--gap-m) 0;
}

.posts1_bloc_elem {
    margin: 0;
    padding: var(--gap-s);
    background-color: var(--color-light);
    border-radius: var(--rad-s);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-dark);
    display: flex;
    flex-direction: column;
    gap: var(--gap-s);
    justify-content: space-between;
    text-align: center;
    text-transform: uppercase;
}

.posts1_bloc_elem:hover .posts1_bloc_subtitle,
.posts1_bloc_elem:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}



/* ========================================
   MAP INTERACTIVE
   ======================================== */

.map__container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.map__image {
    max-width: 100%;
    height: auto;
    display: block;
}

.map__content {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: auto;
}

.map__image {
    max-width: 100%;
    height: auto;
    display: block;
    transform: scale(.9);
    opacity: 0;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.map__image.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Modal Popup */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.map-modal.show {
    opacity: 1;
    visibility: visible;
}

.map-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.map-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--color-light);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.map-modal.show .map-modal__content {
    transform: translate(-50%, -50%) scale(1);
}

.map-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--color-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.map-modal__close:hover {
    background: var(--color-primary);
    color: var(--color-light);
    transform: scale(1.1);
}

.map-modal__close svg {
    width: 20px;
    height: 20px;
}

.map-modal__header {
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.map-modal__header h3 {
    margin: 0;
    color: var(--color-primary);
    font-size: var(--title-l);
    font-weight: 600;
}

.map-modal__body {
    padding: 20px 30px 30px 30px;
}

.map-modal__body p {
    margin: 0;
    color: var(--color-dark);
    line-height: 1.6;
    font-size: var(--base);
}

/* Navigation entre villes */
.map-modal__navigation {
    padding: 0 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}


.cities-list__items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.city-actions {
    margin-top: var(--rad-s);
    text-align: center;
}

.city-actions a,
.city-item {
    background: none;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--base);
    font-weight: 500;
}

.city-actions a:hover,
.city-item:hover {
    background: var(--color-primary);
    color: var(--color-light);
}

.city-item.active {
    background: var(--color-primary);
    color: var(--color-light);
}

/* Contenu des villes */
.city-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.city-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Drapeaux des pays */
.country-flag {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-flag-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.city-title {
    margin: 0 0 15px 0;
    color: var(--color-primary);
    font-size: var(--title-m);
    font-weight: 600;
}

.city-description {
    margin-bottom: 20px;
    color: var(--color-dark);
    line-height: 1.6;
    font-size: var(--base);
}

.city-info {
    margin-bottom: 10px;
    color: var(--color-dark);
    line-height: 1.6;
    font-size: var(--base);
}

.city-info a {
    color: var(--color-primary);
    text-decoration: none;
}

.city-info a:hover {
    text-decoration: underline;
}

/* Loader */
.loader {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-primary);
    font-size: var(--base);
}

@media screen and (max-width: 767px) {
    .map-modal__content {
        width: 95%;
        max-width: 95%;
    }

    .map-modal__header {
        padding: 25px 25px 15px 25px;
    }

    .map-modal__header h3 {
        font-size: var(--title-m);
    }

    .map-modal__navigation {
        padding: 0 25px;
    }

    .cities-list__items {
        gap: 8px;
    }

    .city-item {
        padding: 6px 12px;
        font-size: var(--base-s);
    }

    .map-modal__body {
        padding: 15px 25px 25px 25px;
    }

    .city-image {
        height: 150px;
    }

    .country-flag {
        width: 32px;
        height: 24px;
        top: 8px;
        right: 8px;
    }

    .map-modal__close {
        top: 10px;
        right: 10px;
        padding: 6px;
    }

    .map-modal__close svg {
        width: 18px;
        height: 18px;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.map-modal.show .map-modal__content {
    animation: modalSlideIn 0.3s ease-out;
}

/*********************************************************
**********************************************************
*********************** PRODUIT ****************************
**********************************************************
*********************************************************/
.produit {
    padding: var(--gap-l) 0;
}

.produit__content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--gap-l);
    align-items: start;
    margin-top: var(--gap-l);
}

/* Colonne de gauche */
.produit__content__left {
    display: flex;
    flex-direction: column;
    gap: var(--gap-m);
    justify-self: end;
    text-align: right;
    padding-right: var(--gap-m);
}

/* Colonne centrale avec la photo */
.produit__content__center {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 600px;
}

.produit__photo {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    overflow: hidden;
}

.produit__photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Colonne de droite */
.produit__content__right {
    display: flex;
    flex-direction: column;
    gap: var(--gap-m);
    justify-self: start;
    text-align: left;
    padding-left: var(--gap-m);
}

/* Éléments individuels */
.produit__element {
    display: flex;
    align-items: center;
    gap: var(--gap-s);
    max-width: 300px;
}

.produit__element__picto {
    width: 80px;
    height: 80px;
}

.produit__element__picto img {
    height: 100%;
    object-fit: cover;
}

/* Texte */
.produit__element__text {
    font-size: var(--base);
    line-height: 1.5;
    color: var(--color-dark);
    max-width: 200px;
}

.produit__content__left .produit__element__text {
    text-align: right;
}

.produit__content__right .produit__element__text {
    text-align: left;
}

.product__link {
    margin-top: var(--gap-l);
    text-align: center;
}

@media screen and (min-width: 768px) {
    .produit__content__left .produit__element {
        flex-direction: row-reverse;
    }

    .produit__content__left,
    .produit__content__right {
        justify-content: space-around;
        height: 100%;

    }
}

@media screen and (max-width: 767px) {

    .produit__content {
        gap: var(--gap-s);
    }

    .produit__content__left,
    .produit__content__right {
        gap: var(--gap-s);
    }

    .produit__element {
        gap: var(--gap-xs);
    }

    .produit__element__picto {
        padding: var(--gap-xs);
    }

    .produit__content {
        grid-template-columns: 1fr;
        gap: var(--gap-m);
    }

    .produit__content__left,
    .produit__content__right {
        justify-self: center;
        text-align: center;
        padding: 0;
        max-width: 600px;
    }

    .produit__content__left .produit__element,
    .produit__content__right .produit__element {
        align-items: center;
        flex-direction: column;
    }

    .produit__content__left .produit__element__text,
    .produit__content__right .produit__element__text {
        text-align: center;
    }

    .produit__content__center {
        order: -1;
        min-width: auto;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

.produit__element {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.produit__content__left .produit__element {
    animation-delay: calc(var(--animation-delay, 0) * 0.1s);
}

.produit__content__right .produit__element {
    animation-delay: calc(var(--animation-delay, 0) * 0.1s + 0.3s);
}

.produit__photo {
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 0.8s ease forwards 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   ACCESSIBILITÉ
   ======================================== */

.produit__element__picto[aria-hidden="true"] {
    display: none;
}

.produit__element__text:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/*********************************************************
**********************************************************
*********************** MARQUEE ****************************
**********************************************************
*********************************************************/
.marquee {
    width: 100%;
    overflow: hidden;
    padding: var(--gap-s) 0;
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: marqueeScroll var(--marquee-speed, 16s) linear infinite;
}

.marquee__content {
    display: flex;
    gap: var(--gap-m);
    padding-right: var(--gap-m);
}

.infobloc-slide {
    flex-shrink: 0;
}

.infobloc-slide-text {
    font-size: calc(var(--title-xl) + 10px);
    line-height: 1;
    font-weight: 800;
    color: transparent;
    text-transform: uppercase;
    white-space: nowrap;
    -webkit-text-stroke: 2px var(--color-primary);
    transition: color 0.2s ease;
}

.infobloc-slide:hover .infobloc-slide-text {
    color: var(--color-primary);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}



/*********************************************************
**********************************************************
*********************** SITES ****************************
**********************************************************
*********************************************************/
.sites__block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--radius);
}

.sites__item {
    flex: 1 1 100%;
    border-radius: var(--rad-s);
    box-shadow: var(--shadow);
    background-color: var(--color-light);
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    min-height: 250px;
}

.sites__thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sites__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sites__thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-primary);
    opacity: 0.7;
}

.sites__item:hover .sites__thumbnail img {
    transform: scale(1.05);
}

.sites__content {
    position: relative;
    z-index: 1;
    padding: calc(var(--gap-s) * 2) var(--gap-s);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sites__icon svg path {
    fill: none;
}

.sites__title {
    font-size: var(--title-m);
    max-width: 90%;
    text-transform: uppercase;
}

.sites__link {
    position: absolute;
    z-index: 2;
    bottom: var(--gap-s);
    right: var(--gap-s);
}

.sites__link svg {
    color: var(--color-light);
}

.sites__link svg path {
    fill: inherit;
}

@media screen and (min-width: 540px) {
    .sites__item {
        flex: 0 0 calc((100% - var(--radius)) / 2);
    }
}

@media screen and (min-width: 768px) {
    .sites__item {
        flex: 0 0 calc((100% - (var(--radius) * 2)) / 3);
    }
}


@media screen and (max-width: 1023px) {
    .sites__item {
        padding: var(--gap-s) 0 calc(var(--gap-s) + 10px);
    }
}

/*********************************************************
**********************************************************
*********************** STATS ****************************
**********************************************************
*********************************************************/
.stats__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--radius);
}

.stats__item {
    flex: 1 1 100%;
}

@media screen and (min-width: 540px) {
    .stats__item {
        flex: 0 0 calc((100% - var(--radius)) / 2);
    }
}

@media screen and (min-width: 768px) {
    .stats__item {
        flex: 0 0 calc((100% - (var(--radius) * 2)) / 3);
    }
}

@media screen and (min-width: 1280px) {
    .stats__item {
        flex: 0 0 calc((100% - (var(--radius) * 4)) / 5);
    }

    .stats--4 .stats__item {
        flex: 0 0 calc((100% - (var(--radius) * 3)) / 4);
    }
}

.stats__item__content {
    height: 100%;
    gap: var(--gap-s);
}

.stats__item__content__img {
    max-width: 150px;
}

.stats__item__num {
    font-size: var(--title-nb);
    font-weight: 700;
}

.stats__item__title {
    font-size: var(--title-m);
}

.stats__item__subtitle {
    color: var(--color-dark);
}

/*********************************************************
**********************************************************
********************** TABLE *****************************
**********************************************************
*********************************************************/
.acf-custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
    table-layout: auto;
}

.acf-custom-table th,
.acf-custom-table td {
    padding: 10px;
    text-align: center;
}

.acf-table-header-row {
    border: 2px solid var(--color-secondary);
    border-radius: var(--rad-s);
    font-size: var(--title-btn);
}

.acf-table-row-title td {
    background-color: #f5f5f5;
}

.acf-table-row-normal td {
    background-color: #ffffff;
}

.acf-table-row-title td {
    text-transform: uppercase;
}

.acf-custom-table .acf-cell-0,
.acf-custom-table .acf-header-cell-0 {
    text-align: left;
}

@media screen and (max-width: 768px) {

    .acf-custom-table td,
    .acf-custom-table th {
        padding: 8px;
    }

    .acf-custom-table tr td:nth-child(n+3),
    .acf-custom-table tr th:nth-child(n+3) {
        display: none;
    }

    .acf-custom-table .acf-cell-0,
    .acf-custom-table .acf-header-cell-0 {
        text-align: left;
    }
}

/*********************************************************
**********************************************************
*********************** TABLE TECH **********************
**********************************************************
*********************************************************/
.tableau-technique {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.tableau-technique th,
.tableau-technique td {
    padding: var(--gap-s);
    vertical-align: top;
    word-wrap: break-word;
}

.tableau-technique th {
    text-align: center;
    color: var(--color-primary);
}

.tableau-technique th.col-1 {
    text-align: left;
}

.tableau-technique.colonnes-2 th,
.tableau-technique.colonnes-2 td {
    width: 50%;
}

.tableau-technique.colonnes-3 th,
.tableau-technique.colonnes-3 td {
    width: 33.3333%;
}

.tableau-technique.colonnes-4 th,
.tableau-technique.colonnes-4 td {
    width: 25%;
}

.tableau-technique.colonnes-5 th,
.tableau-technique.colonnes-5 td {
    width: 20%;
}

.tableau-technique.colonnes-6 th,
.tableau-technique.colonnes-6 td {
    width: 16.6666%;
}

/* Lignes alternées */
.tableau-technique tr:nth-child(odd) td {
    background-color: rgba(240, 240, 240, 0.8);
}

/* Dernière ligne en orange */
.tableau-technique tr.last-row td {
    font-weight: 600;
}

.tableau-technique__link {
    text-align: center;
    margin-top: var(--gap-s);
}

/* Tech Popup */
.tech-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tech-popup.show {
    opacity: 1;
    visibility: visible;
}

.tech-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.tech-popup__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--color-light);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 80vw;
    max-height: 90vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    padding: var(--gap-m);
}

.tech-popup.show .tech-popup__content {
    transform: translate(-50%, -50%) scale(1);
    animation: techPopupSlideIn 0.3s ease-out;
}

.tech-popup ul {
    list-style-type: disc;
}

@keyframes techPopupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.tech-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--color-dark);
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.tech-popup__close:hover {
    background: var(--color-primary);
    color: var(--color-light);
    transform: scale(1.1);
}

.tech-popup__close svg {
    width: 24px;
    height: 24px;
}

.tech-popup__title {
    text-align: center;
    font-size: var(--title-l);
    color: var(--color-primary);
    margin-bottom: var(--gap-m);
    padding-right: 40px;
}

.tech-popup__body {
    display: flex;
    gap: var(--gap-m);
    align-items: flex-start;
}

.tech-popup__photo {
    flex: 0 0 40%;
    max-width: 40%;
}

.tech-popup__photo img {
    width: 100%;
    height: auto;
    border-radius: var(--rad-s);
    object-fit: cover;
}

.tech-popup__editor {
    flex: 1;
    color: var(--color-dark);
    line-height: 1.6;
}

.tech-popup__editor p {
    margin-bottom: 1em;
}

.tech-popup__editor p:last-child {
    margin-bottom: 0;
}

.tech-popup__editor ul,
.tech-popup__editor ol {
    margin-left: 18px;
    margin-bottom: 1em;
}

.tech-popup__editor a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Responsive Tech Popup */
@media screen and (max-width: 767px) {
    .tech-popup__content {
        width: 95%;
        max-width: 95%;
        padding: var(--gap-s);
    }

    .tech-popup__title {
        font-size: var(--title-m);
        margin-bottom: var(--gap-s);
    }

    .tech-popup__body {
        flex-direction: column;
    }

    .tech-popup__photo {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .tech-popup__editor {
        width: 100%;
    }

    .tech-popup__close {
        top: 10px;
        right: 10px;
        padding: 6px;
    }

    .tech-popup__close svg {
        width: 18px;
        height: 18px;
    }
}

.tableau-technique h3 {
    color: var(--color-secondary);
    font-size: var(--title-nb);
}

.tableau-technique th p,
.tableau-technique .col-1 strong {
    font-size: var(--title-m);
}

@media screen and (max-width: 500px) {
    body .tableau-technique td {
        padding-left: var(--gap-s);
    }

}

@media screen and (max-width: 768px) {
    .tableau-technique thead {
        display: none;
    }

    .tableau-technique tr {
        display: block;
        margin-bottom: var(--gap-s);
    }

    .tableau-technique td {
        display: block;
        text-align: left;
        position: relative;
        padding-left: 50%;
        width: 100% !important;
    }

    .tableau-technique td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 10px;
        font-weight: bold;
        width: 45%;
        white-space: nowrap;
    }

    .tableau-technique td p {
        margin-top: 10px;
    }
}

/*********************************************************
**********************************************************
*********************** TEAM *****************************
**********************************************************
*********************************************************/
.team .row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.team__content {
    display: flex;
    flex-direction: column;
    gap: calc(var(--gap-s) + 6px);
}

.team__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
}

.team__item__photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
}

.team__item__content {
    color: var(--color-dark);
}

.team__item__name {
    font-size: var(--title-m);
}

@media screen and (min-width: 768px) {
    .team__content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--radius);
        align-items: start;
    }
}

@media screen and (min-width: 1280px) {
    .team__content {
        grid-template-columns: repeat(4, 1fr);
    }
}


/*********************************************************
**********************************************************
********************** TESTIMONY ************************
**********************************************************
*********************************************************/

.testimony__item {
    border-radius: var(--rad-s);
    overflow: hidden;
}

.testimony__item__title {
    font-size: var(--title-m);
    font-weight: 700;
}


.testimony__item--photo img {
    height: 100%;
    object-fit: cover;
}

.testimony__item--quote {
    display: flex;
    flex-direction: column;
    gap: var(--gap-s);
    align-items: center;
    justify-content: center;
    padding: var(--gap-m);
}

.testimony__item__name {
    align-self: flex-end;
}

.testimony__item--publi {
    z-index: 1;
}

.testimony__item--photo {
    max-height: 400px;
}

.testimony__item--only-qp {
    margin-bottom: 5%;
}

@media screen and (max-width: 767px) {
    .testimony__item--quote {
        margin-top: -1rem;
        position: relative;
        border-radius: 0;
    }

    .testimony__item--photo {
        border-radius: var(--rad-s) var(--rad-s) 0 0;
    }

    .testimony__item--publi {
        border-radius: 0 0 var(--rad-s) var(--rad-s);
    }

    .testimony__item--only-q .testimony__item {
        border-radius: var(--radius);
    }

    .testimony__item--only-qp .testimony__item--quote {
        border-radius: var(--radius) var(--radius) 0 0;
    }
}

@media screen and (min-width: 768px) {
    .testimony__content {
        display: grid;
        grid-template-columns: 1fr 1fr;

    }

    .testimony__item--publi,
    .testimony__item--photo {
        width: calc(100% - 5%);
    }

    .testimony__item--publi {
        margin-top: -5%;
        margin-left: 15%;
    }

    .testimony__item--quote {
        width: calc(100% + 15%);
        margin-left: -10%;
        margin-bottom: -5%;
        margin-top: 5%;
    }

    .testimony__item--only-q {
        display: initial;

    }

    .testimony__item--only-q .testimony__item--quote {
        width: 100%;
        margin: 0 auto;
    }

    .testimony__item--only-qp {
        display: block;
    }

    .testimony__item--only-qp .testimony__item--quote {
        width: 100%;
        margin: 0 auto;
    }

    .testimony__item--only-qp .testimony__item--publi {
        width: 60%;
        margin-left: 5%;

    }
}


/*********************************************************
**********************************************************
*********************** TEXTS ****************************
**********************************************************
*********************************************************/
.texts .row {
    display: flex;
    flex-direction: column;
    gap: var(--gap-s);
}

.events .texts__title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--gap-m);
    width: 100%;
}

.texts__link {
    flex-shrink: 0;
    margin-top: var(--gap-xs);
}

@media screen and (max-width: 767px) {
    .texts__title {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--gap-s);
    }

    .texts__link {
        align-self: flex-end;

    }
}

.texts__edit--margin {
    margin-bottom: var(--gap-m);
}

/* .panel,
.texts__edit,
.oursites-intro-text {
    text-align: justify;
} */

.texts__edit h3 {
    font-size: var(--title-m);
    font-weight: 400;
}

.texts ul {
    list-style-type: disc;
    margin-left: 18px;
}

.texts__edit a {
    color: var(--color-primary);
    text-decoration: underline;
}

.texts__content {
    display: flex;
    flex-direction: column;
    gap: var(--gap-l);
}

.texts__row__half {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-s);
}

.texts__img {
    border-radius: var(--rad-s);
    overflow: hidden;
    width: 100%;
}

.texts__img iframe {
    width: 100%;
}

.texts__link--margin {
    margin-top: var(--radius);
}

.single-post .news__content__image {
    display: none;
}

.news__content__image img {
    width: auto;
}

.news__content__body {
    margin-top: 1rem;
}

@media screen and (min-width: 768px) {
    .texts__row {
        display: flex;
        gap: var(--gap-xl);
        position: relative;
    }

    .texts__row__half {
        flex: 1;
        gap: calc(var(--gap-s) + 6px);
    }

    .reverse {
        flex-direction: row-reverse;
    }

    .texts__img {
        position: sticky;
        top: 20px;
    }
}