@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Playfair+Display:wght@400;700&display=swap');


body {
    overflow-x: hidden;
    overflow-y: scroll; /* Assure un défilement vertical constant */
    -webkit-overflow-scrolling: touch; /* Active un défilement fluide sur iOS */
    margin: 0;
    padding: 0;
}

/* Style global pour le header */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #f8f9fa; /* Couleur de fond */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre sous le header */
}

/* Style pour le logo */
.logo {
    flex: 1;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #FF2D20; /* Couleur du texte */
    text-decoration: none;
}


.logo-white {
    color: black; /* Couleur blanche pour "Darna" */
}

.logo-red {
    color: #FF2D20; /* Couleur rouge pour "Electro" */
}

/* Style pour la barre de recherche */
.search-bar {
    flex: 2;
}

.search-bar form {
    display: flex;
    align-items: center;
}

.search-bar input[type="text"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
}

/* Style pour le bouton de recherche */
.search-bar button {
    background-color: #FF2D20; /* Couleur du bouton */
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* Icône dans le bouton de recherche */
.search-bar button i {
    font-size: 18px; /* Taille de l'icône */
}

/* Style pour le menu déroulant */
.filter-dropdown {
    flex: 1;
    margin-left: 20px;
}

.filter-dropdown select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

/* Style pour les icônes d'en-tête */
.header-icons {
    flex: 1;
    text-align: right;
}

.cart-link {
    display: flex;
    align-items: center;
    color: black;
    text-decoration: none;
}

.cart-icon {
    width: 20px; /* Ajustez la taille de l'icône */
    margin-right: 5px;
}

/* Style pour la connexion et l'enregistrement */


.btn-connexion {
    background-color: #FF2D20; /* Couleur du bouton */
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
 
    margin-left: 10px;
}

.btn-connexion:hover {
    background-color: #e63946; /* Couleur de survol */
}


/* Conteneur du carrousel */
.carousel {
    position: relative;
    width: 100%;
    margin-top: 10px; /* Ajuste pour contrôler l'espacement sous la navbar */
    overflow: hidden;
    border-radius: 15px;
    
    height: 500px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* Global box-sizing pour éviter les débordements */
*,
*::before,
*::after {
    box-sizing: border-box;
}



.navigation {
    position: fixed;
    top: 0; /* Positionne la navbar en haut */
    left: 0; /* Aligne la navbar à gauche */
    right: 0; /* Aligne la navbar à droite */
    z-index: 1000; /* Assure que la navbar est au-dessus du carousel */
}

.search-bar input:focus {
    outline: none; /* Supprime le contour par défaut */
    border: 2px solid #9a1213; /* Ajoute une bordure quand le champ est actif */
}

/* Main section styles */
section {
    padding: 4rem 0;
    width: calc(min(76.5rem, 90%));
    margin: 0 auto;
    color: #111;
}

section h2 {
    text-transform: capitalize;
    letter-spacing: 0.025em;
    font-size: clamp(2rem, 1.8125rem + 0.75vw, 2.6rem);
    /* text-align: center; */
    margin-bottom: 2rem;
     /* Ajout de l'ombre au texte */
     text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); 
     padding-top: -90px;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 2rem;
    padding-top: 20px;
}

.card {
    display: flex;
    flex-direction: column;
}

.card-inner {
    position: relative;
    height: 18.75rem;
    background: var(--clr);
    border-radius: 1.25rem;
    border-bottom-right-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.card-inner:hover {
    transform: scale(1.05);
}

.box {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
}

.imgBox {
    position: absolute;
    inset: 0;
}

.imgBox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon {
    position: absolute;
    bottom: -0.375rem;
    right: -0.375rem;
    width: 6rem;
    height: 6rem;
    background: var(--clr);
    border-top-left-radius: 50%;
}

.iconBox {
    position: absolute;
    inset: 0.625rem;
    background: #000000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    text-decoration: none;
    
}
#chr{
    font-family: 'Playfair Display', serif; 
}

.iconBox span {
    color: white;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif; 
}

.content {
    padding: 0.938rem 0.625rem;
    text-align: center;
}

.content h3 {
    text-transform: capitalize;
    font-size: clamp(1.5rem, 1.3909rem + 0.4364vw, 1.8rem);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); 
    padding-top: -70px;
}

.content p {
    color: black;
    margin-bottom: 1.30rem;
     
   
}





/* Custom colors */
/* .branding {
    background-color: #d3b19a;
}

.packaging {
    background-color: #a30532;
}

.marketing {
    background-color: #6f98ad;
} */

.see-more-btn {
    background-color: #5a8ea2; /* Couleur de fond du bouton */
    color: white; /* Couleur du texte */
    border: none; /* Pas de bordure */
    padding: 10px 20px; /* Espacement interne */
    font-size: 16px; /* Taille du texte */
    border-radius: 30px; /* Bordures arrondies */
    cursor: pointer; /* Curseur en forme de main pour indiquer que c'est cliquable */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Ombre */
    transition: background-color 0.3s ease;
     /* Transition pour un effet au survol */
}

.see-more-btn:hover {
    background-color: #476e84; /* Couleur de fond au survol */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}


/* about us */
#about {
    background-color: white; 
    padding: 70px 20px; 
    font-family: 'AnekMalayalam', sans-serif;;  
    margin: 60px auto; 
    padding-top: 2px;
    max-width: 1200px; 
    border-radius: 10px; 
}


.container-about {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    max-width: 1200px; 
    margin: 0 auto; 
    gap: 20px; 
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7); 
    border-radius: 10px; 
    background-color: rgba(255, 255, 255, 0.792);
}

.about-text {
    flex: 1; 
}

.about-text h2 {
    font-size: 32px; 
    color: #967863fe; 
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-top: -20px;
}

.about-text p {
    font-size: 18px; 
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'Anek Malayalam', sans-serif;
    color: #333;
}

.about-video {
    flex: 1; 
    text-align: right; 
}

.about-video video {
    max-width: 100%; 
    border-radius: 10px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
    
}

/* section contact */
.subscription-section {
    background-color: #d4e9e20a;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    margin-left: -90px;
   padding-right: 200px;
   /* Ajoutez cette ligne pour la marge à droite */
   margin-top: 50px;
}


.subscription-section .content {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les éléments horizontalement */
    justify-content: center;
    margin-left: 350px;
}

.subscription-form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les éléments horizontalement */
    width: 100%; /* Assure que le formulaire prend toute la largeur disponible */
}


.subscription-section h2 {
    color: #333;
    margin-bottom: 20px;
}

.subscription-section p {
    color: #666;
    margin-bottom: 50px;
   
}

.subscription-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subscription-form input[type="email"] {
    padding: 10px;
    width: 80%;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.subscription-form input[type="text"] {
    padding: 10px;
    width: 80%;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.subscription-form #message {
    padding: 10px;
    width: 80%;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.subscription-form button {
    padding: 10px 20px;
    background-color: #FF2D20;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    font-family: 'Playfair Display', serif;
}

.subscription-form button:hover {
    background-color: #d3b19a;
}

.confirmation-message {
    color: #d3b19a;
    margin-top: 20px;
    display: none; /* This can be toggled with JavaScript after form submission */
}


/* Footer section */
footer {
    background: linear-gradient(to right, #fdfcfb, #e2d1c3); /* Couleur de fond */
    color: #4a4a4a; /* Couleur du texte */
    padding: 20px 0; /* Espacement en haut et en bas */
    margin-top: 100px; /* Ajoute une marge en haut du footer */
    margin-left: -20px;
    margin-right: -35px;
    margin-bottom: -20px;
  }
  
  
  .footer {
    background-color: papayawhip;
    padding: 20px 0;
    text-align: center;
    color: #4a4a4a;
    font-family: 'Lato', sans-serif;
}

.footer h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 20%;
}

.footer-column i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-column p,
.footer-column a {
    font-size: 1rem;
    color: #4a4a4a;
    margin: 5px 0;
}

.footer-column a:hover {
    text-decoration: underline;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-media a {
    color: #000;
    background-color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

.social-media a i {
    margin-right: 8px;
}

.social-media a:hover {
    background-color: #f1f1f1;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    .footer-column {
        width: 100%;
        margin-bottom: 20px;
    }

    .social-media {
        flex-direction: column;
    }
}

/* image carousel */

.logo-carousel {
    width: 100vw; /* Full width of the viewport */
    overflow: hidden;
    margin-bottom: 140px;
    margin-top: 50px;
}

.logos {
    display: flex;
    animation: scroll 20s linear infinite;
    min-width: calc(100px * 15); /* Adjust this calculation based on the number of images */
}

.logos img {
    height: 50px;
    margin-right: 30px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100px * 15 - 30px * 15)); /* Total width of all images + margins */
    }
}



.button {
 /* Couleur de fond par défaut */
    color: white; /* Couleur du texte */
    padding: 10px 15px; /* Espacement */
    border: none; /* Pas de bordure */
    border-radius: 5px; /* Coins arrondis */
    cursor: pointer; /* Curseur pointer */
    text-decoration: none; /* Pas de soulignement */
    display: inline-block; /* Affichage en ligne */
    margin-top: 10px; /* Espace au-dessus */
}

/* Couleur des boutons au survol */
.button:hover {
    background-color: #45a049; /* Couleur de fond au survol */
}

/* Style spécifique pour le bouton Ajouter */
.add-button {
    background-color: #d3b19a; /* Couleur bleue */
    margin-bottom: 10px;
    margin-top: 100px;
}

.add-button:hover {
    background-color: #9a1213;
}


.edit-button {
    background-color:#17c21c ; 
}

.edit-button:hover {
    background-color:#5a9b9a; 
}

/* Style spécifique pour le bouton Supprimer */
.delete-button {
    background-color:#FF2D20 ;
    color: white;
}

.delete-button:hover {
    background-color:#9a1213; /* Couleur rouge plus foncée au survol */
}


/* Style pour les tables */


.container {
    width: 98%;
    height: 100%;
    margin: auto;
    margin-top: 50px;
    padding: 20px;
    background-color: white; /* Couleur de fond pour le conteneur */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: center;
}

.table thead th {
    background-color: #333;
    color: #faf0e6;
    font-weight: bold;
    text-transform: uppercase;
}

.table tbody tr:nth-child(even) {
    background-color: #f7f7f7; /* Gris clair pour les lignes paires */
}

.table tbody tr:nth-child(odd) {
    background-color: #ffffff; /* Blanc pour les lignes impaires */
}

.table tbody tr:hover {
    background-color: #e0e0e0; /* Couleur de survol */
}

.table tbody td {
    border-bottom: 1px solid #ddd; /* Lignes de séparation */
}

/* Style pour le bouton de suppression */
.table tbody td button {
    background-color: #d9534f; /* Rouge pour un bouton de suppression */
    color: white;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.table tbody td button:hover {
    background-color: #c9302c; /* Rouge foncé au survol */
}

/* Style pour les formulaires */


form div {
    margin-bottom: 15px; /* Espacement entre les champs */
}

form label {
    display: block; /* Afficher le label en bloc pour le positionnement */
    margin-bottom: 5px; /* Espacement en dessous du label */
}

form input {
    width: 100%; /* Prendre toute la largeur */
    padding: 10px; /* Espacement intérieur */
    border: 1px solid #ccc; /* Bordure */
    border-radius: 4px; /* Coins arrondis */
}

form button {
    background-color: #2a1213; /* Couleur de fond du bouton */
    color: white; /* Couleur du texte */
    border: none; /* Pas de bordure */
    padding: 10px 20px; /* Espacement interne */
    border-radius: 5px; /* Coins arrondis */
    cursor: pointer; /* Curseur en forme de main */
}

form button:hover {
    background-color: #5a9b9a; /* Couleur de fond au survol */
}


/* Messages de succès */
.success {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 10px;
    }

    table th, table td {
        padding: 5px;
    }
}
.filter-dropdown {
    margin-left: 20px; 
   margin-right: 20px;
}

.filter-dropdown select {
    padding: 5px; /* Espacement intérieur pour le select */
    border: 1px solid #d3b19a; /* Bordure */
    border-radius: 4px; /* Coins arrondis */
}

/* Styles pour la page de détail du produit */
.product-detail-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    margin: 50px;
    gap: 30px;
}

.product-image {
    flex: 1;
    max-width: 40%;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-info {
    flex: 1;
    max-width: 50%;
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.product-price {
    font-size: 2rem;
    color: #2a1213;
    margin-bottom: 15px;
}

.product-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.product-options {
    margin-bottom: 20px;
}

.product-options label {
    font-weight: bold;
    margin-right: 10px;
}

.product-options select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.product-benefits {
    margin-bottom: 30px;
}

.product-benefits h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.product-benefits ul {
    list-style-type: none;
    text-decoration: none;
    padding-left: 0;
}

.product-benefits ul li {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

.add-to-cart-btn {
    background-color: #2a1213;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #2a1213;
}

.btn-inscr{
    background-color: #2596be;
    border-radius: 10px;
    border: none;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-left: 112px;
 
}

.dropdown .dropbtn {
    font-size: 17px;  
    border: none;
    outline: none;
    color: black;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.navbar-toggler-icon {
    background-image: url("path/to/custom-icon.svg"); /* Chemin vers une image d'icône personnalisée */
}