html, body {
    margin: 0;
    padding: 0;
}

html {
    background-color: #EAC8B5;
}

body {
    font-family: Helvetica, Arial, sans-serif;
}

.mobile-menu {
    display: none;
}

#navbar {
    display: flex;
    height: 200px;
}

#navbar img {
    max-width: 200px;
}
#navbar img:hover {
    cursor: pointer;
}

#navbarLiens {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    height: 50%;
    background-color: #D5926C;
    width: 90%;
}

#liens a, #tel {
    text-decoration: none;
    margin: 0 50px;
    font-size: 2em;
    font-weight: bold;
}

#tel {
    margin: 0;
    padding: 10px 15px;
    color: white;
    border: 5px solid #EAC8B5;
    border-radius: 15px;

}

.carte {
    background-color: #D5926C;
    border-radius: 25px;
    box-shadow: 6px 12px 10px rgba(0, 0, 0, 0.25);
    width: 25%;
}

#intro {
    width: 75%;
    display: flex;
    flex-direction: column;
    margin: 100px auto 0;
    padding: 25px 0;
}

H1 {
    color: white;
    font-size: 2.5em;
    width: 55%;
    border-bottom: 10px solid white;
    text-align: end;
}

#introContenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: auto;
}

#introContenu img {
    max-width: 20%;
    height: auto;
    border: 10px solid white;
}

#introContenu p {
    font-size: 1.7em;
    margin-left: 50px;
}

H2 {
    font-size: 2.2em;
    width: 45%;
    border-bottom: 15px solid black;
}

#diag, #contact {
    margin: 150px 0 0 auto;
}

#devis {
    margin: 150px 0 auto 0;
    text-align: end;
}

.globalDivDroite, .globalDivGauche {
    padding-top: 75px;
}
.globalDivDroite {
    border-right: 15px solid black;
}
.globalDivGauche {
    border-left: 15px solid black;
}

#listeDiag {
    display: flex;
    flex-wrap: wrap;
    gap: 75px 125px;
    justify-content: center;
    margin: 0 10%;
}

.carte H3 {
    font-size: 1.4em;
    width: 50%;
    text-align: center;
}

.carte p {
    text-align: center;
    font-size: 1.2em;
}

.carte-verte {
    --couleur: #103C1F;
    background-color: #5D9D5E;
}

.carte-jaune {
    --couleur: #7B5E18;
    background-color: #D3A647;
}

.carte-orange {
    --couleur: #852B11;
    background-color: #DB753D;
}

.carte-verte H3,
.carte-jaune H3,
.carte-orange H3 {
    color : var(--couleur);
    border-bottom: 5px solid var(--couleur);
}

.carte-verte p,
.carte-jaune p,
.carte-orange p {
    color: var(--couleur);
}

#sectionFormulaire {
    display: flex;
    margin: auto;
    width: 50%;
}

.formulaire-contact {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
    padding: 25px;
}

.formulaire-contact .form-row {
    display: flex;
    justify-content: space-around;
}

.formulaire-contact .form-group {
    display: flex;
    flex-direction: column;
    width: 40%;
}

.formulaire-contact label {
    text-align: center;
}

.formulaire-contact input, .formulaire-contact select, .formulaire-contact textarea {
    border-radius: 25px;
    border: 2px solid #707070;
    box-sizing: border-box;
    height: 40px;
    margin-top: 15px;
    text-align: center;
}

.formulaire-contact .form-full {
    width: 90%;
    margin: auto;
    justify-content: center;
}

.formulaire-contact textarea {
    resize: vertical;
    max-height: 300px;
    height: 90px;

}
button {
    align-self: center;
    padding: 12px 30px;
    background-color: #5F9E6E;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: ease-in-out 0.2s;
}

.formulaire-contact button:hover {
    transform: scale(115%);
}



#listeContacts {
    display: flex;
    flex-wrap: wrap;
    gap: 75px 70px;
    justify-content: center;
}

.carteContact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    width: 20%;
    transition: ease-in-out 0.2s;
}
.carteContact:hover {
    transform: scale(105%);
}

.carteContact img {
    width: 25%;
}

.carteContact p {
    font-size: 1.8em;
    color: black;
}

.lien:hover {
    cursor: pointer;
}


#footer {
    display: flex;
    justify-content: space-around;
    width: 100%;
    background-color: #D5926C;
    margin-top: 250px;
    flex-wrap: wrap;
}

#liensFooter {
    display: flex;
    align-items: center;
    width: 40%;
    gap: 0 65px;
}

#liensFooter H4 {
    margin: 0 15px;
    text-decoration: underline;
    font-size: 1.5em;
}

#liensFooter a {
    text-decoration: none;
    color: black;
}

#copyright {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: end;
}

#copyright p {
    width: 100%;
}

#pictos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 20px;
    width: 40%;
    padding: 15px 0;
}

#pictos img {
    height: 75px;
}

.erreur {
    background-color: #CB3838;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 150px auto;
    padding-bottom: 25px;
    color: white;
}

#popup {
    background-color: #5D9D5E;
    border: white 3px solid;
    color: white;
    display: flex;
    justify-content: center;
    position: absolute;
    top: 150px;
    right: 15px;
    width: 30%;
    z-index: 10;
}

/* Responsive Tablette */

@media only screen and (max-width: 1279px) {

    body {
        font-size: 0.8em;
    }
    h1 {
        font-size: 3.5em;
    }
    h2 {
        font-size: 3em;
        width: 57%;
    }

    #navbar {
        justify-content: space-between;
    }
    .mobile-menu {
        display: flex;
        align-items: center;
        background-color: #D5926C;
        padding: 0 50px;
        height: 70%;
        border-radius: 0 0 0 20px;
    }
    #toggler {
        font-size: 3.5em;
    }

    #navbarLiens {
        width: 50%;
        height: 100%;
        margin-bottom: 100px;
        padding: 20px;
        border-radius: 0 0 25px 25px;
        justify-content: space-between;
    }

    #liens {
        display: flex;
        flex-direction: column;
        width: 40%;
    }
    #liens a {
        margin: 5px 0;
    }

    #tel {
        align-self: flex-end;
    }

    /*
    #navbar {
        flex-direction: column;
        align-items: center;
        height: auto;
    }
    #navbarLiens {
        width: 100%;
        height: 100%;
        font-size: 0.8em;
        flex-direction: column;
    }
    #navbarLiens * {
        margin: 25px 0;
    }
    */

    #intro {
        margin: 50px auto 0;
    }

    #introContenu {
        flex-direction: column;
    }
    #introContenu p {
        margin-left: 0px;
    }
    #introContenu img {
        max-width: 30%;
    }

    #listeDiag {
        gap: 50px 55px;
        margin: auto;
    }

    #sectionFormulaire {
        width: 80%;
    }

    .formulaire-contact {
        gap: 0;
        font-size: 1.3em;
    }
    .formulaire-contact .form-row {
        flex-direction: column;
    }
    .formulaire-contact .form-group {
        width: 100%;
        margin: 10px 0;
    }
    .formulaire-contact button {
        width: 75%;
    }

    .carteContact img {
        width: 35%;
    }

    #liensFooter {
        gap: 0 25px;
    }

    #pictos img {
        height: 40px;
    }
}


/* Responsive Mobile */

@media only screen and (max-width: 768px) {

    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 2.6em;
        width: 90%;
    }

    .mobile-menu {
        padding: 30px;
        height: 50%;
    }

    #popup {
    width: 50%;
    top: 120px;
    }

    #navbar {
        height: auto;
    }
    #navbar img {
        position: absolute;
        top: -30px;
        z-index: -1;
    }
    #navbarLiens {
        width: 60%;
    }
    #navbarLiens a {
        font-size: 1.4em;
    }
    #tel {
        padding: 5px 10px;
    }

    #intro {
    margin: -85px auto 0;
    }
    #introContenu img {
        max-width: 50%;
    }
    #introContenu p {
        font-size: 1em;
    }

    #listeDiag {
        gap: 45px 35px;
    }
    #listeDiag .carte {
        width: 90%;
    }
    #listeDiag p {
        font-size: 1em;
        margin: 0 50px 25px 50px;
    }

    #listeContacts {
        gap: 55px 30px;
    }

    .carteContact {
        width: 25%;
    }
    .carteContact img {
        width: auto;
    }
    .carteContact p {
        font-size: 1.2em;
    }

    #liensFooter {
        flex-direction: column;
        gap: 5px 0;
        text-align: center;
        margin: 15px 0;
    }
    #copyright {
        font-size: 0.8em;
    }
    #pictos {
        width: 55%;
    }
}



/* Animations */

.slideInDown {
    -webkit-animation-name: slideInDown;
    animation-name: slideInDown;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}
@-webkit-keyframes slideInDown {
    0% {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
        visibility: visible;
    }
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}
@keyframes slideInDown {
    0% {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
        visibility: visible;
    }
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

.slideInRight {
    -webkit-animation-name: slideInRight;
    animation-name: slideInRight;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}
@-webkit-keyframes slideInRight {
    0% {
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
        visibility: visible;
    }
    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}
@keyframes slideInRight {
    0% {
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
        visibility: visible;
    }
    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

.fadeOut {
    -webkit-animation-name: fadeOut;
    animation-name: fadeOut;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    }
    @-webkit-keyframes fadeOut {
        0% {opacity: 1;}
        100% {opacity: 0;}
    }
    @keyframes fadeOut {
        0% {opacity: 1;}
        100% {opacity: 0;}
} 

.slideOutUp {
    -webkit-animation-name: slideOutUp;
    animation-name: slideOutUp;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}
@-webkit-keyframes slideOutUp {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    100% {
        visibility: hidden;
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
}
}
@keyframes slideOutUp {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    100% {
        visibility: hidden;
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
    }
} 

/* Grow Rotate */
.hvr-grow-rotate {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: transform;
    transition-property: transform;
}
.hvr-grow-rotate:hover, .hvr-grow-rotate:focus, .hvr-grow-rotate:active {
    -webkit-transform: scale(1.1) rotate(-4deg);
    transform: scale(1.1) rotate(-4deg);
}

/* Bounce In */
.hvr-bounce-in {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-transition-duration: 0.5s;
    transition-duration: 0.5s;
}
.hvr-bounce-in:hover, .hvr-bounce-in:focus, .hvr-bounce-in:active {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
    transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
}