/* ========================================================
   STUDIO24TV — CSS additionnel v2
   À charger APRÈS style.css (surcharge / additions)
   ======================================================== */

/* ================ FORMES EN ARRIÈRE-PLAN — STYLE RÉGIE TV ================ */
body {
    position: relative;
    overflow-x: hidden;
}

/* Calque décoratif fixé en arrière-plan, derrière tout */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        /* Lignes horizontales très fines de type "écran TV" */
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 3px,
            rgba(255, 255, 255, 0.012) 3px,
            rgba(255, 255, 255, 0.012) 4px
        ),
        /* Halo rouge en bas à gauche */
        radial-gradient(
            ellipse 50vw 40vh at 10% 95%,
            rgba(229, 9, 20, 0.06),
            transparent 70%
        ),
        /* Halo bleu très subtil en haut à droite */
        radial-gradient(
            ellipse 40vw 30vh at 90% 10%,
            rgba(20, 30, 60, 0.18),
            transparent 70%
        );
}

/* Cercles concentriques décoratifs (style oscilloscope) */
body::after {
    content: '';
    position: fixed;
    top: 50%;
    right: -200px;
    width: 600px;
    height: 600px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: -1;
    background-image:
        radial-gradient(circle, transparent 58%, rgba(229, 9, 20, 0.04) 58%, rgba(229, 9, 20, 0.04) 59%, transparent 59%),
        radial-gradient(circle, transparent 38%, rgba(255, 255, 255, 0.025) 38%, rgba(255, 255, 255, 0.025) 39%, transparent 39%),
        radial-gradient(circle, transparent 20%, rgba(255, 255, 255, 0.02) 20%, rgba(255, 255, 255, 0.02) 21%, transparent 21%);
    opacity: 0.6;
}

@media (max-width: 800px) {
    body::after { display: none; }
}

/* ================ LIENS UTILES (bas d'article) ================ */
.links-row {
    margin: 24px 0 20px;
    padding: 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.links-title {
    color: var(--red);
    font-size: 11px;
    font-weight: 500;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.links-list li { margin: 0; }
.links-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-1);
    font-size: 13px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.links-list a:hover {
    background: var(--red-soft);
    border-color: var(--red);
    color: #fff;
}
.links-list a svg {
    flex-shrink: 0;
    color: var(--text-3);
    transition: color 0.15s;
}
.links-list a:hover svg { color: var(--red); }

/* ================ FICHIERS À TÉLÉCHARGER ================ */
.downloads-row {
    margin: 24px 0 20px;
    padding: 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.downloads-title {
    color: var(--red);
    font-size: 11px;
    font-weight: 500;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.downloads-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.downloads-list a {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-1);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.downloads-list a:hover {
    background: var(--red-soft);
    border-color: var(--red);
}
.dl-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
}
.dl-size {
    color: var(--text-3);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    grid-column: 2;
    grid-row: 1;
}
.dl-desc {
    grid-column: 1 / -1;
    color: var(--text-2);
    font-size: 12px;
    font-style: italic;
}

/* ================ LIGHTBOX ================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: lightboxFadeIn 0.2s ease-out;
}
.lightbox.open { display: flex; }

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes lightboxImgZoom {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.lightbox-img {
    max-width: 95vw;
    max-height: calc(95vh - 60px);
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.8);
    animation: lightboxImgZoom 0.25s ease-out;
}
.lightbox-caption {
    color: var(--text-1);
    font-size: 13px;
    text-align: center;
    max-width: 80vw;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 14px;
    border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    z-index: 2;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    font-family: inherit;
    padding: 0;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--red);
    border-color: var(--red);
}
.lightbox-close:active,
.lightbox-prev:active,
.lightbox-next:active { transform: scale(0.92); }

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 28px;
}
.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.lightbox-prev:active { transform: translateY(-50%) scale(0.92); }
.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.lightbox-next:active { transform: translateY(-50%) scale(0.92); }

@media (max-width: 600px) {
    .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 24px; }
    .lightbox-prev { left: 8px; width: 40px; height: 40px; font-size: 26px; }
    .lightbox-next { right: 8px; width: 40px; height: 40px; font-size: 26px; }
}

/* Empêche l'effet "ouvrir dans un nouvel onglet" sur le curseur */
.photo-thumb[data-lightbox] { cursor: zoom-in; }

/* ================ FOOTER LIENS PAGES ================ */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links li {
    margin: 0 0 6px;
}
.footer-links a {
    color: var(--text-2);
    font-size: 13px;
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--red); }

/* ================ PAGE STATIQUE (mentions légales etc.) ================ */
.static-page {
    max-width: 820px;
    margin: 0 auto;
}
.static-page-content {
    color: var(--text-1);
    font-size: 15px;
    line-height: 1.7;
    margin: 18px 0 30px;
}
.static-page-content h2 {
    color: var(--red);
    font-size: 18px;
    font-weight: 500;
    margin: 28px 0 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.static-page-content h2:first-of-type {
    border-top: 0;
    padding-top: 0;
}
.static-page-content h3 {
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    margin: 20px 0 8px;
}
.static-page-content p {
    margin: 8px 0;
}
.static-page-content a {
    color: var(--red);
    text-decoration: underline;
    text-decoration-color: rgba(229, 9, 20, 0.4);
    text-underline-offset: 2px;
}
.static-page-content a:hover {
    text-decoration-color: var(--red);
}
.static-page-content ul,
.static-page-content ol {
    margin: 8px 0 12px 22px;
    padding: 0;
}
.static-page-content li {
    margin: 4px 0;
}
.static-page-content strong { color: var(--white); }
.static-page-meta {
    color: var(--text-3);
    font-size: 12px;
    text-align: right;
    margin-top: 30px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
