/* Reset de base : supprime marges et paddings par défaut */
* {
    margin:0;
    padding:0;
    box-sizing: border-box;
}

/* =======================
   Bannière principale
   ======================= */
.banner {
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
    position: relative;
}
.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* =======================
   Menu catégories
   ======================= */
.navTypes {
    display: flex;
    justify-content: space-between; /* espace entre les boutons */
    flex-wrap: nowrap;              /* les éléments restent sur une seule ligne (corrigé plus bas en responsive) */
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.navTypes li {
    flex: 1 1 0;      /* chaque bouton prend la même largeur */
    margin: 0 5px;    /* petit espace horizontal */
}
.navTypes li:first-child { margin-left: 0; }
.navTypes li:last-child { margin-right: 0; }

.navTypes li a {
    display: block;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    background-color: #f5f5f5;
    color: #333;
    text-align: center;
    padding: 12px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.navTypes li a:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* =======================
   Cards produits
   ======================= */
.blockP {
    margin-top: 30px !important;
}
.cardP {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* espace entre contenu et bouton */
    box-shadow: 0px 2px 10px rgba(0,0,0,0.2);
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.cardP:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-buttons {
    margin-top: auto; /* pousse les boutons en bas */
    display: flex;
    flex-direction: column;
    gap: 8px; /* espace entre boutons */
}
.card-buttons .btn {
    width: 100%;
}

/* =======================
   Footer
   ======================= */
.footer {
    background-color: #f4f4f4;
    color: #333;
    padding: 40px 0;
    font-family: 'Lato', sans-serif;
}
.footer h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #58bc82;
}
.footer ul {
    list-style: none;
    padding: 0;
}
.footer ul li {
    margin-bottom: 8px;
}
.footer ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}
.footer ul li a:hover {
    color: #58bc82;
}
.footer p {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* =======================
   Produits stylisés (texte)
   ======================= */
.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0 5px;
    color: #2c2c2c;
    font-family: 'Montserrat', sans-serif;
}
.product-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    min-height: 40px; /* garde l’alignement */
}
.product-category {
    font-size: 0.85rem;
    font-style: italic;
    color: #888;
    margin-bottom: 5px;
}
.product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #b88a44; /* doré */
    margin-bottom: 12px;
}
.login-msg {
    font-size: 0.85rem;
    color: #c0392b;
    font-style: italic;
    text-align: center;
    margin-top: 5px;
}

/* =======================
   Boutons produits
   ======================= */
.btn-outline-dark {
    border-radius: 20px;
    transition: all 0.3s ease;
}
.btn-outline-dark:hover {
    background-color: #2c2c2c;
    color: #fff;
}
.btn-success {
    border-radius: 20px;
    background-color: #58bc82;
    border: none;
    transition: all 0.3s ease;
}
.btn-success:hover {
    background-color: #46a571;
}

/* =======================
   Responsive design
   ======================= */

/* Tablettes (max 780px) */
@media screen and (max-width:780px) {
    .banner-img { height: auto; }
}

/* Mobiles (max 575px) */
@media screen and (max-width:575px) {
  /* Fix produits : pas de décalage horizontal */
  .mobilev { margin-left: 0 !important; }

  /* Menu catégories en colonne */
  .navTypes {
      flex-direction: column;   /* les éléments s’empilent */
      flex-wrap: wrap;          /* permet le retour à la ligne */
      align-items: center;      /* centrage horizontal */
      gap: 10px;                /* espace entre boutons */
  }
  .navTypes li {
      width: 100%;              /* chaque bouton prend toute la largeur */
  }
  .navTypes li a {
      font-size: 14px;          /* texte légèrement réduit */
      padding: 10px;            /* padding plus petit */
  }
}
