/* =============================================
   TWWC DESIGN — PAGE DÉTAIL
   ============================================= */

.detail-page {
    background: #696969;
    color: #fff;
    font-family: 'Arial Black', Arial, sans-serif;
    min-height: 100vh;
    padding: 0 0 80px;
    position: relative;
    overflow: hidden;
}

/* Grain (cohérent avec le reste du site) */
.detail-page::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/bruit.png") repeat;
    opacity: 0.06;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 0;
    animation: grain 0.25s steps(4) infinite;
}

@keyframes grain {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ── ENTÊTE ──────────────────────────────────── */

.detail-entete {
    position: relative;
    z-index: 1;
    padding: 40px 50px 30px;
    border-bottom: 2px solid red;
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.detail-number {
    font-size: 1rem;
    font-weight: 900;
    color: red;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.detail-nom {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.1;
}

.detail-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.12em;
    margin-left: auto;
    flex-shrink: 0;
}

/* ── LAYOUT PRINCIPAL ────────────────────────── */

.detail-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 70vh;
}

/* ── COLONNE GAUCHE : grande image ───────────── */

.detail-col-gauche {
    border-right: 2px solid red;
    background: #FFFFFF;
}

.detail-visuel-principal {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-visuel-principal img {
    width: 100%;
    height: 100%;
    max-height: 70vh;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* ── COLONNE DROITE ──────────────────────────── */

.detail-col-droite {
    display: flex;
    flex-direction: column;
}

/* Zone texte */
.detail-texte {
    flex: 1;
    padding: 40px 40px 30px;
    border-bottom: 2px solid red;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: red;
}

.detail-accroche {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    line-height: 1.6;
    margin: 0;
}

.detail-corps {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.9;
    letter-spacing: 0.04em;
}

.detail-corps p { margin: 0 0 12px; }

/* Zone vignettes (3 cases en bas à droite) */
.detail-vignettes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 0;
}

.detail-vignette {
    background: #FFFFFF;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-left: 2px solid red;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-vignette:first-child {
    border-left: none;
}

.detail-vignette img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.detail-vignette:hover img {
    transform: scale(1.05);
}

/* ── ACTIONS ─────────────────────────────────── */

.detail-actions {
    position: relative;
    z-index: 1;
    padding: 40px 50px 0;
    display: flex;
    gap: 20px;
    align-items: center;
    border-top: 2px solid red;
    margin-top: 0;
}

.detail-btn {
    display: inline-block;
    padding: 14px 36px;
    border: 2px solid red;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: 'Arial Black', Arial, sans-serif;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.detail-btn:hover {
    background: red;
    color: #000;
    transform: scale(1.03);
}

.detail-btn--retour {
    border-color: rgb(255, 0, 0);
    color: rgb(255, 255, 255);
}

.detail-btn--retour:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
}

/* ── RESPONSIVE ──────────────────────────────── */

@media (max-width: 900px) {

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-col-gauche {
        border-right: none;
        border-bottom: 2px solid red;
    }

    .detail-visuel-principal {
        min-height: 340px;
    }

    .detail-visuel-principal img {
        max-height: 50vh;
    }

    .detail-entete {
        padding: 28px 24px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .detail-date {
        margin-left: 0;
        width: 100%;
    }

    .detail-texte {
        padding: 28px 24px;
    }

    .detail-actions {
        padding: 28px 24px 0;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .detail-nom {
        font-size: 1.2rem;
    }

    .detail-vignettes {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-btn {
        padding: 12px 20px;
        font-size: 11px;
    }
}
