/* ==========================================
   RESET & FOND TOTALEMENT NOIR
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background: #000000 !important;
    color: #ffffff !important;
    position: relative;
}

/* ==========================================
   LIGNES VERTICALES DE LA GRILLE (ÉDITORIAL)
========================================== */
.grid-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.g-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.g-line.l-1 { left: 18%; }
.g-line.l-2 { left: 35%; }
.g-line.l-3 { left: 64%; }
.g-line.l-4 { left: 85%; }

/* ==========================================
   TOP & BOTTOM HUD
========================================== */
.top-hud, .bottom-hud {
    position: absolute;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    font-family: 'Inter', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
    z-index: 5;
    text-transform: uppercase;
}

.top-hud { top: 35px; }
.bottom-hud { bottom: 35px; }

/* Style pour les mots surlignés (fond blanc, texte noir) */
.highlight-badge {
    background: #ffffff;
    color: #000000 !important;
    padding: 3px 6px;
    display: inline-block;
    position: relative;
    animation: badgeGlitch 3s infinite ease-in-out;
}

@keyframes badgeGlitch {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(0.98); }
    70% { opacity: 1; transform: scale(1.02); }
}

/* ==========================================
   ZONE CENTRALE (TITRE, HOLOGRAMME & ENCADRÉ)
========================================== */
.center-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
    gap: 20px;
}

.huge-title {
    font-size: clamp(60px, 10vw, 140px);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 0.85;
    color: #ffffff;
    text-transform: uppercase;
}

/* ==========================================
   EFFET HOLOGRAMME & GLITCH (IMAGE)
========================================== */
.holo-container {
    position: relative;
    width: 260px;
    height: 380px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(10, 10, 10, 0.6);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.05);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.holo-container:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.holo-hud-tag {
    position: absolute;
    font-family: monospace;
    font-size: 8px;
    color: #ffffff;
    letter-spacing: 1px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.8;
}
.holo-hud-tag.top-left { top: 6px; left: 8px; }
.holo-hud-tag.bottom-right { bottom: 6px; right: 8px; }

/* Coins de visée HUD */
.corner {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid #ffffff;
    z-index: 10;
}
.c-tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.c-tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.c-bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.c-br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.holo-card {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Image principale : Noir & Blanc par défaut, Couleurs au survol */
.holo-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%) brightness(90%);
    transition: filter 0.4s ease;
}

.holo-container:hover .holo-img.base {
    filter: grayscale(0%) contrast(105%) brightness(100%);
}

/* Layers de Glitch */
.holo-img.glitch-r {
    opacity: 0;
    mix-blend-mode: screen;
    filter: grayscale(100%) brightness(150%) drop-shadow(-3px 0 0 #ffffff);
    transition: filter 0.4s ease;
}

.holo-img.glitch-b {
    opacity: 0;
    mix-blend-mode: screen;
    filter: grayscale(100%) brightness(180%) drop-shadow(3px 0 0 rgba(255, 255, 255, 0.7));
    transition: filter 0.4s ease;
}

/* Passage en couleurs aussi pour les calques de glitch lors du survol */
.holo-container:hover .holo-img.glitch-r,
.holo-container:hover .holo-img.glitch-b {
    filter: grayscale(0%) brightness(120%);
}

/* Lignes de scan en demi-teinte */
.holo-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.6) 0px,
        rgba(0, 0, 0, 0.6) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 6;
}

/* Faisceau laser de balayage Blanc */
.holo-laser-beam {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    box-shadow: 0 0 12px #ffffff;
    opacity: 0.8;
    z-index: 7;
    animation: holoScan 3s infinite linear;
    pointer-events: none;
}

@keyframes holoScan {
    0% { top: -5%; }
    100% { top: 105%; }
}

/* Animation Glitch Active */
.holo-container.is-glitching .holo-img.glitch-r {
    opacity: 0.85;
    transform: translate(-4px, 2px);
    clip-path: inset(20% 0 50% 0);
}

.holo-container.is-glitching .holo-img.glitch-b {
    opacity: 0.85;
    transform: translate(4px, -2px);
    clip-path: inset(60% 0 10% 0);
}

/* ==========================================
   ENCADRÉ ÉDITORIAL
========================================== */
.editorial-box {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.85);
    padding: 22px 25px;
    width: 380px;
}

.box-text-top {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.box-links-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
}

.link-item {
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.link-item:hover {
    color: #ffffff;
    opacity: 0.6;
}

.box-arrow-wrap {
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.box-hud-underline {
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 90px;
    height: 2px;
    background: #ffffff;
}

/* ==========================================
   CURSEUR HUD & BOUTON RETOUR
========================================== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease-out;
}

.cursor-dot {
    width: 3px;
    height: 3px;
    background: #ffffff;
    border-radius: 50%;
}

.home-return-btn {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    z-index: 10;
    font-family: 'Inter', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.home-return-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}