/* ========================================
   BLEUVERDON - CSS PERSONNALISÉ COMPLET
   Thème artisanal "Fait main avec amour"
   Version finale optimisée
   ======================================== */

/* === PALETTE DE COULEURS === */
:root {
  --bleu-verdon: #4A9FB5;
  --bleu-fonce: #2C5F73;
  --beige-lin: #FAF0E6;
  --terracotta: #E8B4A0;
  --blanc-casse: #FDFBF7;
  --dore: #C9A876;
  --gris-doux: #8B8680;
}

/* === TYPOGRAPHIE ARTISANALE === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Quicksand:wght@300;400;500;600;700&family=Indie+Flower&display=swap');

body {
  font-family: 'Quicksand', sans-serif;
  background-color: var(--beige-lin);
  color: var(--bleu-fonce);
  line-height: 1.7;
}

h1, h2, h3, .page-heading {
  font-family: 'Poppins', sans-serif;
  color: var(--bleu-verdon);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
  letter-spacing: 0.5px;
}

/* === HEADER PERSONNALISÉ === */
#header {
  background: linear-gradient(135deg, var(--blanc-casse) 0%, var(--beige-lin) 100%);
  border-bottom: 3px solid var(--bleu-verdon);
  box-shadow: 0 4px 15px rgba(74, 159, 181, 0.1);
}

#header .logo {
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
}

#header .logo:hover {
  transform: scale(1.05) rotate(-2deg);
}

/* === NAVIGATION PRINCIPALE === */
.top-menu a {
  color: var(--bleu-fonce);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

/* Ligne animée sous le menu principal */
.top-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bleu-verdon), var(--terracotta));
  transition: width 0.4s ease, left 0.4s ease;
}

.top-menu a:hover::after {
  width: 100%;
  left: 0;
}

.top-menu a:hover {
  color: var(--bleu-verdon);
}

/* Suppression du symbole + dans les menus déroulants */
.top-menu .collapse-icons {
  display: none !important;
}

.top-menu .navbar-toggler {
  border: none;
  background: transparent;
}

/* Style du menu actif */
.top-menu .active a::after,
.top-menu li.current a::after {
  width: 100%;
  background: var(--bleu-verdon);
}

/* === MENU LATÉRAL (Catégories) === */
#left-column a,
.block-categories a,
.category-sub-menu a {
  color: var(--bleu-fonce);
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
  padding-left: 15px;
  display: block;
  text-decoration: none;
}

/* Ligne animée à gauche pour le menu latéral */
#left-column a::before,
.block-categories a::before,
.category-sub-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bleu-verdon), var(--terracotta));
  transition: width 0.4s ease;
}

#left-column a:hover::before,
.block-categories a:hover::before,
.category-sub-menu a:hover::before {
  width: 8px;
}

#left-column a:hover,
.block-categories a:hover,
.category-sub-menu a:hover {
  color: var(--bleu-verdon);
  padding-left: 20px;
  background: rgba(74, 159, 181, 0.05);
}

/* Suppression des symboles +/- dans les menus latéraux */
#left-column .collapse-icons,
.block-categories .collapse-icons,
.category-sub-menu .collapse-icons,
#left-column .navbar-toggler,
.block-categories .navbar-toggler {
  display: none !important;
}

/* Style des sous-menus */
#left-column .collapse,
.block-categories .collapse {
  padding-left: 10px;
  border-left: 2px solid var(--beige-lin);
  margin-left: 10px;
}

/* Menu latéral actif */
#left-column .active a::before,
.block-categories .active a::before,
.category-sub-menu .current a::before {
  width: 8px;
  background: var(--bleu-verdon);
}

#left-column .active a,
.block-categories .active a,
.category-sub-menu .current a {
  color: var(--bleu-verdon);
  font-weight: 600;
  padding-left: 20px;
}

/* === BOUTONS ARTISANAUX === */
.btn, 
.btn-primary,
button[type="submit"],
.add-to-cart {
  background: linear-gradient(135deg, var(--bleu-verdon) 0%, var(--bleu-fonce) 100%);
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  color: white;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(74, 159, 181, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before,
.btn-primary::before {
  content: '♥';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 20px;
  opacity: 0;
  transition: all 0.3s ease;
}

.btn:hover::before,
.btn-primary:hover::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.3;
}

.btn:hover,
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(74, 159, 181, 0.4);
  background: linear-gradient(135deg, var(--bleu-fonce) 0%, var(--bleu-verdon) 100%);
}

/* === CARTES PRODUITS ARTISANALES === */
.product-miniature,
.product-container {
  background: white;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.product-miniature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--bleu-verdon), var(--terracotta), var(--dore));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-miniature:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 10px 30px rgba(74, 159, 181, 0.2);
  border-color: var(--bleu-verdon);
}

.product-miniature:hover::before {
  opacity: 1;
}

/* Badge "Fait main" qui apparaît au survol */
.product-miniature::after {
  content: '✂ Fait main';
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: var(--dore);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-family: 'Indie Flower', cursive;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 5;
  pointer-events: none;
}

.product-miniature:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Badge "Fait main" */
.product-flags .product-flag {
  background: var(--terracotta);
  color: white;
  border-radius: 20px;
  padding: 5px 15px;
  font-family: 'Indie Flower', cursive;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* === PRIX ÉLÉGANTS === */
.product-price,
.price {
  color: var(--bleu-fonce);
  font-weight: 700;
  font-size: 1.3em;
  font-family: 'Quicksand', sans-serif;
}

.regular-price {
  color: var(--gris-doux);
  text-decoration: line-through;
  font-size: 0.9em;
}

.discount-percentage {
  background: var(--terracotta);
  color: white;
  border-radius: 50%;
  padding: 8px;
  font-weight: bold;
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 34px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(232, 180, 160, 0.4);
}

/* === BANNIÈRE PERSONNALISÉE === */
#carousel {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  margin: 20px 0;
}

/* === TEXTE DE PRÉSENTATION === */
.block-categories p,
.custom-text {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.05em;
  line-height: 1.8;
  color: var(--bleu-fonce);
  text-align: center;
  max-width: 800px;
  margin: 30px auto;
  padding: 25px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  position: relative;
}

.custom-text::before,
.custom-text::after {
  content: '✿';
  position: absolute;
  color: var(--terracotta);
  font-size: 24px;
  opacity: 0.3;
}

.custom-text::before {
  top: 10px;
  left: 15px;
}

.custom-text::after {
  bottom: 10px;
  right: 15px;
}

/* === FOOTER CHALEUREUX === */
#footer {
  background: linear-gradient(135deg, var(--bleu-fonce) 0%, var(--bleu-verdon) 100%);
  color: white !important;
  padding: 40px 0;
  margin-top: 50px;
}

#footer *:not(input):not(button) {
  color: white !important;
}

#footer a {
  color: white !important;
  transition: all 0.3s ease;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

#footer a:hover {
  color: var(--terracotta) !important;
  text-decoration-color: var(--terracotta);
  transform: translateX(3px);
}

#footer h3,
#footer h4,
#footer .h3,
#footer .block-contact-title {
  color: var(--beige-lin) !important;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
  letter-spacing: 0.5px;
}

#footer p,
#footer li,
#footer span,
#footer div,
#footer label,
#footer .block_newsletter p,
#footer .links li a {
  color: white !important;
  line-height: 1.8;
}

/* Forcer le blanc pour les listes de liens */
#footer ul li,
#footer ul li a,
#footer .links a,
#footer .footer-container a {
  color: white !important;
  background: transparent !important;
}

/* Amélioration de tous les blocs du footer */
#footer .block-contact,
#footer .links,
#footer .block_newsletter,
#footer .footer-container > div,
#footer .col-md-3,
#footer .col-lg-3 {
  background: rgba(44, 95, 115, 0.4) !important;
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Newsletter spécifique */
#footer .block_newsletter input[type="email"],
#footer .block_newsletter input[type="text"] {
  background: white !important;
  color: var(--bleu-fonce) !important;
  border: 2px solid white;
  padding: 12px 15px;
  border-radius: 25px;
  width: 100%;
  margin-bottom: 10px;
}

#footer .block_newsletter input::placeholder {
  color: var(--gris-doux) !important;
}

#footer .block_newsletter button,
#footer .block_newsletter input[type="submit"] {
  background: white !important;
  color: var(--bleu-verdon) !important;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

#footer .block_newsletter button:hover,
#footer .block_newsletter input[type="submit"]:hover {
  background: var(--terracotta) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(232, 180, 160, 0.4);
}

#footer .block_newsletter label {
  color: white !important;
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

/* Copyright personnalisé */
.copyright-text,
#footer .copyright {
  color: var(--beige-lin) !important;
  font-size: 0.9em;
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 30px;
}

/* === ICÔNES RÉSEAUX SOCIAUX - RÉINITIALISÉES === */
.social-sharing a,
.footer-social a,
#footer .social-links a,
#footer a[href*="facebook"],
#footer a[href*="instagram"],
#footer a[href*="twitter"],
#footer a[href*="youtube"],
#footer .block-social a,
#footer .links-social a {
  /* Réinitialisation complète - laisse les icônes par défaut du thème */
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 5px !important;
  margin: 0 5px !important;
  display: inline-block !important;
}

/* Permet aux icônes d'origine d'être visibles */
#footer a[href*="facebook"] *,
#footer a[href*="instagram"] *,
#footer a[href*="twitter"] *,
#footer a[href*="youtube"] * {
  opacity: 1 !important;
  visibility: visible !important;
}

/* === FORMULAIRES ARTISANAUX === */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  border: 2px solid var(--beige-lin);
  border-radius: 10px;
  padding: 12px 15px;
  font-family: 'Quicksand', sans-serif;
  transition: all 0.3s ease;
  background: var(--blanc-casse);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--bleu-verdon);
  box-shadow: 0 0 15px rgba(74, 159, 181, 0.2);
  outline: none;
  background: white;
}

/* === ANIMATION D'AMOUR AU SURVOL === */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.wishlist-button:hover,
.product-miniature .quick-view:hover {
  animation: heartbeat 0.6s ease infinite;
}

/* === BREADCRUMB PROVENÇAL === */
.breadcrumb {
  background: transparent;
  padding: 15px 0;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95em;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '❀';
  color: var(--terracotta);
}

/* === PROTECTION DES IMAGES === */
/* Protection minimale : désactivation du clic droit sur les images */
.product-cover img,
.product-images img,
.js-qv-product-cover img,
.images-container img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* S'assurer que les boutons et liens restent cliquables */
.product-add-to-cart,
.add-to-cart,
.btn,
.product-variants,
.product-actions,
button,
a,
input,
select,
.js-touchspin,
.bootstrap-touchspin,
.product-refresh {
  pointer-events: auto !important;
  z-index: 10 !important;
  position: relative;
}

/* Miniatures cliquables */
.js-thumb,
.js-modal-thumb,
.images-container .js-thumb {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Zoom image cliquable */
.js-qv-product-cover,
.product-cover {
  cursor: zoom-in !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  h1, h2, h3 {
    font-size: 1.5em;
  }
  
  .product-miniature {
    margin-bottom: 20px;
  }
  
  .btn, .btn-primary {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}

/* === ANIMATIONS DOUCES === */
* {
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* === EFFET AQUARELLE SUBTIL === */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(74, 159, 181, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(232, 180, 160, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* === CORRECTIF : n'afficher qu'une seule diapositive à la fois === */
#carousel .carousel-item {
  display: none;
}

#carousel .carousel-item.active {
  display: block;
}

/* === CORRECTIF CARROUSEL ps_imageslider === */
#carousel {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#carousel .carousel-inner,
#carousel .carousel-item {
  width: 100%;
  max-width: 100%;
}

#carousel .carousel-item figure {
  width: 100%;
  margin: 0;
}

#carousel .carousel-item img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
}