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

/*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){
    .first{
        grid: none;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center !important;
    }

    .sum{
        width: 90%;
    }

    .details{
        width: 100%;
    }

    .customer-form{
        width: 93%;
    }
    .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*/

main{
    display: flex;
    flex-direction: column;
    padding-bottom: 10vh;
    min-height: 80vh;
}

.first{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, auto);
    justify-content: center;
    align-items: start;
    padding: 30px 20px 0 20px;
    grid-gap: 10px;
}

.titremain{
    grid-area: 1 / 1 / 2 / 6;
    font-size: 50px;
    font-family: 'pacifico', sans-serif;
    align-self: center;
    text-align: center;
}

.details{
    font-family: "google sans code", sans-serif;
    grid-area: 2 / 1 / 3 / 4;
    background-color: #e6eff5;
    border: 3px solid #456882;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    padding: 0.4rem;
    gap: 7px;
}

.produitachete{
    font-family: 'google sans code', sans-serif;
    font-size: 20px;
    width: 100%;
    height: 5rem;
    background-color: white;
    border-radius: 10px;
    display: inline-flex;
    overflow: hidden;
    align-items: center;
    gap: 4px;
}

.imageplace{
    background-image: url(https://static7.depositphotos.com/1000207/762/i/450/depositphotos_7623815-stock-photo-3d-tooth-on-a-white.jpg);
    background-size: cover;
    background-position: center;
    width: 18%;
    min-width: 5rem;
    height: 100%;
}

.produitachete p {
    flex: 1;
    margin: 0;
    padding: 0 10px;
}

.quantity{
    width: 15%;
    min-width: 2.3rem;
    height: 40%;
    background-color: #e6eff5;
    border-radius: 4px;
    text-align: center;
    border: 2px solid #456882;
    font-size: 80%;
    font-family: inherit;
}

input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: inner-spin-button !important;
    opacity: 1 !important;
}

.removebutton{
    width: 5%;
    min-width: 1rem;
    height: 100%;
    color: red;
    font-size: 15px;
    border: none;
    background-color: rgb(243, 206, 206);
    transition: 0.2s ease;
}

.removebutton:hover{
    font-size: 30px;
}

.sum{
    font-family: 'google sans code', sans-serif;
    font-size: medium;
    grid-area: 2 / 4 / 3 / 6;
    background-color: #e6eff5;
    border: 3px solid #1B3C53;
    border-radius: 15px;
    padding: 10px 6% 10px 6%; 
    display: flex;
    flex-direction: column;
}

.nbrarticles{
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
}

.totalprice{
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid gainsboro;
    margin-top: 0;
}

/*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*/

/*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*/

/*confirmation button*/
.buttonconfirmation {
    grid-area: 4 / 1 / 5 / 6;
    align-self: center;
    justify-self: center;
    margin-top: 4vh;
    --primary: #5ad360;
    --neutral-1: #f7f8f7;
    --neutral-2: #e7e7e7;
    --radius: 14px;

    cursor: pointer;
    border-radius: var(--radius);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    border: none;
    box-shadow: 0 0.5px 0.5px 1px rgba(255, 255, 255, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.2), 0 4px 5px 0px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    min-width: 100px;
    width: 50%;
    height: 55px;
    font-family: "Galano Grotesque", Poppins, Montserrat, sans-serif;
    font-style: normal;
    font-size: 18px;
    font-weight: 400;
}
.buttonconfirmation:hover {
    transform: scale(1.02);
    box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
        0 15px 30px rgba(0, 0, 0, 0.3), 0 10px 3px -3px rgba(0, 0, 0, 0.04);
}
.buttonconfirmation:active {
    transform: scale(1);
    box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
        0 10px 3px -3px rgba(0, 0, 0, 0.2);
}
.buttonconfirmation:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 2.5px solid transparent;
    background: linear-gradient(var(--neutral-1), var(--neutral-2)) padding-box,
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45))
        border-box;
    z-index: 0;
    transition: all 0.4s ease;
}
.buttonconfirmation:hover::after {
    transform: scale(1.05, 1.1);
    box-shadow: inset 0 -1px 3px 0 rgba(255, 255, 255, 1);
}
.buttonconfirmation::before {
    content: "";
    inset: 7px 6px 6px 6px;
    position: absolute;
    background: linear-gradient(to top, var(--neutral-1), var(--neutral-2));
    border-radius: 30px;
    filter: blur(0.5px);
    z-index: 2;
}
.state p {
    display: flex;
    align-items: center;
    justify-content: center;
}
.state .icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    transform: scale(1.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.state .icon svg {
    overflow: visible;
}

/* Outline */
.outline {
    position: absolute;
    border-radius: inherit;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    inset: -2px -3.5px;
    }
    .outline::before {
    content: "";
    position: absolute;
    inset: -100%;
    background: conic-gradient(
        from 180deg,
        transparent 60%,
        white 80%,
        transparent 100%
    );
    animation: spin 2s linear infinite;
    animation-play-state: paused;
    }
    @keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.buttonconfirmation:hover .outline {
    opacity: 1;
}
.buttonconfirmation:hover .outline::before {
    animation-play-state: running;
}

/* Letters */
.state p span {
    display: block;
    opacity: 0;
    animation: slideDown 0.8s ease forwards calc(var(--i) * 0.03s);
}
.buttonconfirmation:hover p span {
    opacity: 1;
    animation: wave 0.5s ease forwards calc(var(--i) * 0.02s);
}
.buttonconfirmation:focus p span {
    opacity: 1;
    animation: disapear 0.6s ease forwards calc(var(--i) * 0.03s);
}
@keyframes wave {
    30% {
        opacity: 1;
        transform: translateY(4px) translateX(0) rotate(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-3px) translateX(0) rotate(0);
        color: var(--primary);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateX(0) rotate(0);
    }
}
@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px) translateX(5px) rotate(-90deg);
        color: var(--primary);
        filter: blur(5px);
    }
    30% {
        opacity: 1;
        transform: translateY(4px) translateX(0) rotate(0);
        filter: blur(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-3px) translateX(0) rotate(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateX(0) rotate(0);
    }
}
@keyframes disapear {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(5px) translateY(20px);
        color: var(--primary);
        filter: blur(5px);
    }
}

/* Plane */
.state--default .icon svg {
    animation: land 0.6s ease forwards;
}
.buttonconfirmation:hover .state--default .icon {
    transform: rotate(45deg) scale(1.25);
}
.buttonconfirmation:focus .state--default svg {
    animation: takeOff 0.8s linear forwards;
}
.buttonconfirmation:focus .state--default .icon {
    transform: rotate(0) scale(1.25);
}
@keyframes takeOff {
    0% {
        opacity: 1;
    }
    60% {
        opacity: 1;
        transform: translateX(70px) rotate(45deg) scale(2);
    }
    100% {
        opacity: 0;
        transform: translateX(160px) rotate(45deg) scale(0);
    }
}
@keyframes land {
    0% {
        transform: translateX(-60px) translateY(30px) rotate(-50deg) scale(2);
        opacity: 0;
        filter: blur(3px);
    }
    100% {
        transform: translateX(0) translateY(0) rotate(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Contrail */
.state--default .icon:before {
    content: "";
    position: absolute;
    top: 50%;
    height: 2px;
    width: 0;
    left: -5px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.5));
}
.buttonconfirmation:focus .state--default .icon:before {
    animation: contrail 0.8s linear forwards;
}
@keyframes contrail {
    0% {
        width: 0;
        opacity: 1;
    }
    8% {
        width: 15px;
    }
    60% {
        opacity: 0.7;
        width: 80px;
    }
    100% {
        opacity: 0;
        width: 160px;
    }
}

/* States */
.state {
    padding-left: 29px;
    z-index: 2;
    display: flex;
    position: relative;
}
.state--sent {
    display: none;
}
.state--sent svg {
    transform: scale(1.25);
    margin-right: 8px;
}
.buttonconfirmation:focus .state--default {
    position: absolute;
}
.buttonconfirmation:focus .state--sent {
    display: flex;
}
.buttonconfirmation:focus .state--sent span {
    opacity: 0;
    animation: slideDown 0.8s ease forwards calc(var(--i) * 0.2s);
}
.buttonconfirmation:focus .state--sent .icon svg {
    opacity: 0;
    animation: appear 1.2s ease forwards 0.8s;
}
@keyframes appear {
    0% {
        opacity: 0;
        transform: scale(4) rotate(-40deg);
        color: var(--primary);
        filter: blur(4px);
    }
    30% {
        opacity: 1;
        transform: scale(0.6);
        filter: blur(1px);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/*bouton produits*/ 
a {
    text-decoration: none;
}

.cta {
    margin: 40px auto 0 auto;
    border: none;
    background: none;
    cursor: pointer;
    display: block;
}

.cta span {
    font-family: 'google sans code', sans-serif;
    padding-bottom: 7px;
    letter-spacing: 4px;
    font-size: 18px;
    padding-right: 15px;
    text-transform: uppercase;
}

.cta svg {
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.cta:hover svg {
    transform: translateX(0);
}

.cta:active svg {
    transform: scale(0.9);
}

.hover-underline-animation {
    position: relative;
    color: black;
    padding-bottom: 20px;
}

.hover-underline-animation:after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #000000;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.cta:hover .hover-underline-animation:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
/*fin bouton produit*/

/*form*/
.customer-form {
    grid-area: 3 / 1 / 4 / 6;
    background-color: #e6eff5;
    border: 3px solid #1B3C53;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.customer-form h3 {
    font-family: 'google sans code', sans-serif;
    color: #1B3C53;
    margin-top: 0;
    text-align: center;
    font-size: 1.5rem;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.customer-form label {
    display: block;
    margin-bottom: 8px;
    font-family: 'google sans code', sans-serif;
    color: #1B3C53;
    font-size: 1.1rem;
}

.customer-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #c9dce8;
    border-radius: 8px;
    font-family: 'google sans code', sans-serif;
    font-size: 1rem;
    background: #fff;
    box-sizing: border-box;
}

.customer-form input:focus {
    outline: none;
    border-color: #456882;
    box-shadow: 0 0 5px rgba(69, 104, 130, 0.5);
}

@media (max-width:750px){
    .form-grid{
        display: flex;
        flex-direction: column;
    }
}

/* Alert styling */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    font-family: 'google sans code', sans-serif;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.alert-content i {
    font-size: 1.5rem;
}

.alert-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    line-height: 1;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}