@font-face {
    font-family: 'MyCustomFont';
    src: url('fonts/MyCustomFont.woff2') format('woff2'),
         url('fonts/MyCustomFont.woff') format('woff');
}
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');


body {
    font-family: 'Poppins', sans-serif;
    background: url('/imgs/background/back.webp') no-repeat center center/cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
}








/* Product Styles */

#product-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    max-width: 1200px;
    margin: 0 auto; 
    justify-content: center; 
    user-select: none; 

}

.product {
    border-radius: 15px;
    overflow: hidden;
    padding: 10px;
    margin: 10px; 
    background-color: #1C1C1C; 
    width: 450px; 
    height: 320px; 
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    transition-duration: 0.4s;
    text-decoration: none;
}

.product-content {
    position: relative;
    height: 100%;
    filter: brightness(1.1);
}

.product img {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; 
    height: 70%; 
    object-fit: cover;
    border-radius: 15px;
}

.product-title {
    position: absolute;
    bottom: 15px; 
    left: 0;
    width: 100%;
    text-align: center;
    font-family: Poppins, sans-serif;
    font-weight: bold;
    color: #E0E0E0;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.product:hover {
    transform: translateY(-7px);
    box-shadow: 0 0 15px #222222;
}



.product::after {
    content: "Cliquez pour voir le produit";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px;
    text-align: center;
    display: none;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none; /* Empêche l'interaction avec le texte */

}

.product:hover::after {
    display: block;
}

.product::after::before {
    content: "\f0c1";
    font-family: "Font Awesome 5 Free";
    margin-right: 8px;
    font-size: 16px;
    display: inline-block;
}



















.big-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 100; 
    font-size: 19px;
    margin: 100px auto 50px; 
    text-align: center;
    background: linear-gradient(to right, #2C2C2C, #3A3A3A);
    padding: 20px;
    width: 40%;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.9;
    color: white;
    text-decoration: none; 
}











.title-and-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.add-to-cart-btn {
    background-color: #FF5722;
    color: #FFF;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #E64A19;
}
















.bouton-container {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

}

.bouton {
    background-color: #333333;
    border: none;
    color: #D0D0D0;
    padding: 15px 32px;
    font-size: 20px;
    margin: 4px 2px;
    transition: 0.4s ease;
    cursor: pointer;
    border-radius: 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    height: 50px;
    width: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.bouton:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px #555555;
}







.box {
    width: 500px; 
    height: 350px; 
    border-radius: 10px;
    box-shadow: 0 5px 9px #444444;
    overflow: hidden;
    margin-bottom: 20px; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    text-decoration: none;
}

.box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 28, 28, 0.9);
    border-radius: 10px;
}

.image-box {
    width: 430px;
    height: 250px; 
    overflow: hidden; 
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

.image-box img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: brightness(9); /* Augmente la luminosité de 20% */
}


.footer-box {
    background-color: #1A1A1A; 
    color: #D0D0D0;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-decoration: none;
}

.container-box {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap;
    gap: 20px; 
    padding: 20px; 
}

.box-title {
    top: 10px; 
    left: 0; 
    right: 0; 
    text-align: center; 
    margin-top: 10px; 
    position: relative; 
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 26px;
    color: #C0C0C0;
    text-decoration: none;
}

.bouton-box {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: #333333;
    color: #D0D0D0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    z-index: 2;
    transition: background-color 0.3s;
    font-family: 'Poppins', sans-serif;
    width: 35%;
    height: 13%;
    text-decoration: none;
}

.bouton-box:hover {
    background-color: #555555;
}

.spacer {
    height: 185px; 
}













.search-container {
    position: relative;
    width: 450px;
    margin: 0 auto;
    margin-left: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.search-input {
    width: 100%;
    padding: 20px;
    border: 2px solid #444;
    border-radius: 5px;
    font-size: 18px;
    background-color: #222;
    color: white;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #666;
    outline: none;
}

.search-button {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #444;
    border: none;
    color: white;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 18px;
}

.search-button:hover {
    background-color: #666;
}

.suggestions-list {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    padding: 0;
    margin: 0;
}

.suggestions-list::-webkit-scrollbar {
    width: 8px;
}

.suggestions-list::-webkit-scrollbar-track {
    background: #222;
    border-radius: 5px;
}

.suggestions-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

.suggestions-list::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.suggestions-list li {
    padding: 12px;
    list-style: none;
    cursor: pointer;
    color: white;
}

.suggestions-list li:hover {
    background-color: #444;
}

.search-container .add-buttons-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    width: 200%;
    margin-left: 180px;
    margin-top: 20px;
}

.add-button {
    position: relative;
    background-color: #444;
    border: none;
    color: white;
    padding: 17px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    white-space: nowrap;
}

.add-button.add-button-secondary {
    /* Pas de position spéciale */
}

.add-button.add-button-third {
    /* Pas de position spéciale */
}

.add-button i {
    margin-right: 7px;
    color: white;
}

.add-button:hover {
    background-color: #666;
}

/* Icon colors per button type */
.search-container .add-button i.fa-star { color: #f1c40f; }
.search-container .add-button i.fa-skull-crossbones { color: #9b59b6; }
.search-container .add-button i.fa-car { color: #1abc9c; }
.search-container .add-button i.fa-home { color: #e67e22; }

.cart-button {
    position: absolute;
    right: -130px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #444;
    border: none;
    color: white;
    padding: 23px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.cart-button:hover {
    background-color: #666;
}

.cart-button i {
    margin-right: 0px;
}

.account-button {
    position: absolute;
    right: -210px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #444;
    border: none;
    color: white;
    padding: 23px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.account-button:hover {
    background-color: #666;
}

.account-button i {
    margin-right: 0px;
}







.product.highlight {
    animation: bounce-shadow-animation 2s ease forwards;
}

@keyframes bounce-shadow-animation {
    0%, 100% {
        transform: translateY(0);
        box-shadow: none;
    }
    10% {
        transform: translateY(-10px); 
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); 
    }
    30% {
        transform: translateY(-5px);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); 
    }
    50% {
        transform: translateY(-10px);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); 
    }
    70% {
        transform: translateY(-5px);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); 
    }
}
