/*GENERAL*/

@font-face {
    font-family: 'Frunchysage';
    src: url('../assets/font/Frunchy_Sage/Frunchy_Sage/Frunchy.ttf')  format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Lora';
    src: url('../assets/font/Lora/Lora/Lora-VariableFont_wght.ttf')  format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    --title-font : 'Frunchysage',  sans-serif;
    --body-font : 'Lora', sans-serif;

    --green-color: #6C8350;
    --beige-color: #E0E0D5;

    -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

*::-webkit-scrollbar {
  display: none;
}

body,main {
    min-height: 80vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #FFF 0%, #FFF 50%, var(--green-color) 50%, var(--green-color) 100%);
}


/*HEADER SECTION*/
.devis-header {
    position:relative;
    display:flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.devis-logo {
    position: absolute;
    left: 0%;
    width: 10vw;
    display: flex;
    justify-content: center;
    align-items: center;
   
}

.devis-logo img{
    width: 150px;
    display: flex;
    
}
.devis-logo img  > img  {
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}
.devis-titre {
    font-family: var(--title-font);
    font-size: 4rem;
    color: var(--green-color);
}

/*MAIN SECTION*/
main {
    padding-top: 2rem;
}
/*PREAMBULE*/
.preambule {
    color: #000000;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    padding: 0rem 5rem;
    padding-bottom: 2rem;
    justify-content: center;
    align-items: center;
    text-align: center;

   
}

.preambule a {
    color: #6C8350;
}

.preambule p {
    width: 30%;
}

/*FORMULAIRE*/ 

.main-container {
    position: relative;
    top: 20%;
    left: 25%;
    max-height: fit-content;
    width: 50vw;
    padding: 0.5rem 2rem;
    border: solid 6px black;


    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    font-family: var(--body-font);
    background-color: #FFF;
    
}

.main-container-header {
    display: flex;
    width: 100%;
    height: fit-content;
    font-size: 1.5rem;
}

.contact-form {
    position: relative;
 
    margin-top: 3.2rem;
    width: 100%;
    height: min-content;
   
   display: flex; 
   flex-direction: column;
   justify-content: start;
   align-items: start;
   gap: 1rem;
}
.form-row {
    display: flex;
    gap: 2rem;
}

.form-row > div {
   flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem; /* espace entre label et input */
    
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="telephone"] {
    width: 100%;
    padding: 0.6rem;

    border-radius: 2px;
    border: 1px solid #000000;
    font-size: 1rem;
    font-family: var(--body-font);

    flex: 1;
}
.message {
    width: 100%;
}
#message {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    /* Supprime overflow: scroll; */
    resize: vertical;
    min-height: 100px; 
}

.form-footer {

    position: relative;
   width: 100%;
   
    display: flex;
   flex-direction: column;
   justify-content: space-between;
}

.conditions {
    position: relative;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.envoyer {
  
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
  width: fit-content;


     background: linear-gradient(90deg, #6C8350 50%,  var(--beige-color) 50%); /* Couleur initiale */
    background-size: 200% 100%; /* Double la largeur pour permettre l'animation */
    background-position: 0% 0%; /* Position initiale */
    transition: background-position 0.4s ease-in-out;
}

.envoyer button {
    padding: 1rem 1.5rem;
    color: #FFF;
  
    border: none;

}


/*MAIN SECTION*/
@media screen and (max-width:625px) {
/*MAIN SECTION*/
main {
    padding-top: 6rem;
}
/*PREAMBULE*/
.preambule {
    color: #000000;
    font-size: 16px;

    
    font-weight: 800;
    display: flex;
    flex-direction: column;
    padding: 0rem 0rem;
   
    justify-content: space-around;
    gap: 0px;
    align-items: center;
    text-align: center;

   
}

.preambule a {
    color: #6C8350;
}
.preambule p {
    width: 90%;
}
    .main-container {
        width: 96vw;
        max-width: 98vw;
        min-width: 0;
        margin: 1.5rem auto;
        left: 0;
        top: 0;
        padding: 1rem 0.5rem;
        box-sizing: border-box;
        
      
    }

    .main-container-header h2{
       font-size: 1.5rem;
        width: 100%;
        text-align: center;
    }

    .contact-form {
        margin-top: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .form-row > div {
        width: 100%;
        flex: unset;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="telephone"] {
        width: 100%;
        font-size: 1rem;
        padding: 0.5rem;
        box-sizing: border-box;
    }


    .conditions {
         font-size: 0.7rem;
    }

    .envoyer {
  
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;


    background: linear-gradient(90deg, #6C8350 50%,  var(--beige-color) 50%); /* Couleur initiale */
    background-size: 0% 100%; /* Double la largeur pour permettre l'animation */
    background-position: 0% 0%; /* Position initiale */
    transition: background-position 0.4s ease-in-out;
}

    }


    /*FOOTER*/
footer {
    position: relative;
    background-color: var(--green-color);
    display: flex;
    justify-content: space-between; /* <-- clé */
    align-items: center;
    width: 100%;
    max-width: 100vw;
    margin: 0; /* pas de marge qui fait dépasser */
    padding: 1rem 2vw; /* padding interne pour respirer */
    padding-top: 0;
    box-sizing: border-box;
}

    .icone-reseaux {
        display: flex;
        gap: 30px;
    }
    .icone-reseaux img {
        width: 55px;
        height: auto;
    }

    .cgv {
         display: flex;
        gap: 5rem;
    

    }

    .cgv a {
        text-decoration: none;
        color: #E0E0D5;
        font-weight: 500;
        font-size: 1.2rem;
      
    }

    @media  screen and (max-width:625px) {
        footer {
            flex-direction: column;
            gap: 20px;
          
        }

         .icone-reseaux img {
        width: 40px;
        height: auto;
    }
.cgv {
    width: 100%;
    justify-content: center;
    
}
     .cgv a {
       
        font-size: 1rem;
      
    }

    }
