/* =========================
SECTION PRÉSENTATION
========================= */

.presentation {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    color: red;
    text-align: center;
    overflow: hidden;
    width: 100vw;
    width: 100%;
    margin-left: calc(50% - 50%);
    margin-right: calc(50% - 50%);
}

.ensemblemain {
    position: relative;
    background: linear-gradient(
        to bottom,
        #000000 0%,
        #080808e0 5%,
        #2f2f2f 20%,
        #777777 50%,
        #ffffff 100%
    );
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}

.ensemblemain::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/bruit.png") repeat;
    opacity: 0.08;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.ensemblemain::after {
    animation: grain 0.25s steps(4) infinite;
}

@keyframes grain {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
    
        transform: rotate(360deg); 
    }
}

/* Titre */
.presentation-title {
    font-size: 48px;
    letter-spacing: 0.08em;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Texte */
.presentation-texte {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    text-align: justify;
    letter-spacing: 0.08em;
    flex-direction: column;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}



/* =========================
CARDS DANS PRÉSENTATION
========================= */

.presentation-images {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

/* Card */
.presentation-images .link-card {
    position: relative;
    width: 420px;
    text-decoration: none;
    display: block;
    border: 2px solid rgba(0, 0, 0, 0);
    border-color: transparent;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.presentation-images .link-card:hover {
    border-color: rgba(255, 0, 0, 0.8);
    transform: scale(1.02);
}

/* Image dans la card */
.presentation-images .link-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    object-fit: cover;
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* Hover image : buzzing */
.presentation-images .link-card:hover img {
    transform: scale(1.03);
}

/* Effet buzzing coloré */
.presentation-images .link-card img::before,
.presentation-images .link-card img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    mix-blend-mode: screen;
    opacity: 0;
    pointer-events: none;
}

.presentation-images .link-card:hover img::before {
    opacity: 0.25;
    animation: buzz 0.15s infinite alternate;
}

.presentation-images .link-card:hover img::after {
    opacity: 0.15;
    animation: buzz 0.12s infinite alternate-reverse;
}

@keyframes buzz {
    0% { transform: translate(1px, -1px); }
    100% { transform: translate(-1px, 1px); }
}

/* =========================
TEXTE GLITCH SUR LES CARDS
========================= */

.presentation-images .link-card h3 {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    color: red;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.presentation-images .link-card:hover h3 {
    opacity: 1;
}

/* Glitch layers */
.presentation-images .link-card h3::before,
.presentation-images .link-card h3::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: red;
    background: transparent;
    overflow: hidden;
    clip-path: inset(0 0 0 0);
    opacity: 0;
}

.presentation-images .link-card:hover h3::before {
    opacity: 1;
    animation: glitch-1 0.3s infinite linear alternate-reverse;
}

.presentation-images .link-card:hover h3::after {
    opacity: 1;
    animation: glitch-2 0.25s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% { transform: translate(-2px, -2px); }
    100% { transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
    0% { transform: translate(2px, -2px); }
    100% { transform: translate(-2px, 2px); }
}

/* Responsive */
@media (max-width: 900px) {
    .presentation-images {
        flex-direction: column;
        gap: 20px;
    }

    .presentation-images .link-card {
        width: 90%;
        margin: 0 auto;
    }
}


.articles-title {
    font-size: 48px;
    letter-spacing: 0.08em;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: red;
    text-align: center;
}