html, body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom);
    font-family: Arial, sans-serif;
}

body {
    background-color: darkslategrey;
    background-image: url('village10.jpg');
    background-size: cover;
}


a{
    color: black;
    text-decoration: none;
}
a:hover {
  text-decoration: underline;
}


header{
    text-align: center;
}
h1{
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    font-weight: bold;
    font-size: 50px;

}



.titre-principal{
    position:absolute; 
    left:70px; 
    top: 10px; 
    color: #333; 
    font-size:40px; 
    margin-top:0;
    font-weight: bold;
}




td {
   padding-bottom: 20px;
   padding-top: 20px;
   padding-right: 20px;
   padding-left: 20px;
}





.containercenter{
     position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
       display: flex;
    flex-wrap: wrap; 
    

}


.containerE {
    display: flex;  /* Transforme containerE en conteneur Flex */
    justify-content: center;  /* Centre horizontalement */
    align-items: center;  /* Centre verticalement */
    width: auto;
    min-height: 50px;  /* Hauteur minimale, ajustez selon vos besoins */
    background-color: rgba(245, 242, 205, 1.0);
    border-radius: 10px;
    border: 2px solid black;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    padding: 20px;
}


.containerE a {
    color: black ;
}




.containerE p{
    margin: 0;
    padding: 0;
    transform: translate(0, 0px);
    font-size: 25px;
    color: black;
    text-align: center;
}








@media (max-width: 767px) {
        .containerE{
    
        width: 40vw;
        height: auto;
        min-height: 50px;
        padding: 4vw;
        }
        .containercenter{
         position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-height: 200px;
        }

        .containerE p{
            font-size: 22px;
            
        }


}





@media (max-width: 768px) {
    body {
        background-image: url('afficheMV1.png');
    }
}

section {
    flex: 1;
    padding-bottom: 40px;
}

#bas-page {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 10px;
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
    font-size: 18px;
    margin-top: auto;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 1.2s;
}

#bas-page a {
    color: white;
    text-decoration: none;
    display: block;
    margin-top: 5px;
}

#bas-page a:hover {
    text-decoration: underline;
}

.footer-texte {
    color: white;
    font-weight: bold;
    font-size: 16px;
    margin: 0;
}

.containercenter {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.7s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Bulle info */
#bulle-info {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 90%;
    max-width: 360px;
    max-height: 80vh;
    overflow-y: auto;
    background-color: #fff;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    padding: 20px;
    z-index: 9999;
    animation: fadeInBulle 0.4s ease;
}

#fermer-bulle {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

@keyframes fadeInBulle {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bulle-contenu h3 {
    margin-top: 0;
    color: black;
}

.bulle-contenu p, .bulle-contenu ul li {
    font-size: 16px;
    color: black;
}

/* Animation Voir Plus */
.details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.bulle-contenu .plans {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.bulle-contenu .plan {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.plan-img {
    width: 100px;
    height: auto;
    object-fit: contain;
    margin: 10px auto;
    display: block;
}

.voir-plus {
    background-color: transparent;
    border: 1px solid #0a4a6a;
    color: #0a4a6a;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 10px;
}

.voir-plus:hover {
    background-color: #0a4a6a;
    color: white;
}

@media (max-width: 500px) {
    #bulle-info {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 90%;
        bottom: 60px;
    }
}


/* Styles pour le menu */
      .menu {
        display: none; /* le menu est caché par défaut */
        position: absolute;
        top: 50px;
        left: 10px;
        width: 15%;
        background-color: #333;
        padding: 10px;
        box-sizing: border-box;
        text-align: center;
        border-radius: 10px;
        border: 2px solid gray;
        z-index: 9999;
      }
      .menu li {
        margin: 10px;
       list-style: none;
      }

      .menu a:hover{
    text-decoration: underline;
    cursor: pointer;
}

      .menu a {
        color: #D3C58A;
        text-decoration: none;
        font-size: 16px;
      }
      
      /* Styles pour le bouton hamburger */
      .hamburger {
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 9999;
        width: 40px;
        height: 40px;
        background-color: #333;
        border-radius: 5px;  
        align-items: center;
        justify-content: center;
        cursor: pointer;
      }
      .hamburger span {
        transform: translate(0px, 5px);
        width: 70%;
        height: 3px;
        background-color:  rgba(250, 240, 207 , 1.0);
        display: block;
        margin: 5px;
        transition: all 0.3s ease-in-out;
      }


 .hamburger.active span:nth-child(1) {
  top: 0;
  transform: translateY(13px) translateX(8px) rotate(90deg);
}

.hamburger.active span:nth-child(2) {
  top: 0;
  transform: translateY(5px) rotate(90deg);
}

.hamburger.active span:nth-child(3) {
  top: 0;
  transform:translateY(-3px) translateX(-8px) rotate(90deg);
}

      @media (max-width: 767px) {
    .menu{
        width: 40vw;
    }
    .containercenter{
        background-color: rgba(51, 51, 51, 0);
        /*background-color: rgba(79, 49, 23, 0.8);*/
        width: 100vw;
        border-radius: 10px;
        padding-top: 15px;
        padding-bottom: 15px;
    }  
   
}


.info-contenu{
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    max-width: 700px;
    margin: auto; 
    text-align: center;
}

.accent{
color: #2980B9;
}
.warning{
color: #E74C3C;
}
.success{
   color: #27AE60; 
}