/*
Theme Name: mon-theme
Theme URI: http://exemple.com
Author: César Terquem
Author URI: http://exemple.com
Description: Thème personnalisé fait main par César Terquem, contact à l'adresse mail terquem@hotmail.fr
Version: 1.0
Text Domain: mon-theme
*/
/*----------------------*/
/*    Pop-up    */
/*----------------------*/

/* Overlay plein écran */
.age-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.wc-notice-nonvendable{
  font-weight:600;
}


/* Contenu du popup */
.age-popup {
  background: #fff;
  padding: 2rem;
  max-width: 400px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.age-popup h2 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.age-popup p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.age-popup .btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px;
  transition: 0.3s ease;
}

.age-popup .btn:hover {
  background: #444;
}


/* -------------------- */
/*        HEADER        */
/* -------------------- */



.site-header {
  background: #f9f9f9;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
}
.site-header {
  background: white;
  border-bottom: 2.5px solid #111;
  position: sticky;
  top: 0;
  z-index: 999;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo-icon {
  display: none;
}

.logo-full {
  display: block;
  height: 60px;
}

.logo img {
  height: 50px;
}

.icon-panier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  text-decoration: none;
}

.icon-panier svg {
  width: 24px;
  height: 24px;
  fill: #111;
  transition: transform 0.2s ease;
}

.icon-panier:hover svg {
  transform: scale(1.1);
}

.menu-desktop {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.menu-desktop li a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

.icon-panier {
  margin-left: 1rem;
  font-size: 1.5rem;
}

.burger {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-mobile {
  display: none;
  flex-direction: column;
  background: white;
  padding: 1rem;
  border-top: 1px solid #ccc;
}

.menu-mobile li {
  margin-bottom: 0rem;
}

.menu-mobile li a {
  color: #111;
  text-decoration: none;
  font-weight: 500;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .menu-desktop {
    display: none;
  }

  .burger {
    display: block;
  }

  .menu-mobile.active {
    display: flex;
  }
}

@media(max-width: 520px){
    .logo-full {
    display: none;
  }

  .logo-icon {
    display: block;
    height: 50px;
  }
}

.icon-panier {
  position: relative;
  display: inline-flex;
}

.panier-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #cd2121;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1;
  min-width: 20px;
  text-align: center;
  z-index: 10;
}


/* -------------------- */
/*        FOOTER        */
/* -------------------- */

.site-footer {
  background: #111;
  color: #f9f9f9;
  padding: 2rem;
  text-align: center;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0;
  margin: 1rem 0;
}

.footer-menu li a {
  color: #f9f9f9;
  text-decoration: none;
}

.footer-bottom p {
  font-size: 0.9rem;
  opacity: 0.6;
}

/* -------------------- */
/*      FRONT PAGE      */
/* -------------------- */


.front-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

h1, h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

ul{
  margin-block-start: auto;
  margin-block-end: auto;
}

.barre-centrale {
  width: 20%;
  height: 1.5px;
  background: #111;
  margin: 0 auto 2rem;
}

/* Présentation / Histoire / Contact */
.presentation .contenu,
.histoire .contenu,
.contact-contenu {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 2rem; /* pour éviter que ça colle aux bords sur les très grands écrans */
  box-sizing: border-box;
}

.image-gauche,
.image-droite,
.texte-gauche,
.texte-droite,
.contact-gauche,
.contact-droite {
  flex: 1 1 50%;
}

.presentation .image-gauche img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  object-fit: cover;
}

.histoire .image-droite img,
.contenu .image-gauche {
  width: 100%;
  max-width: 375px; 
  height: auto;
  display: block;
  margin: 0 auto;
}

.histoire .texte-gauche,
.contenu .texte-droite{
  max-width: 400px;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  margin: 0 auto; /* pour centrer verticalement si besoin */
  line-height: 1.6;
}

/* Boutons d’ancre */
.boutons-ancre {
  text-align: center;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  background: white;
  color: #111;
  text-decoration: none;
  margin: 0.5rem;
  border: 1px solid #111;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn:hover,
.btn:focus {
  background: #111;
  color: white;
}

.btn:active {
  background:#111
  color(white)
}

/* Cuvées */
.grid-cuvees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.btn-tarifs {
  text-align: center;
  margin-top:0.5rem;
  color: #f9f9f9;
  border: #111;
}

.btn-tarifs:hover{
box-shadow: #111;
}
/* Articles */
.liste-articles > div {
  border: 1px solid #ccc;
  padding: 1rem;
  margin-bottom: 2rem;
}

/* Contact */
.infos-contact li {
  margin: 0.5rem 0;
  list-style: none;
}

.contact img {
  border-radius: 2px;
  width: 100%;
  height: auto;
}

/* Séparateurs */
.bandeau-separateur img {
  width: 100%;
  display: block;
  margin-top: 1.75rem;
}

/*--------------PAGES CUVÉES--------------*/

/* -------- CUVEES - PAGE SINGLE -------- */

.page-cuvee {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Bloc principal */
.cuvee-contenu {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start; /* pour aligner le haut de l’image avec le texte */
  justify-content: space-between;
}

/* Bloc image */
.cuvee-image {
  flex: 1 1 40%;
  max-width: 350px;
}

.cuvee-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
  display: block;
}

/* Bloc texte */
.cuvee-texte {
  flex: 1 1 55%;
  max-width: 600px;
}

.cuvee-texte h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: left;
}

.cuvee-appellation {
  font-weight: bold;
  margin-top: 1rem;
}

.cuvee-description {
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* Bas de page */

.cuvee-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cuvee-actions .btn {
  flex: 1;
  text-align: center;
}

.btn-fiche {
  background-color: #fff;
  border: 1px solid #000;
  color: #000;
  transition: 0.2s ease;
}

/* --- Onglets cuvée --- */
.cuvee-tabs {
  display: flex;
  gap: 2rem;
  margin: 1rem 0 0.5rem;
}

.tab-btn {
  background: none;
  border: 0;
  padding: 0 0 .35rem;
  font-weight: 600;
  cursor: pointer;
  opacity: .55;
  border-bottom: 2px solid transparent;
  transition: opacity .2s ease, border-color .2s ease;
}

.tab-btn:hover { opacity: .8; }
.tab-btn.active {
  opacity: 1;
  border-color: #c00000; /* rouge */
}

/* Conteneur panels */
.tab-panels {
  position: relative;
  overflow: hidden;
  min-height: 120px; /* ajustable selon ton contenu */
}

/* Chaque panel */
.tab-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
  padding-top: 0.5rem;
}

/* Actif (slide in) */
.tab-panel.show {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

/* Quand on cache, slide out gauche */
.tab-panel.hide-left {
  transform: translateX(-100%);
  opacity: 0;
}

.btn-fiche:hover {
  background-color: #000;
  color: #fff;
}

.cuvee-bas {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.autres-cuvees h2 {
  margin-bottom: 0.5rem;
}

.liens-cuvees {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.liens-cuvees li a {
  text-decoration: none;
  color: #111;
}

.cuvee-avantages {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 2rem;
  margin: 3rem 0;
  text-align: center;
  flex-wrap: wrap; /* permet le passage en colonne si pas assez de place */
}

.cuvee-minimum {
  text-align: center;
  margin: 2rem 0 1rem 0;
  font-size: 1rem;
  font-weight: 500;
}


.cuvee-avantages .avantage {
  flex: 1;
  max-width: 250px;
}

.cuvee-avantages img {
  width: 60px;
  height: auto;
  margin-bottom: 0.5rem;
}

.cuvee-avantages .barre-centrale {
  width: 50px;
  height: 3px;
  background: #000;
  margin: 0.5rem auto;
}

.cuvee-avantages p {
  font-size: 0.95rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .cuvee-avantages {
    flex-direction: column;
    align-items: center;
  }

  .cuvee-avantages .avantage {
    max-width: 100%;
  }
}


/* Bouton "Trouver nos vins" */
.bouton-vins .btn {
  border: 1px solid #111;
  background: white;
  color: #111;
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bouton-vins .btn:hover {
  background: #111;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {

  .cuvee-bas{
    justify-content: center;
  }

  .cuvee-texte h1{
    text-align: center;
  }
  
  .cuvee-quantity{
    justify-content: center;
  }

  .liens-cuvees{
    justify-content: center;
  }
  
  .cuvee-contenu {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cuvee-texte {
    max-width: 90%;
  }

  .cuvee-image {
    max-width: 90%;
  }
}

/* --- FORMULAIRE CUVEES --- */
.cuvee-form {
  margin-top: 2rem;
}

.cuvee-attribute-group {
  margin-bottom: 1.5rem;
}


.cuvee-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #111;
  border-radius: 4px;
  background-color: white;
  color: #111;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.35rem 0.8rem;
}

.cuvee-option input[type="radio"] {
  display: none;
}

.cuvee-option input[type="radio"]:checked + span {
  background-color: #111;
  color: white;
}

/* Ajoute ceci pour que le fond noir recouvre tout le bouton, pas seulement le texte */
.cuvee-option span {
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cuvee-quantity {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cuvee-quantity input[type="number"] {
  width: 70px;
  padding: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Responsive layout des sections */
@media (max-width: 768px) {
  .presentation .contenu,
  .histoire .contenu,
  .contact-contenu {
    flex-direction: column;
  }

  .image-gauche,
  .image-droite,
  .texte-gauche,
  .texte-droite,
  .contact-gauche,
  .contact-droite {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .histoire .contenu {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .histoire .texte-gauche {
    max-width: 90%;
  }

  .image-droite img {
    max-width: 90%;
    height: auto;
  }
}

.message-panier {
  margin-top: 1rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid #111;
  background: #e5ffe5;
  color: #111;
  font-weight: bold;
  border-radius: 4px;
  opacity: 1;
  transition: opacity 0.8s ease-out;
}

.message-panier.fade-out {
  opacity: 0;
}

.section-cuvees {
  padding: 4rem 2rem;
}

.grille-cuvees {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes en desktop */
  gap: 2rem;
}

@media screen and (max-width: 768px) {
  .grille-cuvees {
    grid-template-columns: 1fr; /* 1 colonne en mobile */
  }
}

.carte-cuvee {
  display: flex;
  align-items: center;
  border: 1px solid #000;
  padding: 1rem;
  gap: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}


.nav-principale{
  display: flex;
}
.cuvee-thumbnail img {
  max-width: 150px;
  height: auto;
  display: block;
}

.carte-cuvee:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cuvee-contenu {
  flex: 1;
}

/* --- Responsive Mobile --- */
@media screen and (max-width: 768px) {
  .carte-cuvee {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .cuvee-thumbnail img {
    max-width: 100%;
    height: auto;
  }

  .cuvee-contenu {
    width: 100%;
  } 
}

.carte-cuvee {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carte-cuvee:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Articles */

.liste-articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* desktop */
  gap: 2rem;
}

@media screen and (max-width: 768px) {
  .liste-articles {
    grid-template-columns: 1fr; /* mobile */
  }
}

.carte-article {
  display: flex;
  align-items: center;
  border: 1px solid #000;
  padding: 1rem;
  gap: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  margin-bottom: 2rem;
}

.article-thumbnail img {
  max-width: 150px;
  height: auto;
  display: block;
}

.carte-article:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.article-contenu {
  flex: 1;
}

.article-titre {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.article-extrait {
  margin: 0;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* --- Responsive Mobile --- */
@media screen and (max-width: 768px) {
  .carte-article {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .article-thumbnail img {
    max-width: 100%;
    height: auto;
  }

  .article-contenu {
    width: 100%;
  }
}

#charger-articles {
  display: block;
  margin: 2rem auto 0 auto; /* centré horizontalement */
  text-align: center;
}


/* CONTACT */

.contact {
  padding: 4rem 1rem;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-gauche,
.contact-droite {
  flex: 1 1 48%;
}

.contact-intro {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

.infos-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.infos-contact li {
  margin: 0.5rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.infos-contact a {
  color: inherit;
  text-decoration: none;
}

.infos-contact .icon {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-block;
}

/* Icônes personnalisées à adapter si besoin */
.icon-phone::before {
  content: "📞";
}
.icon-mail::before {
  content: "✉️";
}
.icon-instagram::before {
  content: "📸";
}
.icon-facebook::before {
  content: "📘";
}

.contact-droite img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Responsive mobile */
@media screen and (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-gauche,
  .contact-droite {
    flex: 1 1 100%;
  }
}

.site-footer {
  background-color: #111;
  color: #fff;
  padding: 3rem 1rem;
  font-size: 0.9rem;
}

.site-footer .footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer .footer-col {
  flex: 1 1 300px;
}

.site-footer h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.site-footer ul li a {
  color: #fff;
  text-decoration: none;
}

.site-footer .footer-legal {
  font-size: 0.8rem;
  margin-top: 1rem;
  opacity: 0.7;
}

.site-footer .social-icons a {
  display: inline-block;
  margin-right: 1rem;
  transition: transform 0.3s ease;
}

.site-footer .social-icons a:hover {
  transform: scale(1.1);
}

.site-footer .icons-paiement img {
  height: 24px;
  margin-right: 10px;
  opacity: 0.8;
}

.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .site-footer .footer-grid {
    flex-direction: column;
    align-items: center;
  }
}


/* ===== Reset layout WooCommerce (2 colonnes -> 1 colonne) ===== */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
}

/* ===== Barre de navigation centrée ===== */
.woocommerce-account .woocommerce-MyAccount-navigation {
  margin: 1.25rem auto 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;              /* plus de puces */
  margin: 0;
  padding: 0;
  display: flex !important;      /* horizontal */
  justify-content: center !important;
  align-items: flex-end;
  gap: 2.25rem;
  position: relative;            /* pour l’indicateur */
  flex-wrap: wrap;               /* passe à la ligne si petit écran */
}

/* Liens = style H2 léger */
.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  text-decoration: none;
  color: #111;
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  padding: .25rem .25rem .6rem;
  opacity: .55;                  /* onglets inactifs */
  transition: opacity .2s ease, color .2s ease;
  white-space: nowrap;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  opacity: .85;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active > a {
  opacity: 1;                    /* onglet actif */
}

/* Indicateur rouge animé */
.woocommerce-account .woocommerce-MyAccount-navigation ul .myacc-indicator {
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 2px;
  background: #c00000;
  width: 0;
  transform: translateX(0);
  transition: transform .35s ease, width .35s ease;
  pointer-events: none;
}

/* Contenu centré */
.woocommerce-account .woocommerce-MyAccount-content {
  max-width: 900px;
  margin: 0 auto 3rem;
}

/* Optionnel : masquer le lien Tableau de bord */
.woocommerce-MyAccount-navigation-link--dashboard { display: none; }

/* Mobile : réduire les espacements */
@media (max-width: 700px) {
  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    gap: 1.2rem;
  }
  /* (Optionnel) masquer l’indicateur en très petit écran */
  /* .woocommerce-account .woocommerce-MyAccount-navigation ul .myacc-indicator { display:none; } */
}

.woocommerce-MyAccount-navigation { float:left; width:30%; }
.woocommerce-MyAccount-content    { float:right; width:70%; }

.woocommerce-MyAccount-navigation li a:hover { color:#111; }
.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--dashboard { display:none; }

/* Masquer l'onglet Téléchargements */
.woocommerce-MyAccount-navigation-link--downloads {
  display: none !important;
}


/* Liens page Mon compte */
.woocommerce-account a {
  color: #CD2121; /* ton rouge */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.woocommerce-account a:hover,
.woocommerce-account a:focus {
  color: #f17474; /* une nuance plus foncée au hover */
}

.woocommerce-MyAccount-navigation li.is-active a {
  color: #CD2121;
}

.messages-panier-global {
  background: #f8f8f8;
  border-bottom: 2px solid #CD2121;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
}

.message-panier a {
  color: #CD2121;
  text-decoration: underline;
}

.messages-panier-global {
  padding: 12px 0;
}

.message-panier {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  border: 2px solid #CD2121;    /* rouge du site */
  border-radius: 6px;
  background: transparent;      /* pas de fond */
  font-weight: 600;
  text-align: center;
}

.message-panier a {
  color: #CD2121;
  text-decoration: underline;
}

/* Nom du produit (ligne du tableau du panier) */
.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name a,
.woocommerce-cart table.shop_table.cart td.product-name a {
  display: inline-block;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem) !important; /* ≈ H2 */
  font-weight: 700 !important;
  color: #111 !important;
  text-decoration: none !important;
  line-height: 1.25;
}

.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name a:hover,
.woocommerce-cart table.shop_table.cart td.product-name a:hover {
  color: #CD2121 !important; /* ton rouge au survol */
}

/* ===== Fix menu Compte : caché par défaut, visible seulement avec .is-open ===== */

/* Le conteneur du bouton + menu doit créer un contexte */
.icon-compte-wrapper{
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  z-index: 1000 !important;
}

/* Bouton (icône) cliquable */
.icon-compte-btn{
  display: inline-flex !important;
  width: 28px !important;
  height: 28px !important;
  padding: 2px !important;
  border: 0 !important;
  background: none !important;
  cursor: pointer !important;
  line-height: 0 !important;
}
.icon-compte-btn svg{ width:100%; height:100%; pointer-events:none; }

/* MENU : caché par défaut sans display:none */
.menu-compte{
  position: absolute !important;
  top: 120% !important;
  right: 0 !important;
  min-width: 190px !important;
  background: #fff !important;
  border: 1px solid #111 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.08) !important;
  padding: 8px !important;
  z-index: 1001 !important;

  opacity: 0 !important;
  visibility: hidden !important;        /* << ajoute visibility pour forcer le masquage */
  transform: translateY(-6px) !important;
  pointer-events: none !important;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease !important;
}

/* Ouvert */
.menu-compte.is-open{
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Liens du menu */
.menu-compte a{
  display: block !important;
  padding: 8px 10px !important;
  color: #111 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.menu-compte a:hover{ background:#f4f4f4 !important; }

/* Fallback <noscript> jamais visible quand JS tourne */
.menu-compte-fallback{ display:none !important; }


/* ===== Burger (visuel des 3 barres) ===== */
.burger {
  display: none;           /* visible en mobile via @media */
  width: 32px; height: 28px;
  padding: 0; border: 0; background: none;
  cursor: pointer; line-height: 0;
}
.burger span {
  display: block;
  height: 2px; width: 100%;
  background: #111;
  transition: transform .25s ease, opacity .2s ease;
}
.burger span + span { margin-top: 6px; }

/* état ouvert (animation croix) */
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Menu mobile (panneau déroulant) ===== */
#menu-mobile {
  display: none;                 /* fermée par défaut */
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
  z-index: 900;                  /* sous le header (z-index 999) mais au-dessus du contenu */
}
#menu-mobile.active { display: flex; }

#menu-mobile {
  flex-direction: column;
}
#menu-mobile a {
  color: #111; text-decoration: none; font-weight: 600;
}

/* Bloque le scroll quand le menu est ouvert */
body.nav-open { overflow: hidden; }

/* Responsive : on n’affiche le burger qu’en mobile */
@media (max-width: 768px) {
  .burger { display: inline-block;
  margin: 10px; }
  .menu-desktop { display: none; }
  .nav-principale{justify-content: right;}
}

/* ================= NAVBAR MOBILE ================= */
@media (max-width: 768px) {
  .icons-right {
    display: flex;
    justify-content: space-evenly; /* espace égal entre icônes */
    align-items: center;
    flex: 1; /* prend toute la moitié droite */
    max-width: 50%; /* limite la largeur à 50% */
  }

  .icons-right > * {
    flex: 1; /* chaque icône prend le même espace */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .burger {
    font-size: 1.8rem;
    cursor: pointer;
  }
}

/* ================= MENU BURGER ================= */
.menu-mobile {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #eee;
}

.menu-mobile li {
  border-bottom: 1px solid #eee;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;

  /* uniformisation des cases */
  height: 60px; /* tu peux ajuster */
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-mobile li:last-child {
  border-bottom: none;
}


/* ====== NAVBAR MOBILE : répartition des icônes ====== */
@media (max-width: 768px) {
  .site-header .container{
    display:flex;
    align-items:center;
  }

  /* zone logo à gauche */
  .logo{
    flex: 1 1 50%;
    display:flex;
    align-items:center;
  }

  /* zone icônes à droite : occupe la moitié droite,
     3 cases égales pour panier / compte / burger */
  .icons-right{
    flex: 1 1 50%;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-items: center;   /* chaque icône au centre de sa case */
    gap: 0;
    width: 100%;
  }

  /* taille visuelle homogène */
  .icon-panier svg,
  .icon-compte-btn svg{
    width: 26px;
    height: 26px;
  }
  .burger{
    display:block;
    font-size: 28px;     /* si tu utilises un “≡” en texte */
    line-height:1;
  }
}

/* ====== MENU BURGER : lignes identiques, texte centré ====== */
.menu-mobile{
  position: absolute;       /* sous la barre */
  top: 100%;
  left: 0; right: 0;
  background:#fff;
  border-top:1px solid #eee;
  display:none;             /* .active pour ouvrir */
  z-index: 900;
  padding: 0;               /* important pour la hauteur égale */
}

.menu-mobile.active{ display:block; }

.menu-mobile li{
  list-style:none;
  margin:0;
  border-bottom:1px solid #eee;   /* séparateur fin */
}

.menu-mobile li a{
  display:flex;
  align-items:center;             /* centrage vertical */
  justify-content:center;         /* centrage horizontal */
  height: 72px;                   /* même hauteur pour toutes les lignes */
  font-size: 1.25rem;             /* plus lisible */
  font-weight: 700;
  color:#111;
  text-decoration:none;
}

/* Sélecteur Blocks : méthode Square */
.wc-block-checkout__payment-method [data-payment-method-id="square_credit_card"]
  .wc-block-components-radio-control__label {
  position: relative;
  padding-left: 28px;
}
.wc-block-checkout__payment-method [data-payment-method-id="square_credit_card"]
  .wc-block-components-radio-control__label::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  background: url("/wp-content/uploads/icons/carte.svg") no-repeat center/contain;
}
.wc-block-components-radio-control-accordion-content {padding: 0em !important};

/* conteneur d’icônes */

/* logo AB (non cliquable) */
.ab-badge img{
  display:block;
  height:80px;           /* même hauteur que tes icônes */
  width:auto;
  object-fit:contain;
}

/* Mobile : réduit un peu */
@media (max-width: 768px){
  .icons-right{ gap:12px; }
  .nav-sep{ height:20px; }
  .ab-badge img{ height:20px; }
}

/* --- Base header alignment (desktop) ------------------ */
.site-header .container{
  display:flex;
  align-items:center;
  gap:24px;
}

.nav-principale{
  display:flex;
  align-items:center;
  flex:1 1 auto;                /* nav takes remaining space */
  gap:28px;
}

.menu-desktop{                  /* center the text links */
  display:flex;
  list-style:none;
  gap:2rem;
  margin:0 auto;                /* pushes icons-right to the far right */
  padding:0;
}

.icons-right{
  margin-left:auto;             /* stay at the far right */
  display:flex;
  align-items:center;
  gap:16px;
}

/* size the icons consistently */
.icon-panier svg,
.icon-compte-btn svg{
  width:24px;
  height:24px;
}

/* --- Tablet fixes (≤ 1024px) -------------------------- */
@media (max-width: 1024px){
  .menu-desktop{ gap:1.25rem; }
  .icons-right{ gap:12px; }
  .ab-badge{ display:none !important; } /* hide AB logo on tablet */
}

/* --- Mobile layout (≤ 768px) -------------------------- */
@media (max-width: 768px){
  .menu-desktop{ display:none; }   /* you use the burger here */
  .burger{ display:block; }
  .ab-badge{ display:none !important; }  /* hide AB logo on mobile */
  .icons-right{
    margin-left:auto;
    gap:14px;
  }
}

/* Optional: slightly reduce icon size on very small screens */
@media (max-width: 420px){
  .icon-panier svg,
  .icon-compte-btn svg{ width:22px; height:22px; }
}

.ab-badge img{
  display:block;
  height: 70px;           /* même hauteur que tes icônes */
  width:auto;
  object-fit:contain;
}