/*Font*/
.anonymous-pro-regular {
  font-family: "Anonymous Pro", monospace;
  font-weight: 400;
  font-style: normal;
}

.anonymous-pro-bold {
  font-family: "Anonymous Pro", monospace;
  font-weight: 700;
  font-style: normal;
}

.anonymous-pro-regular-italic {
  font-family: "Anonymous Pro", monospace;
  font-weight: 400;
  font-style: italic;
}

.anonymous-pro-bold-italic {
  font-family: "Anonymous Pro", monospace;
  font-weight: 700;
  font-style: italic;
}

/*Banderole dynamique*/
.banner {
    width: 100%;           /* largeur totale de la page */
    overflow: hidden;      /* cache ce qui déborde */
    background-color: #f8f0e3; /* couleur de fond sympa */
    border: 2px solid #e6d3b3; /* bordure optionnelle */
    padding: 10px 0;
    white-space: nowrap;   /* garde le contenu sur une ligne */
}

.banner-content {
    display: inline-block;
    padding-left: 100%;    /* commence en dehors de la zone visible */
    animation: scroll 10s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/*Accusé de mail*/
.flash-message {
    position: fixed;              /* reste au-dessus du contenu */
    top: 50%;                     /* position verticale au milieu */
    left: 50%;                    /* position horizontale au milieu */
    transform: translate(-50%, -50%); /* centre parfaitement */
    background-color: rgba(220, 53, 69, 0.9); /* rouge Bootstrap + transparence */
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1050;                /* au-dessus du reste */
    text-align: center;
    animation: fadeInOut 4s ease-in-out forwards;
}

/* Animation d'apparition/disparition fluide */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -60%); }
    10% { opacity: 1; transform: translate(-50%, -50%); }
    90% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -40%); }
}

/* === LOGO ===*/

/* Logo responsive */
.logo-img {
  width: auto;
  max-height: 15vh; /* desktop */
}


                                                        /* === Barre de Navigation === */
.navbar{
  padding: 1rem 2rem;
  /* position: sticky; */
  position: unset;
  top: 0;
  z-index: 1000;
}

.nav-links{
 gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-links a:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* On cible UNIQUEMENT l'icône panier */
.panier-link {
  position: relative;
  display: inline-block;
}
/*taille du bouton profil*/
.profil-icon{
  height: 6rem;
}

/* Taille du logo panier */
.panier-icon {
  width: auto;
  height: 100%;
}

/* Badge rouge sur le logo */
.badge-panier {
  background-color: red;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 50%;
  line-height: 1;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}


/* Overlay caché par défaut */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4); /* semi-transparent léger */
  backdrop-filter: blur(5px);      /* flou de l'arrière-plan */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  z-index: 9999;
}

/* Overlay actif */
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Contenu de l'overlay */
.overlay-content {
  background: rgb(255, 223, 163); /* léger fond blanc transparent */
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: translateY(-20px);
  transition: transform 0.3s ease-in-out;
}

/* Animation du contenu quand l'overlay est actif */
.overlay.active .overlay-content {
  transform: translateY(0);
}

.overlay-content h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.overlay-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.overlay-content li {
  margin: 0.5rem 0;
}

.overlay-content a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
}

.overlay-content a:hover {
  color: #EE5656;
}

#closeOverlay {
  margin-top: 1rem;
  background: #EE5656;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

#closeOverlay:hover {
  background: #ee5656a9;
}

.ButtonCategorie{
  background-color: #FFA352;
  color: white;
  padding: 1.50%;
}
/* === Menu burger === */
.burger{
  display:none;
  flex-direction: column;
  justify-content:space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}

  .burger img {
    width: 10vw;
    max-width: 60px;
    height: auto;
    display: block;
  }


body {
    background-color: #F5F5F5;
}

.ButtonClass{
  background-color: #EE5656;
  color: white;
  padding: 1.50%;
}

/* === CAROUSEL === */
.Carousel{
  background-color: rgba(255, 206, 101, 0.288); /* léger fond blanc transparent */

}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #FFA352;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    background-size: 50%, 50%;
}

.MaxiCard{
  background-color: #faae6b;
  
}

.product-card {
  max-width: 80%; /* largeur totale */
  overflow: hidden;
}

.btn-add-to-cart {
  width: 50px;
  height: 50px;
  cursor: pointer; /* pas actif maintenant, mais prêt pour l’avenir */
  transition: transform 0.2s ease;
}

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


.CatHeading{
  transition: transform 0.4s ease, filter 0.4s ease;
  border-radius: 10px;
}

.CatHeading:hover{
  transform: scale(1.03);
  filter: brightness(0.8) saturate(1.2);
}

/*.contactField{
  background: #f04646;
background: linear-gradient(74deg, rgba(240, 70, 70, 0.64) 37%, rgba(242, 201, 111, 0.67) 100%);
}*/


.form-control {
  background-color: #f7f7f7;
  border: 1px solid #f4a261;
  border-radius: 6px;
}

.contactField label,
.contactField button {
  font-family: "Anonymous Pro", monospace;
  font-weight: 700; /* bold si tu veux */
}


/* Facultatif : placeholder en même police */
.contactField input,
.contactField textarea,
.contactField select,
.contactField ::placeholder {
  font-family: "Anonymous Pro", monospace;
  font-weight: 400;
}
                                                    /*===  Card Article  ===*/
     /* Uniformise la hauteur de la card interne */
.CardArticle {
     height: 100%;
    display: flex;
    flex-direction: column;
}

/* La description occupe l'espace variable */
.CardArticle p.anonymous-pro-regular {
    flex-grow: 1;
}

/* Le bouton descend en bas */
.CardArticle a.btn {
    margin-top: auto;
}
                                               
.category-card-in {
  position: relative;
  /* overflow: hidden;*/
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255, 206, 101, 0.288); /* léger fond blanc transparent */
  backdrop-filter: blur(6px); /* effet verre dépoli */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 2%;
  height: 100%;
}

.category-card-anim{
  transition: transform .5s ;
}
.category-card-anim:hover{
  transform: scale(1.1);
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 2rem;
  background: rgba(255, 206, 101, 0.288); /* léger fond blanc transparent */
  backdrop-filter: blur(6px); /* effet verre dépoli */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 5%;
}

/* Petites formes décoratives */
.category-card::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.4), transparent 70%);
  border-radius: 50%;
}

.category-card::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.4), transparent 70%);
  border-radius: 50%;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 214, 139, 0.15);
}

.category-preview {
  display: block;
  /* hauteur fixe commune */
  object-fit: contain;    /* garde les proportions */        /* centre l’image */
  transition: transform 0.3s ease, filter 0.3s ease;
}

.category-preview:hover {
  transform: scale(1.05);
  filter: brightness(0.9);
}
                                                       /*===== CREER UN COMPTE  ====*/

.textRegister{
  color: #EE5656;
}

.borderRegister{
  border-color: #EE5656;
}

                                                        /*=== CONNEXION UN COMPTE ===*/

.textConnexion{
  color: #f4a261;
}

.borderConnexion{
  border-color: #f4a261;
}

.btnConnexion{
  background-color: #f4a261;
}

                                                          /*====  RESET PASSWORD  ====*/

.mainReset{
  padding-left: 15%;
  padding-right: 15%;
}
                                                                    /* === FOOTER === */

footer{
  background-color: #EE5656;
  margin-top: 10%;
  padding-top: 5%;
}
.SocialIcon{
  width: max-content;
}

                                                            /* ====== MEDIA QUERIES ===== */

/* MENU RESPONSIVE */
@media (max-width: 768px) {
  .nav-links{
    position: fixed;
    top: 8vh;
    right: -100%;
    height:92vh;
    width:60vw;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 3vh;
    padding-top: 5vh;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }
  .burger{
    display: flex;
  }

}
                                          /* =====  ADDFLASH CONFIRMATION DE COMMANDE  ===== */
.notification-toast {
    background: linear-gradient(135deg, #e7f8ef, #f8fdf9);
    border: 1px solid #c5ecd4;
    border-radius: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    color: #3a614f;
    font-family: "Poppins", "Nunito", sans-serif;
    animation: popIn 0.5s ease-out;
    z-index: 9999;
}

.notification-toast .btn-close {
    filter: invert(50%) sepia(20%) saturate(300%) hue-rotate(100deg);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}





/* === MENU BURGER — Responsive uniquement === */
@media (max-width: 992px) {
  /* Le bouton burger */
  .burger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 1101; /* plus haut que le menu */
  }

  .burger img,
  .burger-icon {
    width: 10vw;
    max-width: 60px;
    height: auto;
    display: block;
  }

  /* Le menu caché sur mobile */
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70vw;
    height: 100vh;
    background-color: #f8f0e3;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5vh;
    padding: 0;
    margin: 0;
    transition: left 0.3s ease;
    z-index: 1100;
  }

  .nav-links.active {
    left: 0;
  }
}



/* 📴 Désactivation des transitions sur mobile */
@media (max-width: 768px) {
  .category-card {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    }
    .category-card-anim{
     transition: none ;
}
.category-card-anim:hover{
     transform: none;
}
}

/* 💡 Pour petits écrans */
@media (max-width: 1000px) {

  body {
    margin: 0 !important;   /* au cas où le body ait des marges */
  }
}

/* ==== LOGO TAILLE ====*/
@media (max-width :580px){
  .logo{
    width:80%;
  }
}

/* ==== LABEL TAILLE ==== */

@media (max-width : 770px){
  .label{
    width: 100%;
  }
}

/* ==== CATEGORIES LABEL ==== */

@media (max-width : 600px){
  .imagePreview{
    width: 60%;
  }
  .category-card-in{
    margin-bottom: 15%;
  }
}