.hero-section {
  position: relative; 
  width: 100%;
  
  min-height: 600px; 
  
  background-image: url('/wp-content/uploads/2026/02/image-34.png'); 
  background-size: cover;   
  background-position: center top;
  background-repeat: no-repeat;
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  padding-top: 150px; 
  padding-bottom: 50px;
}

@keyframes fadeInUpContent {
    from {
        opacity: 0;
        transform: translateY(-30%);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

@keyframes fadeInUpContentMobile {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-bar {
  position: relative;
  width: 280px;        
  margin: 0 auto 20px;  
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-bar:focus-within {
  transform: scale(1.05);
}

.search-bar input[type="search"] {
  width: 100%;
  padding: 10px 40px 10px 15px; 
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 20px;
  transition: border-color 0.3s ease;
}

.search-bar input[type="search"]:focus {
  border-color: #c8961e;
  outline: none;
}

/* Icône à droite */
.search-bar::after {
  content: "";
  position: absolute;
  right: 12px;              
  top: 50%;
  transform: translateY(-50%);
  width: 30px;              /* taille icône */
  height: 30px;
  background-image: url('/wp-content/uploads/2026/02/recherche.png'); /* ton image ici */
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;     /* pour que l'input reste cliquable */
}



.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color:transparent  !important; 
}

.hero-content {
  position: relative;
  color: #000000;
  text-align: center;
  margin-top:10% !important;
  transform: translateY(-50%);
  padding: 0 20px; /* pour que le texte respire sur mobile */
  animation: fadeInUpContent 1s ease-out forwards;
}

/* Titres et paragraphes */
.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* Bouton */
.hero-btn {
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background-color: #2c2c2c; /* rouge vif */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background-color: #2c2c2c; /* foncé au survol */
  transform: scale(1.05) translateY(-2px); /* effet “pop” */
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    height: 400px;
  }

  .hero-content {
    margin-top: 0 !important;
    transform: translateY(0);
    animation: fadeInUpContentMobile 1s ease-out forwards;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}


/* --- CORRECTION FORCEE DU BOUTON WISHLIST --- */

/* 1. On force la taille du conteneur pour qu'il ne dépasse pas */
.custom-wishlist-heart {
    position: relative;
    display: flex;       /* Utilise Flexbox pour centrer */
    align-items: center;
    justify-content: center;
    width: 24px;         /* Largeur stricte */
    height: 24px;        /* Hauteur stricte */
    margin-left: 10px;   /* Espace avec le prix */
}

/* 2. On cache tout ce qui dépasse du plugin YITH */
.custom-wishlist-heart .yith-wcwl-add-to-wishlist {
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
}

/* 3. CIBLAGE DU LIEN (Le coeur du problème) */
.custom-wishlist-heart a {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 0 !important;      /* TUE le texte "Ajouter..." */
    line-height: 0 !important;
    color: transparent !important; /* Rend le texte invisible au cas où */
    text-decoration: none !important;
    background: none !important;   /* Enlève les fonds par défaut */
    position: relative;
    overflow: hidden; /* Coupe tout texte qui résisterait */
}

/* 4. On cache les icônes par défaut du plugin (souvent des <i>) */
.custom-wishlist-heart i, 
.custom-wishlist-heart .yith-wcwl-icon {
    display: none !important;
}

/* 5. DÉSACTIVATION DU CLIC UNE FOIS AJOUTÉ */
/* Empêche d'aller sur la page favoris quand on clique sur le coeur déjà coloré */
.custom-wishlist-heart .yith-wcwl-wishlistaddedbrowse a, 
.custom-wishlist-heart .yith-wcwl-wishlistexistsbrowse a {
    pointer-events: none !important;
    cursor: default !important;
}

/* 6. LE MASQUE (Votre image coeur.png) */
/* C'est ici qu'on dessine votre coeur */
.custom-wishlist-heart a::before {
    content: '' !important;
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    
    /* Utilisation de la variable PHP */
    -webkit-mask-image: var(--heart-url) !important;
    mask-image: var(--heart-url) !important;
    
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    mask-position: center !important;
    
    background-color: #000 !important; /* Couleur NOIRE par défaut */
    transition: background-color 0.3s ease;
    z-index: 10;
}

/* 7. ÉTAT ACTIVÉ (OR) */
.custom-wishlist-heart .yith-wcwl-wishlistaddedbrowse a::before, 
.custom-wishlist-heart .yith-wcwl-wishlistexistsbrowse a::before {
    background-color: #b8860b !important; /* Couleur OR quand ajouté */
}

/* 8. Sécurité pour cacher le texte "Browse Wishlist" qui apparaît parfois après le clic */
.custom-wishlist-heart .feedback {
    display: none !important;
}

/* ==============================
   SECTION ENCHÈRES
================================ */

.auctions {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.auctions h2 {
  font-size: 26px;
  margin-bottom: 25px;
  font-weight: 600;
}



/* ==============================
   SECTION ENCHÈRES - Featured cards
================================ */

.featured {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.featured-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  height: 320px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Image pleine largeur et hauteur flexible */
.featured-card img {
  flex: 1;
  width: 100%;
  object-fit: cover;
}

/* .featured-info devient flex pour répartir gauche/droite */
.featured-info {
  padding: 16px 20px;
  background: #fff;
  border-top: 1px solid #eee;

  display: flex;
  justify-content: space-between; /* texte à gauche, icônes à droite */
  align-items: center;
}
/* icônes à droite */
.icons-right {
  display: flex;
  gap: 10px; /* distance entre les icônes */
}

/* taille des icônes */
.icons-right img {
  width: 24px;  /* ajustable selon ton design */
  height: 24px;
  cursor: pointer;
}
/* Conteneur texte + bouton collés à gauche */
.info-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Texte titre + prix */
.info-left .text h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.info-left .text p {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 700;
}

/* Bouton */
.info-left button {
  background: #c8961e;
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.info-left button:hover {
  background-color: #a17714; /* effet hover un peu plus foncé */
  box-shadow: 0 5px 15px rgba(200, 150, 30, 0.4);
  transform: translateY(-2px);
}

/* Zoom image au hover */
.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.featured-card:hover img {
  transform: scale(1.03);
}

/* Responsive - carte plus petite sur mobile */
@media (max-width: 768px) {
  .featured-card {
    height: 240px;
  }
}


/* ==============================
   Products grid
================================ */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 25px;
}

@keyframes fadeInProduct {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Product card layout */
.product-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeInProduct 0.6s ease-out both;
}

/* Ajout d'un délai progressif pour l'apparition des produits */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Image produit */
.product-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 10px;
  transition: transform 0.4s ease;
}

/* Bande du bas : texte + icônes */
.product-bottom {
  display: flex;
  justify-content: space-between; /* texte à gauche, icônes à droite */
  align-items: center;
  margin-top: 8px;
}

/* Texte produit */
.product-info {
  display: flex;
  flex-direction: column;
}

.product-info span {
  font-size: 14px;
  color: #555;
}

.product-info strong {
  font-size: 15px;
  font-weight: 600;
  margin-top: 5px;
}

/* Icônes à droite */
.icons-right {
  display: flex;
  gap: 8px;
}

.icons-right img {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Hover produit */
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.product-card:hover img {
  transform: scale(1.05);
}



/* ==============================
   Responsive
================================ */

@media (max-width: 768px) {
  .featured-card {
    flex-direction: column;
  }

  .featured-card img {
    width: 100%;
    height: 200px;
  }
}


/* ==============================
   vidio
================================ */
.how-to-use {
  max-width: 900px;
  margin: 50px auto;
  text-align: center;
}

.how-to-use h2 {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 20px;
}

.video-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.video-wrapper:hover img {
  transform: scale(1.02);
  filter: brightness(1.1);
}

/* ==============================
   dernier section
================================ */

/* Styles Généraux */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* En-tête */
.section-header {
    margin-bottom: 50px;
    max-width: 800px;
}

.subtitle {
    color: #c4a47c; /* Couleur dorée/bronze */
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Grille de contenu */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes égales */
    gap: 40px;
    align-items: start;
}

/* Images */
.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px; /* Bordures arrondies comme sur l'image */
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Colonne droite arrangement */
.top-images {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 40px;
    position: relative;
}

.art-trench {
    flex: 2;
}

.expert {
    flex: 1;
}

/* Simulation des points de décoration */
.dots-overlay {
   position: absolute;
    top: -30px; 
    right: 120px;
    width: 120px; 
    height: 120px;
    background-image: url('images/deco.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
    animation: floatElement 6s ease-in-out infinite;
}

@keyframes floatElement {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Texte de description */
.description-text p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

/* Responsive pour mobiles */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .top-images {
        flex-direction: column;
    }
    
    h1 {
        font-size: 1.6rem;
    }
}


/* Container principal de la section */
.newsletter-section {
    background-color: #4a4a4a;
    padding: 60px 5%; /* Utilise des pourcentages pour s'adapter à l'écran */
    width: 100%;
    box-sizing: border-box;
}

.newsletter-container {
    width: 100%;
    display: grid;
    /* La colonne de gauche prend tout l'espace libre, celle de droite s'adapte au contenu */
    grid-template-columns: 1fr auto; 
    align-items: center;
    gap: 20px;
}

.newsletter-left {
    text-align: left;
}

.newsletter-title {
    color: #ffffff;
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.1;
    max-width: 600px; /* Évite que le titre ne touche les inputs sur les grands écrans */
}

.newsletter-right {
    min-width: 350px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Style des champs */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .icon-mail {
    position: absolute;
    left: 20px;
    color: #888;
}

.newsletter-form input, 
.btn-submit {
    width: 100%;
    padding: 18px 25px;
    border-radius: 50px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
}

.newsletter-form input {
    padding-left: 55px;
    background-color: #ffffff;
}

.btn-submit {
    background-color: #ffffff;
    color: #333;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #f2f2f2;
    transform: translateY(-2px); /* Petit effet de levée au survol */
}

/* Version Mobile / Tablette */
@media (max-width: 900px) {
    .newsletter-container {
        grid-template-columns: 1fr; /* On repasse sur une seule colonne */
        text-align: center;
    }
    
    .newsletter-left {
        text-align: center;
    }
    
    .newsletter-title {
        max-width: 100%;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .newsletter-right {
        width: 100%;
        min-width: 100%;
    }
}