
@media screen and (max-width:1580px) {

    .logo{
        align-self: flex-start;
    }

    .menu {
        align-self: stretch;
        padding: 30px 0;
        flex-wrap: wrap;
        margin-left: auto;
        margin-right: auto;
        
    }

    .titre_h2 {
        font-size: 35px;
    }

    .box_middle {
        height: 547px;
        width: 547px;
    }
    
    .box_top, .box_bottom {
        height: 230px;
        width: 230px;
    }

    .box_top{
        margin-top: 150px;
    }

    .box_bottom{
        margin-bottom: 150px;
    }

    .engagements .item:nth-child(1) {
        width:90%;
      }
    
    .engagements .item:nth-child(2) {
        width:90%;
      }
    
    .engagements .item:nth-child(3) {
        width:90%;
      }
    
    .engagements div:nth-child(1) p{
        margin-left: 40px;
      }
    
    .engagements div:nth-child(2) p{
        margin-right: 40px;
      }
    
    .engagements div:nth-child(3) p{
        margin-right: 40px;
      }

      .bubble_text_contact{
        margin-left:35%;
    }

    .item_footer {
        flex-basis: calc(50% - 20px); /* Pour deux colonnes sur les écrans plus petits */
    }
        
    }


@media screen and (max-width: 768px) {
    
    .topbar{
        height: 180px;
    }

    .topbar_top{
        align-items: center;
        padding:0;
    }

    .logo{
        margin-left: 20px;
    }
   
    .logo img{
            width: 163px;
            height: 74px;
            vertical-align: middle;
    }

    .hamburger {
        display:block; /* Afficher le bouton hamburger */
    }

    .menu {
        display: none; /* Masquer le menu par défaut */
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        z-index: 1000; /* Assurez-vous que le menu apparaît au-dessus de tout le contenu */
    }

    .menu.is-open {
        display: block; /* Afficher le menu lorsqu'il est ouvert */
    }

    /* Définir les styles pour le menu */
    .menu a {
        display: block;
    }

    /* Afficher le menu lorsque la case est cochée */
.hamburger-checkbox:checked ~ .menu {
    display: block;
}

/* ne plus incliner le fond du menu */
.association a::before {
    transform: skewX(0deg); 
}

.chantiers > a::before, .outils a::before, .outils a::before, .contact a::before, .plus a::before {
    transform: skewX(0deg); 
}

.dropdown-content {
    margin-top: 0px;
    }

/*pour faire défiler le texte du bandeau évènement*/
   .evenement p{
    padding-left: 0px;
    margin:0;
    font-size: 20px;
    animation: marquee 10s linear infinite;  
   }


@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.main_1{
    height: 83vh;
}

.titre_h2 {
    font-size: 20px;
    line-height: 1.5;
}
.container {
    flex-wrap: wrap; /* Ajouter une direction de colonne */
    align-items: flex-start;
}

.box_middle {
    order: -1; /* Pour que la box_middle soit au dessus dans la version mobile */
    height: 399px;
    width: 399px;
    padding: 20px 20px 20px 0;
    align-self:flex-end; 
}

.box_top, .box_bottom {
    align-self:flex-start; 
    height: 167px;
    width: 168px;
    padding: 0px 20px 20px 20px;
    border-radius: 0px 0px 25px 25px;
    margin-top: 0;
}

.container a {
    font-size: 20px;
    padding-left: 10px;
}
.titre_h1 {
    font-size:25px;
}
.financement{
    justify-content: center;
    margin-right: 20px;
    margin-left: 20px;
 }
.financement div{
    height:120px;
 }

.financement img{
    height: 100%;
 }

 .bubble-text{
    font-size: 20px;
    font-weight: 500;
    width:70%;
    height:81px;
    margin-left:auto;
    margin-right: 20px;
}

.engagements .item {
    margin-bottom: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    height:auto;
  }

.engagements .item:nth-child(1) {
    width:90%;
  }

.engagements .item:nth-child(2) {
    width:90%;
  }

.engagements .item:nth-child(3) {
    width:90%;
    border-radius: 0px 50px 50px 0px;
    margin-left:0;
  }

.engagements .titre_engagements{
    font-size: 20px;
    font-weight:bold;
  }
.description{
    font-size: 15px;
  }

  .engagements div:nth-child(1) p{
    margin-left: 20px;
  }

.engagements div:nth-child(2) p{
    margin-right: 20px;
  }

.engagements div:nth-child(3) p{
    margin-right: 20px;
  }

.bubble-text-carte{
    position:relative;
    left:0%;
    margin: 40px;
    width:80%;
    height:auto;
    padding: 20px;
}

.titre_bubble_carte{
    font-size: 24px;
    padding: 10px 0 10px 0;
}

.bubble-text-carte::after{
    position:absolute;
    top: auto;
    left: auto;
    bottom: -20px;
    right: 40px;
    transform: rotate(0deg);
}

.description_bubble_carte{
    font-size: 14px;
}

.localisation{
    font-size: 13px;
    justify-content: space-around;
}
.localisation p{
    width:auto;
    flex-basis: calc(50% - 20px);
}

.carte{
    display: none;
}

.carte_mobile{
    display: block;
}

.informations .item{
    position:relative;
    width: 100%;
    height: auto;
    margin: 0px;
    padding: 20px 20px;
  }
.informations .item:nth-child(odd) {
    margin-left:0;
    border-radius: 0px;
    margin-right: 0px;
  }

.informations .item:nth-child(even) {
    margin-right:0;
    border-radius: 0px;
    margin-left: 0px;
}

.informations .item img{
    width:84px;
    height: 84px;
   }
.bubble_text_right{
    top:20px;
    right:20px;
    width:250px;
    height:80px;
    font-size: 15px;
    padding: 25px 25px;
}
.bubble_text_right::after{
    left: -28px;
    }

.bubble_text_left{
    top:20px;
    left:20px;
    width:250px;
    height:80px;
    font-size: 15px;
    padding: 25px 25px;
}

.bubble_text_left::after{
    right:-28px;
    }

.savoir a{
    font-size: 25px;
}

.bubble_text_contact{
    width:327px;
    height:81px;
    margin-left:20px;
    font-size: 23px;
}
form {
    max-width:100%;
}

label, input, textarea {
    width:100%;
    height:40px;
    font-size: 20px;
    }

input[type="submit"] {
        width: 250px;
        height: 55px;
        font-size: 30px;
}

.article{
    font-size: 20px;
    line-height: 1.2;
    }

.footer {
    margin: 20px;
}

.logo_footer {
    width:270px;
    height: 123px;
}

.info_footer {
    padding-right:20px;
    padding-left: 20px;
}

.item_footer {
    flex-basis: calc(100% - 20px); /* Pour une colonne sur les écrans plus petits */
    margin-bottom: 0px;
}
.item_footer {
    flex-direction: column;
    justify-content: flex-start;
}

.item_footer a{
    font-size: 20px;
    padding: 0;
    margin: 0;
  }


}
