/* ==========================================================================
MODULE RÉALISATIONS - SLIDER AVANT/APRÈS & SEO LOCAL
========================================================================== */

.page-realisations-list, 
.page-realisations-single {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #fcfbfa;
    box-sizing: border-box;
}

.realisations-hero-banner {
    background-color: #0b0c08;
    padding: 140px 24px 80px 24px;
    text-align: center;
}

.realisations-pretitle {
    display: block;
    color: #8da84e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.realisations-hero-banner h1 {
    font-family: 'Cinzel', serif;
    color: #ffffff;
    font-size: 2.8rem;
    margin: 0 0 20px 0;
}

.realisations-hero-banner p {
    color: #cccccc;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
    VUE LISTE ÉPURÉE & IMMERSIVE : LES ALBUMS (CIMETIÈRES)
========================================================================== */

.realisations-list-container {
    padding: 90px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grille moderne asymétrique ou stable */
.albums-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

/* La carte prend vie grâce à la photo réelle en background */
.album-modern-card {
    position: relative;
    height: 400px; /* Hauteur confortable pour installer le visuel */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 12, 8, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

/* Superposition d'un dégradé sombre (vignettage) pour garantir le contraste du texte blanc */
.album-modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 12, 8, 0.9) 0%, rgba(11, 12, 8, 0.4) 50%, rgba(11, 12, 8, 0.1) 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* Lien global invisible qui prend toute la surface */
.album-card-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    box-sizing: border-box;
}

/* Animations au survol de l'album */
.album-modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(11, 12, 8, 0.2);
}

.album-modern-card:hover::before {
    background: linear-gradient(to top, rgba(11, 12, 8, 0.95) 0%, rgba(11, 12, 8, 0.5) 60%, rgba(11, 12, 8, 0.2) 100%);
}

/* Petit badge géographique en haut de carte */
.album-location-badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    color: #ffffff;
    display: flex;
    gap: 6px;
}
.album-location-badge h2 {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.album-location-badge span.icon {
    font-family: 'icomoon' !important;
    color: #8da84e; /* Rappel du vert Eden */
    font-size: 1.3rem;
}

/* Zone textuelle basse */
.album-card-bottom-content {
    text-align: left;
}

.album-tag-category {
    color: #8da84e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 8px;
}

/* Barre de statistiques et flèche */
.album-card-meta-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pics-counter-badge {
    color: #dddddd;
    font-size: 12.5px;
}

.pics-counter-badge strong {
    color: #ffffff;
}

.arrow-trigger {
    color: #8da84e;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Animation de la flèche au survol */
.album-modern-card:hover .arrow-trigger {
    color: #ffffff;
    transform: translateX(4px);
}

/* ======================================
    RESPONSIVE AJUSTÉ
====================================== */
@media (max-width: 1024px) {
    .albums-modern-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 680px) {
    .albums-modern-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    .album-modern-card {
        height: 350px;
    }
}

/* ======================================
    VUE SINGLE : LE SLIDER AVANT / APRÈS
====================================== */
.realisations-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 100px 24px;
}

.sliders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Deux réalisations par ligne */
    gap: 40px;
    margin-top: 30px;
}

.slider-card {
    background: #ffffff;
    border: 1px solid #eae8e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.01);
}

/* CONTAINER DU COMPOSANT SLIDER */
/* ==========================================================================
   VUE SINGLE : LE SLIDER AVANT / APRÈS (CORRECTIF LIGNE ET CENTRAGE)
   ========================================================================== */

   .realisations-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 100px 24px;
}

.sliders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 30px;
}

.slider-card {
    background: #ffffff;
    border: 1px solid #eae8e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.01);
}

/* CONTAINER DU COMPOSANT SLIDER */
.image-slider-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-after { z-index: 1; }

.image-before {
    z-index: 2;
    width: 100% !important; 
    clip-path: inset(0 50% 0 0); 
}

/* LA LIGNE BLANCHE DE SÉPARATION VISUELLE */
.slider-line {
    position: absolute;
    top: 0;
    width: 3px; /* Épaisseur de la ligne */
    height: 100%;
    background-color: #ffffff;
    z-index: 4; /* Entre les images et le bouton cliquable */
    transform: translateX(-50%); /* Centre parfaitement la ligne sur son axe X */
    pointer-events: none; /* Laisse passer les clics */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* LA RÉGLETTE INTERACTIVE (Invisible mais capte le drag) */
.slider-bar {
    position: absolute;
    top: 0;
    left: 0;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 100%;
    background: transparent;
    outline: none;
    margin: 0;
    z-index: 10; /* Priorité maximale pour le touché/clic */
    cursor: ew-resize;
}

/* STYLE DU CURSEUR POUR CHROME / SAFARI / EDGE */
.slider-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15); /* Légère opacité blanche */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0,0,0,0.35);
    cursor: ew-resize;
    transition: background 0.2s, transform 0.1s;
}

/* Effet au survol ou clic sur le curseur */
.slider-bar::-webkit-slider-thumb:hover,
.slider-bar:active::-webkit-slider-thumb {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* STYLE DU CURSEUR POUR FIREFOX */
.slider-bar::-moz-range-thumb {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0,0,0,0.35);
    cursor: ew-resize;
}

.slider-bar::-moz-range-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* LES BADGES (AVANT / APRÈS) */
.badge-slider {
    position: absolute;
    top: 15px;
    padding: 5px 10px;
    background: rgba(11, 12, 8, 0.7);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 5;
    pointer-events: none;
}

.badge-before { left: 15px; }
.badge-after { right: 15px; }

/* ======================================
    RESPONSIVE
====================================== */
@media (max-width: 1024px) {
    .albums-grid, .sliders-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    .image-slider-wrapper {
        height: 280px;
    }
}