/**
 * Single Realisation Page Styles
 */

/* === DÉTAILS TECHNIQUES - Items hover subtil === */
.details-item {
    transition: background 0.2s ease, padding-left 0.2s ease;
    cursor: default;
}

.details-item:hover {
    padding-left: 0.5rem;
}

/* Tags produits et matériaux */
.tag-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.tag-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Infos hero */
.hero-info-item {
    cursor: default;
}

/* Titres de section */
.section-title {
    cursor: default;
}

/* === GALERIE === */
.media-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
}

.media-item:hover img {
    transform: scale(1.03);
}

.media-item:hover .media-overlay {
    background: rgba(8, 41, 71, 0.35) !important;
}

.media-item:hover .media-zoom-icon {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* === SECTION TITRES === */
.section-title {
    transition: letter-spacing 0.3s ease;
}

.section-title:hover {
    letter-spacing: 0.02em;
}

/* Barre décorative des titres */
.title-bar {
    transition: height 0.2s ease, background 0.2s ease;
}

.section-title:hover .title-bar {
    height: 36px;
}

/* === CTA SIDEBAR === */
.cta-sidebar {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.cta-btn {
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--color-primary) !important;
    color: var(--color-secondary) !important;
    transform: translateY(-1px);
}

/* === LIGHTBOX === */
#lightbox-prev:hover,
#lightbox-next:hover {
    background: rgba(255,255,255,0.2) !important;
}

#lightbox-close:hover {
    opacity: 0.7;
}

#lightbox.active {
    animation: fadeIn 0.3s ease;
}

#lightbox.active #lightbox-img {
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.lightbox-open {
    overflow: hidden;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .realisations-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .single-realisation__hero {
        grid-template-columns: 1fr !important;
    }

    .single-realisation__hero > div:last-child {
        height: 200px;
    }

    .single-realisation__content > div {
        grid-template-columns: 1fr !important;
    }

    .realisations-grid {
        grid-template-columns: 1fr !important;
    }
}

/* === PROJETS SIMILAIRES (Cartes réalisations) === */
.realisation-card {
    cursor: pointer;
}

/* Hover - Image zoom */
.realisation-card:hover .realisation-card__img {
    transform: scale(1.08);
}

/* Hover - Overlay plus sombre */
.realisation-card:hover .realisation-card__overlay {
    background: linear-gradient(180deg, rgba(8,41,71,0.3) 0%, rgba(8,41,71,0.5) 30%, rgba(8,41,71,0.98) 100%) !important;
}

/* Hover - Barre jaune apparaît */
.realisation-card:hover .realisation-card__accent {
    height: 100% !important;
}

/* Hover - Bouton apparaît */
.realisation-card:hover .realisation-card__btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Hover - Bouton style */
.realisation-card__btn:hover {
    background: white !important;
    color: var(--color-secondary) !important;
}

/* Bouton voir toutes les réalisations */
.btn-all-projects {
    transition: all 0.3s ease;
}

.btn-all-projects:hover {
    background: var(--color-primary) !important;
    color: var(--color-secondary) !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-2px);
}

/* === INFOS HERO === */
.hero-info-item {
    transition: opacity 0.2s ease;
}

.hero-info-item:hover {
    opacity: 1 !important;
}

.hero-info-item svg {
    transition: transform 0.2s ease;
}

.hero-info-item:hover svg {
    transform: scale(1.1);
}
