html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: rgb(245, 236, 247) url(../img/LogoCarte.jpg) no-repeat center;
    width: 100%;
    min-height: 100vh; /* Utiliser min-height pour que le contenu puisse s'étendre */
    overflow-x: hidden; /* Empêche le défilement horizontal */
}

body {
    padding-top: 100px; /* Ajuste cette valeur en fonction de .marquee-rtl */
    overflow-x: hidden; /* Empêcher le défilement horizontal */
    overflow-y: hidden; /* Empêcher la barre de défilement verticale de perturber la mise en page */
}

header {
    width: 100%;
    position: relative;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.clsPrix {
    float: none;
    margin: auto auto;
    width: 100%;
    animation: blink 2s infinite;
        /* Faites clignoter pendant 1 seconde, en boucle infinie */
}

h1#Entête_Index {
    color: rgb(47, 12, 88);
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 6vw, 5rem);
    position: relative;
    top: 20px;
    text-align: center;
    font-weight: bold;
    margin-top: 30px;

    display: block;
    width: 100%;
    max-width: 100%;
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip; /* Évite les ellipses inutiles */
}

li.btnAccueil {
    position: relative;
    float: none;
    margin: 0 auto;
    width: 100%;
    list-style: none;
}

/* Menu de navigation */
nav.menu-nav {
    position: relative;
    float: none;
    margin: -3% auto;
    left: 5%;
    width: 100%;
    list-style: none;
}
nav.menu-nav ul li {
    display: inline-block;
    list-style-type: none;
}
nav.menu-nav ul li:first-child {
    background-color: rgb(250, 125, 223);
    background-image: -webkit-linear-gradient(top, rgb(248, 108, 218) 0%, rgb(255, 14, 135) 100%);
    background-image: linear-gradient(to bottom, rgb(248, 170, 209) 0%, rgb(255, 14, 135) 100%);
}
nav.menu-nav ul li:nth-child(2) {
    background-color: #729EBF;
    background-image: -webkit-linear-gradient(top, #729EBF 0%, rgb(20, 142, 248) 100%);
    background-image: linear-gradient(to bottom, #729EBF 0%, rgb(67, 227, 255) 100%);
}
nav.menu-nav ul li:nth-child(3) {
    background-color: rgb(6, 180, 43);
    background-image: -webkit-linear-gradient(top, rgb(26, 246, 26) 0%, rgb(26, 159, 44) 100%);
    background-image: linear-gradient(to bottom, rgb(4, 133, 26) 0%, rgb(18, 245, 86) 100%);
}
/* Fin sur le menu de navigation */
/* le block conteneur */
/* MARQUEE RTL - placé juste après le header */
.marquee-rtl {
    position: fixed; /* Fixe l'élément sous le header */
    top: 55px; /* Ajuste selon la hauteur du header */
    left: 0;
    width: 100vw; /* Prend toute la largeur de l'écran */
    white-space: nowrap;
    overflow: hidden;
    color: rgb(47, 12, 88);
    font-size: 150%;
    border: 3px solid #985f90;
    padding: 10px;
    text-align: center;
}

.marquee-rtl > div {
    display: inline-block;
    padding-right: 100%;
    animation: marquee-rtl 10s linear infinite;
}

@keyframes marquee-rtl {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
} 

/* le bloc défilant */
.marquee-rtl> :first-child {
    display: inline-block;
    /* modèle de boîte en ligne */
    padding-right: 2em;
    /* un peu d'espace pour la transition */
    padding-left: 100%;
    /* placement à droite du conteneur */
    white-space: nowrap;
    /* pas de passage à la ligne */
    animation: defilement-rtl 30s infinite linear;
}
@keyframes defilement-rtl {
    0% {
        transform: translate3d(0, 0, 0);
        /* position initiale à droite */
    }

    100% {
        transform: translate3d(-100%, 0, 0);
        /* position finale à gauche */
    }
}

audio#monaudio {
    display: block;
    margin: 20px auto;  /* Centrage horizontal et marges autour */
    max-width: 80%;     /* Réduit la largeur de l'élément audio */
    height: 40px;       /* Limite la hauteur de l'élément audio */
    border-radius: 8px; /* Arrondir les coins du lecteur */
    background-color: #985f90; /* Arrière-plan léger */
    box-shadow: 0 2px 8px rgba(112, 20, 20, 0.1); /* Ombre légère pour l'effet */
}

 /* Bandeau d'images défilantes */
 #Deroulant {
     position: absolute;
     /* postulat de départ */
     top: 50%;
     left: auto;
     /* à 50%/50% du parent référent */
     transform: translate(0, 0);
     /* décalage de 50% de sa propre taille */
 }
 /* Texte défilant */
 div {
     text-align: center;
 }
 p,
 article {
     display: inline-block;
     margin: 50px auto;
     border: double;
     /*background: rgb(210, 205, 212);*/
     padding: 5px 0%;
     position: relative;
     overflow: hidden;
     table-layout: fixed;
     box-shadow: 0 0 15px rgb(189, 71, 236)
 }
 strong {
     display: block;
     animation: linear marqueelike 20s infinite;
     margin-left: -80%;
     padding: 5px 5px;
     text-align: left;
     font-size: 1.4em;
     color: rgb(33, 5, 44);
 }
 strong:after {
     content: attr(data-text);
     position: absolute;
     white-space: nowrap;
     padding-left: 10px;
 }
 @keyframes marqueelike {
     0%,
     50% {
         margin-left: 30%;
         margin-top: 15%;
     }
     99.99% {
         margin-left: -15%;
     }
 }
 /* FIN Texte défilant */

 h2#Merci {
    color: #985f90;
    font-family: 'Playfair Display', serif;
    position: absolute;
    font-size: 3vw;
    top: 85%;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

div#Compteur {
    position: absolute;
    top: 95%;
    margin: 0 auto;
    left: 1%;
    width: 100%;
    text-align: left;
}
 div#copyright {
    color: rgb(47, 12, 88);
    position: absolute;
    top: 95%;
    margin: 10 auto;
    width: 100%;
    text-align: right;
 }
 
.div#copyright.p
{
    position: relative;
    top: 50%;
    transform: perspective(1px) translateY(-50%);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: #f8f8f8;
    padding: 10px 0;
    display: flex; /* Ajouté pour la compatibilité et assurer l'affichage correct */
    align-items: center; /* Centre les images verticalement */
}

.marquee-content {
    display: flex; /* Utilisation de flexbox pour éviter les problèmes d'affichage */
    gap: 20px; /* Espacement entre les images */
    animation: marquee 15s linear infinite;
}

.marquee-content img {
    height: 150px;
    width: auto; /* Permet de garder les proportions correctes */
    max-width: 250px; /* Définit une largeur maximale pour éviter de trop grands écarts */
}

@keyframes marquee {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* Style du menu déroulant */
.btnAccueil {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 0;
    list-style: none;
    z-index: 1000;
	opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.dropdown-menu li a {
    display: block;
    text-decoration: none;
    color: black;
    padding: 8px 12px;
    transition: background 0.3s ease-in-out;
}

.dropdown-menu li a:hover {
    background: #f0f0f0;
}

/* Affichage du menu au survol ou au clic */
.btnAccueil:hover .dropdown-menu,
.btnAccueil:focus-within .dropdown-menu {
    display: block;
	opacity: 1;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}