/* Global */
@font-face{
  font-family: 'montserrat';
  src: url('../Montserrat-Regular.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face{
  font-family: 'bulgaria';
  src: url('../Bulgaria-Moderna-Pro.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face{
  font-family: 'inika';
  src: url('../Inika-Regular.ttf') format('opentype');
  font-weight: bold;
  font-style: normal;
}
@font-face{
  font-family: 'inria';
  src: url('../InriaSans-Regular.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face 
{
  font-family: 'trajan';
  src: url('../trajan-pro.otf') format('OpenType');
  font-weight: normal;
  font-style: normal;
}
* {
  transition: all 0.5s ease; /* Applique une transition de 0.5 secondes à tous les éléments */
  margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* :hover {
  transition: all 0.5s ease; /* Applique une transition de 0.5 secondes à tous les éléments au survol */
}
html{
  background-color: #FAF3E0; /* blanc ivoire */
  font-size: 15px;
  line-height: 1.8em;
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}
body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'montserrat', sans-serif;
}
img, table, td, blockquote, code, pre, textarea, input, iframe, object, embed, video, html, body {
  max-width: 100%;
}
.text-dans-half-width
{
  text-indent: 2em; /* Ajoute un retrait de 2 unités de largeur de caractère */
  padding: 5px 50px;
  margin: 0 auto; /* Centre horizontalement le paragraphe */
  text-align: justify; /* Justifie le texte pour un rendu propre */
}


.margeCorps {
    flex: 1;
    padding: 120px 0px 20px 0px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #1C4690;
  z-index: 1000;
  border-bottom: 3px solid #C6A505; 
}

/* Bande du haut */
.top-bar {
  background: #c3aa89f7;
  padding: 5px 20px;
  text-align: center;
  opacity: 1;
  padding: 5px 20px;
  max-height: 100px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}
.top-bar h1 {
    font-size: 0.8rem; /* Taille du nom de la société */
    color: white;
    letter-spacing: 1px;  
    font-family: 'Trajan', serif;
    font-weight: 600;
    padding: 0px;
    text-shadow: 1px 1px 2px black, /* Ombre principale */
                 -1px -1px 2px black, /* Ombre secondaire */
                 2px 2px 4px rgba(0, 0, 0, 0.5); /* Ombre douce pour un effet 3D */
}
.top-bar h1:hover {
    color: black;
    text-shadow: none;
}
.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
}
.animal-top-bar {
  height: 0.8rem;
}
.animal-top-bar:hover {
  transform: scale(1.5);
}
/* Main container */
.main-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5%;
  margin: 0 auto;
  gap: 20px; /* espace entre éléments logo/nav/actions */
  flex-wrap: wrap;
}

/* Menu horizontal */
.menu {
  display: flex;
  gap: 24px; /* espace entre liens */
  flex-wrap: wrap;
}
.menu a, .menu .user-menu {
  position: relative;
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 4px;
}

/* Pseudo-élément pour le soulignement */
.menu a::after, .menu .user-menu::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* Animation au survol */
.menu a:hover::after, .menu .user-menu:hover::after {
  transform: scaleX(1);
}

/* Changement de couleur au hover */
.menu a:hover, .menu .user-menu:hover {
  color: #FFD700;
}

.menu .image-menu {
    height: 10px;
    max-width: 12px;
    color: #FFD700;
}
.menu a:hover .image-menu {
    color: white;
}
/* Mode réduit */
.header.small .top-bar {
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  max-height: 0;
  pointer-events: none;
}

.header.small .main-bar {
  padding: 8px 20px;
}
.logo {
  height: 50px;
}
.logo img {
  height: 50px;
}
.logo img:hover {
  transform: scale(1.4);
}

.header.small .logo img {
  height: 35px;
}

/* Conteneur du menu utilisateur */
.user-menu {
    position: relative; /* Permet au menu déroulant de se positionner par rapport à ce conteneur */
    display: inline-block; /* Garde les éléments alignés */
    cursor: pointer;
}

/* Texte de salutation et icône */
.greeting {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: bold;
}

/* Icône de compte */
.account-icon {
    height: 16px;
    color: #FFD700;
}
.greeting:hover .account-icon {
    color: white;
}
/* Menu déroulant (caché par défaut) */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; /* Place le menu juste en dessous */
    left: 0;
    background-color: #c3aa89f7;
    border: 2px solid #000000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 8;
    min-width: 200px; /* Largeur minimale */
    border-radius: 5px;
}

/* Liens dans le menu */
.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 0.9rem;
}
/* Icônes par défaut */
.dropdown-menu .icon {
    width: 1rem;
    height: 1rem;
    vertical-align: text-top;
}
/* Icônes au survol */
.dropdown-menu a:hover .icon {
    color: black; /* Changer la couleur au noir au survol */
}

/* Effet au survol */
.dropdown-menu a:hover {
    background-color: #f0f0f0;
    color: #333 !important;
}

/* Afficher le menu au survol */
.user-menu:hover .dropdown-menu {
    display: block; /* Rend le menu visible */
}
/* Modale de fond */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

/* Contenu de la modale */
.modal-content {
  background-color: #FAF3E0;
  margin: 5% auto;
  padding: 30px 40px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Bouton de fermeture (croix) */
.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 50px !important;
  font-weight: bold;
  color: black !important;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: #1C4690 !important;
}


/* Responsive amélioration pour petits écrans */
@media screen and (max-height: 500px) {
    #auth-form-container {
        margin-top: 20px;
        max-height: 80vh;
    }
}
/* footer */
.site-footer {
    width: 100%;
    border-top: 3px solid #C6A505;
    color: white;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    left: 0;
    text-align: center;
}

.footer-container {
    width: 90%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-banner {
    border-top: 3px solid #C6A505;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
    padding: 40px 20px;
    color: white;
    position: relative;
}

.footer-feature {
    flex: 1 1 200px;
    text-align: center;
    margin: 20px;
}

.footer-feature i {
    font-size: 32px;
    margin-bottom: 10px;
    color: #FFD700;
}

.footer-feature h5 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #FFD700;
    font-family: "trajan";
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 10px;
    text-align: left;
}

.footer-section h4 {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #FFD700;
    font-family: "trajan";
}

.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-section a {
  position: relative;
  color: rgb(255, 255, 255);
  text-decoration: none;
}

/* Ligne animée */
.footer-section a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.1s ease-out;
}

.footer-section a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Couleur éventuelle au hover (facultatif si tu veux un changement visible) */
.footer-section a:hover {
  color: #FFD700;
}

.footer-bottom {
    margin-top: 20px;
    font-size: 0.9em;
}
.footer-newsletter {
    background-color: #1C4690;
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-top: 3px solid #C6A505;
}

.footer-newsletter h4 {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-family: "trajan";
    color: #FFD700;
}

.footer-newsletter p {
    margin-bottom: 20px;
    font-size: 1em;
}

.footer-newsletter form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-newsletter form input {
  padding: 10px;
  font-size: 14px;
  border: 2px solid #233138;
  border-radius: 4px;
  font-family: 'montserrat', sans-serif;
  box-sizing: border-box; /* Inclut le padding et la bordure */
  min-width: 20%;
}

.footer-newsletter form input:focus {
border-color: #ffffff;
outline: none;
}

.footer-newsletter form input:hover {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
transform: scale(1.01);
}
.footer-newsletter button {
  background-color: #233138;
}
.footer-newsletter button:hover {
    color: #FFD700;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    text-align: center;
  }
}
/* titres */
h1
{
  padding: 6px 15px;
  font-size: 1.5rem;
  font-family: 'trajan';
  font-weight: bold;
  color: black;
  border: none;
  border-radius: 5px;
  text-align: center;
}
h1:hover
{
  color: white;
  text-shadow: 1px 1px 2px black, /* Ombre principale */
                 -1px -1px 2px black, /* Ombre secondaire */
                 2px 2px 4px rgba(0, 0, 0, 0.5); /* Ombre douce pour un effet 3D */
}
h2 {
  padding: 10px 20px;
  margin: 10px 5px;
  font-size: 1rem;
  font-family: 'trajan';
  font-weight: bold;
  background-color: #c3aa89f7;
  color: #1C4690;
  border-left: 8px solid #1C4690;
  border-radius: 5px;
  display: flex;
  align-items: center; /* Centre le texte verticalement */
  justify-content: center; /* Centre le texte horizontalement */
}
h2:hover {
  color: white;
  background-color: #1C4690;
  border-left-color: #c3aa89;
  box-shadow: 0px 0px 16px 5px #2059bb;
}
h3 {
  padding: 6px 12px;
  margin: 20px 5px 10px;
  font-size: 1rem;
  font-family: 'Trajan', serif;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to right, #1C4690, #345CA8);
  border-left: 8px solid #c3aa89;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;  
}
h3:hover {
  background: linear-gradient(to right, #c3aa89, #b29375);
  color: #1C4690;
  border-left-color: #1C4690;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
a 
{
  text-decoration: none;
  font-weight: bold;
  color: black;
}
a:hover
{
  color: #1C4690;
}
.arbre a {
  font-family: "trajan";
  font-size: 0.8rem; /* Taille de la police inchangée */
  text-shadow: none; /* Ombre du texte inchangée */
  background-color: #c3aa89f5; /* Une couleur de fond beige clair */
  border-radius: 5px; /* Bordure plus arrondie */
  padding: 5px 20px; /* Augmentation du padding pour un meilleur espace autour du texte */
  transition: all 0.3s ease; /* Ajout d'une transition pour les effets au survol */
  display: inline-block; /* Assure que la padding et les bordures sont appliquées correctement */
  margin: 1px 5px 10px 5px;
}
.arbre a:hover {
  background-color: #1C4690;
  box-shadow: 5px 5px 10px black; /* Ombre de la boîte plus prononcée */
  color: white; /* Changement de la couleur du texte au survol pour mieux contraster avec le fond noir */
}
#filtersForm {
  padding: 0px 0px 20px 0px;
  text-align: center;
  display: flex;
  flex-direction: column; /* Les éléments enfants sont empilés verticalement */
  align-items: center; /* Centre horizontalement tous les enfants */
  gap: 20px; /* Espacement entre les éléments */
}
.gras
{
  font-weight: bold;
}
.souligner
{
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 0.07rem;
}
.italic
{
  font-style: italic;
  margin-block-start: 0px;
  margin-block-end: 0px;
}
#filtersForm .filtre-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Permet d'aller à la ligne si nécessaire */
  width: 100%; /* Prend toute la largeur */
}

.filters {
  display: flex;
  flex-wrap: wrap; /* Permet d'aller à la ligne uniquement si nécessaire */
  gap: 10px; /* Espacement entre les éléments */
  border: 0px solid #8B5E3C; /* Bordure personnalisée */
  border-radius: 10px; /* Coins arrondis */
  width: 22%; /* Largeur fixe pour les fieldsets */
  background-color: #F4E8D6; /* Couleur de fond */
  justify-content: center; /* Centre les labels horizontalement */
  align-items: center; /* Centre les labels verticalement */
  padding: 5px;
}
legend {
  background-color: #1C4690;
  color: white;
  border-radius: 2px;
  font-size: 0.8rem;
  font-family: "trajan";
  padding: 0 5px;
}

.filters label {
  border: none;
  border-radius: 5px;
  width: 45%;
}

label:hover {
  font-weight: bold;
}
/* Ajustement des options */
.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  justify-content: start;
}


/* Légende (titre) de chaque filtre */
.filters fieldset legend {
  font-size: 14px; /* Réduit la taille du texte */
  font-weight: bold;
  color: #333; /* Texte gris foncé */
  margin-bottom: 5px; /* Espacement avec les options */
}

/* Label personnalisé */
.checkbox-label span,
.radio-label span {
  display: inline-block;
  border: 2px solid black; /* Bordure grise par défaut */
  border-radius: 4px; /* Coins arrondis */
  background-color: #c3aa89f5; /* Fond blanc */
  color: black; /* Couleur du texte */
  cursor: pointer; /* Curseur cliquable */
  transition: background-color 0.3s, border-color 0.3s, color 0.3s; /* Animation fluide */
  font-size: 0.8rem; /* Réduction de la taille du texte */
  width: 100%;
  height: 100%;
}

/* Label sélectionné */
.checkbox-label input:checked + span,
.radio-label input:checked + span {
  background-color: #1C4690; 
  border-color: #C6A505; /* Bordure assortie */
  box-shadow: 0px 0px 5px #fcd92c;
  color: white; /* Texte bleu */
}

/* Label au survol */
.checkbox-label span:hover,
.radio-label span:hover {
  background-color: #901c1c; 
  border-color: #C6A505; /* Bordure bleue au survol */
  box-shadow: 0px 0px 5px #973434;
  color: white; /* Texte bleu */
}

/* Ajustement pour l'alignement sur une ligne */
.checkbox-label input, .radio-label input {
display: none;
}
.submit-filtre {
  display: block; /* Le bouton occupe toute la largeur disponible */
  margin: 20px auto; /* Ajoute un espacement en haut et le centre horizontalement */
  padding: 10px 20px; /* Espacement intérieur pour un bouton plus grand */
  background-color: #800020; /* Couleur de fond */
  color: white; /* Couleur du texte */
  border-color: #C6A505; /* Bordure bleue au survol */
  border-radius: 5px; /* Coins arrondis */
  cursor: pointer; /* Curseur de clic */
  font-size: 1rem; /* Taille de police */
  font-weight: bold;
  font-family: 'trajan'; /* Police de caractère */
  transition: background-color 0.3s ease; /* Animation fluide */
  align-self: center; /* Centre spécifiquement le bouton dans le parent */
}

.submit-filtre:hover {
  background-color: #1C4690; /* Couleur au survol */
  box-shadow: 0px 0px 5px #9b5c3876;
  border-color: #5f361f; /* Bordure bleue au survol */
}
.ctaButtonFiltre-container {
  text-align: center; /* Centre horizontalement */
}

.ctaButtonFiltre {
  font-family: 'trajan';
  position: relative;
  top: -32px;
  padding: 5px 20px;
  color: black;
  background-color: #c3aa89f5;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  display: inline-block; /* Nécessaire pour que text-align fonctionne */
}

.ctaButtonFiltre:hover {
  color: white;
  background-color: #1C4690;
}

.submit
{
padding: 6px 15px;
margin: 10px 0;
font-size: 1.5rem;
font-family: 'trajan';
font-weight: bold;
background-color: #1C4690;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.afficherResultats
{
font-family: "trajan";
padding: 10px;
margin: 10px;
text-align: center;
font-size: 1.5rem;
color: white;
background-color: #1C4690;
border-radius: 20px;
}
.submit:hover, .afficherResultats:hover
{
background-color: rgb(36, 126, 55);
color: gold;
cursor: pointer;
box-shadow: 0px 0px 16px 5px rgb(0, 0, 0);
}
.quantity-container {
  display: flex;
  align-items: center;
  margin: 10px 0;
  font-family: 'inria', sans-serif !important;
}

.quantity-container label {
  margin-right: 10px;
  font-family: 'trajan';
}

.quantity-button {
  padding: 5px 10px;
  background-color: #c3aa89f7;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'inria', sans-serif !important;
  transition: all 0.3s ease;
}

.quantity-button:hover {
  background-color: rgb(36, 126, 55);
  color: gold;
  box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.2);
}

#quantity {
  width: 50px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: 'inria', sans-serif !important;
  margin: 0 5px;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}
.currency-symbol {
  font-size: 0.9rem; /* Légèrement plus petit que le prix */
  vertical-align: middle; /* Alignement visuel avec le prix */
}
.text-right-register {
  float: right;
  color: #006400 !important;
}
/* Bouton ajout panier */
.quantity-controls {
  background-color: white;
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  width: 6rem; /* Ajuster la largeur pour inclure les boutons */
  height: 2.5rem; /* Correspond à la hauteur du bouton update */
  padding: 0;
  border-radius: 5px;
}

.quantity-controls:hover {
  border: 1px solid #0f339f;
}
.quantity-controls button {
  width: 2rem; /* Ajuster pour une taille cohérente */
  height: 100%; /* Correspond à la hauteur de .quantity-controls */
  font-size: 1rem;
  border: none;
  cursor: pointer;
  border-radius: 1px; /* Plus cohérent sans arrondi */
}
.increment-button {
  color: white;
  background-color: #1C4690;
  font-weight: bold;
}

.decrement-button {
  color: white;
  background-color: #800020;
  font-weight: bold;
}

.decrement-button:hover,
.increment-button:hover {
  color: gold;
  box-shadow: 0 0 10px rgba(255, 217, 0, 0.497);
}
.quantity-input {
  font-family: "trajan";
  font-size: 1.2rem;
  font-weight: bold;
  background-color: white;
  width: 3rem; /* Largeur du champ de saisie */
  min-width: 3rem; /* 🔥 Empêche la réduction de l'input */
  max-width: 3rem; /* 🔥 Empêche l'extension de l'input */
  height: 100%; /* Correspond à la hauteur de .quantity-controls */
  text-align: center;
  border: none;
  box-sizing: border-box; /* Pour inclure les padding et bordures */
}
.update-button {
  font-family: 'trajan';
  font-weight: bold;
  padding: 7px 15px;
  height: 2.5rem; /* Identique à .quantity-controls */
  font-size: 1rem; /* Légèrement plus grand pour lisibilité */
  background-color: #800020;
  color: white;
  border: 1px solid white;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px; /* Espacement entre la quantité et le bouton */
}
.panier-product-quantity .update-button{
  background-color:#c3aa89f5;
  color: black;
}
.update-button:hover {
  background-color: #1C4690;
  box-shadow: 0 0 10px 5px rgba(15, 51, 159, 0.5);
  color: white;
  border: 1px solid #1C4690;
}
.auth-feedback {
  background: #e6ffed;
  border: 1px solid #c1eac5;
  color: #006400;
  padding: 1em;
  border-radius: 5px;
  margin-bottom: 1em;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.message-container {
    position: fixed; /* Centré par rapport à l'écran, pas au parent */
    top: 50%; /* Centre verticalement par rapport à l'élément parent */
    left: 50%; /* Centre horizontalement */
    transform: translate(-50%, -50%); /* Ajuste pour aligner parfaitement au centre */
    background-color: #dff0d8; /* Vert pâle pour signaler un succès */
    color: #3c763d; /* Couleur de texte verte */
    padding: 10px; /* Espacement interne */
    border: 1px solid #3c763d; /* Bordure verte */
    border-radius: 5px; /* Coins arrondis */
    z-index: 100; /* Place au-dessus des autres éléments */
    display: none; /* Masque le message par défaut */
    text-align: center; /* Centre le texte */
    width: 80%; /* Ajuste la largeur relative (facultatif) */
    max-width: 300px; /* Limite la largeur maximale */
}
#blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(2px); /* 💡 flou visuel */
    background-color: rgba(0, 0, 0, 0.1); /* légère ombre */
    z-index: 99; /* Juste derrière le message */
    display: none;
}
.panier-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  padding: 20px;
  margin-bottom: 100px;
}

.panier-product-list {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 65%; /* pour laisser de la place à droite */
}
.panier-product {
  display: grid;
  grid-template-columns: 100px 2fr 1fr 1fr; /* image, infos, quantité, total */
  gap: 10px;
  padding: 15px;
  border: 1px solid #ccc;
  background: #f1f1f1;
  border-radius: 5px;
  align-items: center;
  overflow: auto; /* utile avec resize */
}
.panier-product:hover {
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.353);
}
.article-image {
  width: 100px;
  height: 100px;
  margin-right: 15px;
  object-fit: contain;
}

.article-image:hover {
  transform: scale(1.2);
  border-radius: 4px;
}

.panier-product-info {
  flex: 2;
}

.panier-product-quantity,
.panier-product-total-price {
  flex: 1;
  text-align: center;
  width: 250px;
}
.panier-product-price {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 10px 15px;
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
    color: #333;
    font-family: 'Montserrat', sans-serif;
}
.panier-product-price:hover {
  background-color: #FAF3E0;
}
.panier-product .souligner {
    font-weight: bold;
    color: #1C4690;
}

.panier-product .italic {
    font-style: italic;
    color: #555;
}
.delete-button {
  margin: 20px auto; /* Ajoute un espacement en haut et le centre horizontalement */
  background-color: #800020;
  color: white;
  border: 2px solid #C6A505;
  padding: 8px 16px;
  border-radius: 5px;
  font-family: 'trajan', serif;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

.delete-button:hover {
  background-color: #166534;
  box-shadow: 0px 0px 5px rgb(13, 73, 10);
}
.panier-summary {
  flex: 1;
  position: sticky;
  top: 100px;
  background: #fff;
  padding: 15px; /* Espacement interne */
  border-radius: 15px 15px 10px 10px;
  border: 2px solid #1C4690;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: fit-content;
  min-height: 300px;
}
.panier-summary:hover {
  border: 2px solid #c3aa89f5;
    transform: translateY(-5px); /* Léger déplacement vers le haut */
    box-shadow: 0 5px 20px #1C4690; /* Accentuation de l'ombre */
    background-color: #f9f9f9; /* Fond légèrement grisé */
}
.panier-summary h2 {
    font-family: "trajan", serif;
    font-size: 1rem;
    color: white;
    background-color: #1C4690;
    padding: 10px;
    border-radius: 13px 13px 0 0;
    margin-bottom: 5px;
    width: calc(100% + 30px);
    margin-top: -15px;
    margin-left: -15px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
}
.panier-summary:hover h2 {
    background-color: #c3aa89f5;
    color: black;
}
.panier-summary:hover #btn-etape-suivante {
  background-color: #1C4690;
}
#btn-etape-suivante {
  font-family: "trajan", serif;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  background-color: #800020;
  padding: 12px;
  border-radius: 0 0 8px 8px;
  width: calc(100% + 30px);
  margin-bottom: -16px;
  margin-left: -15px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 2;
  cursor: pointer;
  border: none;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}
.summary-line:last-of-type {
  border-bottom: none;
}
.total-ttc {
  font-weight: bold;
  color: #1C4690;
  font-size: 1.1rem;
  margin-top: 10px;
}
.summary-label {
  font-weight: bold;
}
.container-politique {
    max-width: 60%;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.info-message-panier-connexion {
  background-color: #166534;
  border: 1px solid gold;
  color: white;
  padding: 10px 15px;
  border-radius: 4px;
  margin: 20px auto;
  font-size: 0.95em;
  text-align: center;
  width: fit-content;
}
.info-message-panier-connexion a {
  color: rgb(233, 233, 233);
  font-weight: bold;
  text-decoration: underline;
}

/* Bannière Principale */
.main-banner {
    background-size: cover;
    background-position: center;
    text-align: center;
     width: 60%;
}

.banner-content {
    display: inline-block;
}
    /* === Hero Categories Section === */
    .hero-categories {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      padding: 5px 20px;
      justify-content: center;
      background-color: #faf3e0;
    }

    .category-tile {
      position: relative;
      flex: 1 1 calc(25% - 20px);
      height: 400px;
      overflow: hidden;
      border-radius: 10px;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
      transition: transform 0.3s ease;
    }

    .category-tile img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .category-tile:hover img {
      transform: scale(1.05);
    }

    .category-tile .overlay {
      position: absolute;
      bottom: 0;
      width: 100%;
      padding: 10px;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
      color: #fff;
      box-sizing: border-box;
    }

    .category-tile h2 {
      margin: 0;
      font-size: 1rem;
      letter-spacing: 1px;
    }

    .category-tile p {
      margin-top: 5px;
      font-size: 0.9rem;
      font-style: italic;
      color: #ddd;
    }

    /* === Banner === */
    .main-banner {
      background-color: #fff8ef;
      text-align: justify;
      padding: 10px 20px;
      max-width: 60%;
      margin: 0 auto;
    }

    .main-banner p {
      font-size: 1rem;
      line-height: 1.6;
      text-indent: 15px;
    }
    /* === Brand Section === */
    .brand-section {
      padding: 40px 20px;
      margin-bottom: 60px;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .brand-header {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 20px;
    }
    .brand-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: -50px auto 20px auto;
    max-width: 80%;
    padding: 10px 20px;
}

.brand-logos a {
    display: inline-block;
    transition: transform 0.2s ease;
}
.brand-logo-index {
    height: 60px;
    max-width: 140px;
    object-fit: contain;
    margin: 10px auto;
    display: block;
}
.brand-logo-index:hover {
    transform: scale(1.2);
}
.cta-button {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    background-color: #1C4690;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    color: black;
    background-color: #c3aa89f5;
}

/* Produits Vedettes */
.featured-products {
    padding: 50px 20px;
    text-align: center;
}

.featured-products .product-list {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.featured-products .product-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px; /* Coins arrondis */
    width: 25%;
    position: relative;
    overflow: hidden; /* Garde tout dans la case */
    border: 2px solid transparent; /* Bordure de base */
}
.featured-products .product-item img {
    height: 250px;
}
.featured-products .product-item img:hover {
    transform: scale(1.1);
}
.featured-products .product-item:hover {
    transform: translateY(-10px) scale(1.02); /* Légère élévation et agrandissement */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.1); /* Ajout d'une ombre attrayante */
    border-color: #1C4690; /* Bordure colorée pour mettre en valeur */
}
.product-item p {
    text-indent: 20px;
    text-align: justify;
}

/* À Propos de Nous */
.about-us {
    background: white;
    padding-bottom: 20px;
    text-align: center;
    width: 50%;
    margin: 50px auto;
}
/* Témoignages */
.testimonials {
    background: #f1f1f1;
    padding: 50px 20px;
    text-align: center;
}

.testimonials .testimonial-list {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.testimonials .testimonial-item {
    background: white;
    padding: 20px;
    border-radius: 5px;
    width: 300px;
}

/* Actualités et Blog */
.latest-news {
    padding: 50px 20px;
    text-align: center;
}

.latest-news .news-list {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.latest-news .news-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    width: 300px;
}

.latest-news .news-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #ffc107;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #e0a800;
}


/* formulaire de contact */
    /* Conteneur principal */
.formulaire-contact {
  max-width: 900px;
  margin: 50px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  font-family: 'montserrat', sans-serif;
}

/* Titres */
.formulaire-contact h2 {
    font-family: "trajan", serif;
    font-size: 1rem;
    color: white;
    background-color: #1C4690;
    padding: 10px;
    border-radius: 13px 13px 0 0;
    margin-bottom: 5px;
    width: calc(100% + 60px);
    margin-top: -30px;
    margin-left: -30px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
}
.formulaire-contact h2:hover {
    background-color: #800020;
    box-shadow: 0px 0px 16px 5px #80002071;
    color: white;
}
/* Champs de base */
.form-group,
.form-group-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group-row {
  flex-direction: row;
  gap: 20px;
}

.form-group-row .form-group {
  flex: 1;
}

/* Labels */
.form-group label {
  margin-bottom: 5px;
  font-weight: bold;
  font-family: 'montserrat', sans-serif;
  color: #333;
}

/* Inputs et textarea */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'montserrat', sans-serif;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #1C4690;
  box-shadow: 0 0 8px rgba(28, 70, 144, 0.3);
  outline: none;
}

textarea {
  resize: vertical;
}

/* Bouton d'envoi */
.form-group button {
  padding: 12px 25px;
  background-color: #800020;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'trajan', serif;
  font-weight: bold;
  font-size: 1rem;
  width: fit-content;
  margin: 0 auto;
}

.form-group button:hover {
  background-color: #1C4690;
  color: white;
  box-shadow: 0 0 10px #1C4690;
}

/* ⬇️ Custom Select - Objet de la demande */
.custom-select-container {
  position: relative;
  font-family: "trajan", serif;
  cursor: pointer;
}

.selected-option {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 2px solid #C6A505;
  width: 100%;
  border-radius: 5px;
  font-size: 1rem;
  background-color: #FAF3E0;
  cursor: pointer;
  margin-bottom: 15px;
  font-family: "trajan";
  font-weight: bold;
}

.drapeau-select {
  width: 25px;
  height: 18px;
  margin-right: 10px;
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #FAF3E0;
  border: 1px solid #C6A505;
  display: none;
  flex-direction: column;
  max-height: 300px;
  overflow-y: auto;
  z-index: 10;
  border-radius: 0 0 5px 5px;
}

.custom-option {
  padding: 10px;
  font-family: 'trajan';
  border-bottom: 1px solid #ddd;
}

.custom-option:hover {
  background-color: #c3aa89f5;
  color: black;
}
.global-required-msg {
  font-size: 0.9rem;
  color: #656556;
  margin-top: 10px;
  font-style: italic;
}
.success-message {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 15px 20px;
  border-radius: 6px;
  font-family: "montserrat", sans-serif;
  font-size: 1rem;
  max-width: 600px;
  margin: 20px auto;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.error-message-container {
  background-color: #ffe6e6;
  border-left: 4px solid #d9534f;
  padding: 10px;
  margin-bottom: 15px;
}

.error-message-list {
  margin: 0;
  padding-left: 20px;
}

.error-message {
  color: #a94442;
  font-size: 0.9rem;
}
/* scroll to top */
#scroll_to_top {
  position: fixed;
  bottom: 20px;
  right: 10px;
  z-index: 2;
}

#scroll_to_top button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
}

#scroll_to_top img {
  width: 3rem;
  border-radius: 0;
  transition: transform 0.3s ease;
}

#scroll_to_top img:hover {
  transform: rotate(90deg);
}