

/* Affiche les dropdowns au survol */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

/* Pour éviter qu'ils se ferment trop vite */
.navbar .dropdown-menu {
    transition: all 0.3s ease-in-out;
}

 header.navbar, footer.footer {
        background-color: #003366; /* Bleu foncé */
        color: white;
    }

    header.navbar a.nav-link {
        color: white;
    }
    
    header.navbar a.nav-link:hover {
        text-decoration: underline;
    }


/* ✅ Assurer une taille uniforme des images des produits */
.card-img-top {
    width: 100% !important;
    height: 280px !important;  /* ✅ Hauteur fixe */
    object-fit: cover !important;  /* ✅ Remplit sans déformation */
    border-radius: 8px;  /* ✅ Coins arrondis pour un design plus propre */
}

/* ✅ Images du slider */
.carousel-img {
    width: 100%;
    height: 280px;  /* ✅ Taille adaptée */
    border-radius: 8px;
	object-fit: contain;     /* ✅ Affiche toute l’image, sans la couper */
    border-radius: 8px;
    background-color: #f8f9fa; /* ✅ Optionnel : fond clair autour de l’image */
	display: block;
    margin: 0 auto;
}

/* ✅ Style des captions (textes sur les images) */
.carousel-caption {
    background: rgba(0, 0, 0, 0.5);  /* ✅ Ajoute un effet semi-transparent */
    padding: 10px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .card-img-top {
        height: 180px !important;  /* ✅ Réduit la hauteur sur mobile */
    }

    .carousel-img {
        height: 300px !important;  /* ✅ Ajuste le slider */
    }

    .img-miniature {
        width: 60px;  /* ✅ Réduit la taille des miniatures */
        height: 60px;
    }
}


.dropdown-menu {
    position: absolute !important;
    z-index: 1050;  /* ✅ S'assurer que le menu est bien au-dessus */
    transform: translateY(5px); /* ✅ Ajouter un léger décalage */
    min-width: 150px;  /* ✅ Taille minimum du menu */
}

.table {
    position: relative; /* ✅ Permet d'afficher les dropdowns correctement */
    overflow: visible !important;  /* ✅ Ne pas masquer les dropdowns */
}

/* ✅ Force la taille des images des produits commandés */
.img-produit-commandé {
    width: 60px !important; /* ✅ Réduit la taille */
    height: 60px !important; /* ✅ Uniformise la hauteur */
    object-fit: cover !important; /* ✅ Évite la déformation */
    border-radius: 8px; /* ✅ Coins arrondis */
    display: block; /* ✅ Évite d'être influencé par d'autres styles */
    margin: auto; /* ✅ Centre l’image */
}

/* ✅ Effet zoom au survol */
.produit-img:hover {
    transform: scale(1.1);
}

.produit-card {
    border: 1px solid #ddd;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* ✅ Aligne le contenu verticalement */
}

/* ✅ Effet au survol des cartes */
.produit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

/* ✅ Prix en badge */
.badge-prix {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff5722;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    font-weight: bold;
}


/* ✅ Bouton personnalisé */
.btn-primary {
    background-color: #007bff;
    border: none;
    transition: background-color 0.3s ease-in-out;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* ✅ Style des cartes */
.card {
    border: 1px solid #ddd;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    overflow: hidden; /* ✅ Empêche les débordements */
    display: flex;
    flex-direction: column; /* ✅ Aligne le contenu verticalement */
    padding: 10px; /* ✅ Ajoute un espace interne dans la carte */
}

.card-body {
    flex-grow: 1; /* ✅ Fait prendre tout l'espace disponible au corps de la carte */
    display: flex;
    flex-direction: column;
    padding: 8px; /* ✅ Ajoute un espace interne dans le corps de la carte */
}

/* ✅ Image principale */
.img-detail {
    width: 80%; /* Prend toute la largeur disponible */
    height: 80%; /* Ajuste la hauteur proportionnellement */
    border-radius: 10px; /* Coins arrondis */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Ombre légère */
    margin-bottom: 10px; /* Espace en bas */
    object-fit: cover; /* Remplit le cadre sans déformation */
}

.produit-card:hover .img-produit {
    transform: scale(1.1);
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.text-muted {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* ✅ Bouton */
.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.3s ease-in-out;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* ✅ Conteneur des miniatures */
.miniature-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

/* ✅ Miniatures */
.img-miniature {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, border 0.2s ease-in-out;
}

.img-miniature:hover {
    transform: scale(1.1);
    border: 2px solid #007bff;
}

/* ✅ Miniature active */
.img-miniature.active {
    border: 2px solid #007bff;
    box-shadow: 0px 0px 8px rgba(0, 123, 255, 0.5);
}

/* Styles pour les produits */
.produit-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

css
Copy
/* Conteneur d'image */
.produit-img-container {
    position: relative;
    width: 100%;
    height: 180px; /* Hauteur fixe réduite */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    padding: 10px; /* Espace interne */
}

/* ✅ Prix en badge */
.badge-prix {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff5722;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    font-weight: bold;
}

/* Ajustements responsive */
@media (max-width: 768px) {
    .sidebar-right {
        order: -1;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .badge-prix {
        font-size: 0.65rem;  /* Encore plus petit sur mobile */
        padding: 1px 4px;
        top: 3px;
        right: 3px;
    }
}

/* Image du produit */
.img-produit {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Affiche toute l'image sans rognage */
    transition: transform 0.3s ease;
}

.zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.zoom-container img {
    transition: transform 0.3s ease;
}

.zoom-container:hover img {
    transform: scale(2.2);
}

/* Modal plein écran */
#zoomModal {
    display: none;
    position: fixed;
    z-index: 1050;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

#zoomModal img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
}

#zoomModal .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


/* Réinitialisation des styles pour éviter les conflits */
.zoom-container {
    position: relative !important; /* Force la position pour la loupe */
    display: inline-block; /* Contourne les effets de flexbox */
}

/* Image principale */
.img-detail {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Loupe */
#zoom-lens {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none; /* Permet les événements souris sur l'image */
    display: none;
    transform: translate(-50%, -50%); /* Centre parfaitement sur le curseur */
    z-index: 10;
}

/* Zone de zoom */
.zoom-result {
    width: 350px;
    height: 350px;
    border: 1px solid #ddd;
    background-repeat: no-repeat;
    display: none;
    margin-left: 20px;
    background-size: 200% 200%; /* Taille du zoom (ajustable) */
}

.img-detail {
    backface-visibility: hidden; /* Fixe les tremblements sur Chrome */
    transform: translateZ(0); /* Active l'accélération GPU */
}


/* ========== PALETTE COULEUR ========== */
:root {
  --primary-blue: #007BFF;
  --text-size: 16px;          /* Taille de texte globale */
}

/* ========== EN-TÊTE ========== */
.navbar {
  background-color: var(--main-dark-blue) !important;
  font-size: var(--text-size);
  padding: 0.8rem 0;
}

.navbar-brand,
.nav-link,
.dropdown-toggle {
  font-size: var(--text-size) !important;
  color: #ffffff !important; /* Texte blanc pour contraste */
}

/* ========== PIED DE PAGE ========== */
footer {
   background-color: var(--primary-blue) !important;
  font-size: var(--text-size);
  padding: 1.5rem 0 !important;
  color: white;
}

footer a,
footer p {
  font-size: var(--text-size) !important;
  color: rgba(255,255,255,0.8) !important;
}

/* ========== AJUSTEMENTS SPÉCIFIQUES ========== */
/* Pour le texte dans la navbar */
.navbar-nav {
  font-size: var(--text-size);
}

/* Pour les dropdowns */
.dropdown-menu {
  font-size: var(--text-size);
}

/* Pour le compteur du panier */
.badge {
  font-size: 0.8em !important; /* Légèrement plus petit que 12px */
}

.navbar-brand img {
    max-height: 70px;
}

/* Ajoutez ceci pour désactiver tout comportement hérité */
.carousel {
    all: unset; 
    display: block;
}

/* Style du formulaire d'ajout */
.card.fournisseur-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f9f9ff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card.fournisseur-form h2 {
    font-size: 24px;
    font-weight: bold;
    color: #205375;
    margin-bottom: 20px;
}

.card.fournisseur-form .form-control {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 15px;
}

.card.fournisseur-form label {
    font-weight: 500;
    color: #333;
}

.card.fournisseur-form button.btn-success {
    background-color: #218838;
    border-color: #1e7e34;
    font-weight: bold;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.card.fournisseur-form button.btn-success:hover {
    background-color: #1c7430;
}

/* Message de confirmation */
.alert-success {
    background-color: #d4edda;
    border-left: 5px solid #28a745;
    color: #155724;
    padding: 10px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
}


form input, form select, form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

form label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.account-dropdown .dropdown-menu {
  min-width: 220px;
  background-color: #fff;
  border-radius: 10px;
  padding: 8px 0;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  font-size: 14px;
}

.account-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  transition: background 0.2s ease;
  color: #333;
}

.account-dropdown .dropdown-item i {
  font-size: 16px;
  width: 20px;
}

.account-dropdown .dropdown-item:hover {
  background-color: #f0f0f0;
  color: #007bff;
}


/* ✅ Ancienne couleur trop foncée (par exemple : #002244 ou #003366) */

.navbar, footer {
    background-color: #336699 !important;  /* 💡 Bleu adouci */
    color: white;
}

.navbar a,
footer a {
    color: white;
}

.navbar a:hover,
footer a:hover {
    color: #f0f0f0; /* pour un effet au survol plus doux */
}

/* ✅ Pour les menus déroulants */

.navbar .dropdown-menu {
    background-color: #4a79a8;  /* plus clair pour le menu */
    color: white;
}

.navbar .dropdown-menu a {
    color: white;
}

.navbar .dropdown-menu a:hover {
    background-color: #5d8cc0;
    color: white;
}

.navbar, .navbar .nav-link, .navbar .navbar-brand, .navbar .dropdown-menu {
    color: white;
}

.navbar .nav-link:hover,
.navbar .dropdown-menu a:hover {
    background-color: rgba(255,255,255,0.1); /* effet hover discret */
    color: #fff;
}

.navbar .dropdown-menu {
    background-color: #4a79a8; /* clair pour le menu déroulant */
}

.form-ajout-produit {
    max-width: 70%;
    margin: 0 auto; /* Centrer */
}

.form-ajout-produit input,
.form-ajout-produit select,
.form-ajout-produit textarea {
    width: 100%;
}

/* ✅ Afficher le dropdown au survol */
.navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
    border-top: none;
}

/* ✅ Supprime l'effet de clic Bootstrap */
.navbar-nav .dropdown-toggle::after {
    display: none;
}

/* 🔧 Réduction de l'espace entre bouton et menu déroulant */
.navbar .dropdown-menu {
    margin-top: 0px !important;
    top: 100% !important;
}

.modal-body .form-label {
    font-weight: 500;
}
.modal-body input,
.modal-body select,
.modal-body textarea {
    width: 100%;
}
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in-out;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 4px;
    background: #ddd;
    z-index: 0;
    transform: translateY(-50%);
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    width: 25%;
    opacity: 0;
    animation: fadeInStep 0.5s ease-in-out forwards;
}

.step:nth-child(1) { animation-delay: 0.2s; }
.step:nth-child(2) { animation-delay: 0.4s; }
.step:nth-child(3) { animation-delay: 0.6s; }
.step:nth-child(4) { animation-delay: 0.8s; }

.step .bullet {
    width: 30px;
    height: 30px;
    margin: 0 auto;
    border-radius: 50%;
    background: #bbb;
    color: white;
    font-weight: bold;
    line-height: 30px;
    position: relative;
    z-index: 2;
}

.step .info {
    margin-top: 10px;
    font-size: 0.9em;
}

.step.active .bullet {
    background-color: #007bff;
}

.step.active .info {
    font-weight: bold;
    color: #007bff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInStep {
    to { opacity: 1; }
}

/* ✅ Fix espace entre lien et dropdown */
.account-dropdown .dropdown-menu {
  margin-top: 0px !important;
  top: 100% !important;
}

/* ✅ Affiche au survol */
.navbar .dropdown:hover .dropdown-menu {
  display: block;
}

/* ✅ Supprime la petite flèche */
.navbar .dropdown-toggle::after {
  display: none;
}
