/* ===================================
   GRID LINES (Background)
   =================================== */
.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-evenly;
    width: 100vw;
    height: 100%;
    pointer-events: none;
}
.grid-line {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 1px;
    height: 100%;
    padding: 1.75rem 0;
}
.grid-line-stroke {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: var(--line);
}
.grid-line-glow {
    position: absolute;
    left: 50%;
    top: -10%;
    width: 3px;
    height: 60px;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--cream, #F5E6C8) 0%, transparent 70%);
    filter: blur(2px);
    opacity: 0;
    pointer-events: none;
}
.grid-num {
    font-family: var(--mono);
    font-size: var(--grid);
    color: var(--line-num);
}
.horizontal-lines {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 4.5rem 0;
}
.horizontal-line {
    position: relative;
    width: 100%;
    height: 1px;
    background: var(--line);
}
.horizontal-line-glow {
    position: absolute;
    top: 50%;
    left: -10%;
    width: 60px;
    height: 3px;
    transform: translateY(-50%);
    background: radial-gradient(circle, var(--cream, #F5E6C8) 0%, transparent 70%);
    filter: blur(2px);
    opacity: 0;
    pointer-events: none;
}


/* ===================================
   TABLET STYLES
   =================================== */
@media (max-width: 1064px) {
    .grid-line {
        padding: 1rem 0;
    }
    .line-5 {
        display: none;
    }
    .horizontal-lines {
        padding: 3rem 0;
    }
}


/* ===================================
   MOBILE STYLES
   =================================== */
@media (max-width: 768px) {
    .grid-lines {
        justify-content: space-around;
    }
    .grid-line {
        padding: 0.5rem 0;
    }
    .line-4 {
        display: none;
    }
    .horizontal-lines {
        padding: 2rem 0;
    }
}

/* ===================================
   GRILLE LOCALE
   ===================================
   Modificateur posé par grid.js quand data-position="local" : la grille
   se limite à sa section au lieu de suivre le viewport. Sans cette règle,
   le .grid-lines par défaut reste `position: fixed` et reste visible
   par-dessus toutes les sections suivantes. */
.grid-lines--local {
    position: absolute;
    width: 100%;
    z-index: 1;   /* au-dessus de l'image de fond, sous le contenu (z-index 2) */
}