/* ----------------------------- */
/* RESET
/* ----------------------------- */
/* Reset et configurations de base */
@charset "UTF-8";

/* Reset de base */
/* Reset de base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Configuration de base */
html {
    font-size: 62.5%; /* Remove the redundant font-size declaration */
}

html, body {
    overflow: hidden; /* Ensure this is intended */
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color:rgb(205 96 74);
/*    background-color: rgb(62, 127, 255);*/
    font-family: Arial, sans-serif;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
        top: 3em;
    position: absolute;
    width: 90%;
    color: white;
}

/* Conteneur de présentation */
#presentation {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Styles des slides */
.slide {
    display: none;
    position: fixed;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.slide.active {
    display: block;
    opacity: 1;
}

/* Zones de navigation */
#left-zone, #right-zone {
    position: fixed;
    top: 0;
    height: 100%;
    width: 50%;
    cursor: pointer;
    z-index: 10;
    background: transparent;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#left-zone {
    left: 0;
}

#right-zone {
    right: 0;
}

.slide {
    will-change: transform, opacity;
}

/* Désactivation des interactions indésirables */
.slide img {
    pointer-events: none;
    -webkit-user-drag: none;
}

/*Bocal*/
.container {
    text-align: center;
    position: absolute;
}

.jar-image {
    max-width: 300px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.jar-image:hover {
    transform: scale(1.05);
    right: 2vw;
}

.message-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    max-width: 80%;
    display: none;
    z-index: 100;
    font-size: 18px;
    color: #333;
    text-align: center;
    line-height: 1.5;
}

.message-popup.active {
    display: block;
    animation: popIn 0.3s ease-out;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 90;
}

.overlay.active {
    display: block;
}



/* Style commun aux boutons musique et info */
.bouton-info, .audio-player {
    position: fixed;
    right: 30px;
    width: 40px; /* Même taille */
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Position spécifique */
.audio-player { bottom: 90px; } /* Musique plus haut */
.bouton-info { bottom: 30px; }  /* Info plus bas */

/* Icônes SVG pour musique et info */
.bouton-info img, .audio-btn {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Effet au survol */
.bouton-info:hover, .audio-player:hover {
    transform: scale(1.1);
}

.bouton-info:hover {
    transform: scale(1.10);
    animation: 0.2s ease-out;
    color: revert;
}

.info p {
    opacity: 0;
    position: fixed;
    bottom: 5vh; /* Positionné à 10% de la hauteur depuis le bas */
    left: 50%; /* Centre horizontalement */
    transform: translateX(-50%); /* Ajuste le centrage */
    width: 65vw;
    color: white;
    text-align: center; /* Centrage du texte */
 background: rgba(0, 0, 0, 0.7); /* Fond légèrement transparent pour la lisibilité */
    padding: 1em 1.5em; /* Ajout d'un padding pour un bon espacement */
    border-radius: 10px; /* Coins arrondis pour un meilleur rendu */
    transition: opacity 0.5s ease-out;
    font-size: 2em;
    pointer-events: none;

}

 .info:hover p {
    opacity: 1;
}

/* Styles Desktop (>768px) */
@media screen and (min-width: 768px) {
    .slide {
        height: 100vh;
        width: auto;
        max-width: 100%;
        bottom: 0;
        left: 0;
        object-fit: contain;
        object-position: left bottom;
    }

}

/* Styles Mobile (≤768px) */
@media screen and (max-width: 767px) {
    .slide {
        width: 100vw;
        height: auto;
        max-height: 100vh;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        object-fit: contain;
        object-position: bottom center;
    }

    #left-zone, #right-zone {
        height: 100vh;
    }

    @media screen and (max-width: 600px) {
    .bouton-info, .audio-player {
        width: 25px;  /* Rétrécir les boutons */
        height: 25px;
        right: 20px;  /* Légèrement plus près du bord */
    }

    .audio-player { bottom: 60px; } /* Ajustement position musique */
    .bouton-info { bottom: 20px; }  /* Ajustement position info */
}

}

/* Optimisations pour iOS */
@supports (-webkit-touch-callout: none) {
    .slide {
        -webkit-overflow-scrolling: touch;
    }
}

/* Support des écrans à haute densité de pixels */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .slide {
        transform-style: preserve-3d;
        backface-visibility: hidden;
    }
}

@keyframes popIn {
    0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Optimisations pour les animations */
