/* ═══════════════════════════════════════════════
   PAGE DÉTAIL PROJET
═══════════════════════════════════════════════ */

.projet-page { background: var(--bg); }

/* ── Header ── */
.projet-header {
    padding: 9rem 0 5rem;
    background: var(--bg-dark);
    color: var(--paper);
    position: relative; overflow: hidden;
}

.projet-header-bg {
    position: absolute; inset: 0;
    opacity: 0.15;
    background-image:
        linear-gradient(rgba(247,251,250,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247,251,250,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

/* Halo couleur selon classe du bg */
.projet-header::after {
    content: '';
    position: absolute; top: -100px; right: -100px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(45,212,191,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.projet-header-content { position: relative; z-index: 2; max-width: 760px; }

.projet-back {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(247,251,250,0.4);
    transition: color 0.2s, gap 0.2s;
    margin-bottom: 2rem;
}
.projet-back svg { width: 14px; height: 14px; flex-shrink: 0; }
.projet-back:hover { color: var(--mint); gap: 0.7rem; }

.projet-meta {
    display: flex; align-items: center; gap: 1rem;
    flex-wrap: wrap; margin-bottom: 1.2rem;
}

.projet-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.projet-tag {
    padding: 0.22rem 0.6rem;
    border: 1px solid rgba(45,212,191,0.25);
    border-radius: 20px; font-size: 0.58rem;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--mint);
}

.projet-date {
    font-family: 'Syne', sans-serif;
    font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(247,251,250,0.25);
}

.projet-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    letter-spacing: -0.04em; line-height: 0.95;
    color: var(--paper); margin-bottom: 1.2rem;
}

.projet-summary {
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    line-height: 1.8; color: rgba(247,251,250,0.5);
    max-width: 600px;
}

/* ── Corps ── */
.projet-main { padding: clamp(4rem, 8vh, 7rem) 0 0; }

.projet-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 5rem;
    align-items: start;
}

/* ── Sidebar ── */
.projet-sidebar {
    position: sticky; top: 6rem;
    display: flex; flex-direction: column; gap: 1.5rem;
}

.projet-aside-block {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow);
}

.projet-aside-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--ink-mid); margin-bottom: 0.7rem;
}

.projet-tools {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.projet-tool-chip {
    padding: 0.34rem 0.85rem;
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: 20px; font-size: 0.74rem; font-weight: 600;
    letter-spacing: 0.02em; color: var(--teal);
}

.projet-cat {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.projet-cat-chip {
    padding: 0.32rem 0.85rem;
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: 20px;
    font-family: 'Syne', sans-serif;
    font-size: 0.74rem; font-weight: 700;
    letter-spacing: 0.02em; color: var(--ink-mid);
}

.projet-stat-val {
    font-size: 0.82rem; font-weight: 600;
    color: var(--ink-mid);
}

.projet-feat {
    display: flex; flex-direction: column; gap: 0.45rem;
}
.projet-feat-link {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: -0.01em; color: var(--teal);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
.projet-feat-link span {
    font-size: 0.62rem; opacity: 0.55;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.projet-feat-link:hover {
    color: var(--ink); transform: translateX(2px);
}
.projet-feat-link:hover span {
    opacity: 1; transform: translate(1px, -1px);
}

.btn-sm { height: 40px; padding: 0 1.1rem; font-size: 0.68rem; }

.projet-nav-links {
    display: flex; flex-direction: column; gap: 0.5rem;
}

/* ── Article ── */
.projet-article {
    display: flex; flex-direction: column; gap: 4rem;
    padding-bottom: 6rem;
}

.projet-section {
    display: grid; grid-template-columns: 60px 1fr;
    gap: 1.5rem;
}

.projet-section-num {
    font-family: 'Syne', sans-serif;
    font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.2em; color: var(--mint-ink);
    padding-top: 0.5rem;
}

.projet-section-title {
    display: inline-block;
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--paper);
    background: var(--ink);
    padding: 0.5rem 1rem 0.55rem;
    margin-bottom: 1.4rem;
    border-radius: 6px;
    transform: rotate(-1.3deg);
    box-shadow: 3px 3px 0 var(--mint);
}

.projet-section-text {
    font-size: 0.95rem; line-height: 1.95;
    color: var(--ink-mid);
}
.projet-section-text p + p { margin-top: 0.9rem; }

.projet-tools-list {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-top: 1.2rem;
}
.projet-tool-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: var(--r);
    font-family: 'Syne', sans-serif;
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.06em; color: var(--teal);
}

/* ── Visuel ── */
.projet-visual { border-radius: var(--r-lg); overflow: hidden; }
.projet-visual-inner {
    width: 100%; aspect-ratio: 16/9;
    border-radius: var(--r-lg); overflow: hidden;
}
.projet-visual-video { background: #000; }
.projet-visual-video iframe { width: 100%; height: 100%; display: block; border: 0; }
.projet-visual .projet-visual-inner + .projet-visual-inner,
.projet-visual .projet-visual-caption + .projet-visual-inner { margin-top: 1.25rem; }
.projet-visual-caption {
    margin: 0.6rem 0 0;
    font-size: 0.78rem;
    color: var(--ink-muted);
    font-style: italic;
}

/* ── Embed Figma : chrome navigateur + hauteur dédiée ── */
.projet-visual-figma {
    aspect-ratio: auto;
    height: clamp(520px, 78vh, 780px);
    background: #1E1E1E;
    border: 1px solid rgba(45,212,191,0.12);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.04) inset,
        0 24px 60px -20px rgba(0,0,0,0.55);
    display: flex; flex-direction: column;
    transition: box-shadow 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
}
.projet-visual-figma:hover {
    border-color: rgba(45,212,191,0.35);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.06) inset,
        0 32px 70px -20px rgba(0,0,0,0.65),
        0 0 50px -10px rgba(45,212,191,0.25);
}
.projet-visual-figma iframe {
    flex: 1;
    width: 100%;
    background: #1E1E1E;
}
.figma-chrome {
    display: flex; align-items: center; gap: 0.45rem;
    padding: 0.7rem 1rem;
    background: linear-gradient(180deg, #2B2B2B, #1E1E1E);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.figma-chrome-dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: #444;
}
.figma-chrome-dot:nth-child(1) { background: #FF5F57; }
.figma-chrome-dot:nth-child(2) { background: #FEBC2E; }
.figma-chrome-dot:nth-child(3) { background: #28C840; }
.figma-chrome-label {
    margin-left: 0.6rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}
.figma-chrome-expand {
    margin-left: auto;
    width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(45,212,191,0.12);
    border: 1px solid rgba(45,212,191,0.3);
    color: #2DD4BF;
    font-family: 'Syne', sans-serif; font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}
.figma-chrome-expand:hover {
    background: #2DD4BF; color: #0A2A33;
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .projet-visual-figma { height: 70vh; min-height: 460px; }
    .figma-chrome-label { display: none; }
}

.projet-links {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
    margin: 1.5rem 0 0.5rem;
}
.projet-link-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--bg-dark); color: var(--paper);
    border: 1px solid var(--border-dark);
    border-radius: 999px;
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    text-decoration: none;
    transition: background 0.25s, transform 0.25s, border-color 0.25s;
}
.projet-link-btn:hover {
    background: var(--mint); color: var(--bg-dark);
    border-color: var(--mint);
    transform: translateY(-2px);
}
/* ── Poster « click-to-load » des embeds ── */
.embed-poster {
    position: relative; flex: 1;
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 0.9rem;
    padding: 1.5rem;
    border: 0; cursor: pointer;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-alt));
    overflow: hidden;
}
.embed-poster-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.4;
    transition: opacity 0.4s ease, transform 0.6s ease;
}
.embed-poster::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,26,33,0.35), rgba(10,26,33,0.78));
}
.embed-poster:hover .embed-poster-img { opacity: 0.55; transform: scale(1.04); }
.embed-poster-cta {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.8rem 1.5rem;
    background: var(--mint); color: var(--bg-dark);
    border-radius: 999px;
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.embed-poster:hover .embed-poster-cta {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -10px rgba(45,212,191,0.55);
}
.embed-poster-icon { font-size: 0.85rem; }
.embed-poster-hint {
    position: relative; z-index: 1;
    font-family: 'Syne', sans-serif;
    font-size: 0.64rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(247,251,250,0.6);
}

.projet-visual-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-alt));
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-dark);
    border-radius: var(--r-lg);
}
.projet-visual-placeholder span {
    font-family: 'Syne', sans-serif;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(247,251,250,0.2);
}

/* ── CTA strip bas ── */
.projet-cta-strip {
    background: var(--bg-dark); color: var(--paper);
    padding: clamp(4rem, 8vh, 7rem) 0;
    text-align: center;
    margin-top: 4rem;
}
.projet-cta-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: rgba(247,251,250,0.6); margin-bottom: 0.8rem;
}
.projet-cta-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800; letter-spacing: -0.04em;
    color: var(--paper); margin-bottom: 2rem;
}
.projet-cta-title .hw {
    font-family: 'Caveat', cursive;
    font-weight: 700; color: var(--mint);
}
.projet-cta-strip .reveal { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .projet-body {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .projet-sidebar { position: static; }
    .projet-nav-links { flex-direction: row; }
}
@media (max-width: 560px) {
    .projet-section { grid-template-columns: 1fr; gap: 0.5rem; }
    .projet-section-num { padding-top: 0; }
}

/* ═══════════════════════════════════════════════
   NAV SUR PAGE PROJET
   Le nav clair de la home est conditionné à body[data-section],
   que seule index.html renseigne. Sur une page projet le header
   est sombre : sans ces règles, le logo reste en encre foncée
   sur fond foncé et devient illisible.
═══════════════════════════════════════════════ */
.projet-page .nav-logo        { color: var(--paper); }
.projet-page .nav-links a     { color: rgba(247,251,250,0.7); }
.projet-page .nav-links a:hover { color: var(--paper); }
.projet-page .nav-burger span { background: var(--paper); }

.projet-page nav.elevated {
    background: rgba(10,42,51,0.9);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 rgba(45,212,191,0.14);
}
