@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700&family=Urbanist:wght@400;500&display=swap');


* {
    --bleu-clair: #e6f0ff;
    --bleu-moyen: #3a8dff;
    --bleu-fonce: #1b3b6f;
    --gris-clair: #f9f9f9;
    --gris: #ccc;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24
}

body {
    margin: 0;
    font-family: 'Urbanist', sans-serif;
    background-color: var(--gris-clair);
    color: #222;
}

body:before {
    content: "";
    display: block;
    height: 70px;
}

/*  HEADER  */


.header-container {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}


header {
    background-color: var(--bleu-fonce);
    padding: 16px 32px;
    color: white;
}


nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

nav img {
    height: 50px;
    border-radius: 100%;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 16px;
    font-weight: 500;

}

nav a:hover {
    color: var(--bleu-moyen);
    transition: color 0.3s;
}

nav input[type="search"] {
    padding: 8px;
    border-radius: 20px;
    border: none;
    outline: none;
    width: 200px;
}

/*  MAIN  */
main {
    max-width: 900px;
    margin: 32px auto;
    padding: 16px;
}

h1,
h2 {
    font-family: 'Nunito', sans-serif;
    color: var(--bleu-fonce);
}

/*  CART ITEMS  */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 25px;

}

.cart-item {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    gap: 24px;
}

.cart-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}


.cart-item img {
    width: 300px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.item-details input[type="number"] {
    width: 70px;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid var(--gris);
    font-family: 'Urbanist', sans-serif;
}

.item-details button {
    background-color: var(--bleu-moyen);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: fit-content;
}

button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--bleu-fonce), var(--bleu-moyen));
}

button:active {
    transform: scale(0.96);
}

/*  ADD PRODUCT  */
.add-product {
    margin-bottom: 32px;
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.add-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.add-product input {
    margin-right: 16px;
    margin-top: 8px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--gris);
}

.add-product button {
    background-color: var(--bleu-fonce);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-product button:hover {
    background-color: var(--bleu-moyen);
}

/*  SUMMARY  */
.cart-summary {
    margin-top: 32px;
    text-align: right;
}

.cart-summary button {
    background-color: var(--bleu-fonce);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Nunito', sans-serif;
}

.cart-summary button:hover {
    background-color: var(--bleu-moyen);
}

/* --------------- ANIMATIONS --------------  */

/*  BULLES  */

.bubble {
    position: fixed;
    border-radius: 50%;
    opacity: 0.15;
    background: var(--bleu-moyen);
    animation: float 6s infinite ease-in-out;
    z-index: -1;
}

.bubble:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 200px;
    left: 40px;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 60px;
    height: 60px;
    bottom: 180px;
    right: 100px;
    animation-delay: 2s;
}

.bubble:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 400px;
    right: 260px;
    animation-delay: 1s;
}

.bubble:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 200px;
    right: 200px;
    animation-delay: 3s;
}

.bubble:nth-child(5) {
    width: 85px;
    height: 85px;
    bottom: 100px;
    left: 200px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

/*  PROGRESS BAR  */

.progress {
    display: flex;
    justify-content: space-between;
    margin: 30px auto;
    width: 90%;
    max-width: 600px;
}

.step {
    flex: 1;
    position: relative;
    text-align: center;
    font-family: 'Nunito';
    color: var(--bleu-fonce);
}

.step::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -50%;
    width: 100%;
    height: 4px;
    background: var(--bleu-clair);
    transform: translateY(-50%);
    z-index: -1;
}

.step:first-child::before {
    display: none;
}

.step.active {
    color: var(--bleu-fonce);
}

.step.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bleu-moyen);
    opacity: 0.5;
}

/*  CUSTOM SCROLLBAR  */

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-thumb {
  background: var(--bleu-moyen);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--bleu-fonce), var(--bleu-moyen));
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}


/*  RESPONSIVE  */
@media (max-width: 700px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    nav input[type="search"] {
        width: 50%;

    }
}
