:root{
  --color_1: black;
  --color_2: rgb(255, 255, 255);
  --color_3: rgba(26, 125, 73, 1);
  --color_4: rgba(16, 3, 55, 1);
  --color_5: rgba(21, 12, 47, 1);
  --color_6:rgba(26, 125, 73, 1);
  --color_7:rgb(255, 191, 0);
  --color_pag1:rgba(9, 38, 53, 1);
}

body {
  scroll-behavior: smooth; /* défilement fluide */
}





/*--------------------------------------- Class for all ---------------------------------------*/


/*--------------------------------------- My text_all_types ---------------------------------------*/
/*--------------------------------------- My text_all_types ---------------------------------------*/
/*--------------------------------------- My text_all_types ---------------------------------------*/

.text_type_1{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.colonne {
  background: #ecf0f1;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  position: relative;
}

.special {
  background: #27ae60;
  color: white;
  font-weight: bold;
  border-radius: 10px;
  padding: 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.special img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  position: relative;
  top: -50px; /* fait dépasser l'image par le haut */
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* ========================= Section Chiffres Clés ========================= */
.key-figures-dashboard .figure-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.key-figures-dashboard .figure-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.key-figures-dashboard .figure-icon {
  color: rgba(26, 125, 73, 1);
  margin-bottom: 1rem;
}

.key-figures-dashboard .figure-icon .material-icons {
  font-size: 3rem; /* 48px */
}

.key-figures-dashboard .counter {
  color: var(--color_pag1); /* Utilise la couleur bleu foncé du header */
}

/* Style pour les onglets de la section Chiffres Clés */
#myTab .nav-link {
  color: #6c757d; /* Couleur grise pour les onglets inactifs */
  font-weight: 500;
}

#myTab .nav-link.active {
  color: var(--color_3); /* Couleur verte pour l'onglet actif */
  font-weight: bold;
  border-color: #dee2e6 #dee2e6 #fff;
}


/* ========================= Fin Section Chiffres Clés ========================= */

/* ========================= Header / Navbar ========================= */
#main-navbar {
  background-color: var(--color_pag1);
  transition: background-color 0.4s ease, padding 0.4s ease;
  padding: 0.5rem 0;
}

#main-navbar .navbar-logo {
  height: 3rem; /* Hauteur réduite du logo */
  width: auto;
  transition: height 0.4s ease;
}

#main-navbar .nav-link {
  color: var(--color_2);
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem;
}

/* Ajout de la transition pour un effet fluide */
.nav-link.m-text-hver-nav {
  transition: background-color 0.3s ease, transform 0.3s ease;
  padding: 8px 12px; /* Ajustement du padding pour un meilleur rendu visuel */
}

.nav-link.m-text-hver-nav:hover {
  transform: translateY(-3px); /* Effet de lévitation */
}

/* Effet de soulignement au survol */
#main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; /* Le soulignement commence à gauche */
    width: 0; /* Largeur initiale de 0 */
    height: 2px;
    background-color: var(--color_3); /* Couleur verte pour le soulignement */
    transition: width 0.3s ease-in-out; /* Animation sur la largeur */
}

#main-navbar .nav-link:hover::after,
#main-navbar .nav-link.active::after {
  width: 100%; /* Le soulignement prend toute la largeur au survol */
}

/* Style pour le header quand on défile la page */
#main-navbar.scrolled {
  background-color: rgba(9, 38, 53, 0.95); /* Légère transparence */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  padding: 0.2rem 0;
}

#main-navbar.scrolled .navbar-logo {
  height: 2.5rem; /* Logo encore plus petit au scroll */
}

/* ========================= Fin Header / Navbar ========================= */


/*--------------------------------------- My text_all_types ---------------------------------------*/
/*--------------------------------------- My text_all_types ---------------------------------------*/
/*--------------------------------------- My text_all_types ---------------------------------------*/


.navbar-brand-plus{
  /*padding-top: .3125rem;
  padding-bottom: .3125rem;*/
  margin-right: 1rem;
  font-size: 1.25rem;
  text-decoration: none;
  white-space: nowrap
}


.my-d-f-cter{
  display: flex;
  justify-content: center;
  align-items: center;
}

.my-d-sptb-ali{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.my_displ_spa_bt{
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color_2);
}

.my-bd-radia{
  border-radius: 5px;
}

.color_text{
  color: var(--color_2);
  /*font-weight: bold;*/
}

.my-fw_text{
  font-weight: bold;
}

.color_text_en{
  color: var(--color_3);
}

.my_bg_color_nav{
  background-color: rgb(255, 255, 255);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 5px;
}

.my_bord_input{
  border: solid 1px var(--color_3);
}

.my_list{
  text-decoration: none;
  list-style-type: none;
}

.m-hver-for-all:hover{
  background-color: var(--color_7);
  color: var(--color_1);
}

/*--------------------------------------- MY BACKGROUND COLOR ---------------------------------------*/

.my-color-bg-6{
  background-color: var(--color_6);
  color: var(--color_2);
}

.my-bg-color-4{
  background-color: var(--color_4);
  color: var(--color_2);
}

.my_color_1{
  background-color: var(--color_1);
}

.my-color-2{
  color: var(--color_2);
}

.my_color_3{
  background-color: var(--color_3);
}

.my_color_4{
  background-color: var(--color_4);
}

.my_color_5{
  background-color: var(--color_5);
}

.card_btn:hover{
  background-color: var(--color_3);
}

/*--------------------------------------- MY  COLOR ---------------------------------------*/
/*--------------------------------------- MY  COLOR ---------------------------------------*/
.my_color_1_1{
  color: var(--color_1);
}

.my_color_2{
  color: var(--color_2);
}

.my_h_justefor{
  height: 100px;
}
/*--------------------------------------- MY  COLOR END ---------------------------------------*/
/*--------------------------------------- MY  COLOR END ---------------------------------------*/


/*--------------------------------------- MY  HEADER ---------------------------------------*/
/*--------------------------------------- MY  HEADER ---------------------------------------*/
.my_logo_section{
  margin-right: 15rem;
  max-width: 18rem;
  margin: 0;
}

.my_search{
  width: 300px;
}

.my_search_tr{
  margin-left: 5px;
  width: 300px;
}

.my-winnet-offre{
  background-color: var(--color_3);
  color: var(--color_2);
  padding: 0.3em;
  border-radius: 5px;
}

.my-winnet-offre:hover{
  background-color: var(--color_7);
  color: var(--color_1);
}

.m-location-hver-nav:hover{
  background-color: var(--color_7);
  color: var(--color_1);
  border-radius: 5px;
}

.m-online-app:hover{
  background-color: var(--color_7);
  color: var(--color_1);
  border-radius: 5px;
  padding: 4px;

}

.m-hv-fr-all{
  background-color: rgba(16, 3, 55, 1); 
  color: white; 
  border: solid 1px rgba(16, 3, 55, 1);
}

.m-hver-for-all:hover{
  background-color: var(--color_7);
  color: var(--color_1);
}

/* style.css */


/* ========================= Fin Header / Navbar ========================= */

/* ========================= Section A Propos ========================= */
.about-us-container {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  border-radius: 0.25rem;
}

.about-us-subtitle {
  color: rgba(26, 125, 73, 1);
  font-weight: 500;
  text-transform: uppercase;
}

.about-us-divider {
  height: 3px;
  background: rgba(26, 125, 73, 1);
  width: 20%;
}

.about-us-container .checklist {
  list-style-type: none;
  padding-left: 1.5rem; /* Ajoute une indentation à toute la liste */
}

.about-us-container .checklist li {
  position: relative;
  padding-left: 1.5rem; /* Espace pour le carré */
  margin-bottom: 0.75rem;
}

.about-us-container .checklist li::before {
  content: '■'; /* Caractère carré */
  position: absolute;
  left: 0;
  color: var(--color_3); /* Couleur verte */
}
/* Animation d'entrée pour la section */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ajoute un délai à la deuxième colonne pour un effet décalé */
.animate-on-scroll:nth-child(2) {
  transition-delay: 0.2s;
}

@media (max-width: 991.98px) {
  .about-us-container .col-lg-8 {
    margin-top: 2rem;
  }
}
/* ========================= Fin Section A Propos ========================= */

/* ========================= Section Mot du Président ========================= */
.president-quote-section .container {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-bottom: 4px solid rgba(26, 125, 73, 1);
  padding: 2rem;
  border-radius: 0.25rem;
  overflow: hidden; /* Empêche les éléments de déborder pendant l'animation */
}

.president-quote-text .quote-subtitle {
  color: rgba(26, 125, 73, 1);
  font-weight: 500;
  text-transform: uppercase;
}

.president-figure .president-image {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 50%; /* Pour une image parfaitement ronde */
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.president-figure figcaption p {
  margin-bottom: 0.5rem;
}

.president-name {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 1rem !important;
}

.president-title-divider {
  height: 2px;
  background: rgba(26, 125, 73, 1);
  width: 50px;
  margin: 0.5rem auto 1rem;
}

/* Sur mobile, ajoute un peu d'espace au-dessus de l'image */
@media (max-width: 991.98px) {
  .president-figure {
    margin-top: 2rem;
  }
}
/* ========================= Fin Section Mot du Président ========================= */

/* ========================= Footer ========================= */
.site-footer {
  background-color: var(--color_pag1);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0 0;
}

.footer-heading {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer-text {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.footer-contact i {
  margin-right: 10px;
  color: rgba(26, 125, 73, 1);
  margin-top: 4px;
}

.footer-social-icons .social-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  margin-right: 10px;
  transition: background-color 0.3s ease;
}

.footer-social-icons .social-icon:hover {
  background-color: rgba(26, 125, 73, 1);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.85rem;
}
/* ========================= Fin Footer ========================= */





/*--------------------------------------- MY FOOTER ---------------------------------------*/
/*--------------------------------------- MY FOOTER ---------------------------------------*/
.my-footer-image{
  height: 100px;
  width: 100px;
}

.my-list-type{
  text-decoration: none;
  list-style: none;
  list-style-type: none;
  text-transform: none;
}

.my-text-position{
  text-align: left;
}


/* ========================= Footer ========================= */
.site-footer {
  /* Utilise la couleur bleu foncé de votre header */
  background-color: var(--color_pag1); 
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0 0;
  font-size: 0.95rem;
}

.footer-heading {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.footer-text {
  line-height: 1.7;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px; /* Petit décalage au survol */
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-contact i {
  margin-right: 12px;
  /* Utilise la couleur verte de votre projet */
  color: rgba(26, 125, 73, 1); 
  margin-top: 5px;
  font-size: 1.1rem;
}

.footer-social-icons .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  margin-right: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-social-icons .social-icon:hover {
  background-color: rgba(26, 125, 73, 1);
  transform: translateY(-3px); /* Effet de lévitation */
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

/* ========================= Bouton Retour en Haut ========================= */
.back-to-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: none; /* Caché par défaut, géré par JS */
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(26, 125, 73, 1);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1050;
  transition: opacity 0.4s, visibility 0.4s, transform 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background-color: #15683c; /* Vert un peu plus foncé */
  color: #ffffff;
  transform: scale(1.1);
}

.back-to-top-btn i {
  font-size: 1.4rem;
  font-weight: bold;
}

/* ========================= Page Produits ========================= */
.category-title {
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(26, 125, 73, 0.2);
  display: inline-block;
}

.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

.product-card .card-img-top {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.investor-focus {
  background-color: #f8f9fa;
  border-left: 4px solid var(--color_3);
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 1rem;
  border-radius: 0 0.25rem 0.25rem 0;
}

/* ========================= Page Services ========================= */
.service-section {
  padding: 4rem 0;
  overflow-x: hidden; /* Empêche les barres de défilement horizontales pendant l'animation */
}

.service-section.bg-light {
  background-color: #f8f9fa;
}

/* ========================= Page Cultures ========================= */
.culture-section {
  padding: 4rem 0;
  overflow-x: hidden; /* Empêche les barres de défilement horizontales pendant l'animation */
}

.culture-section.bg-light {
  background-color: #f8f9fa;
}

.culture-card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 0.5rem;
  border-left: 5px solid rgba(26, 125, 73, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.culture-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.culture-card-icon {
  font-size: 2.5rem;
  color: rgba(26, 125, 73, 1);
  margin-bottom: 1rem;
}

.culture-card-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

html {
  scroll-behavior: smooth;
}

/* ========================= Menu Mobile (Offcanvas) ========================= */
.mobile-nav-list .list-group-item-action {
  transition: background-color 0.3s ease;
}
.mobile-nav-list .list-group-item-action:hover {
  background-color: rgba(92, 131, 116, 1);
}

/* ========================= Style pour Formulaires (Page Commande) ========================= */
.form-control:focus,
.form-select:focus {
  border-color: var(--color_3); /* Bordure verte au focus */
  box-shadow: 0 0 0 0.25rem rgba(26, 125, 73, 0.25); /* Ombre verte douce, style Bootstrap */
}

/* 
  NOTE: Le style au survol des <option> n'est pas supporté par tous les navigateurs (ex: Chrome sur Windows).
  Cette règle fonctionnera sur des navigateurs comme Firefox.
*/
.form-select option:hover {
  background-color: var(--color_3) !important;
  color: var(--color_2) !important;
}

/* ========================= Arrière-plan Page Commande ========================= */
.body-commandes {
  position: relative; /* Contexte de positionnement pour les images */
  overflow-x: hidden; /* Empêche le débordement horizontal */
}

.bg-image {
  position: absolute;
  opacity: 0.12; /* Opacité augmentée pour une meilleure visibilité */
  z-index: -1; /* Placer derrière tout le contenu */
  object-fit: cover;
  pointer-events: none; /* Empêche les images d'être cliquables ou sélectionnables */
  border-radius: 8px;
  will-change: transform; /* Optimisation pour l'animation */
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#bg-image-1 { /* Préparation commande */
  width: 300px;
  top: 15rem;
  left: 2%;
  animation: moveLeftRight 10s ease-in-out infinite alternate;
  transform: rotate(-10deg);
}

#bg-image-2 { /* Livreur */
  width: 350px;
  top: 45%;
  right: 1%;
  animation: moveRightLeft 12s ease-in-out infinite alternate;
  transform: rotate(8deg);
}

#bg-image-3 { /* Client reçoit */
  width: 280px;
  bottom: 25rem; /* Remontée pour être visible au-dessus du footer */
  left: 5%;
  animation: moveLeftRight 11s ease-in-out infinite alternate;
  transform: rotate(4deg);
}

/* On cache les images sur les écrans plus petits pour ne pas surcharger le formulaire */
@media (max-width: 1200px) {
  .bg-image {
    display: none;
  }
}

/* ========================= Keyframes pour les animations ========================= */
@keyframes moveLeftRight {
  from {
    transform: translateX(-15px) rotate(var(--initial-rotate, -10deg));
  }
  to {
    transform: translateX(15px) rotate(var(--final-rotate, -8deg));
  }
}

@keyframes moveRightLeft {
  from {
    transform: translateX(15px) rotate(var(--initial-rotate, 10deg));
  }
  to {
    transform: translateX(-15px) rotate(var(--final-rotate, 6deg));
  }
}

/* ========================= Animation de Soumission de Formulaire ========================= */
.submission-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.98); /* Fond blanc presque opaque */
  display: none; /* Caché par défaut */
  flex-direction: column; /* Aligne les éléments verticalement */
  align-items: center;
  justify-content: center; /* Centre le bloc (textes + animation) */
  z-index: 2000; /* Au-dessus de tout */
}

.submission-overlay.visible {
  display: flex; /* Affiché via JS */
}

.animation-container {
  position: relative;
  width: 250px; /* Taille du conteneur d'animation */
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animation-circle {
  width: 180px;
  height: 180px;
  /* Effet de route avec une bordure et une ombre interne */
  border: 6px solid #6a5435; /* Bordure extérieure marron */
  background-color: #dcd3c5; /* Couleur de l'asphalte */
  box-shadow: inset 0 0 0 4px #bfae98; /* Bordure intérieure plus claire */
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner-circle {
  width: 90px;
  height: 90px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.map-icon {
  font-size: 2.5rem;
  color: var(--color_3);
  opacity: 0.7;
}

.food-icon {
  position: absolute;
  font-size: 2.5rem; /* Taille ajustée pour mieux s'intégrer */
  color: var(--color_3); /* Vert */
  opacity: 0; /* Commence invisible */
  /* L'animation apparaît et reste fixe */
  animation-name: appearAndStay;
  animation-duration: 0.6s;
  animation-fill-mode: forwards; /* Garde l'état final de l'animation */
  animation-timing-function: ease-out;
}

/* On décale l'animation de chaque icône pour qu'elles apparaissent l'une après l'autre */
/* Positionnement des icônes autour du cercle intérieur */
/* Les icônes sont positionnées sur un cercle et leur apparition est décalée */
.food-icon:nth-child(2) { transform: rotate(0deg) translateY(-65px) rotate(0deg); animation-delay: 0.2s; }
.food-icon:nth-child(3) { transform: rotate(60deg) translateY(-65px) rotate(-60deg); animation-delay: 0.8s; }
.food-icon:nth-child(4) { transform: rotate(120deg) translateY(-65px) rotate(-120deg); animation-delay: 1.6s; }
.food-icon:nth-child(5) { transform: rotate(180deg) translateY(-65px) rotate(-180deg); animation-delay: 2.4s; }
.food-icon:nth-child(6) { transform: rotate(240deg) translateY(-65px) rotate(-240deg); animation-delay: 3.2s; }
.food-icon:nth-child(7) { transform: rotate(300deg) translateY(-65px) rotate(-300deg); animation-delay: 4.0s; }

.tractor-path-container {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotateContainer 5s linear forwards; /* Fait tourner le conteneur du chemin */
}

.tractor-icon-wrapper {
  position: absolute;
  top: 0px; /* Ajuste la position pour que les roues touchent la route */
  left: 50%;
  transform: translateX(-50%);
}

.tractor-icon {
  font-size: 40px; /* Taille de l'icône du tracteur */
  color: var(--color_3); /* Couleur verte */
  transform: rotate(0deg); /* Oriente l'icône pour qu'elle regarde vers l'avant (tangentiellement au cercle) */
}

.submission-text {
  color: var(--color_pag1); /* Bleu foncé, comme le header */
  font-size: 1.5rem;
  font-weight: 500;
  opacity: 0;
  animation: fadeInText 1s ease forwards;
}

.top-text {
  margin-bottom: 2rem;
  animation-delay: 0.2s;
}

.bottom-text {
  margin-top: 2rem;
  animation-delay: 0.5s;
  /* Style pour le texte de remerciement */
  color: var(--color_1); /* Couleur noire normale */
  font-size: 1rem; /* Taille de police normale */
  position: relative; /* Nécessaire pour positionner le trait de soulignement */
  padding-bottom: 15px; /* Espace pour le trait en dessous */
}

.bottom-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px; /* Largeur du trait */
  height: 3px; /* Épaisseur du trait */
  background-color: var(--color_3); /* Couleur verte */
}

@keyframes appearAndStay {
  from {
    opacity: 0;
    transform-origin: center;
  }
  to {
    opacity: 1;
  }
}

@keyframes rotateContainer {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeInText {
  to { opacity: 1; }
}

/* ========================= Styles pour les détails produits (Page Produits) ========================= */
.product-details-body {
  text-align: left;
  font-size: 0.9rem;
}

.product-details-body .price {
  font-size: 1.1rem;
  color: var(--color_3); /* Vert */
  font-weight: 500;
}

.quantity-input .form-control {
  /* Empêche les flèches natives du navigateur sur le champ number */
  -moz-appearance: textfield;
  appearance: textfield;
}

.quantity-input .form-control::-webkit-inner-spin-button,
.quantity-input .form-control::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input .btn {
  z-index: 1; /* Assure que les boutons sont cliquables */
}

.add-to-cart-btn {
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.add-to-cart-btn:hover {
  transform: scale(1.02);
}

.add-to-cart-btn:active {
  transform: scale(0.98);
}

/* Style pour le bouton "Masquer les détails" */
.toggle-details-btn.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
}

.toggle-details-btn.btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
}

/* ========================= Page Connexion ========================= */
.body-connexion {
  background-color: #f0f2f5; /* Un gris très clair pour le fond */
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-container {
  max-width: 450px;
  width: 100%;
}

.login-card {
  background-color: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  border-top: 5px solid var(--color_3); /* Bordure verte en haut */
}

.login-logo {
  width: 60px;
  height: auto;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.login-logo:hover {
  transform: scale(1.1) rotate(10deg);
}

.profile-icon-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 5px;
  border-radius: 50%;
}

.profile-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--color_3); /* Fond vert */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 4px 10px rgba(26, 125, 73, 0.4);
}

#login-form {
  margin-top: 60px; /* Espace pour le cercle du profil (augmenté de 40px à 60px) */
}

.forgot-password-link {
  font-size: 0.85rem;
  text-decoration: none;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

/* Ajustement pour la modale : la carte de connexion n'a pas besoin de marge quand elle est dans une modale */
.modal .login-card {
  margin-top: 0;
}

/* ========================= Formulaire avec icônes internes (Page Inscription) ========================= */
/* On cible le conteneur .form-floating qui contient une icône .form-icon */
.form-floating > .form-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: #6c757d; /* Gris neutre par défaut */
  transition: color 0.2s ease;
  pointer-events: none; /* L'icône n'est pas cliquable */
  z-index: 4; /* S'assurer que l'icône est au-dessus du champ */
}

/* On ajoute un padding à gauche sur les .form-control qui sont dans un .form-floating avec une icône */
.form-floating > .form-icon ~ .form-control {
  padding-left: 3.25rem;
}

/* On ajuste aussi le label pour qu'il ne chevauche pas l'icône */
.form-floating > .form-icon ~ label {
  padding-left: 3.25rem;
}

/* L'EFFET MAGIQUE : Quand le champ .form-control est en focus, on cible l'icône .form-icon qui est son frère */
.form-floating > .form-control:focus ~ .form-icon {
  color: var(--color_3); /* On passe l'icône en vert */
}

/* ========================= Page Profil ========================= */
.profile-card {
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
}

.profile-picture {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 4px solid var(--color_3);
}

.profile-info-list {
  padding-left: 0;
  margin-top: 1.5rem;
}

.profile-info-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.profile-info-list i {
  color: var(--color_3);
  margin-right: 10px;
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.accordion-button {
  font-weight: 500;
}

.accordion-button:not(.collapsed) {
  color: var(--color_1);
  background-color: rgba(26, 125, 73, 0.1);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(26, 125, 73, 0.25);
  border-color: var(--color_3);
}

/* ========================= Suivi de Commande (Page Profil) ========================= */
.tracking-card {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
}

.map-placeholder {
  background-color: #e9ecef;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}

.progress-tracker {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 1.5rem 0;
}

.progress-tracker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #e9ecef;
  transform: translateY(-50%);
  z-index: 1;
}

.progress-step {
  position: relative;
  z-index: 2;
  text-align: center;
}

.progress-step::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #e9ecef;
  border: 3px solid #fff;
  margin: 0 auto 0.5rem;
  transition: background-color 0.3s ease;
}

.progress-step.active::before {
  background-color: var(--color_3); /* Vert */
}

.progress-step span {
  font-size: 0.8rem;
  color: #6c757d;
}

.products-table td {
  vertical-align: middle;
}

/* ========================= Responsive pour Page Profil (Petits écrans) ========================= */
@media (max-width: 767.98px) {
  /* Fait passer le bouton "Suivre ma commande" à la ligne */
  .accordion-body .list-group-item > .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .accordion-body .track-order-btn {
    margin-top: 0.75rem;
    width: 100%;
  }

  /* Fait passer la barre de progression en mode vertical */
  .progress-tracker {
    display: block;
    margin-left: 10px; /* Espace pour la ligne verticale */
  }

  .progress-tracker::before {
    left: 10px; /* Position de la ligne verticale */
    top: 0;
    bottom: 0;
    width: 3px;
    height: 100%;
    right: auto;
  }

  .progress-step {
    display: flex;
    align-items: center;
    text-align: left;
    margin-bottom: 1.5rem; /* Espace entre les étapes */
  }

  .progress-step::before {
    margin: 0;
    margin-right: 1rem; /* Espace entre le cercle et le texte */
    flex-shrink: 0; /* Empêche le cercle de se réduire */
  }

  .progress-step:last-child {
    margin-bottom: 0;
  }
}

/* ========================= Page Panier ========================= */
.cart-item {
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.cart-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.cart-item-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.remove-item-btn {
  border: none;
  background: transparent;
  font-size: 1.2rem;
  color: #6c757d;
  transition: color 0.3s ease, transform 0.3s ease;
}

.remove-item-btn:hover {
  color: #dc3545; /* Rouge Bootstrap */
  transform: scale(1.1);
}

.summary-card {
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--color_3);
  border-radius: 0.5rem;
}

/* Pour que le résumé de commande reste visible au scroll sur les grands écrans */
@media (min-width: 992px) {
  .summary-card.sticky-top {
    top: 10rem; /* 8rem (hauteur main) + 2rem d'espace */
  }
}

/* Ajustement pour les petits écrans */
@media (max-width: 767.98px) {
  .cart-item .card-body {
    padding: 1rem 1rem 1rem 0.5rem;
  }
}

/* ========================================
   ANIMATIONS D'APPARITION (gérées par animations.js)
   ======================================== */

/* Animation fade-in pour le carousel */
.carousel-caption.fade-in-caption {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation d'apparition pour les cartes de chiffres clés */
.figure-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.figure-card.card-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation d'apparition pour les cartes produits */
.product-card {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-card.product-visible {
  opacity: 1;
  transform: scale(1);
}

/* ========================================
   PRÉSERVATION DES ANIMATIONS HOVER
   ======================================== */

/* ✅ Tes animations hover existantes restent intactes */
/* Elles sont définies plus haut dans le fichier et ne sont pas écrasées */

/* Animation hover pour les cartes de chiffres clés (ligne 63-77) */
.key-figures-dashboard .figure-card {
  /* Déjà défini dans ton CSS - conservé tel quel */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.key-figures-dashboard .figure-card:hover {
  /* Déjà défini dans ton CSS - conservé tel quel */
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Animation hover pour les cartes produits (ligne 565-571) */
.product-card:hover {
  /* Déjà défini dans ton CSS - conservé tel quel */
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

/* ========================================
   FIX : Séparer les transitions d'apparition et de hover
   ======================================== */

/* On s'assure que les transitions d'apparition et de hover ne se mélangent pas */
.figure-card,
.product-card {
  /* Transition pour l'apparition (opacity + transform) */
  transition: 
    opacity 0.6s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Quand visible, on garde les transitions pour le hover */
.figure-card.card-visible,
.product-card.product-visible {
  transition: 
    transform 0.3s ease,
    box-shadow 0.3s ease;
}