#slider-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: #000;
    contain: layout paint;
}
@media (max-width:1024px){ #slider-wrapper { height: 300px; } }
@media (max-width:768px){ #slider-wrapper { height: 300px; } }

#slider-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.75;
    image-rendering: pixelated;
    transform: translateZ(0);
    backface-visibility: hidden;
}

#scanlines {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom,
        rgba(0,0,0,0) 0px,
        rgba(0,0,0,0) 2px,
        rgba(0,0,0,0.15) 2px,
        rgba(0,0,0,0.15) 4px);
    mix-blend-mode: multiply;
}

#slider-content {
    position: absolute;
    bottom: 30px;
    left: 100px;
    z-index: 2;
    color: #fff;
}
#slider-content h1 {
    font-size: 3em;
    font-family: neon, sans-serif;
    font-style: italic;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 1);
}
#slider-content h2 {
    font-size: 1.4em;
    font-weight: 300;
    font-family: neon, sans-serif;
    font-style: italic;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 1);
}
.btn-contact {
    display: inline-block;
    padding: .8em 1.6em;
    background: rgba(3,91,179,0.9);
    color: #fff;
    text-decoration: none !important;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: background .3s;
}
.btn-contact:hover {
    background: #fff;
    color: #000;
}
@media (max-width:1024px){
    #slider-content { bottom: 20px; left: 40px; }
    #slider-content h1 { font-size: 2em; }
    #slider-content h2 { font-size: 1em; }
}
@media (max-width:768px){
    #slider-content { bottom: 15px; left: 30px; right: 30px; }
    #slider-content h1 { font-size: 2em; }
    #slider-content h2 { font-size: 1em; }
}

/* Bouton Pause / Lecture */
#slider-toggle-button {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 10;
    background: #111;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

/* Style réduit tablette et mobile */
@media (max-width: 1024px) {
    #slider-toggle-button {
        font-size: 14px;
        padding: 6px 10px;
        right: 12px;
        bottom: 12px;
        background: rgba(0, 0, 0, 0.7);
        box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    }
}