/**
 * Page détail événement — template/vitrine/detail_event.html
 * Style inspiré Sanu (HiBootstrap)
 */

.sanu-page-title .container,
.sanu-event-details .container {
    padding-top: 0;
    padding-bottom: 0;
}

.sanu-page-title {
    background: var(--color-mainstrong);
    padding: 70px 0 65px;
    text-align: center;
}

.sanu-page-title h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 14px;
}

.sanu-breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.sanu-breadcrumb li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.sanu-breadcrumb li a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
}

.sanu-breadcrumb li a:hover {
    color: var(--color-yellow);
}

.sanu-breadcrumb li i {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.sanu-event-details {
    padding: 80px 0 90px;
    background: #f8f9fc;
}

.sanu-event-details-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

.sanu-event-main {
    background: var(--color-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(72, 102, 185, 0.08);
}

.sanu-event-featured {
    margin: 0 0 28px;
    border-radius: 8px;
    overflow: hidden;
}

.sanu-event-featured img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.sanu-event-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-mainstrong);
    line-height: 1.35;
    margin-bottom: 20px;
}

.sanu-event-content {
    font-size: 16px;
    line-height: 1.85;
    color: #555;
}

.sanu-event-content p {
    margin-bottom: 16px;
}

.sanu-event-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-mainstrong);
    margin: 36px 0 20px;
    padding-top: 28px;
    border-top: 1px solid #eee;
}

.sanu-event-gallery-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.sanu-event-gallery-row[data-count="1"] {
    grid-template-columns: 1fr;
}

.sanu-event-gallery-row[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.sanu-gallery-item {
    border: none;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #eee;
    position: relative;
}

.sanu-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.sanu-gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.sanu-gallery-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 53, 92, 0);
    transition: background 0.35s ease;
}

.sanu-gallery-zoom i {
    font-size: 24px;
    color: var(--color-white);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.sanu-gallery-item:hover .sanu-gallery-zoom {
    background: rgba(43, 53, 92, 0.45);
}

.sanu-gallery-item:hover .sanu-gallery-zoom i {
    opacity: 1;
    transform: scale(1);
}

.sanu-event-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sanu-widget {
    background: var(--color-white);
    border-radius: 8px;
    padding: 28px 24px;
    box-shadow: 0 0 20px rgba(72, 102, 185, 0.08);
}

.sanu-widget-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-mainstrong);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-main);
}

.sanu-info-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.sanu-info-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px dashed #e5e5e5;
}

.sanu-info-list li:last-child {
    border-bottom: none;
}

.sanu-info-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-main);
}

.sanu-info-value {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.sanu-btn-default {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    background: var(--color-main);
    color: var(--color-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.sanu-btn-default:hover {
    background: var(--color-mainstrong);
    color: var(--color-white);
}

.sanu-related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sanu-related-item {
    display: flex;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: opacity 0.25s ease;
}

.sanu-related-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.sanu-related-item:hover {
    opacity: 0.85;
}

.sanu-related-item:hover .sanu-related-text h4 {
    color: var(--color-main);
}

.sanu-related-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.sanu-related-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-mainstrong);
    line-height: 1.4;
    margin-bottom: 6px;
    transition: color 0.25s ease;
}

.sanu-related-text span {
    font-size: 13px;
    color: #888;
}

.sanu-related-text span i {
    color: var(--color-main);
    margin-right: 4px;
}

.sanu-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sanu-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.sanu-contact-list li:last-child {
    border-bottom: none;
}

.sanu-contact-list li i {
    color: var(--color-main);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Lightbox galerie */
.event-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 20, 40, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
}

.event-lightbox[aria-hidden="false"] {
    display: flex;
}

body.event-lightbox-open {
    overflow: hidden;
}

.event-lightbox-content {
    margin: 0;
    max-width: min(1100px, 92vw);
    max-height: 85vh;
    text-align: center;
}

.event-lightbox-content img {
    max-width: 100%;
    max-height: calc(85vh - 40px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.event-lightbox-content figcaption {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    margin-top: 12px;
}

.event-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.event-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.event-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    font-size: 22px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.event-lightbox-nav:hover {
    background: var(--color-main);
}

.event-lightbox-prev {
    left: 24px;
}

.event-lightbox-next {
    right: 24px;
}

@media (max-width: 992px) {
    .sanu-event-details-grid {
        grid-template-columns: 1fr;
    }

    .sanu-event-sidebar {
        order: 2;
    }

    .sanu-event-gallery-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sanu-page-title {
        padding: 50px 0 45px;
    }

    .sanu-event-details {
        padding: 50px 0 60px;
    }

    .sanu-event-main {
        padding: 20px 18px;
    }

    .sanu-event-title {
        font-size: 22px;
    }

    .sanu-event-gallery-row,
    .sanu-event-gallery-row[data-count="2"] {
        grid-template-columns: 1fr;
    }

    .sanu-gallery-item img {
        height: 220px;
    }

    .event-lightbox {
        padding: 50px 16px;
    }

    .event-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .event-lightbox-prev {
        left: 10px;
    }

    .event-lightbox-next {
        right: 10px;
    }
}
