.container {
    background-color: #f1f1f1;
    border-radius: 30px;
    /* box-shadow: 0 5px 15px rgb(255, 255, 255); */
    position: relative;
    overflow: hidden;
    /* width: 768px; */
    max-width: 800px;
    min-height: 540px;
    margin: auto;
}

.container p {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.3px;
    margin: 20px 0;
}

.container span {
    font-size: 12px;
}

.container a {
    color: #CFAF7E;
    font-size: 13px;
    text-decoration: none;
    margin: 15px 0 10px;
}

.container .form-container h1 {
    color: #243535;
}

.container button {
    background-color: #243535;
    color: #fff;
    font-size: 12px;
    padding: 10px 45px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
    transition: all .3s ease;
}

.container button:hover {
    background-color: #18201E;
}

.container button.hidden {
    background-color: transparent;
    border-color: #fff;
}

.container form {
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;
}

.container input {
    background-color: #243535;
    border: none;
    margin: 8px 0;
    padding: 10px 15px;
    font-size: 13px;
    border-radius: 8px;
    width: 100%;
    outline: none;
    color: #CFAF7E;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in {
    left: 0;
    width: 50%;
    z-index: 2;
}

.container.active .sign-in {
    transform: translateX(100%);
}

/* .sign-in h1 {
    color: #CFAF7E;
} */

.sign-up {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.active .sign-up {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: move 0.6s;
}

@keyframes move {

    0%,
    49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%,
    100% {
        opacity: 1;
        z-index: 5;
    }
}

.social-icons {
    margin: 20px 0;
}

.social-icons a {
    border: 1px solid #ccc;
    border-radius: 20%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 3px;
    width: 40px;
    height: 40px;
}

.toggle-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    /* border-radius: 40px 0 0 40px; */
    /* border-radius: 150px 0 0 100px; */
    z-index: 6;
}

.container.active .toggle-container {
    transform: translateX(-100%);
    border-radius: 0 40px 40px 0;
}

.toggle {
    /* background-color: #243535; */
    background-image: linear-gradient(#232f2f, #1f25259f), url(../img/CONTACT.png);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 100%;
    /* background: linear-gradient(to right, #5c6bc0, #512da8); */
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.toggle button:hover {
    background: #18201E;
}

.container.active .toggle {
    transform: translateX(50%);
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
    background-image: linear-gradient(#232f2f, #1f25259f), url(../img/CONTACT.png);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.toggle-left {
    transform: translateX(-200%);
}

.container.active .toggle-left {
    transform: translateX(0);
    background-image: linear-gradient(#232f2f, #1f25259f), url(../img/CONTACT.png);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.toggle-right {
    right: 0;
    transform: translateX(0);

}

.toggle-right h1,
.toggle-left h1 {
    color: #CFAF7E;
}

.container.active .toggle-right {
    transform: translateX(200%);
}

.container__cart {
    background-color: #243535;
    max-width: 1000px;
    display: grid;
    justify-content: center;
}


.row {
    color: #FFFBF5;
    padding: 2rem;
    padding-bottom: 2rem;
    /* display: flex; */
    gap: 7rem;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #CFAF7E;
    /* max-width: min-content; */
    margin-bottom: 1rem;
    transition: all 0.5s ease;
    /* max-height: 130px; */
}

/* MEDIA QUERIES */
@media (width > 900px) {


    .row {

        display: flex;
        max-width: min-content;

    }

}

.row:hover {
    background: #cfaf7e22;
    border-radius: 30px;
}


.row input {
    width: 50px;
    background: #232f2f;
    text-align: center;
    font-size: 1rem;
}

.row i {
    color: #CFAF7E;
    font-size: 1rem;
    transition: all 1s ease;
}

.row i:hover {
    font-size: 1.3rem;
    color: #e30000;
}

.row a {
    margin: auto;
}

.container__cart img {
    width: 128px;
    height: 128px;
    object-fit: cover;
}

.cart-infos {
    display: grid;
    justify-items: center;
    justify-content: center;
}

.cart-infos h2 {
    padding: 2rem;
    font-family: Season;
    color: #CFAF7E;
}

/* .cart-infos .total {
    color: #FFFBF5;
} */

p.total {
    width: 100%;
    text-align: center;
    color: #FFFBF5;
    font-size: 1.3rem;
    /* margin-right: 3rem; */
}



.cart__btn {
    gap: 3rem;
    margin: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-start;
    width: 100%;
    text-align: center;
    align-items: center;
}

.cart__btn a {
    font-size: 1rem;
    /* letter-spacing: .5rem; */
}


/* .swal2-popup.swal2-modal.swal2-icon-warning.swal2-show {
    background: #243535;
    color: #FFFBF5;
} */

.swal2-confirm.swal2-styled.swal2-default-outline,
.swal2-cancel {
    color: #FFFBF5;
    transition: all .5s ease;
}

.swal2-confirm.swal2-styled.swal2-default-outline:hover {
    color: #CFAF7E;
}

.swal2-cancel:hover {
    color: #18201E;
}




/* MESSSAGE FLASH */
.messages-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    /* height: 100%; */
    background-color: #243535;
    /* Fond blanc semi-transparent */
    z-index: 9998;
    /* Z-index inférieur à celui des messages pour assurer leur visibilité */
    display: flex;
    justify-content: center;
    align-items: center;

    transition: opacity 0.5s ease;
    /* Transition de l'opacité sur 0.5 seconde */
    opacity: 1;
    /* Par défaut, l'élément est visible */
}

.messages-overlay.hidden {
    opacity: 0;
    /* Lorsqu'il est caché, l'opacité est réduite à 0 */
}

.messages-container {
    text-align: center;
    width: 80%;
    max-width: 400px;
    position: relative;
}

.messages-container .alert {
    margin: 10px;
    position: relative;
    color: #CFAF7E;
}
