/* ═══════════════════════════════════════════════════════════════════════════
   STYLE PROJET — Fiche détail
   ═══════════════════════════════════════════════════════════════════════════ */

.projet-main { position: relative; z-index: 1; }

.projet-hero {
    height: 58vh;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.projet-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7, 9, 15, 0.15) 0%, rgba(7, 9, 15, 0.88) 100%);
}

[data-theme="light"] .projet-hero-overlay {
    background: linear-gradient(to bottom, rgba(232, 234, 246, 0.08) 0%, rgba(232, 234, 246, 0.88) 100%);
}

.projet-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 2rem 2.25rem;
}

.projet-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 0.75rem 0 0.5rem;
    color: var(--text);
}

.projet-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.65;
}

.projet-hero .project-tags { margin-top: 1rem; }

.projet-hero-cta { margin-top: 1.35rem; }

.projet-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.projet-featured {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: zoom-in;
    background: var(--glass-bg);
}

.projet-featured img {
    display: block;
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.25);
}

.projet-thumbs {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0.85rem 2px 4px;
    scrollbar-width: thin;
}

.projet-thumb {
    flex: 0 0 auto;
    width: 88px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--glass-bg);
    opacity: 0.55;
    transition: opacity 0.2s, border-color 0.2s;
}

.projet-thumb.is-active,
.projet-thumb:hover { opacity: 1; border-color: var(--accent-light); }

.projet-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projet-article { max-width: 42rem; }

.projet-article p {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.projet-article p:first-of-type {
    font-size: 1.08rem;
    color: var(--text);
    line-height: 1.7;
}

.projet-article p:last-of-type { margin-bottom: 0; }

.gallery-title {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.85rem;
}

.projet-blocs-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.projet-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
}

.projet-chip i {
    color: var(--accent-light);
    width: 1rem;
    text-align: center;
}

.projet-lb {
    padding: 0;
    border: 0;
    background: transparent;
    max-width: min(96vw, 1200px);
    max-height: 92vh;
}

.projet-lb::backdrop { background: rgba(7, 9, 15, 0.88); backdrop-filter: blur(12px); }

.projet-lb img {
    display: block;
    max-width: 96vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 16px;
}

.projet-lb-close {
    position: fixed;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 2;
}

.projet-lb-nav {
    position: fixed;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
}

.projet-lb-prev { left: 1rem; }
.projet-lb-next { right: 1rem; }

@media (max-width: 768px) {
    .projet-hero { height: 70vh; min-height: 380px; }
    .projet-featured img { max-height: 55vh; }
    .projet-lb-prev { left: 0.4rem; }
    .projet-lb-next { right: 0.4rem; }
}
