/* Ajouter une image de fond en haut de la page */
#header {
  background-image: url('../bg/PP.avif'); /* Remplacez par le chemin de votre image */
  background-size: cover; /* Couvre toute la largeur et la hauteur de l'élément */
  background-position: center; /* Centrer l'image horizontalement et verticalement */
  height: 400px; /* Ajustez la hauteur de l'image de fond */
  width: 100%;
  display: flex;
  justify-content: center; /* Centrer le contenu si nécessaire */
  align-items: center; /* Centrer le contenu verticalement */
  color: white;
}
#header h1 {
  font-size: 3rem; /* Ajustez la taille de la police selon vos besoins */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Donne un effet de contraste */
  margin: 0; /* Supprime les marges par défaut */
  padding: 0; /* Supprime les espacements inutiles */
  text-align: center; /* Centrer le texte */
}

/* Corps de la page */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}
.container-fluid .row {
  display: flex; /* Aligne les enfants sur une seule ligne */
  flex-wrap: nowrap; /* Empêche les colonnes de passer à la ligne */
}
/* Barre latérale (sidebar) */
.sidebar {
  background-color: #fafafc;
  height: auto;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  margin-right: 0; /* Évite le débordement */
  flex: 0 0 25%; /* Fixe la largeur à 25% */
  max-width: 25%; /* Empêche les débordements */
}
/* Contenu principal (portfolio et produits) */
.content {
  flex: 1; /* Prend la largeur restante */
  padding: 20px;
  display: flex;
  flex-direction: row; /* Organise le contenu côte à côte */
  gap: 20px; /* Espacement entre les sections */
}
/* Liens de la sidebar */
.list-group-item a {
  text-decoration: none;
  color: black;
  padding: 10px;
  display: block;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.list-group-item a:hover {
  background-color: #0b76e9;
}
.sub-category {
  margin-top: 10px;
  margin-left: 15px;
  display: none; /* Masquer par défaut */
}
.products-section {
  flex: 1; /* Ajuste la largeur dynamique */
  padding: 20px;
}
.product-category {
  display: none; /* Masquer par défaut */
}
.product-category.active {
  display: block; /* Afficher uniquement la catégorie active */
}
.col-md-9 {
  flex: 0 0 75%; /* Fixe la largeur à 75% */
  max-width: 75%; /* Empêche les débordements */
}
.sidebar,
.col-md-9 {
    box-sizing: border-box; /* Inclut les paddings et marges dans le calcul de largeur */
}
@media (max-width: 768px) {
  .container-main {
    flex-direction: column;
  }
  .sidebar, .col-md-9 {
    width: 100%;
    max-width: 100%;
  }
}
/* Bouton carré (sans arrondi) */
  #toggleCategoriesBtn {
    border-radius: 0 !important;
  }

  /* Par défaut la liste n'a pas de couleur rouge */
  #categoriesMenu .category-list li {
    color: black;
  }

  /* Au hover sur le bouton, on applique la couleur rouge sur la liste */
  #toggleCategoriesBtn:hover + #categoriesMenu .category-list li {
    color: red;
  }
/* Section Portfolio */
#portfolio {
  flex: 1; /* Ajuste la largeur dynamique */
  padding: 20px;
  background-color: #ffffff;
  margin-top: 5px;
}

/* Grille des éléments portfolio */
#portfolio .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Espace entre les items */
  justify-content: space-between;
}

/* Colonnes pour les items */
#portfolio .col-lg-3 {
  flex: 1 1 calc((100% / 3) - 10px); /* 3 items par ligne */
  max-width: calc((100% / 3) - 10px);
  box-sizing: border-box;
}

#portfolio .col-lg-3 img {
  width: 100%; /* Ajuste les images à la largeur de l'item */
  border-radius: 8px; /* Coins arrondis */
  height: auto;
}

/* Style des éléments portfolio */
#portfolio .portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px; /* Coins arrondis */
  transition: transform 0.3s ease;
}

#portfolio .portfolio-item:hover {
  transform: scale(1.05); /* Mise à l'échelle légère au survol */
}

/* Effet de survol sur l'image */
#portfolio .portfolio-hover {
  display: flex;
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 255, 0.4); /* Fond bleu transparent */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#portfolio .portfolio-item:hover .portfolio-hover {
  opacity: 1;
}

/* Icône de survol */
#portfolio .portfolio-hover-content i {
  color: #FFFFFF;
  font-size: 40px;
}

/* Légendes */
#portfolio .portfolio-caption {
  text-align: center;
  margin-top: 10px;
}

#portfolio .portfolio-caption-heading {
  font-size: 18px;
  font-weight: bold;
}

#portfolio .portfolio-caption-subheading {
  font-size: 14px;
  color: #6c757d;
}


/* Layout général (sidebar + portfolio) */
.container-main {
  display: flex;
  margin-top: 10px;
  padding-left: 0;
  width: 100%;
}

/* Pour un design responsive */


/* Section Produits */
#product-section {
  flex: 1; /* Ajuste la largeur dynamique */
  padding: 20px;
  background-color: #ffffff;
}

/* Grille des éléments produits */
#product-section .row {
  display: flex;
  flex-wrap: wrap; /* Permet le retour à la ligne si nécessaire */
  gap: 20px; /* Espace entre les items */
  justify-content: flex-start; /* évite les espaces vides entre les colonnes */
   margin-right: 0; /* ajouter */

}



/* Images des produits */
#product-section .col-lg-3 img {
  width: 100%; /* Ajuste les images à la largeur de l'item */
  border-radius: 8px; /* Coins arrondis */
  transition: transform 0.3s ease; /* Ajout d'une transition fluide */
}

/* Effet de survol sur l'image */
#product-section .col-lg-3 img:hover {
  transform: scale(1.05); /* Zoom léger au survol */
}

/* Style des items produits */
#product-section .product-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px; /* Coins arrondis */
  transition: transform 0.3s ease;
}

#product-section .product-item:hover {
  transform: scale(1.05); /* Mise à l'échelle légère au survol */
}

/* Effet de survol sur le produit */
#product-section .product-hover {
  display: flex;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 255, 0.4); /* Fond bleu transparent */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#product-section .product-item:hover .product-hover {
  opacity: 1;
}

/* Icône de survol */
#product-section .product-hover-content i {
  color: #FFFFFF;
  font-size: 40px;
}

/* Légendes des produits */
#product-section .product-caption {
  text-align: center;
  margin-top: 10px;
}

#product-section .product-caption-heading {
  font-size: 18px;
  font-weight: bold;
}

#product-section .product-caption-subheading {
  font-size: 14px;
  color: #6c757d;
}

.product-col {
  flex: 0 0 calc(33.33% - 20px);
  max-width: calc(33.33% - 20px);
  box-sizing: border-box;
}

/* Écrans moyens et petits : 2 colonnes */
@media (max-width: 991.98px) {
  .product-col {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 575.98px) {
  .product-col {
    flex: 1 1 calc(50% - 5px); /* un peu moins d’écart pour agrandir */
    max-width: calc(50% - 5px);
  }
}

/* Pour agrandir l’image dans chaque produit */
.product-col img {
  width: 100%;
  height: auto; /* pour garder les proportions */
  display: block;
  object-fit: cover; /* si besoin */
}



/* Grille des éléments pour Portfolio et Produits */
#portfolio .row, #product-section .row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
 justify-content: flex-start; /* changer ici */
}

/* Colonnes pour Portfolio et Produits */
#portfolio .col-lg-3, #product-section .col-lg-3 {
  flex: 1 1 calc((100% / 3) - 20px); /* 3 items par ligne */
  max-width: calc((100% / 3) - 20px);
  box-sizing: border-box;
}

/* Masquer le produit si nécessaire (par défaut) */
#product-section .product-category {
  display: none; /* Masqué par défaut */
}

/* Afficher la catégorie active */
#product-section .product-category.active {
  display: block; /* Afficher uniquement la catégorie active */
}
#product-section .col-lg-3 {
  flex: 1 1 calc(33.33% - 20px);
  max-width: calc(33.33% - 20px);
}

/* Navigation (header) */
#mainNav {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: #003366; /* Bleu sombre */
  position: fixed; /* Fixer la barre de navigation en haut */
  top: 0;
  left: 0;
  width: 100%; /* Largeur complète */
  z-index: 1000; /* Assurer que la barre est au-dessus du contenu */
  transition: padding-top 0.3s ease-in-out, padding-bottom 0.3s ease-in-out;
  border-bottom: 3px solid red;
}

/* Style du logo dans la barre de navigation */
#mainNav .navbar-brand {
  color: #ffc800;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.1em; /* Taille du texte du logo */
  text-transform: uppercase;
  letter-spacing: 0.0625em;
  display: flex; /* Assurer que l'alignement est correct */
  align-items: center; /* Centrer verticalement */
}

#mainNav .navbar-brand img {
  height: 3rem; /* Augmente la taille du logo */
  margin-left: 70%; /* Ajoute un espace de 30% à gauche */
  margin-right: 1.5rem; /* Espace entre le logo et les items */
  transition: height 0.3s ease-in-out, margin-left 0.3s ease-in-out; /* Animation douce */
}

#mainNav .navbar-toggler {
  padding: 0.5rem;
  font-size: 0.85rem; /* Réduire la taille du texte */
}

#mainNav .navbar-nav .nav-item .nav-link {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem; /* Augmente la taille du texte */
  color: #fff;
  padding: 0.75rem 1.5rem; /* Ajoute plus d'espace autour de chaque lien */
  text-transform: uppercase; /* Optionnel : pour un style plus marqué */
  letter-spacing: 0.1em; /* Ajoute un espacement entre les lettres */

}

#mainNav .navbar-nav .nav-item .nav-link.active,
#mainNav .navbar-nav .nav-item .nav-link:hover {
  color: #ff0000;
  font-weight: bold; /* Optionnel : mettre en évidence */

}
/* Social Media Icons fixés à droite */
.fixed-social-icons {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.fixed-social-icons a {
  background: white;
  color: #555;
  text-decoration: none;
  font-size: 22px;
  width: 50px;
  height: 50px;
  border-radius: 25px 0 0 25px; /* arrondi côté gauche */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Effet zoom + élargissement */
.fixed-social-icons a:hover {
transform: scaleX(1.3) scaleY(1.1) ; /* élargissement + léger zoom vertical */
}

/* Couleurs au survol */
.fixed-social-icons a.facebook:hover {
  background: #1877f2;
  color: white;
}

.fixed-social-icons a.instagram:hover {
  background: linear-gradient(45deg, #feda75, #d62976, #962fbf, #4f5bd5);
  color: white;
}

.fixed-social-icons a.youtube:hover {
  background: #ff0000;
  color: white;
}


/*fin social media icons ************************************************************************************************************************/

/*modallllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll*/
.modal {
  --bs-modal-zindex: 1055;
  --bs-modal-padding: 1rem;
  --bs-modal-margin: 0; /* plus de marge */
  --bs-modal-bg: #fff;
  --bs-modal-border-radius: 0.5rem;
  --bs-modal-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--bs-modal-zindex);
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  padding: 0 !important; /* supprime espace sur les côtés */
}
.modal-backdrop {
  display: none !important;
}
.modal-dialog {
  position: relative;
  max-width: 100% !important;
  width: 98% !important;
  margin: auto !important; /* centré sans espace inutile */
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  color: #000;
  background-color: var(--bs-modal-bg);
  border-radius: var(--bs-modal-border-radius);
  box-shadow: var(--bs-modal-box-shadow);
}

.modal-body h2,
.modal-body h1 {
  font-weight: bold;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--bs-modal-padding);
  border-bottom: 1px solid #ddd;
}

.modal-body {
  position: relative;
  padding: var(--bs-modal-padding);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.modal-body .row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
   margin: 0 !important;
}

.modal-body .col-left {
  flex: 0 0 45%;
  padding-right: 1rem;
}

.modal-body .col-right {
  flex: 0 0 53%;
}

.modal-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.modal-body .description {
  text-align: left;
  margin-bottom: 1rem;
}

.modal-body .video-wrapper {
  width: 100% !important;   /* occupe toute la largeur de la colonne */
  max-width: 800px;         /* limite la taille pour éviter le débordement */
  aspect-ratio: 16 / 9;     
  background: #000;
  border-radius: 0.5rem;
  margin-top: 1rem;
  overflow: hidden;
}

.modal-body .video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 2rem);
}

.modal-body .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: transparent;
  border: none;
  font-size: 1.5rem;
  color: #000;
  cursor: pointer;
}

.modal-body .close-btn:hover {
  color: #007bff;
}

/* Responsivité : ajustements pour les petits écrans */
@media (max-width: 767px) {
  .modal-dialog {
    max-width: 95%; /* Moins de marge sur les petits écrans */
  }

  .modal-body {
    padding: 1rem; /* Moins de padding */
  }

  /* Sur les petits écrans, l'image et la description seront en colonne */
  .modal-body .row {
    flex-direction: column;
    align-items: center;
  }

  .modal-body .col-left, .modal-body .col-right {
    flex: 0 0 100%; /* L'image et la description occuperont toute la largeur */
    padding-right: 0;
  }
}

table {
    width: 100%;                 /* s’adapte à l’écran */
    max-width: 600px;            /* limite sur grand écran */
    border-collapse: collapse;
    margin: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    table-layout: fixed;         /* force les colonnes à s’adapter */
    word-wrap: break-word;       /* casse le texte long */
}

th, td {
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
    word-break: break-word;
    white-space: normal;
}

th {
    background-color: #2a72c9;   /* même couleur */
    color: white;
    font-size: 18px;
}

tr:nth-child(even) td {
    background-color: #e8f0fa;   /* même style */
}

tr:nth-child(odd) td {
    background-color: #ffffff;
}

td:first-child {
    background-color: #4a90e2;   /* même bleu */
    color: var(--bs-blue);       /* ta variable bootstrap reste */
    font-weight: bold;
    width: 40%;
}

/* bouton */
.btn-obtenir-devis {
  display: block;
  width: 60%;
  margin: 30px auto 30px 150px;
  padding: 25px 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  background: linear-gradient(45deg, #ff6600, #ff9900); /* mêmes couleurs */
  transition: all 0.4s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.btn-obtenir-devis:hover {
  background: linear-gradient(45deg, #003366, #007bff); /* mêmes couleurs hover */
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  color: #fff;
}

/* Media query pour petit écran */
@media (max-width: 576px) {
    table {
        width: 100%;
        margin: 0 auto;
        box-shadow: none;
    }

    .btn-obtenir-devis {
        width: 90%;
        margin: 20px auto;
        padding: 20px 0;
        font-size: 1.3rem;
    }
}


/*fin modallllllllllllllllllllllllllllllllllllllllllllllll*/
