/* Reset et base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: #e0e0e0;
    font-family: 'Manuskript Antiqua', 'Times New Roman', serif; 
}

/* Zone de texte superposée */
.lower-third {
    position: absolute;
    bottom: 50px; /* Ajuste la hauteur depuis le bas */
    left: 50%;
    width: 80%; /* Largeur plus généreuse pour la lisibilité */
    height: auto;
    display: flex;
    justify-content: center; /* Centrage horizontal */
    align-items: flex-end;    /* Aligne le contenu vers le bas du bloc */
    background-color: rgba(0, 0, 0, 0.4); /* Fond semi-transparent pour la lisibilité */
    pointer-events: none;
    transform: translateX(-50%); /* Centre parfaitement le bloc sur l'écran */
    z-index: 10; /* Assure la superposition au-dessus du fond */
    padding: 20px;
    border-radius: 8px;
}

.ticker-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ticker-canvas {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.ticker-item {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    width: 100%;
    text-align: center; /* Centre le texte à l'intérieur de chaque ligne */
    white-space: normal; /* Permet le retour à la ligne automatique */
}

/* --- Responsive Design --- */

@media screen and (max-width: 768px) {
    .lower-third {
        width: 90%;
        bottom: 30px;
    }

    .ticker-item {
        font-size: 1.1rem;
        padding: 0 10px;
    }
}

@media screen and (min-width: 1400px) {
    .lower-third {
        width: 60%;
    }
    .ticker-item {
        font-size: 1.8rem;
    }
}