* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    overflow-x: hidden;
    background-color: #000;
    color: #fff;
    height: 500vh; /* Pour permettre le défilement */
}

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

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.5s ease;
}

.quotes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.quote {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    text-align: center;
    max-width: 80%;
    opacity: 0;
    padding: 20px 40px; /* Ajoute de l'espace à l'intérieur du cadre */
    border: 2px solid rgba(255, 255, 255, 0); /* Bordure invisible par défaut */
    border-radius: 20px; /* Coins arrondis */
    transition: opacity 0.3s ease, text-shadow 0.3s ease, border-color 0.3s ease;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.3); /* Fond transparent */
}

.quote p {
    color: white;
    text-shadow: 0 0 0px rgba(0, 0, 0, 0);
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.5;
}

.quote.visible {
    opacity: 1;
    visibility: visible;
}

.quote.visible p {
    text-shadow: 0 0 10px rgba(0, 0, 0, 1);
}

/* Styles pour la flèche de défilement - version plus petite et plus lente */
.scroll-arrow {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 100;
    animation: bounce 3s infinite; /* Animation plus lente: 3s au lieu de 2s */
    cursor: default;
}

.scroll-arrow svg {
    width: 30px; /* Plus petit: 30px au lieu de 40px */
    height: 30px;
}

@keyframes bounce {
    0%, 30%, 60%, 90%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    45% {
        transform: translateX(-50%) translateY(-10px); /* Mouvement moins ample: -10px au lieu de -15px */
    }
    75% {
        transform: translateX(-50%) translateY(-5px); /* Mouvement moins ample: -5px au lieu de -7px */
    }
}

/* Remplacer le bouton de son par un slider avec rectangle arrondi */
.sound-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    transition: opacity 1.5s ease;
}

.sound-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.sound-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #333, #999, #fff);
    outline: none;
    cursor: pointer;
}

.sound-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: 1px solid #888;
    cursor: pointer;
}

.sound-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: 1px solid #888;
    cursor: pointer;
}

.sound-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 5px;
}

.sound-labels span {
    font-size: 10px;
    color: white;
    opacity: 0.8;
}

/* Supprimer les styles du bouton de son précédent */
.sound-button {
    display: none;
}

@media (max-width: 768px) {
    .quote {
        font-size: 1.5rem;
    }
}

/* Ajout après les règles existantes */
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Styles pour l'écran de démarrage */
.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 1000;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease;
}

.start-text {
    color: white;
    font-size: 28px;
    font-family: 'Georgia', serif;
    letter-spacing: 2px;
    text-align: center;
    transition: opacity 0.5s ease;
}

/* Transition pour la vidéo */
video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.5s ease;
}

/* Style pour le texte d'attribution - déplacé en haut au centre */
.attribution {
    position: fixed;
    top: 20px;              /* Changé de bottom: 20px à top: 20px */
    left: 50%;              /* Changé de left: 20px à left: 50% */
    transform: translateX(-50%); /* Ajouté pour centrer horizontalement */
    font-size: 12px;
    font-weight: 300;
    color: white;
    font-family: 'Georgia', serif;
    opacity: 0.8;
    z-index: 100;
    letter-spacing: 0.5px;
    text-align: center;     /* Ajouté pour centrer le texte */
}

/* Animation de pulsation pour différents niveaux de visibilité */
@keyframes pulseBorderSmall {
    0% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.08); }
    100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.1); }
}

@keyframes pulseBorderMedium {
    0% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.25); }
    50% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0.2); }
    100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.25); }
}

@keyframes pulseBorderLarge {
    0% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.3); }
    100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.4); }
}

.quote.pulse-border-small {
    animation: pulseBorderSmall 3s infinite ease-in-out;
}

.quote.pulse-border-medium {
    animation: pulseBorderMedium 3s infinite ease-in-out;
}

.quote.pulse-border-large {
    animation: pulseBorderLarge 3s infinite ease-in-out;
} 