/* =========================================================
   JASSAD — PAGE ESPAGNE
   Fichier : espagne.css
   Respect de la structure HTML initiale
========================================================= */


/* =========================================================
   VARIABLES ET STYLE GÉNÉRAL
========================================================= */

body.page-espagne {
    --espagne-violet: #362d7e;
    --espagne-violet-light: #f2f0fa;
    --espagne-text: #333333;
    --espagne-text-muted: #666666;
    --espagne-border: rgba(54, 45, 126, 0.12);
    --espagne-white: #ffffff;
}

body.page-espagne {
    background-color: var(--espagne-white);
    color: var(--espagne-text);
}

body.page-espagne main.brochure {
    width: 100%;
    padding: 70px 0;
    overflow: hidden;
}


/* =========================================================
   BANNIÈRE
========================================================= */

body.page-espagne .breadcumb-wrapper {
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

body.page-espagne .breadcumb-content {
    padding-top: 35px;
    padding-bottom: 35px;
}

body.page-espagne .breadcumb-title {
    color: var(--espagne-white);
    font-size: 34px;
    line-height: 1.3;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
}


/* =========================================================
   MISE EN PAGE PRINCIPALE
========================================================= */

body.page-espagne .brochure-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: 65px;
    width: min(1320px, calc(100% - 60px));
    margin: 0 auto;
}

body.page-espagne .left-column,
body.page-espagne .right-column {
    min-width: 0;
}


/* =========================================================
   TITRE DU PAYS
========================================================= */

body.page-espagne .country-title {
    position: relative;
    margin: 0 0 30px;
    padding-bottom: 18px;
    color: var(--espagne-violet);
    font-size: clamp(32px, 3vw, 46px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 2px;
}

body.page-espagne .country-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 75px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #362d7e, #9914cb);
}


/* =========================================================
   PORTRAIT DE LA COMPAGNIE
========================================================= */

body.page-espagne .portraits {
    width: 100%;
    margin: 0 0 35px;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f7f6fb;
}

body.page-espagne .portraits img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    object-position: center;
}


/* =========================================================
   TITRES DES SECTIONS
========================================================= */

body.page-espagne .brochure h2 {
    margin: 38px 0 22px;
    color: var(--espagne-violet);
    font-size: clamp(19px, 1.6vw, 23px);
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

body.page-espagne .left-column > h2:first-of-type {
    margin-top: 0;
}

body.page-espagne .brochure h2.second-heading {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid var(--espagne-border);
}


/* =========================================================
   TEXTES
========================================================= */

body.page-espagne .brochure p {
    margin: 0 0 18px;
    color: var(--espagne-text);
    font-size: 15px;
    line-height: 1.9;
    text-align: justify;
    overflow-wrap: break-word;
    hyphens: auto;
}

body.page-espagne .brochure em {
    color: var(--espagne-violet);
    font-style: italic;
}

body.page-espagne .brochure strong {
    color: var(--espagne-violet);
    font-weight: 750;
}


/* =========================================================
   INFORMATIONS DU SPECTACLE
========================================================= */

body.page-espagne .show-info {
    margin: 0 0 35px;
    padding: 25px 28px;
    border-left: 4px solid var(--espagne-violet);
    border-radius: 0 8px 8px 0;
    background: var(--espagne-violet-light);
}

body.page-espagne .show-info p {
    margin: 0;
    padding: 12px 0;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
}

body.page-espagne .show-info p + p {
    border-top: 1px solid rgba(54, 45, 126, 0.10);
}

body.page-espagne .show-info strong {
    display: inline;
    color: var(--espagne-violet);
}


/* =========================================================
   TITRE DE LA COMPAGNIE
========================================================= */

body.page-espagne .right-column > h2:first-of-type {
    margin-top: 0;
}






/* =========================================================
   GALERIE INSTAGRAM
========================================================= */

body.page-espagne #suivezNous {
    padding-top: 20px;
}

body.page-espagne .instagram-title {
    margin-bottom: 30px !important;
}

body.page-espagne .instagram-title .box-title {
    display: inline-block;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 750;
}

body.page-espagne .instagram-gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 0;
}

body.page-espagne .instagram-gallery > .gallery-insta_wrapp {
    box-sizing: border-box;
    padding: 0 8px;
    margin-bottom: 16px;
}

body.page-espagne .instagram-gallery .gallery-insta {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

body.page-espagne .instagram-gallery .box-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f4f3f8;
}

body.page-espagne .instagram-gallery .box-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

body.page-espagne .instagram-gallery .gallery-insta:hover .box-img img {
    transform: scale(1.05);
}

body.page-espagne .instagram-gallery .box-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(
        45deg,
        #feda75,
        #fa7e1e,
        #d62976,
        #962fbf,
        #4f5bd5
    );
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.page-espagne .instagram-gallery .box-btn i {
    font-size: 23px;
}

body.page-espagne .instagram-gallery .box-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(214, 41, 118, 0.35);
}


/* =========================================================
   RESPONSIVE — TABLETTES
========================================================= */

@media (max-width: 991px) {

    body.page-espagne main.brochure {
        padding: 50px 0;
    }

    body.page-espagne .brochure-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 45px;
        width: min(760px, calc(100% - 40px));
    }

    body.page-espagne .country-title {
        margin-bottom: 25px;
    }

    body.page-espagne .portraits {
        margin-bottom: 30px;
    }

    body.page-espagne .brochure h2 {
        margin-top: 30px;
    }

    body.page-espagne .show-info {
        margin-bottom: 25px;
    }

    body.page-espagne .stage-gallery .stage {
        height: 260px;
    }

    body.page-espagne .stage-gallery .stage-one {
        height: 350px;
    }

    body.page-espagne #gallerySlider1 .box-img {
        aspect-ratio: 4 / 3;
    }
}


/* =========================================================
   RESPONSIVE — MOBILES
========================================================= */

@media (max-width: 575px) {

    body.page-espagne .breadcumb-content {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    body.page-espagne .breadcumb-title {
        font-size: 25px !important;
        letter-spacing: 0.5px;
    }

    body.page-espagne main.brochure {
        padding: 35px 0;
    }

    body.page-espagne .brochure-grid {
        width: calc(100% - 30px);
        gap: 35px;
    }

    body.page-espagne .country-title {
        margin-bottom: 22px;
        padding-bottom: 14px;
        font-size: 32px;
    }

    body.page-espagne .portraits {
        margin-bottom: 25px;
        border-radius: 7px;
    }

    body.page-espagne .brochure h2 {
        margin: 28px 0 16px;
        font-size: 19px;
        line-height: 1.45;
    }

    body.page-espagne .brochure h2.second-heading {
        margin-top: 32px;
        padding-top: 22px;
    }

    body.page-espagne .brochure p {
        margin-bottom: 15px;
        font-size: 14px;
        line-height: 1.8;
        text-align: left;
    }

    body.page-espagne .show-info {
        padding: 18px;
        margin-bottom: 25px;
    }

    body.page-espagne .show-info p {
        font-size: 13px;
        line-height: 1.75;
    }

    body.page-espagne .stage-gallery {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin-top: 25px;
    }

    body.page-espagne .stage-gallery .stage,
    body.page-espagne .stage-gallery .stage-one {
        grid-column: auto;
        height: auto;
        max-height: 360px;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    body.page-espagne #gallerySlider1 .box-img {
        aspect-ratio: 4 / 3;
    }

    body.page-espagne .instagram-title {
        margin-bottom: 22px !important;
    }

    body.page-espagne .instagram-gallery > .gallery-insta_wrapp {
        padding: 0 5px;
        margin-bottom: 10px;
    }

    body.page-espagne .instagram-gallery .box-btn {
        right: 8px;
        bottom: 8px;
        width: 35px;
        height: 35px;
        border-radius: 10px;
    }

    body.page-espagne .instagram-gallery .box-btn i {
        font-size: 20px;
    }
}


/* =========================================================
   PETITS MOBILES
========================================================= */

@media (max-width: 360px) {

    body.page-espagne .brochure-grid {
        width: calc(100% - 24px);
    }

    body.page-espagne .country-title {
        font-size: 28px;
    }

    body.page-espagne .brochure h2 {
        font-size: 17px;
    }

    body.page-espagne .brochure p {
        font-size: 13px;
    }

    body.page-espagne .show-info {
        padding: 14px;
    }
}


/* =========================================================
   ACCESSIBILITÉ — ANIMATIONS
========================================================= */

@media (prefers-reduced-motion: reduce) {

    body.page-espagne .stage-gallery .stage,
    body.page-espagne #gallerySlider1 .box-img img,
    body.page-espagne #gallerySlider1 .box-btn,
    body.page-espagne .instagram-gallery .box-img img,
    body.page-espagne .instagram-gallery .box-btn {
        transition: none !important;
    }

    body.page-espagne .stage-gallery .stage:hover,
    body.page-espagne #gallerySlider1 .gallery-insta:hover .box-img img,
    body.page-espagne .instagram-gallery .gallery-insta:hover .box-img img {
        transform: none;
    }
}

/* =========================================================
   JASSAD — ESPAGNE
   CORRECTION : RESTAURER UN AFFICHAGE PLUS GRAND
========================================================= */

/* Contenu principal */
body.page-espagne main.brochure {
    width: 100%;
    padding: 60px 0;
}

/* Deux colonnes plus larges */
body.page-espagne .brochure-grid {
    width: 94%;
    max-width: 1600px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 45px;
}

/* Texte : retrouver une taille confortable */
body.page-espagne .brochure p {
    font-size: 16px;
    line-height: 1.85;
}

/* Titres des sections */
body.page-espagne .brochure h2 {
    font-size: 23px;
}

/* Titre ESPAGNE */
body.page-espagne .country-title {
    font-size: 44px;
}

/* Portrait de la compagnie */
body.page-espagne .portraits img {
    width: 100%;
    max-width: none;
    max-height: none;
    height: auto;
}

/* Galerie du spectacle */
body.page-espagne .stage-gallery .stage {
    height: 280px;
}

body.page-espagne .stage-gallery .stage-one {
    height: 380px;
}

/* Tablettes */
@media (max-width: 991px) {
    body.page-espagne .brochure-grid {
        width: 92%;
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }

    body.page-espagne .brochure p {
        font-size: 16px;
    }
}

/* Mobiles */
@media (max-width: 575px) {
    body.page-espagne .brochure-grid {
        width: calc(100% - 30px);
        gap: 30px;
    }

    body.page-espagne .brochure p {
        font-size: 15px;
        line-height: 1.8;
    }

    body.page-espagne .brochure h2 {
        font-size: 20px;
    }

    body.page-espagne .country-title {
        font-size: 34px;
    }
}

/* Galerie Espagne : styles isolés pour ne pas décaler la page */
.espagne-gallery-section {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 50px 0;
    overflow: hidden;
    clear: both;
}

.espagne-gallery-section .container {
    width: 100%;
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
}

.espagne-gallery-section .gallerySlider1 {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.espagne-gallery-section .swiper-wrapper {
    align-items: stretch;
}

.espagne-gallery-section .swiper-slide {
    height: auto;
    min-width: 0;
    box-sizing: border-box;
}

.espagne-gallery-section .gallery-insta,
.espagne-gallery-section .box-img {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.espagne-gallery-section .box-img img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 767px) {
    .espagne-gallery-section {
        padding: 30px 0;
    }

    .espagne-gallery-section .box-img img {
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }
}
/* TEST : empêcher la galerie de déborder */
.espagne-gallery-section {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 40px 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    overflow: hidden !important;
    clear: both !important;
}

.espagne-gallery-section .container {
    width: 100% !important;
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.espagne-gallery-section .swiper {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
}

.espagne-gallery-section .swiper-wrapper {
    box-sizing: border-box;
}

.espagne-gallery-section .swiper-slide {
    box-sizing: border-box;
    min-width: 0;
}

/* Galerie Espagne : fond transparent */
.page-espagne .gallerySlider1,
.page-espagne .gallerySlider1 .swiper-wrapper,
.page-espagne .gallerySlider1 .swiper-slide,
.page-espagne .gallerySlider1 .gallery-insta,
.page-espagne .gallerySlider1 .box-img,
.page-espagne .gallerySlider1 .global-img {
    background: transparent !important;
    background-color: #000000;
    box-shadow: none !important;
}

/* Les images gardent leurs proportions */
.page-espagne .gallerySlider1 .box-img img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: transparent !important;
}

/* Éviter un fond blanc sur les liens de zoom */
.page-espagne .gallerySlider1 .box-btn {
    background: transparent;
}

/* Fond noir lors de l'ouverture d'une image */

/* Conteneur de l'image : fond transparent */
.mfp-wrap,
.mfp-container,
.mfp-content,
.mfp-figure,
.mfp-img {
    background-color: #000000;
}

/* Image agrandie */
img.mfp-img {
     background-color: #000000;
}

/* Bouton de fermeture en blanc */
.mfp-close {
    color: #fff !important;
}


/* =========================================================
   JASSAD — CORRECTIONS FINALES PAGE ESPAGNE
   1. Bannière : titre aligné à gauche
   2. Image Ekléctika : centrée dans la colonne droite
   3. Adaptation tablette et mobile
========================================================= */


/* =========================================================
   1. BANNIÈRE — TITRE ALIGNÉ À GAUCHE
========================================================= */

body.page-espagne .breadcumb-wrapper {
    text-align: left;
}

body.page-espagne .breadcumb-wrapper .container {
    text-align: left;
}

body.page-espagne .breadcumb-wrapper .breadcumb-content {
    text-align: left;
    padding-top: 35px;
    padding-bottom: 35px;
}

body.page-espagne .breadcumb-wrapper .breadcumb-title {
    text-align: left !important;
    margin-left: 0;
    margin-right: auto;
    font-size: 34px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 1px;
}


/* =========================================================
   2. IMAGE EKLÉCTIKA — CENTRAGE DANS LA COLONNE DROITE
========================================================= */

body.page-espagne .right-column .eklectika-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 35px auto 0;
    padding: 0;
    overflow: hidden;
}

body.page-espagne .right-column .eklectika-image .gallery-insta_wrapp {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    float: none;
}

body.page-espagne .right-column .eklectika-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}


/* Compatibilité avec le HTML initial sans classe supplémentaire */
body.page-espagne .right-column > .position-relative.space.overflow-hidden {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

body.page-espagne .right-column > .position-relative.space.overflow-hidden
.gallery-insta_wrapp {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    float: none;
}

body.page-espagne .right-column > .position-relative.space.overflow-hidden
.gallery-insta_wrapp img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}


/* =========================================================
   3. TABLETTES
========================================================= */

@media (max-width: 991px) {

    body.page-espagne .breadcumb-wrapper .breadcumb-content {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    body.page-espagne .breadcumb-wrapper .breadcumb-title {
        text-align: left !important;
        font-size: 30px;
    }

    body.page-espagne .right-column .eklectika-image,
    body.page-espagne .right-column > .position-relative.space.overflow-hidden {
        margin-top: 25px;
    }

    body.page-espagne .right-column .eklectika-image .gallery-insta_wrapp,
    body.page-espagne .right-column > .position-relative.space.overflow-hidden
    .gallery-insta_wrapp {
        max-width: 520px;
    }
}


/* =========================================================
   4. MOBILES
========================================================= */

@media (max-width: 575px) {

    body.page-espagne .breadcumb-wrapper .breadcumb-content {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    body.page-espagne .breadcumb-wrapper .breadcumb-title {
        text-align: left !important;
        font-size: 25px !important;
        letter-spacing: 0.5px;
    }

    body.page-espagne .right-column .eklectika-image,
    body.page-espagne .right-column > .position-relative.space.overflow-hidden {
        margin-top: 20px;
    }

    body.page-espagne .right-column .eklectika-image .gallery-insta_wrapp,
    body.page-espagne .right-column > .position-relative.space.overflow-hidden
    .gallery-insta_wrapp {
        max-width: 100%;
    }

    body.page-espagne .right-column .eklectika-image img,
    body.page-espagne .right-column > .position-relative.space.overflow-hidden
    .gallery-insta_wrapp img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}


/* =========================================================
   5. ACCESSIBILITÉ
========================================================= */

@media (prefers-reduced-motion: reduce) {

    body.page-espagne .right-column .eklectika-image img,
    body.page-espagne .right-column > .position-relative.space.overflow-hidden
    .gallery-insta_wrapp img {
        transition: none !important;
    }
}

/* =========================================
   GALERIE ESPAGNE — TITRE ET IMAGES
========================================= */

body.page-espagne .espagne-gallery-section .galerie-title {
    display: inline-block;
    margin: 0 0 30px !important;
    font-size: clamp(26px, 2.5vw, 34px);
    font-weight: 750;
    line-height: 1.3;

    background: linear-gradient(
        119.36deg,
        #9914CB 0%,
        #F35D00 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Images légèrement plus grandes */
body.page-espagne .espagne-gallery-section .box-img img {
    display: block;
    width: 100%;
    height: 320px !important;
    object-fit: cover;
    object-position: center;
}

/* Adaptation aux mobiles */
@media (max-width: 767px) {
    body.page-espagne .espagne-gallery-section .galerie-title {
        margin-bottom: 22px !important;
        font-size: 27px;
    }

    body.page-espagne .espagne-gallery-section .box-img img {
        height: auto !important;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }
}

/* ==========================================
   GALERIE ESPAGNE — CORRECTION FINALE
========================================== */

/* Section complète */
body.page-espagne section.espagne-gallery-section {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 55px 0 !important;
    overflow: hidden !important;
    clear: both !important;
}

/* Conteneur */
body.page-espagne .espagne-gallery-section > .container {
    display: block !important;
    width: 94% !important;
    max-width: 1500px !important;
    height: auto !important;
    margin: 0 auto !important;
}

/* Titre : ligne séparée au-dessus des photos */
body.page-espagne .espagne-gallery-heading {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 35px !important;
    padding: 0 !important;
    text-align: center !important;
    clear: both !important;
    z-index: 1 !important;
}

/* Texte du titre */
body.page-espagne .espagne-gallery-title {
    position: static !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 34px !important;
    font-weight: 750 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-align: center !important;

    background: linear-gradient(
        119.36deg,
        #9914CB 0%,
        #F35D00 100%
    ) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

/* Carrousel : occupe toute la largeur disponible */
body.page-espagne .espagne-gallery-section #gallerySlider1 {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Chaque diapositive */
body.page-espagne #gallerySlider1 .swiper-slide {
    height: auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Conteneurs des photos */
body.page-espagne #gallerySlider1 .gallery-insta,
body.page-espagne #gallerySlider1 .box-img,
body.page-espagne #gallerySlider1 .global-img {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 350px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Photos agrandies */
body.page-espagne #gallerySlider1 .box-img img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 350px !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Bouton de zoom au-dessus de la photo */
body.page-espagne #gallerySlider1 .box-btn {
    position: absolute !important;
    right: 12px !important;
    bottom: 12px !important;
    z-index: 5 !important;
}

/* Tablettes */
@media (max-width: 991px) {
    body.page-espagne #gallerySlider1 .gallery-insta,
    body.page-espagne #gallerySlider1 .box-img,
    body.page-espagne #gallerySlider1 .global-img,
    body.page-espagne #gallerySlider1 .box-img img {
        height: 300px !important;
    }
}

/* Mobiles */
@media (max-width: 767px) {
    body.page-espagne section.espagne-gallery-section {
        padding: 35px 0 !important;
    }

    body.page-espagne .espagne-gallery-heading {
        margin-bottom: 22px !important;
    }

    body.page-espagne .espagne-gallery-title {
        font-size: 28px !important;
    }

    body.page-espagne #gallerySlider1 .gallery-insta,
    body.page-espagne #gallerySlider1 .box-img,
    body.page-espagne #gallerySlider1 .global-img,
    body.page-espagne #gallerySlider1 .box-img img {
        height: 300px !important;
    }
}

/* ==========================================
   GALERIE ESPAGNE — TITRE ET GRANDES IMAGES
========================================== */

/* Section */
body.page-espagne section.espagne-gallery-section {
    display: block !important;
    width: 100% !important;
    padding: 55px 0 !important;
    overflow: hidden !important;
    clear: both !important;
}

/* Conteneur */
body.page-espagne .espagne-gallery-section > .container {
    width: 100% !important;
    max-width: 1500px !important;
    margin: 0 auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
}

/* Titre toujours visible */
body.page-espagne .espagne-gallery-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    margin: 0 0 30px !important;
    padding: 0 !important;
    text-align: left !important;
}

body.page-espagne .espagne-gallery-title h2 {
       margin: 38px 0 22px;
    color: var(--espagne-violet);
    font-size: clamp(19px, 1.6vw, 23px);
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

/* Carrousel */
body.page-espagne #gallerySlider1 {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.page-espagne #gallerySlider1 .swiper-wrapper {
    display: flex !important;
    align-items: stretch !important;
}

body.page-espagne #gallerySlider1 .swiper-slide {
    height: auto !important;
    min-width: 0 !important;
}

/* Agrandir les cadres des images */
body.page-espagne #gallerySlider1 .gallery-insta,
body.page-espagne #gallerySlider1 .box-img {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 400px !important;
    min-height: 400px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
}

/* Les images remplissent les cadres */
body.page-espagne #gallerySlider1 .box-img img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Tablettes */
@media (max-width: 991px) {
    body.page-espagne #gallerySlider1 .gallery-insta,
    body.page-espagne #gallerySlider1 .box-img {
        height: 340px !important;
        min-height: 340px !important;
    }
}

/* Mobiles */
@media (max-width: 575px) {
    body.page-espagne .espagne-gallery-section > .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    body.page-espagne .espagne-gallery-title h2 {
        font-size: 30px !important;
    }

    body.page-espagne #gallerySlider1 .gallery-insta,
    body.page-espagne #gallerySlider1 .box-img {
        height: 300px !important;
        min-height: 300px !important;
    }
}

/* Titre Galerie : même structure qu'un h2 classique */
body.page-espagne .espagne-gallery-section > .container > h2 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 0 30px !important;
    padding: 0 !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #9914CB;
}

/* ==========================================
   JASSAD — GALERIE : FOND NOIR AU CLIC
========================================== */

/* Fond de la visionneuse Magnific Popup */
html body .mfp-bg {
    background: #000000 !important;
    opacity: 1 !important;
}

/* La fenêtre ne doit pas ajouter de fond gris */
html body .mfp-wrap,
html body .mfp-container,
html body .mfp-content,
html body .mfp-figure,
html body .mfp-image-holder {
    background: transparent !important;
    box-shadow: none !important;
}

/* Supprimer le fond gris créé autour de l'image */
html body .mfp-figure::after {
    background: transparent !important;
    box-shadow: none !important;
}

/* Image agrandie */
html body img.mfp-img {
    background: transparent !important;
}

/* Croix de fermeture */
html body .mfp-close {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Photo artiste : taille réduite */
.artist-profile .artist-photo {
    flex: 0 0 180px;
    width: 180px;
    max-width: 180px;
}

.artist-profile .artist-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

/* Alignement photo et texte */
.artist-profile {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Mobile */
@media (max-width: 575px) {
    .artist-profile .artist-photo {
        flex: 0 0 120px;
        width: 120px;
        max-width: 120px;
    }

    .artist-profile {
        gap: 15px;
    }
}

/* FORCER LA RÉDUCTION DE LA PHOTO ARTISTE */
.artist-profile .artist-photo {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    flex: 0 0 200px !important;
    overflow: hidden !important;
}

.artist-profile .artist-photo img {
    display: block !important;
    width: 200px !important;
    max-width: 200px !important;
    height: 200px !important;
    max-height: 200px !important;
    object-fit: cover !important;
}

/* Garder le texte à côté */
.artist-profile {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

/* Sur mobile */
@media (max-width: 575px) {
    .artist-profile .artist-photo {
        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        flex: 0 0 100px !important;
    }

    .artist-profile .artist-photo img {
        width: 100px !important;
        height: 120px !important;
    }
}
