/* css/style.css */
/* THÈME : LES BOCAUX À PAPA - MISE EN PAGE & STYLE */

/* ==============================================================================
   1. BASE & TYPOGRAPHIE
   ============================================================================== */
body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  font-size: 1.05rem;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

/* Police spécifique H1, H2, H3 (Atocha) */
h1, h2, h3 {
  font-family: var(--font-h1h2);
}

h1 { 
  text-align: center;
}

p {
  margin-bottom: 1rem;
}

/* Liens (Décoration) */
a, .link {
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover, a:focus, .link:hover, .link:focus {
  text-decoration: underline;
}

/* Utilitaires */
.float-left { float: left; }
.float-right { float: right; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.alert-warning { color: #333; }

/* ==============================================================================
   2. BOUTONS (FORME & TAILLE)
   ============================================================================== */
.btn {
  font-family: var(--font-heading);
  text-transform: uppercase;
  border-radius: 50px;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
  border-width: 2px;
}

/* ==============================================================================
   3. NAVBAR (MISE EN PAGE & TAILLE)
   ============================================================================== */
.navbar a {
  font-family: var(--font-h1h2) !important;
  font-size: 25px;
  font-weight: 600;
  margin-left: 1rem;
}

.nav-link.active {
  font-weight: 800;
}

.menu--main { 
  margin: auto; 
}

/** Logo Europe **/
.logo {
	margin-right: 1rem;
}

.navbar-is-scrolled .logo img {
	height: 60px;
	width: auto;
}

/* ==============================================================================
   4. SECTIONS & LAYOUT
   ============================================================================== */
.section-bocaux {
  padding: 4rem 0;
}

.path-frontpage h1.title {
  display: none;
}

/* Rows alternées */
.row-odd-b h3, .row-even-b h3,
.row-odd-b h4, .row-even-b h4 {
  text-align: center;
}

.row-odd-b {
  padding: 1rem 0.5rem;
  margin: 1rem 0;
}

.row-even-b {
  background-color: var(--bocaux-white);
  padding: 2rem 1rem;
  margin: 2rem 0;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(89, 106, 26, 0.15);
  transform: scale(1.01);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.row-even-b:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(89, 106, 26, 0.25);
}

/* Flexbox pour alignement vertical */
.row-odd-b, .row-even-b {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.row-odd-b .col-sm-6, 
.row-even-b .col-sm-6,
.row-odd-b .col-md-6, 
.row-even-b .col-md-6 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.row-even-b img {
  margin-left: auto;
}

/* Image spécifique cuisine */
img[src*="IMG_20220623_143031"] {
  object-fit: cover;
  width: 100%;
  height: auto;
  max-height: 500px;
}

/* ==============================================================================
   5. IMAGES & CONTENU
   ============================================================================== */
.field--name-body img, 
.node__content img {
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  margin: auto;
}

/* ==============================================================================
   6. SLIDER & CAROUSEL
   ============================================================================== */
.bocaux-slider-container {
  max-height: 500px;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.row-odd-b .bocaux-slider-container {
  background-color: transparent;
}

.bocaux-slider-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
  opacity: 0;
  z-index: 1;
}

.bocaux-slider-container img.active {
  opacity: 1;
  z-index: 2;
}

.bocaux-slider-wrapper {
  min-height: 400px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.row-odd-b .bocaux-slider-wrapper {
  background-color: transparent;
}

.slideshow-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 1s ease-in-out;
  opacity: 0;
  z-index: 1;
}

.slideshow-item.active {
  opacity: 1;
  z-index: 2;
}

.content .slideshow-group img {
  height: 400px;
}

/* Carousel Clients */
.block-views-blockclients-block-1 h2,
.carousel-item {
  text-align: center;
  align-items: center;
}

.carousel {
  margin-bottom: 1rem;
}

/* Alignement logos clients */
.row:has(.image-style-clients) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.col-md-3:has(.image-style-clients) {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.image-style-clients {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==============================================================================
   7. CARTES PRODUCTEURS (LAYOUT & TAILLE)
   ============================================================================== */
/* Structure de la carte */
.view-maraichers-productreurs .col-12, 
.view-maraichers-productreurs .col-sm-6, 
.view-maraichers-productreurs .col-md-4, 
.view-maraichers-productreurs .col-md-3, 
.view-maraichers-productreurs .col-lg-3 {
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.view-maraichers-productreurs .col-12 > *, 
.view-maraichers-productreurs .col-sm-6 > *, 
.view-maraichers-productreurs .col-md-4 > *, 
.view-maraichers-productreurs .col-md-3 > *, 
.view-maraichers-productreurs .col-lg-3 > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Effet Hover (Mouvement) */
.view-maraichers-productreurs .col-md-4:hover, 
.view-maraichers-productreurs .col-md-3:hover, 
.view-maraichers-productreurs .col-lg-3:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(89, 106, 26, 0.2);
}

/* Image Producteur */
.view-maraichers-productreurs .views-field-field-image {
  margin-bottom: 1rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.view-maraichers-productreurs .views-field-field-image img {
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  border-radius: 10px;
}

/* Titre Producteur (Typo) */
.view-maraichers-productreurs .views-field-title {
  margin-bottom: 0.8rem;
  width: 100%;
}

.view-maraichers-productreurs .views-field-title a {
  font-family: var(--font-h1h2);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  display: block;
  line-height: 1.2;
  transition: color 0.3s ease;
}

/* Badge Produits (Typo & Forme) */
.view-maraichers-productreurs .views-field-field-produits {
  margin-bottom: 1.2rem;
  width: 100%;
}

.view-maraichers-productreurs .views-field-field-produits .field-content {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  display: inline-block;
}

/* Description Body (Typo) */
.view-maraichers-productreurs .views-field-body {
  margin-top: auto;
  width: 100%;
}

.view-maraichers-productreurs .views-field-body p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive Mobile Producteurs */
@media (max-width: 768px) {
  .view-maraichers-productreurs .col-12, 
  .view-maraichers-productreurs .col-sm-6 {
    margin-bottom: 1.5rem;
  }
  
  .view-maraichers-productreurs .col-12 > *, 
  .view-maraichers-productreurs .col-sm-6 > * {
    padding: 1rem;
  }
  
  .view-maraichers-productreurs .views-field-title a {
    font-size: 1.2rem;
  }
}

/* ==============================================================================
   8. FOOTER (LAYOUT & STRUCTURE)
   ============================================================================== */

.site-footer {
  font-family: var(--font-body);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

/* Conteneur principal Flexbox */
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

/* --- Colonnes --- */
.footer-col {
  flex: 1 1 250px; /* Grandit, rétrécit, min 250px */
  min-width: 250px;
}

/* Colonne Contact (un peu plus large) */
.footer-col-contact {
  flex: 1.5 1 300px;
}

/* --- Typographie & Éléments --- */
.footer-title {
  font-family: var(--font-h1h2);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.footer-separator {
  height: 3px;
  width: 60px;
  margin: 0 0 1.5rem 0;
  border-radius: 2px;
}

.footer-subtitle {
  text-align: center;
  font-family: var(--font-h1h2);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Liste de liens (Menu) */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.05rem;
}

.footer-menu li {
  margin-bottom: 0.6rem;
}

.footer-menu a {
  font-weight: 500;
  font-size: 1.05rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.footer-menu a:hover {
  transform: translateX(5px); /* Petit glissement à droite */
  text-decoration: none;
}

/* Contact Items (Tél, Email) */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.footer-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

img.footer-icon {
  margin-left: 1rem;
}

/* Réseaux Sociaux */
.footer-socials {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
  justify-content: center;
}

.footer-social-link {
  display: block;
  transition: transform 0.3s ease;
}

.footer-social-link:hover {
  transform: scale(1.15);
  text-decoration: none;
}

.footer-social-img {
  width: 32px;
  height: auto;
  border-radius: 50%;
}

/* Logos Institutionnels */
.footer-logos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-logos img {
  max-height: 60px;
  width: auto;
  display: block;
}

/* --- Bas de page (Copyright) --- */
.site-footer__bottom_e {
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
}

.site-footer__bottom_e p {
  margin-bottom: 0.5rem;
}

/* --- Responsive Mobile (< 768px) --- */
@media (max-width: 768px) {
  .site-footer__top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-col {
    width: 100%;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .footer-separator {
    margin: 0 auto 1.5rem auto; /* Centré */
  }

  .footer-contact-item {
    justify-content: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-logos {
    align-items: center;
  }
  
  .footer-menu a:hover {
    transform: none; /* Désactive le glissement sur mobile */
  }
}

/* ==============================================================================
   10. SECTION COPYRIGHT
   ============================================================================== */

.region-footer-fifth .content a {
    font-size: inherit;
    text-decoration: none;
    padding-left: 0;
}

/* ==============================================================================
   11. BREADCRUMBS (FIL D'ARIANE) - MISE EN PAGE & TYPO
   ============================================================================== */

#block-bocaux-boot-breadcrumbs {
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.breadcrumb {
  background-color: transparent; /* Pas de fond gris Bootstrap par défaut */
  border-radius: 0;
  padding: 0;
  font-family: var(--font-h1h2); /* Police Atocha comme les H1/H2 */
  font-size: 0.95rem;
  font-weight: 600;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* Séparateur personnalisé (on remplace le "/" par ">" ou autre) */
.breadcrumb-item + .breadcrumb-item::before {
  content: ">"; /* Ou "/" ou "•" selon ton goût */
  padding: 0 0.5rem;
  font-weight: 400;
  font-family: var(--font-body); /* Oswald pour le séparateur */
}

/* Page actuelle (active) */
.breadcrumb-item.active {
  font-weight: 700;
}

/* ==============================================================================
   12. HAUT DE PAGE - MENU TRANSISTION
   ============================================================================== */

body.user-logged-in.page-view-papa-ou-t-es,
body.user-logged-in.page-view-maraichers-productreurs,
body.user-logged-in.page-node-33 {
  padding-top: 270px !important;
}

body:not(.user-logged-in).page-view-papa-ou-t-es,
body:not(.user-logged-in).page-view-maraichers-productreurs,
body:not(.user-logged-in).page-node-33 {
  padding-top: 175px !important;
}

body.navbar-is-scrolled.user-logged-in.page-view-papa-ou-t-es,
body.navbar-is-scrolled.user-logged-in.page-view-maraichers-productreurs,
body.navbar-is-scrolled.user-logged-in.page-node-33 {
  padding-top: 220px !important;
}

body:not(.user-logged-in).navbar-is-scrolled.page-view-papa-ou-t-es,
body:not(.user-logged-in).navbar-is-scrolled.page-view-maraichers-productreurs,
body:not(.user-logged-in).navbar-is-scrolled.page-node-33 {
  padding-top: 150px !important;
}

@media (max-width: 768px) {
body.user-logged-in.page-view-papa-ou-t-es,
body.user-logged-in.page-view-maraichers-productreurs,
body.user-logged-in.page-node-33 {
  padding-top: 270px !important;
}

body:not(.user-logged-in).page-view-papa-ou-t-es,
body:not(.user-logged-in).page-view-maraichers-productreurs,
body:not(.user-logged-in).page-node-33 {
  padding-top: 55px !important;
}

body.navbar-is-scrolled.user-logged-in.page-view-papa-ou-t-es,
body.navbar-is-scrolled.user-logged-in.page-view-maraichers-productreurs,
body.navbar-is-scrolled.user-logged-in.page-node-33 {
  padding-top: 220px !important;
}

body:not(.user-logged-in).navbar-is-scrolled.page-view-papa-ou-t-es,
body:not(.user-logged-in).navbar-is-scrolled.page-view-maraichers-productreurs,
body:not(.user-logged-in).navbar-is-scrolled.page-node-33 {
  padding-top: 130px !important;
}
}

/* ==============================================================================
   13. FICHE PRODUIT SINGLE (GRID STABLE - AJOUT CHAMPS)
   ============================================================================== */

/* 1. Le Conteneur : On garde TA structure exacte */
.path-product article {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 3rem;
  background-color: var(--bocaux-white);
  border-radius: 20px;
  border: 1px solid rgba(89, 106, 26, 0.1);
  
  display: grid;
  grid-template-columns: 40% 54%; 
  column-gap: 4rem;
  row-gap: 0; 
  align-items: start;
}

/* 2. L'Image : On ne touche à rien (Sticky, Span 10 -> On augmente à 12 pour couvrir les nouveaux champs) */
.path-product .product-single-media {
  grid-column: 1 / 2;
  grid-row: 1 / span 12; /* Étendu pour couvrir jusqu'au GTIN */
  position: sticky;
  top: 120px;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(89, 106, 26, 0.15);
  border: 4px solid var(--bocaux-white);
  margin: 0;
}

.path-product .product-single-media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.path-product .product-single-media:hover img {
  transform: scale(1.03);
}

/* 3. Le Contenu : Insertion des nouveaux champs dans l'ordre */

/* Ligne 1 : Titre */
.path-product .product-single-title {
  grid-column: 2 / 3;
  grid-row: 1;
  font-family: var(--font-h1h2);
  font-size: 3rem;
  line-height: 1.1;
  margin: 0;
  color: var(--bocaux-green);
  text-align: left;
}

/* Ligne 1 : Panier (Bouton d'achat) */
.path-product .product-single-cart {
  grid-column: 2 / 3;
  grid-row: 1;
  margin: 0;
  width: 100%;
}

.path-product .product-single-cart .btn-primary {
  width: 100%;
  font-size: 1.3rem;
  padding: 1.2rem 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  border-radius: 50px;
  background-color: var(--bocaux-orange);
  border-color: var(--bocaux-orange);
  color: #fff;
  box-shadow: 0 4px 15px rgba(226, 105, 23, 0.4);
  transition: all 0.3s ease;
  display: block;
  text-align: center;
  cursor: pointer;
}

.path-product .product-single-cart .btn-primary:hover {
  background-color: var(--bocaux-lime);
  color: var(--bocaux-black);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(226, 105, 23, 0.5);
}
/* Ligne 2 : Catégorie (Type de bocaux) */
.path-product .product-single-category {
  grid-column: 2 / 3;
  grid-row: 2;
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  margin: 0;
  margin-bottom: 1rem;
/*  background-color: var(--bocaux-sand);*/
  color: var(--bocaux-black);
  text-align: right;
}
.path-product .product-single-category .field__item {
  display: inline-block;
  padding: 0.5rem 1.2rem; /* Ajuste l'espace autour du texte */
  margin-right: 0.5rem;
  background-color: var(--bocaux-sand); /* Assure-toi que la couleur est bien définie */
  border-radius: 50px;}

/* Ligne 3 : Prix */
.path-product .product-single-price {
  grid-column: 2 / 3;
  grid-row: 3;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bocaux-orange);
  margin: 0;
  line-height: 1;
  text-align: center;
}

/* Ligne 4 : Poids ET Allergènes (Côte à côte) */
/* On garde la technique qui fonctionnait : inline-block pour les deux éléments sur la même row */
.path-product .product-single-weight {
  grid-column: 2 / 3;
  grid-row: 4;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--bocaux-green);
  font-weight: 800;
  margin: 0;
  margin-right: 2rem; /* Espace entre poids et allergènes */
  vertical-align: middle;
  text-align: center;
}

/* Ligne 5 : Description (Body) */
.path-product .product-single-description {
  grid-column: 2 / 3;
  grid-row: 5;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--bocaux-text);
  margin: 0;
  margin-bottom: 2rem;
}

/* Ligne 6 : Composition (Nouveau champ) */
.path-product .field--name-field-composition {
  grid-column: 2 / 3;
  grid-row: 6;
  margin: 0;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: rgba(233, 240, 244, 0.6);
  border-radius: 12px;
  border-left: 5px solid var(--bocaux-green);
}
/* Optionnel : Style du label si tu veux le mettre en gras */
.path-product .field--name-field-composition .field__label {
  font-weight: 700;
  color: var(--bocaux-black);
  display: block;
  margin-bottom: 0.5rem;
}

/* Champ Allergènes : On le force sur la ligne 4 aussi */
.path-product .field--name-field-allergenes {
  grid-column: 2 / 3;
  grid-row: 7;
  vertical-align: middle;
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bocaux-alert-allergene);
  background-color: var(--bocaux-bg-allergene);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--bocaux-alert-allergene);
  text-transform: uppercase;
  margin: 0;
}


/* Ligne 8 : GTIN (Nouveau champ - Discret) */
.path-product .field--name-field-gtin {
  grid-column: 2 / 3;
  grid-row: 8;
  font-size: 0.85rem;
  color: #999;
  font-family: var(--font-accent);
  margin: 0;
  margin-bottom: 1rem;
}



/* --- RESPONSIVE MOBILE --- */
@media (max-width: 991px) {
  .path-product article {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 2rem;
    padding: 1.5rem;
    margin: 1.5rem auto;
    display: block;
  }

  .path-product .product-single-media,
  .path-product .product-single-title,
  .path-product .product-single-category,
  .path-product .product-single-price,
  .path-product .product-single-weight,
  .path-product .field--name-field-allergenes,
  .path-product .product-single-description,
  .path-product .field--name-field-composition,
  .path-product .field--name-field-gtin,
  .path-product .product-single-cart {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    display: block;
    margin-bottom: 1.5rem;
  }

  .path-product .product-single-media {
    position: static;
    margin-bottom: 1.5rem;
  }

  .path-product .product-single-title {
    font-size: 2.2rem;
    text-align: center;
  }

  .path-product .product-single-category {
    display: inline-block;
    margin: 0 auto 1.5rem auto;
    text-align: center;
  }

  .path-product .product-single-price,
  .path-product .product-single-weight,
  .path-product .field--name-field-allergenes,
  .path-product .product-single-description,
  .path-product .field--name-field-composition,
  .path-product .field--name-field-gtin {
    text-align: center;
  }
  
  .path-product .field--name-field-composition {
    border-left: none;
    border-top: 5px solid var(--bocaux-green);
  }
}

/* ==============================================================================
   14. GRILLE DE PRODUITS (VUE : NOS BOCAUX) - BASÉ SUR TON HTML
   ============================================================================== */

/* 1. ESPACEMENT (GAP) AUTOUR DES CARTES */
/* On cible les classes EXACTES de ton HTML :.col-12,.col-sm-6,.col-md-4,.col-lg-3 */
.path-nos-bocaux .col-12,
.path-nos-bocaux .col-sm-6,
.path-nos-bocaux .col-md-4,
.path-nos-bocaux .col-lg-3 {
  margin-bottom: 3rem;       /* Espace vertical entre les lignes */
  padding-left: 15px;        /* Marge gauche standard */
  padding-right: 15px;       /* Marge droite standard */
}

/* On ajoute un peu plus d'espace horizontal spécifique pour aérer */
.path-nos-bocaux .col-lg-3 {
  padding-left: 20px; 
  padding-right: 20px;
}

/* 2. STYLE DE LA CARTE (Fond blanc, ombre) */
/* On applique le style sur la colonne qui contient tout */
.path-nos-bocaux .col-lg-3 {
  background-color: var(--bocaux-white);
  border-radius: 15px;
  padding: 2rem 1.5rem;      /* Espace interne dans la carte */
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
/*  height: 100%;   */           /* Force la hauteur égale pour toutes les cartes */
  border: 1px solid rgba(89, 106, 26, 0.05);
}

.path-nos-bocaux .col-lg-3:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(89, 106, 26, 0.15);
  border-color: var(--bocaux-lime);
}

/* 3. IMAGE */
.path-nos-bocaux .product-grid-image {
  width: 100%;
  margin-bottom: 1.5rem;
  line-height: 0;
}

.path-nos-bocaux .product-grid-image img {
/*  width: 100%;*/
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  background-color: #f8f9fa;
}

.path-nos-bocaux .product-grid-image:empty {
  display: none;
}

/* 4. TITRE */
.path-nos-bocaux .product-grid-title {
  margin-bottom: 1rem;
  width: 100%;
  flex-grow: 1; /* Pousse le prix/bouton vers le bas */
}

.path-nos-bocaux .product-grid-title a {
  font-family: var(--font-h1h2);
  font-size: 1.8rem;
  color: var(--bocaux-green);
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.3s ease;
  display: block;
}

.path-nos-bocaux .product-grid-title a:hover {
  color: var(--bocaux-orange);
}

/* 5. PRIX & POIDS (Sur la même ligne grâce à tes classes col-6 dans l'UI) */
.path-nos-bocaux .product-grid-price,
.path-nos-bocaux .product-grid-weight {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Masquer les labels "Prix:" et "Poids:" */
.path-nos-bocaux .views-label {
  display: none !important;
}

/* Style Prix */
.path-nos-bocaux .product-grid-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bocaux-orange);
}

/* Style Poids */
.path-nos-bocaux .product-grid-weight {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--bocaux-secondary);
  font-weight: 400;
}

/* 6. BOUTON D'ACHAT */
.path-nos-bocaux .product-grid-cart {
  width: 100%;
  margin-top: auto; /* Colle le bouton en bas */
}

.path-nos-bocaux .product-grid-cart .form-wrapper {
  margin-bottom: 0 !important;
}

.path-nos-bocaux .product-grid-cart select,
.path-nos-bocaux .product-grid-cart .form-item--type-select {
  display: none; 
}

.path-nos-bocaux .product-grid-cart .btn-primary {
  width: 100%;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  background-color: var(--bocaux-green);
  border-color: var(--bocaux-green);
  color: #fff;
  box-shadow: 0 4px 10px rgba(89, 106, 26, 0.2);
  border-radius: 50px;
}

.path-nos-bocaux .product-grid-cart .btn-primary:hover {
  background-color: var(--bocaux-orange);
  border-color: var(--bocaux-orange);
  color: #fff;
  transform: translateY(-2px);
}

/* Responsive Mobile */
@media (max-width: 991px) {
  .path-nos-bocaux .col-lg-3 {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  .path-nos-bocaux .product-grid-image img {
    height: 200px;
  }
  .path-nos-bocaux .product-grid-title a {
    font-size: 1.5rem;
  }
}

/* ==============================================================================
   15. Allergène
   ============================================================================== */

/* Badge Allergènes - Affichage clair et lisible */
.allergen-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
  border: 1px solid var(--bocaux-alert-allergene);
  background-color: var(--bocaux-bg-allergene);
  color: var(--bocaux-alert-allergene);
  line-height: 1.4;
}

/* Optionnel : Si tu veux séparer les allergènes par une virgule stylisée */
.allergen-badge span {
  margin-right: 2px;
}

/* ==============================================================================
   16. STYLE DU PANIER (CART) - TRANSFORMATION TABLEAU EN CARTES
   ============================================================================== */

/* --- Conteneur Principal --- */
.cart-form {
  background: transparent;
  padding: 0;
}

/* --- Transformation du Tableau en Liste de Cartes --- */
.views-table {
  width: 100%;
  border: none;
  border-collapse: separate;
  border-spacing: 0 1rem; /* Espace vertical entre les "lignes" */
}

.views-table thead {
  display: none; /* On cache les en-têtes de tableau sur mobile et desktop pour un look épuré */
}

.views-table tbody tr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: var(--cart-item-bg);
  border: 1px solid var(--cart-item-border);
  border-radius: 12px;
  /*padding: 1.5rem;*/
  margin-bottom: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.views-table tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.05);
  border-color: var(--bocaux-lime);
}

/* --- Colonnes & Contenu --- */
.views-table td {
  border: none;
  padding: 0.5rem 1rem;
  vertical-align: middle;
  background: transparent !important; /* Force la transparence même si Drupal ajoute des classes */
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg: #FFF;
    color: var(--bs-table-striped-color);
}

/* Nom du Produit (Titre) - La star ! */
.views-field-field-titre-court {
  flex: 2 1/* 300px*/; /* Prend de la place, prioritaire */
/*  font-family: var(--font-h1h2) !important; /* Atocha */
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cart-text-product);
  margin-bottom: 0.5rem;
}

/* Poids & Prix Unitaires - Infos secondaires */
.views-field-purchased-entity,
.views-field-unit-price__number {
  flex: 1 1 auto;
  font-family: var(--font-accent); /* Roboto pour la lisibilité des chiffres */
  color: var(--cart-text-meta);
  font-size: 0.95rem;
  text-align: center;
}

/* Quantité - Input stylisé */
.views-field-edit-quantity {
  flex: 0 0 120px;
  text-align: center;
}

.quantity-edit-input {
  width: 80px;
  text-align: center;
  border: 2px solid var(--cart-item-border);
  border-radius: 50px;
  padding: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--bocaux-green);
  transition: border-color 0.3s ease;
}

.quantity-edit-input:focus {
  border-color: var(--bocaux-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(89, 106, 26, 0.1);
}

/* Bouton Retirer - Discret mais accessible */
.views-field-remove-button {
  flex: 0 0 auto;
  text-align: center;
}

.delete-order-item {
  background: transparent;
  border: 1px solid transparent;
  color: #eee;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.delete-order-item:hover {
  color: var(--bocaux-orange);
  background-color: #fff5f2; /* Fond très pâle orange */
  border-color: var(--bocaux-orange);
}

/* Total Ligne - Bien visible */
.views-field-total-price__number {
  flex: 1 1 100px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--bocaux-green);
  text-align: right;
}

/* --- Résumé de Commande (Sous-total, TVA, Total) --- */
.order-total-summary {
  margin-top: 2rem;
  background-color: var(--cart-total-bg);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--cart-item-border);
}

.order-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  font-family: var(--font-accent);
}

.order-total-line__total {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--cart-item-border);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bocaux-black);
}

.order-total-line-label {
  color: var(--cart-text-meta);
  font-weight: 500;
}

.order-total-line-value {
  font-weight: 700;
  color: var(--bocaux-black);
}

/* --- Boutons d'Action (Footer) --- */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end; /* Alignés à droite */
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Bouton Mettre à jour (Secondaire) */
#edit-submit {
  background-color: transparent;
  color: var(--cart-btn-update);
  border: 2px solid var(--cart-btn-update);
  order: 2; /* Après le bouton commander sur mobile si besoin, ou avant selon préférence */
}

#edit-submit:hover {
  background-color: var(--cart-btn-update);
}

/* Bouton Passer la commande (PRIMARY) */
#edit-checkout {
  background-color: var(--cart-btn-checkout);
  color: #fff;
  border: 2px solid var(--cart-btn-checkout);
  font-size: 1.1rem;
  padding: 0.8rem 2.5rem;
  box-shadow: 0 4px 10px rgba(89, 106, 26, 0.3);
  order: 1; /* En premier visuellement à droite */
}

#edit-checkout:hover {
  background-color: var(--cart-btn-checkout-hover);
  color: #333;
  border-color: var(--cart-btn-checkout-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(89, 106, 26, 0.4);
}



/* --- Responsive Mobile (< 768px) --- */
@media (max-width: 768px) {
  .views-table tbody tr {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .views-table td {
    width: 100%;
    text-align: left !important;
    padding: 0.3rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Astuce : On ajoute des labels invisibles en CSS si besoin, ou on laisse tel quel car c'est clair */
  
  .views-field-field-titre-court {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--cart-item-border);
    padding-bottom: 0.5rem;
    width: 100%;
  }

  .views-field-edit-quantity,
  .views-field-remove-button {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: flex-start;
  }
  
  .views-field-total-price__number {
    width: 100%;
    text-align: right;
    margin-top: 0.5rem;
    font-size: 1.3rem;
  }

  .form-actions {
    flex-direction: column-reverse; /* Le bouton commander en premier en haut */
    gap: 1rem;
  }

  #edit-checkout, #edit-submit {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* logo AB **/

#block-bocaux-boot-logobio img {
    margin-top: 1.7rem;
}


/* ==============================================================================
   14. PANIER LATÉRAL (CART BLOCK) - RELOOKING
   ============================================================================== */
/*.block-commerce-cart {
	min-width: 130px;
}*/
.block-commerce-cart h2 {
	font-size: 1.5rem;
}
.block-commerce-cart .cart-block--summary__count {
	font-size: 1.5rem;
}

/* Conteneur principal : On enlève le style "tableau" et on ajoute du style "carte" */
.cart-block .view-commerce-cart-block {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(89, 106, 26, 0.1);
}

/* La table : On supprime les bordures lourdes et le style Bootstrap par défaut */
.cart-block .views-table {
  width: 100%;
  border: none !important;
  background: transparent !important;
  margin: 0;
}

/* Cellules du tableau : On transforme l'affichage pour plus de souplesse */
.cart-block .views-table td {
  border: none !important;
  padding: 0;
  vertical-align: middle;
  background: transparent !important;
}

/* Ligne du produit : Ajout d'un séparateur subtil */
.cart-block .views-table tr {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}
.cart-block .views-table tr:last-child {
  border-bottom: none;
}

.cart-block .views-field-field-titre-court { 
  flex: 2 1 /*300px*/; /* Prend de la place, prioritaire */
/*  font-family: var(--font-h1h2) !important; /* Atocha */
}

.views-field-total-price__number {
  flex: 1 1 /*100px*/;
}


/* 1. Quantité : Style discret et petit */
.cart-block .views-field-quantity {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: var(--bocaux-secondary);
  font-weight: 600;
  width: 50px; /* Largeur fixe pour aligner */
}

/* 2. Titre du produit : Lisible, couleur principale */
.cart-block .views-field-field-titre-court {
  font-family: var(--font-body); /* Ou var(--font-heading) si tu veux plus de caractère */
  font-size: 1rem;
  font-weight: 500;
  color: var(--bocaux-black);
  line-height: 1.4;
  text-align: left;
}
/* Optionnel : Passer le titre en vert foncé pour matcher la charte */
.cart-block .views-field-field-titre-court a {
  color: var(--bocaux-green);
  text-decoration: none;
  transition: color 0.3s ease;
}
.cart-block .views-field-field-titre-court a:hover {
  color: var(--bocaux-orange);
  text-decoration: underline;
}

/* 3. Prix : Aligné à droite, gras et visible */
.cart-block .views-field-total-price__number {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bocaux-orange);
  text-align: right;
  white-space: nowrap; /* Évite que le prix passe à la ligne */
}

/* Responsive : Si l'écran est très petit, on empile un peu mieux */
@media (max-width: 576px) {
  .cart-block .views-table td {
    display: block;
    width: 100%;
    text-align: center !important;
    padding: 0;
  }
  .cart-block .views-field-quantity {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
  }
  .cart-block .views-field-field-titre-court {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
  }
  .cart-block .views-field-total-price__number {
    font-size: 1rem;
  }
}

/* ==============================================================================
   15. HEADER & PANIER NAVBAR (MOBILE & DESKTOP)
   ============================================================================== */

/* 1. Nettoyage du Header : On cache le bloc complet (Titre + Liste) dans la navbar */
/* Cela ne cache pas le panier de la page /cart, seulement le bloc dans le menu */
/*.navbar #block-bocaux-boot-panier,
.navbar #block-bocaux-boot-panier-2 {
  display: none !important; 
}*/

/* Si ton thème utilise un bloc spécifique "Résumé" (icône seule) qu'on veut garder : */
/* Assure-toi que seul le résumé est visible si nécessaire, sinon tout est caché ci-dessus */

/* 2. Stylisation du Résumé Panier (L'icône + Compteur) */
/* On cible le lien qui contient l'icône et le texte "4 éléments" */
.cart-block--summary__count,
.cart-block--summary__icon {
  color: var(--bocaux-green) !important; /* Texte et icône en vert */
  fill: var(--bocaux-green) !important;  /* Pour les SVG si besoin */
  transition: color 0.3s ease;
}

/* L'icône du panier (l'image PNG/SVG) */
.cart-block--summary__icon img {
  filter: brightness(0) saturate(100%) invert(41%) sepia(96%) saturate(1200%) hue-rotate(35deg) brightness(95%) contrast(90%); 
  /* Astuce CSS : Ce filtre transforme une icône blanche/grise en ton Vert --bocaux-green (#596A1A) */
  /* Si l'icône est déjà en couleur, retire la propriété 'filter' ci-dessus */
  height: 30px; /* Ajuste la taille si nécessaire */
  width: auto;
}

/* Effet au survol : Devient Orange */
.navbar .cart-block--link__expand:hover .cart-block--summary__count,
.navbar .cart-block--link__expand:hover .cart-block--summary__icon {
  color: var(--bocaux-orange) !important;
}

/* Ajustement de l'alignement dans la Navbar */
.navbar .cart-block--summary {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
}


/* ==============================================================================
   16. PANIER NAVBAR - STYLE "BULLE UNIQUE"
   ============================================================================== */

/* 1. Le Conteneur de la Bulle (Le lien principal) */
.navbar .cart-block--summary .cart-block--link__expand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* Espace entre l'icône et le chiffre */
  background-color: var(--bocaux-green);
  color: #fff !important; /* Texte blanc forcé */
  padding: 0.5rem 1rem;
  border-radius: 50px; /* Forme de pilule */
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(89, 106, 26, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid transparent;
}

/* 2. L'Icône (Image) */
.navbar .cart-block--summary__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0; /* Supprime l'espace fantôme sous l'image */
}

.navbar .cart-block--summary__icon img {
  height: 42px; /* Taille fixe pour l'icône */
  width: auto;
  /* Filtre pour rendre l'icône blanche si elle est d'origine grise/noire */
  filter: brightness(0) invert(1); 
  /* Si l'icône est déjà blanche grâce au filtre, on garde. Sinon, ajuste. */
}

/* 3. Le Compteur (Chiffre) */
.navbar .cart-block--summary__count {
  background: transparent; /* Plus de fond séparé */
  color: #fff !important;
  padding: 0;
  margin: 0;
  font-size: 2rem; /* Légèrement plus grand que l'icône */
  font-weight: 800;
  line-height: 1;
}
.navbar .cart-block--summary__count a:hover {
  color: #fff !important;
}

/* 4. Effets au Survol (Hover) */
.navbar .cart-block--summary .cart-block--link__expand:hover {
  background-color: var(--bocaux-orange); /* Bascule à l'orange au survol */
  transform: translateY(-2px); /* Légère élévation */
  box-shadow: 0 6px 15px rgba(226, 105, 23, 0.4); /* Ombre orange */
  color: #fff !important;
}

.navbar .cart-block--summary .cart-block--link__expand:hover img {
  /* L'icône reste blanche grâce au filtre invert(1) */
  filter: brightness(0) invert(1);
}

/* 5. Responsive Mobile (Ajustement si nécessaire) */
@media (max-width: 768px) {
  .navbar .cart-block--summary .cart-block--link__expand {
    padding: 0.4rem 0.8rem;
    gap: 6px;
  }
  .navbar .cart-block--summary__icon img {
    height: 20px;
  }
  .navbar .cart-block--summary__count {
    font-size: 1rem;
  }
}

