/* =================================
   ANIMATIONS SPÉCIFIQUES INDEX
   ================================= */

@keyframes rouler_logo {
    0% {
        transform: translateX(-80vw) rotate(-720deg);
        opacity: 0;
        filter: drop-shadow(0 0 0 rgba(0,0,0,0));
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateX(0) rotate(0deg);
        filter: drop-shadow(10px 10px 15px rgba(0,0,0,0.94));
    }
}

/* =================================
   LAYOUT INDEX
   ================================= */

.container-index {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: calc(100vh - 160px);
    max-height: 600px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background: transparent;
    border-radius: 8px;
}

/* =================================
   ÉLÉMENTS VISUELS
   ================================= */

.logo-principal {
    content: url('../images/logos/logo_cave_avec_nom_du_site_large.webp');
    max-width: 300px;
    margin-left: clamp(20px, 15vw, 400px);
    margin-bottom: 2rem;
    position: relative;
}

.welcome-text {
    font-family: 'MaManuscrite', cursive;
    font-size: clamp(0.9rem, 2.2vw, 1.4rem);
    line-height: 1.6;
    margin-left: clamp(20px, 15vw, 400px);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1), 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.roll-in-logo {
    animation: rouler_logo 3s ease-out forwards, pulsShadow 2s ease-in-out infinite;
    animation-delay: 0s, 3s;
}

/* =================================
   MEDIA QUERIES
   ================================= */

@media (max-width: 768px) {
	body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4); /* voile gris semi-transparent */
        z-index: 1;
        pointer-events: none; /* le voile ne bloque pas les clics */
    }

    .container-index,
    .logo-principal,
    .welcome-text {
        position: relative;
        z-index: 2; /* le contenu passe au-dessus du voile */
    }
    
    .logo-principal {
        content: url('../images/logos/logo_cave_avec_nom_du_site_medium.webp');
        max-width: 250px;
        margin-left: clamp(15px, 8vw, 60px);
    }

    .welcome-text {
        margin-left: clamp(15px, 8vw, 60px);
    }
}

@media (max-width: 480px) {
    .logo-principal {
        content: url('../images/logos/logo_cave_avec_nom_du_site_small.webp');
        max-width: 200px;
        margin-left: clamp(10px, 5vw, 30px);
    }

    .welcome-text {
        margin-left: clamp(10px, 5vw, 30px);
    }
}

@media (max-width: 768px) {
    
}
