body{
    margin: 0;
    display: flex;
    flex-direction: column;
    background-image: url(https://i.imgur.com/baZlWRU.jpeg);
    background-size: cover;
}

header{
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'google sans code', sans-serif;
    margin-top: 60px;
    padding: 50px 20px;
}

.logo{
    height: min(20vw, 150px);
    max-height: 120px;
    margin: 0;
    margin-bottom: 7vh;
}

main{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    padding: 50px 20px 100px 20px;
    gap: 20px;
    font-family: 'google sans code', sans-serif;
}

/*debut responsive navbar*/
.navcontainer{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-left: 1%;
    padding-right: 1%;
    align-items: center;
    background-color: transparent;
    backdrop-filter: blur(7px);
    transition: 0.2s ease;
    
}

.navcontainer:hover{
    background-color: white;
}

.navbox2mobile{
    display: none;
}

.navbox2laptop{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-family: 'google sans code', sans-serif;
}

.navbox2laptop h4{
    width: 50%;
}

.navbox2laptop a{
    margin-left: 10px;
}

.navbox2laptop a, .navbox2laptop{
    text-decoration: none;
    color: #1B3C53;
    padding: 6px;
    border-radius: 10px;
    transition: 0.2s ease;
}

.navbox2laptop a:hover{
    background-color: #e7f1fa;
    scale: 1.1;
}

.panier{
    background-image: url(https://cdn-icons-png.flaticon.com/128/5392/5392794.png);
    background-size: 25px;
    background-position: center;
    background-repeat: no-repeat;
    color: transparent !important;
    transition: 0.1s ease;
}

.panier:hover{
    background-image: none;
    color: #1B3C53 !important;
}

@media (max-width: 650px){
    .navcontainer{
        flex-direction: row-reverse;
    }

    .navbox1{
        flex-direction: row-reverse;
    }

    .navbox2laptop{
        display: none;
    }

    .navbox2mobile{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        font-family: 'google sans code', sans-serif;
        font-size: x-large;
        font-weight: 400;
        color: #1B3C53;
        transition: 0.2s ease;
        position: relative;
    }
    
    .navbox2mobile > a:nth-child(2) {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }
    
    .navbox2mobile.active{
        color: #5ad360;
    }

    #menu{
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 3vw;
        margin-left: 3vw;
    }

    .navbox2mobile button{
        font-size: 20pt;
        border: none;
        border-radius: 5px;
        color: #1B3C53;
        height: 60%;
        transition: 0.2s ease;
    }

    .navbox2mobile button:hover{
        scale: 1.1;
    }

    .toggleMenu.active{
        position: fixed;
        z-index: 1000;
        top: 0;
        left: 0;
        width: 15rem;
        height: 100vh;
        background-color: whitesmoke;
        display: flex;
        flex-direction: column;
        padding: 10vh 1rem;
        gap: 5vh;
    }

    .toggleMenu.active a{
        display: block;
        text-decoration: none;
        color: #456882;
        font-weight: bold;
        font-family: 'google sans code', sans-serif;
        padding: 1rem;
        border: 1px solid #1B3C53;
        border-radius: 5px;
    }

    .toggleMenu.active .closeToggleMenu{
        display: block;
        position: absolute;
        top: 5px;
        right: 5px;
        border: none;
        font-size: 20pt;
        color: #1B3C53;
        transition: 0.2s ease;
    }

    .closeToggleMenu:hover{
        scale: 1.1;
    }

    .coordinates{
        flex-direction: column;
    }
}

.closeToggleMenu{
    display: none;
}

.toggleMenu{
    left: -15rem;
    transition: left 0.7s ease;
}
    
.toggleMenu a{
    display: none;
    transition: 0.2s ease;
}

.toggleMenu a:hover{
    translate: 3px;
}

/* fin responsive navbar*/

.titre{
    font-size: 18px;
    color: goldenrod;
    font-weight: 500;
}

.contact{
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/*button social media*/
.buttonsocial {
    width: min(70vh, 300px);
    max-width: 90vw;
    height: 40px;
    border: unset;
    border-radius: 20px;
    color: #212121;
    z-index: 1;
    background: #e8e8e8;
    position: relative;
    font-weight: 500;
    font-size: 17px;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    transition: all 250ms;
    overflow: hidden;
}

.buttonsocial::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 15px;
    background-color: #84aac1;
    z-index: -1;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    transition: all 0.4s;
}

.buttonsocial:hover {
    color: #e8e8e8;
}

.buttonsocial:hover::before {
    width: 100%;
}
/*fin button social media*/

/*footer style*/
footer{
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    font-family: 'google sans code', sans-serif;
    color: white;
    font-size: 13px;
    background-color: rgb(71, 71, 71);
    text-align: center;
}

footer .contenu{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    padding: 10px 20px;
}

.coordinates{
    width: 85vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.boxfooter{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hyperlink{
    text-decoration: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 300;
    color: white;
    transition: 0.2s ease;
}

.hyperlink:hover{
    text-shadow: 0 0 4px #b5c1cb;
}

footer .titrefooter{
    font-size: 15px;
    font-weight: 500;
    color: #7cb2db;
    margin: 0;
}

footer p a{
    text-decoration: none;
    color: aliceblue;
}

footer p a:hover{
    text-decoration: underline;
}
/*end footer style*/

/*bouton whats*/
.Btn {
    z-index: 1;
    position: fixed;
    right: 3%;
    bottom: 5%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    transition-duration: 0.3s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
    background-color: #00d757;
}

.sign {
    width: 100%;
    transition-duration: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sign svg {
    width: 25px;
}

.sign svg path {
    fill: white;
}
.text {
    position: absolute;
    right: 0%;
    width: 0%;
    opacity: 0;
    color: white;
    font-size: 1.2em;
    font-weight: 600;
    transition-duration: 0.3s;
}

.Btn:hover {
    width: 150px;
    border-radius: 40px;
    transition-duration: 0.3s;
}

.Btn:hover .sign {
    width: 30%;
    transition-duration: 0.3s;
    padding-left: 10px;
}

.Btn:hover .text {
    opacity: 1;
    width: 70%;
    transition-duration: 0.3s;
    padding-right: 10px;
}
.Btn:active {
    transform: translate(2px, 2px);
}
/*fin bouton whats*/

/* Mobile optimizations for small devices (~370px) */
@media (max-width: 480px) {
    header {
        padding: 30px 15px;
        margin-top: 50px;
    }
    
    .logo {
        height: min(25vw, 100px);
        margin-bottom: 4vh;
    }
    
    main {
        padding: 30px 15px 80px 15px;
        gap: 15px;
    }
    
    main > div:first-child {
        padding: 0 10px;
    }
    
    main > div:first-child > div {
        flex-wrap: nowrap;
        gap: 10px;
        margin-bottom: 1.5rem;
    }
    
    main > div:first-child > div img {
        margin-right: 0 !important;
    }
    
    .contact {
        padding: 20px 10px;
        gap: 1.5rem;
    }
    
    .contact > div {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .contact > div img {
        margin-right: 1rem !important;
    }
    
    .buttonsocial {
        width: 250px;
        max-width: 85vw;
        height: 45px;
        font-size: 15px;
    }
    
    main iframe {
        width: 95% !important;
        margin-bottom: 15px !important;
    }
    
    header > div:last-child {
        padding: 15px !important;
        border-width: 3px !important;
    }
    
    header > div:last-child h1 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }
    
    header > div:last-child p {
        font-size: 14px;
        line-height: 1.4;
    }
}

@media (max-width: 400px) {
    .buttonsocial {
        width: 220px;
        max-width: 80vw;
        height: 40px;
        font-size: 14px;
    }
    
    .contact {
        padding: 15px 5px;
    }
    
    main {
        padding: 25px 10px 70px 10px;
    }
    
    header {
        padding: 25px 10px;
    }
    
    .coordinates {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 370px) {
    .logo {
        height: 80px;
    }
    
    .buttonsocial {
        width: 200px;
        max-width: 75vw;
        height: 38px;
        font-size: 13px;
    }
    
    header > div:last-child {
        padding: 12px !important;
    }
    
    header > div:last-child h1 {
        font-size: 1.3rem !important;
    }
    
    main > div:first-child h1 {
        font-size: 1.4rem;
    }
    
    main > div:first-child p {
        font-size: 13px;
    }
    
    .contact > div img {
        width: 40px !important;
        height: 40px !important;
    }
}