/* Styles globaux */
body {
    font-family: 'Archivo Black', sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #dedede;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Style pour le logo */
.logo {
    margin-bottom: 2rem;
}

.logo-title svg,
.logo-title img {
    width: clamp(250px, 50vw, 550px);
    height: auto;
    margin-bottom: 35px;
}

/* Hide scrollbar while keeping scroll functionality */
.carousel-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.carousel {
    display: flex;
    transition: transform 0.5s ease; /* Transition fluide */
    will-change: transform;
}

.carousel-rules {
    text-transform: uppercase;
    font-size: clamp(0.65rem, 1.2vw, 0.95rem);
    letter-spacing: 0.1em;
    margin-top: 12px;
}


.home-button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.5rem 2rem;
    color: #b07266;
    border-radius: 5px;
    white-space: nowrap;
    transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.home-button.selected {
    opacity: 1;
    font-weight: bold;
}

.home-button:not(.selected) {
    opacity: 0.3;
}

.beta-tag {
    font-size: 0.45em;
    opacity: 0.5;
    vertical-align: middle;
    letter-spacing: 0.05em;
}


/* Padding to center the first/last carousel button */
.carousel::before,
.carousel::after {
    content: '';
    flex: 0 0 50vw;
    height: 1px;
    background: transparent;
}


.logo-title h1 {
    font-size: clamp(3rem, 8vw, 8rem); /* Ajuste la taille automatiquement selon la taille de l’écran */
    margin: 0;
    line-height: 1;
}

.logo-title h1:first-child {
    color: #d9b3ad; /* Couleur adaptée à votre thème */
}

.logo-title h1:last-child {
    color: #d9b3ad;
    margin-top: -0.3em;
}

.container-play {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Gère de manière flexible les colonnes */
    gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.play-button{
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: clamp(2rem, 4vw, 3rem); /* Taille adaptative du texte */
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.5rem 2rem;
    border-radius: 5px;
    white-space: nowrap; /* Ensure the text stays on a single line */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    text-decoration: none;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 150;
}



/* Responsiveness */

/* Petits écrans (jusqu'à 600px) */
@media (max-width: 600px) {
    .logo-title svg,
    .logo-title img {
        width: 80vw;
        margin-bottom: 20px;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .logo-title h1 {
        font-size: 10vw;
    }

    .container-play {
        grid-template-columns: 1fr;
    }

    .home-button {
        font-size: clamp(1.1rem, 5.5vw, 1.6rem);
    }

    .carousel-rules {
        font-size: clamp(0.6rem, 3vw, 0.8rem);
    }

    .close-button {
        top: 12px;
        right: 12px;
        font-size: 1.5em;
    }
}

/* Écrans moyens (600px à 900px, comme les tablettes) */
@media (min-width: 600px) and (max-width: 900px) {
    .logo-title svg,
    .logo-title img {
        width: clamp(250px, 55vw, 450px);
    }

    .logo-title h1 {
        font-size: 8vw;
    }

    .container-play {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-button {
        font-size: clamp(1.2rem, 3.5vw, 2rem);
        padding: 1.2rem 1.8rem;
    }

    .carousel-rules {
        font-size: clamp(0.65rem, 1.8vw, 0.9rem);
    }
}

/* Grands écrans (plus de 900px) */
@media (min-width: 900px) {

    .home-button {
        font-size: clamp(1.3rem, 1.8vw, 2rem);
        padding: 1.2rem 1.8rem;
    }

    .container-play {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes pour les grands écrans */
    }
}

/* Shared animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
