/* Styles globaux pour le body et le contenu */
body {
    margin: 0;
    overflow: hidden;
    height: 100vh;
    background: linear-gradient(to top, #0d1b2a 60%, #1b263b 100%);
}

.content {
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/background3.png');
    background-size: contain;
}

/* Styles pour le soleil */
.sun {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #f0f0f0, #dcdcdc);
    border-radius: 50%;
    position: absolute;
    top: 50px;
    right: 100px;
    box-shadow: 0 0 40px #f0f0f0;
    z-index: -2;
}

/* Styles pour les étoiles */
.star {
    position: absolute;
    background: #25DFE9;
    border-radius: 50%;
    width: 3px;
    height: 3px;
    opacity: 0.8;
    animation: twinkle 2s infinite ease-in-out;
    z-index: -3;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.2; }
}

/* Styles pour les nuages */
.cloud {
    position: absolute;
    background: #444;
    border-radius: 50%;
    opacity: 0.4;
    animation: float linear infinite;
    filter: blur(1px);
    z-index: -1;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: #444;
    border-radius: 50%;
    opacity: 0.8;
}

.cloud::before {
    top: -20px;
    left: 10px;
}

.cloud::after {
    top: -10px;
    left: 40px;
}

@keyframes float {
    0% {
        transform: translateX(-200px);
    }
    100% {
        transform: translateX(120vw);
    }
}

/* Styles pour le banian */
.banian {
    position: absolute;
    bottom: -50px;
    width: 100%;
    text-align: center;
}

.banian > button {
    background: none;
    border: none;
}

.banian > button > img {
    height: 800px;
}

/* Styles pour les feuilles animées */
.leaf {
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    background-image: url('../assets/img/bat.gif');
    background-size: contain;
    background-repeat: no-repeat;
    animation: fadeOut 6s forwards;
}

@keyframes fadeOut {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100vh);
    }
}

/* Fond semi-transparent + flou */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* Boîte centrale */
.modal-box {
    background-color: #1b263b;
    color: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 900px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Titre centré */
.modal-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #ffffff;
}

/* Corps : vidéo + texte côte à côte */
.modal-body {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Vidéo à gauche */
.modal-video {
    flex: 1 1 350px;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Texte à droite */
.modal-description {
    flex: 1 1 300px;
    font-size: 1rem;
    line-height: 1.6;
    color: #f1f1f1;
}

/* Position fixe dans le coin bas droit */
.dice-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    perspective: 600px;
    z-index: 1000;
    cursor: pointer;
}

/* Le dé lui-même */
.dice {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg);
    transition: transform 1s;
}

/* Faces du dé */
.face {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.face.one   { transform: rotateY(0deg) translateZ(40px); background-image: url("../assets/img/dice/textures/dice1.png"); }
.face.two   { transform: rotateY(180deg) translateZ(40px); background-image: url("../assets/img/dice/textures/dice2.png"); }
.face.three { transform: rotateY(90deg) translateZ(40px); background-image: url("../assets/img/dice/textures/dice3.png"); }
.face.four  { transform: rotateY(-90deg) translateZ(40px); background-image: url("../assets/img/dice/textures/dice4.png"); }
.face.five  { transform: rotateX(90deg) translateZ(40px); background-image: url("../assets/img/dice/textures/dice5.png"); }
.face.six   { transform: rotateX(-90deg) translateZ(40px); background-image: url("../assets/img/dice/textures/dice6.png"); }

#tourism-image {
    max-height: 300px;
    object-fit: cover;
}

.video-with-frame {
    position: relative;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 3 / 2;
    margin: 0 auto;
}

.video-framed {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    z-index: 1;
    object-fit: cover;
    border: none;
    border-radius: 10px;
}


.video-frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.tourism-image {
    flex: 1 1 350px;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}
