/* ===== PROJET DETAIL ===== */
.projet-detail {
    padding: 40px 0 80px;
    min-height: 60vh;
}

.projet-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 32px;
    transition: color 0.2s;
}

.projet-detail__back:hover {
    color: var(--accent);
}

/* Hero image */
.projet-detail__hero {
    margin-bottom: 40px;
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    border: 1px solid var(--border);
}

.projet-detail__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.projet-detail__image--placeholder {
    height: 320px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.25);
}

.projet-detail__image--placeholder i {
    font-size: 3rem;
}

.projet-detail__image--placeholder span {
    font-size: 1rem;
}

/* Content */
.projet-detail__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.projet-detail__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.projet-detail__category {
    display: inline-block;
    background: rgba(6, 214, 160, 0.12);
    color: var(--accent);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.projet-detail__date {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.projet-detail__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.projet-detail__tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.projet-detail__desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.projet-detail__desc h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 1.2em 0 .4em;
}
.projet-detail__desc h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 1em 0 .3em;
}
.projet-detail__desc p {
    margin: .5em 0;
}
.projet-detail__desc p:first-child {
    margin-top: 0;
}
.projet-detail__desc ul,
.projet-detail__desc ol {
    display: inline-block;
    text-align: left;
    padding-left: 1.4em;
    margin: .5em 0;
}
.projet-detail__desc li {
    margin: .2em 0;
}
.projet-detail__desc blockquote {
    border-left: 3px solid var(--accent);
    margin: .8em auto;
    padding: .4em 1.2em;
    font-style: italic;
    opacity: .8;
    max-width: 560px;
}
.projet-detail__desc a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.projet-detail__desc strong,
.projet-detail__desc b {
    font-weight: 700;
    color: var(--text);
}
.projet-detail__desc em,
.projet-detail__desc i {
    font-style: italic;
}

/* Footer actions */
.projet-detail__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

/* ===== GALLERY SLIDER ===== */
.gallery-slider {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    border-radius: calc(var(--radius) + 4px);
}

.gallery-slider__track {
    display: flex;
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.gallery-slider__slide {
    flex: 0 0 100%;
    margin: 0;
    padding: 0;
}

.gallery-slider__img,
.gallery-slider__slide img,
.gallery-slider__slide picture img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.gallery-slider__slide picture {
    display: block;
}

/* Flèches */
.gallery-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.2s;
    z-index: 3;
}

.gallery-slider__arrow:hover { background: rgba(0, 0, 0, 0.75); }
.gallery-slider__arrow--prev { left: 14px; }
.gallery-slider__arrow--next { right: 14px; }

/* Points */
.gallery-slider__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 3;
}

.gallery-slider__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.gallery-slider__dot.active {
    background: #fff;
    transform: scale(1.35);
}

/* ===== GALLERY LIGHTBOX ===== */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.gallery-lightbox[hidden] {
    display: none !important;
}

.gallery-lightbox.visible {
    opacity: 1;
    pointer-events: auto;
}

.gallery-lightbox__content {
    max-width: 92vw;
    max-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox__img {
    max-width: 100%;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    display: block;
}

.gallery-lightbox__close {
    position: fixed;
    top: 18px;
    right: 20px;
    background: rgba(255, 255, 255, 0.14);
    border: none;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10001;
}

.gallery-lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }

.gallery-lightbox__prev,
.gallery-lightbox__next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.14);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10001;
}

.gallery-lightbox__prev { left: 18px; }
.gallery-lightbox__next { right: 18px; }
.gallery-lightbox__prev:hover,
.gallery-lightbox__next:hover { background: rgba(255, 255, 255, 0.28); }

.gallery-lightbox__dots {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10001;
}

.gallery-lightbox__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.gallery-lightbox__dot.active {
    background: #fff;
    transform: scale(1.35);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .projet-detail {
        padding: 24px 0 60px;
    }

    .projet-detail__hero {
        margin-bottom: 28px;
    }

    .projet-detail__image--placeholder {
        height: 200px;
    }

    .projet-detail__desc {
        font-size: 0.95rem;
    }

    .projet-detail__footer {
        margin-top: 32px;
        padding-top: 24px;
    }

    .gallery-slider__arrow {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }

    .gallery-lightbox__prev,
    .gallery-lightbox__next {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .gallery-lightbox__prev { left: 8px; }
    .gallery-lightbox__next { right: 8px; }
}
