@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;400&display=swap');

:root {
    --color-r: #FFC107; /* Jaune Ambre */
    --color-e: #03A9F4; /* Bleu Ciel */
    --color-v: #FF5722; /* Orange Foncé */
    --color-i1: #4CAF50; /* Vert */
    --color-i2: #E91E63; /* Rose Vif */
    --color-n: #9C27B0; /* Violet */
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #121212;
    color: #ffffff;
    overflow: hidden; /* Empêche les barres de défilement */
}

.background-texture {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80"%3E%3Crect fill="%231a1a1a" width="80" height="80"%3E%3C/rect%3E%3Cg fill-rule="evenodd"%3E%3Cg fill="%232a2a2a" fill-opacity="0.4"%3E%3Cpath d="M0 0h40v40H0V0zm40 40h40v40H40V40z" /%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    animation: grain 8s steps(10) infinite;
    z-index: 0;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 10vw;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
}

.logo .char {
    display: inline-block; /* Nécessaire pour les transformations GSAP */
    opacity: 0; /* Initialement invisible */
    transform: translateY(50px) scale(0.5); /* Position de départ pour l'animation */
}

/* Assignation des couleurs à chaque lettre */
.logo .char:nth-child(1) { color: var(--color-r); }
.logo .char:nth-child(2) { color: var(--color-e); }
.logo .char:nth-child(3) { color: var(--color-v); }
.logo .char:nth-child(4) { color: var(--color-i1); }
.logo .char:nth-child(5) { color: var(--color-i2); }
.logo .char:nth-child(6) { color: var(--color-n); }


.description {
    font-size: 2vw;
    font-weight: 400;
    margin-top: 1rem;
    letter-spacing: 0.1rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0; /* Initialement invisible */
    transform: translateY(20px);
}

/* Media queries pour la responsivité sur les petits écrans */
@media (max-width: 768px) {
    .logo {
        font-size: 15vw;
        letter-spacing: 0.2rem;
    }
    .description {
        font-size: 3.5vw;
    }
}