*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
}
body{
    height: 100vh;
    background-color: beige;
}
li{
    list-style: none;
}
a{
    text-decoration:none;
    color: black;
    font-size: 1rem;
}
a:hover{
    text-decoration: underline;
    color: rgb(30, 121, 240);
}

nav{
    padding: 1rem 0; /* Espace vertical uniquement */
    width: 100%;
    height: 60px;
    max-width: 1800px;
    margin:0%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgb(17, 235, 224);

}

.logo img{
    width: 200px;   /* Ajustez cette valeur selon vos besoins */
    height: auto;  /* Garde les proportions originales */
    display: block;
}
/* Style pour les résultats de recherche */
#searchResults {
    position: absolute;
    top: 100%; /* Place les résultats juste en dessous du champ de recherche */
    left: 0;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 5px;
}

#searchResults h4 {
    background-color: #f8f9fa;
    color: #333;
    font-size: 16px;
}

#searchResults div {
    transition: background-color 0.2s;
}

#searchResults div:hover {
    background-color: #f0f0f0;
}
.nav .search-container {
    display: flex;
    align-items: center;
    position: relative;
}

.nav .searchZone {
    position: relative;
    display: flex;
    align-items: center;
}
/* Stylez correctement la barre de recherche */
.nav .search {
    color: black;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 10px;
    width: 1.5rem;
    text-align: center;
}



.nav .searchZone.open {
    display: flex;
}

.searchZone input[type="search"] {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 200px;
    transition: width 0.3s;
}

.nav .searchZone input.open {
    display: inline-block;

}
.searchZone input[type="search"]:focus {
    width: 250px;
    outline: none;
    border-color: #4a90e2;
}


.nav .links{
    display: flex;
    gap: 2rem;
    padding: 3%;
}
.nav .toggle_btn{
color: white;
font-size: 1.5rem;
padding: 3%;
cursor: pointer;
display: none;
}
.nav .shopping_btn{
    color: black;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 3%;
}

/*dropdown menus*/
.dropdown_menu{
    display: none;
    position: absolute;
    right: 2rem;
    top: 60px;
    height: 0;
    width: 300px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.dropdown_menu.open{
        height: 240px;
}
.dropdown_menu li{
        padding: 0.7rem;
        display: flex;
        align-items: center;
        justify-content: center;
}
/*section tous les produits */
.featured_products{
    margin: 20px;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.container{
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;

}
.container h1{
    margin: 20px;
    padding-bottom: 25px;
}
.container .row {
    display: flex;
    flex-wrap: wrap; /* Permet le retour à la ligne */
    justify-content: center; /* Centre les éléments au lieu de space-between */
    gap: 20px; /* Espacement entre les produits */
}


.col-1{
    background-color: white;
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
    border-radius: 3%;
    flex: 1; /* Permet aux éléments de grandir */
    min-width: 350px; /* Largeur minimale avant retour à la ligne */
    max-width: 450px; /* Largeur maximale */
    padding: 15px;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    transition: transform 0.4s;
    
}
.col-1 img{
    width: 100%; /* L'image prend toute la largeur de sa colonne */
    height: auto; /* Maintient les proportions */
    max-height: 200px; /* Hauteur maximale */
    object-fit: contain; /* Garantit que l'image est entièrement visible */
    
}
.col-1:hover{
    transform: translateY(-15px);
    cursor: pointer;
}
/* Styles pour le modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 900px;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-body {
    display: flex;
    gap: 30px;
}

.modal-image {
    flex: 1;
}

.modal-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.modal-details {
    flex: 1;
}

.price {
    font-size: 1.5rem;
    color: orange;
    font-weight: bold;
    margin: 15px 0;
}

.description, .advantages {
    margin: 20px 0;
}

.add-to-cart {
    background-color: orange;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: darkorange;
}
/* Styles pour le panier */
.cart-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transform: translateX(100%);
    transition: all 0.3s ease;
    z-index: 1000;
}

.cart-overlay.show {
    visibility: visible;
}

.cart.show {
    transform: translateX(0);
}

.close-cart {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.cart h2 {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.cart-content {
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    margin-right: 15px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin: 0 0 5px 0;
}

.cart-item-details p {
    margin: 0;
}

.remove-item {
    color: #ff0000;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 16px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-footer h3 {
    margin-bottom: 15px;
    text-align: right;
}

.clear-cart, .checkout {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.clear-cart {
    background-color: #f8f8f8;
    color: #333;
}

.checkout {
    background-color: #4CAF50;
    color: white;
}
  
/* Footer Styles */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #00ace2;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p,
.footer-section li {
    margin-bottom: 10px;
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00ace2;
}

.footer-section .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-section .contact-item i {
    color: #00ace2;
    margin-right: 10px;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #00ace2;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #bdc3c7;
    margin: 0;
}


/*responsive display*/
@media (max-width: 768px) {
    .search-container {
        margin-right: auto;
    }
    
    .searchZone input.open {
        width: 150px;
    }
    .col-1 {
        min-width: 150px;
        max-width: 100%;
    }
    .modal-body {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}
@media(max-width: 992px){
    .nav .links{
        display: none;
    }

    .nav .toggle_btn{
        display: block;
    }
    .dropdown_menu{
        display: block;
    }
    
    
}
