.accueil-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.texte-accueil {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    text-align: center;
    z-index: 2;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

@media (min-width: 992px) {
    .texte-accueil {
        left: calc(50% + 150px);
        max-width: 700px;
    }
}

@media (max-width: 991px) {
    .texte-accueil {
        width: 85%;
        padding: 15px;
        max-width: none;
    }

    #titre-accueil {
        font-size: 1.6em !important;
    }

    #description-accueil {
        font-size: 1em !important;
    }
}

@media (max-width: 576px) {
    .texte-accueil {
        width: 90%;
        padding: 12px;
    }

    #titre-accueil {
        font-size: 1.3em !important;
    }

    #description-accueil {
        font-size: 0.9em !important;
    }
}

#titre-accueil,
#description-accueil {
    margin: 0 auto;
    max-width: 100%;
}

#titre-accueil {
    font-family: 'Roboto', sans-serif;
    font-size: 3em;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9),
        0 0 22px rgba(255, 255, 255, 0.7);
    animation: pulse 3s infinite;
}

#description-accueil {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5em;
    color: #f0f0f0;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

#description-accueil .ligne {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    font-family: monospace;
    width: 0;
    opacity: 1;
    animation: typing 3s steps(30, end) forwards, blink 0.75s step-end infinite alternate;
}

@media (max-width: 768px) {
    #description-accueil .ligne {
        width: auto !important;
        white-space: normal;
        animation: none;
        border-right: none;
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    0% {
        border-color: transparent;
    }

    50% {
        border-color: #f0f0f0;
    }

    100% {
        border-color: transparent;
    }
}

#description-accueil span.ligne:nth-of-type(1) {
    animation-delay: 0s;
}

#description-accueil span.ligne:nth-of-type(2) {
    animation-delay: 4s;
}

#description-accueil span.ligne:nth-of-type(3) {
    animation-delay: 8s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {

    .reveal-left,
    .reveal-right {
        transform: scale(0.9) translateY(50px) !important;
    }

    .scroll-reveal {
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }

    .reveal-left.visible,
    .reveal-right.visible {
        transform: scale(1) translateY(0) !important;
    }
}