/*
Theme Name: Hello Elementor Enfant
Description: Theme enfant de Hello Elementor.
Author: Pierrick Pralong
Author URI: http://panierdepixels.fr/
Template: hello-elementor
Version: 1.0
*/
/*////////////////////////// TELEPHONE OBLIGATOIRE LORS DE LA CAOMMANDE ////////////////////////*/
#billing_phone_field .optional {
    display: none;
}
#billing_phone_field label::after {
    content: "*";
    color: #e2401c;
    margin-left: 4px;
}
/*////////////////////////// TELEPHONE OBLIGATOIRE LORS DE LA CAOMMANDE ////////////////////////*/


/*BTN*/
/*-- Animer les bouton effet defilement gauche droite en hover --*/
/* Btn de base*/
.p9-btn-hover-anime a.elementor-button {
 position: relative; overflow: hidden; background: transparent;
  z-index: 1; transition: color 0.3s ease; border: 1px solid var(--e-global-color-accent);
}
/* Couche rouge animée */
.p9-btn-hover-anime a.elementor-button::before {
  content: ""; position: absolute; inset: 0; background: var(--e-global-color-accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;  z-index: 0;
}
/* On remet le texte au-dessus */
.p9-btn-hover-anime .elementor-button .elementor-button-content-wrapper {
  position: relative; z-index: 2;
}
/* Animation au hover */
.p9-btn-hover-anime a.elementor-button:hover::before {
  transform: scaleX(1);
}

/* Texte en blanc au hover */
.p9-btn-hover-anime a.elementor-button:hover {
  color: #fff !important;
}
/*-- Fin Animer les bouton effet defilement gauche droite en hover --*/

/** CATEGORIE DE PRODUIT **/

/** PRODUIT SINGLE **/
body.woocommerce .product  table.variations tbody th,
body.woocommerce .product  table.variations tbody td {background-color: transparent; padding: 0px;}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, 
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price
{color: var(--e-global-color-primary);}

body.woocommerce .product  table.variations {text-align: left;}
body.woocommerce .product .single_variation_wrap .woocommerce-variation-add-to-cart {margin-top:10px;}


/* ==========================================================
   WOOCOMMERCE LOOP
   Rêves de Beauté
   ========================================================== */

/* ----------------------------------------------------------
   Carte produit
---------------------------------------------------------- */

.e-loop-item{
    position:relative;
}

/* ----------------------------------------------------------
   Image produit
---------------------------------------------------------- */

.e-loop-item .elementor-widget-image{
    position:relative;
}

/* ----------------------------------------------------------
   Formulaire panier
---------------------------------------------------------- */

.e-loop-item .elementor-add-to-cart,
.e-loop-item .elementor-product-simple,
.e-loop-item .elementor-product-variable,
.e-loop-item .e-loop-add-to-cart-form-container,
.e-loop-item form.cart{
    width:100%;
}

.e-loop-item .e-atc-qty-button-holder{
    display:flex;
    align-items:stretch;
    gap:10px;
    width:100%;
}

/* ----------------------------------------------------------
   Quantité
---------------------------------------------------------- */

.e-loop-item .quantity{
    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid rgba(0,0,0,.12);
    border-radius:8px;

    overflow:hidden;
    background:#fff;
}

.e-loop-item .quantity input.qty{
    width:60px;
    min-height:46px;

    border:none;
    background:none;

    text-align:center;
    font-size:14px;
    font-weight:500;
}

/* ----------------------------------------------------------
   Bouton Ajouter au panier
---------------------------------------------------------- */

.e-loop-item a.ajax_add_to_cart,
.e-loop-item a.product_type_simple,
.e-loop-item button.single_add_to_cart_button{
    flex:1;

    display:flex;
    align-items:center;
    justify-content:center;

    min-height:46px;
    padding:12px 18px;

    border:none;
    border-radius:8px;

    background:var(--e-global-color-primary);
    color:#fff !important;

    text-decoration:none;
    font-weight:600;
    font-size:14px;

    transition:.25s ease;
}

.e-loop-item a.ajax_add_to_cart:hover,
.e-loop-item a.product_type_simple:hover,
.e-loop-item button.single_add_to_cart_button:hover{
    opacity:.9;
}

/* ----------------------------------------------------------
   QUICK VIEW PRODUITS SIMPLES
---------------------------------------------------------- */

.e-loop-item.product-type-simple .xt_wooqv-show-on-all{
    position:absolute;
    bottom:-30px;
    right:15px;
    z-index:20;
}

.e-loop-item.product-type-simple .xt_wooqv-trigger{
    width:44px;
    height:44px;
    min-height:44px;

    display:flex;
    align-items:center;
    justify-content:center;

    /*padding:20;*/

    border-radius:999px;

    background:#fff;
    color:#333;

    box-shadow:0 1px 6px rgba(0,0,0,.18);

    transition:.25s ease;
}

.e-loop-item.product-type-simple .xt_wooqv-trigger:hover{
    transform:scale(1.08);
}

.e-loop-item.product-type-simple .xt_wooqv-trigger-icon{
    display:block !important;
}

.e-loop-item.product-type-simple .xt_wooqv-trigger::after{
    display:none;
}

/* ----------------------------------------------------------
   PRODUITS VARIABLES
---------------------------------------------------------- */

/* Masque le bouton WooCommerce natif */

.e-loop-item.product-type-variable a.product_type_variable{
    display:none !important;
}

/* Le Quick View devient le CTA principal */

.e-loop-item.product-type-variable .xt_wooqv-show-on-all{
    display:block;
    width:100%;
}

.e-loop-item.product-type-variable .xt_wooqv-trigger{
    width:100%;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    min-height:46px;
    padding:12px 18px;

    border-radius:8px;

    background:var(--e-global-color-primary) !important;
    color:#fff !important;

    text-decoration:none;
    font-weight:600;
    font-size:14px;

    box-sizing:border-box;

    transition:.25s ease;
}

.e-loop-item.product-type-variable .xt_wooqv-trigger:hover{
    opacity:.9;
}

.e-loop-item.product-type-variable .xt_wooqv-trigger-icon{
    display:block !important;
}

.e-loop-item.product-type-variable .xt_wooqv-trigger::after{
    content:"Choix des options";
}

/* ----------------------------------------------------------
   Lien panier ajouté
---------------------------------------------------------- */

.e-loop-item .added_to_cart{
    display:none !important;
}

/* ----------------------------------------------------------
   Bouton En savoir plus Elementor
---------------------------------------------------------- */

.e-loop-item .elementor-button{
    width:100%;
}

/* ----------------------------------------------------------
   Mobile
---------------------------------------------------------- */

@media (max-width:767px){

    .e-loop-item .e-atc-qty-button-holder{
        flex-direction:column;
    }

    .e-loop-item .quantity{
        width:100%;
    }

    .e-loop-item .quantity input.qty{
        width:100%;
    }

    .e-loop-item.product-type-simple .xt_wooqv-show-on-all{
        right:10px;
        bottom:10px;
    }

    .e-loop-item.product-type-simple .xt_wooqv-trigger{
        width:40px;
        height:40px;
        min-height:40px;
    }
}

/* ----------------------------------------------------------
   QUICK VIEW - Ajouter au panier
---------------------------------------------------------- */

.xt_wooqv-product .single_add_to_cart_button{
    flex:1;

    display:flex !important;
    align-items:center;
    justify-content:center;

    min-height:46px;
    padding:12px 18px;

    border:none !important;
    border-radius:8px;

    background:var(--e-global-color-primary) !important;
    color:#fff !important;

    text-decoration:none;
    font-weight:600;
    font-size:14px;

    transition:.25s ease;
}

.xt_wooqv-product .single_add_to_cart_button:hover{
    opacity:.9;
}

/* ----------------------------------------------------------
   QUICK VIEW - En savoir plus
---------------------------------------------------------- */

.xt_wooqv-product .xt_wooqv-more-info{

    width:100%;

    display:flex !important;
    align-items:center;
    justify-content:flex-start; /* Aligné à gauche */

    padding:0;
    margin-top:10px;


    color:#54595F !important;

    text-decoration:underline !important;

    cursor:pointer;
}

.xt_wooqv-product .xt_wooqv-more-info:hover{
    color:#54595F !important;
    background:transparent !important;
    text-decoration:underline !important;
}

.xt_wooqv-more-info { font-size: 0 !important; }
.xt_wooqv-more-info::after {
    content: "En savoir plus";
    font-size: 14px !important;
    display: block;
}

/* ----------------------------------------------------------
   QUICK VIEW - Ajouter au panier
---------------------------------------------------------- */

/* ----------------------------------------------------------
   PARTICULE (VRAI PANIER SVG GARANTI)
---------------------------------------------------------- */
.rdb-fly-particle {
    position: fixed;
    width: 26px;  /* Taille de la particule */
    height: 26px;
    z-index: 999999;
    pointer-events: none;

    /* Intégration du panier en SVG masqué pour pouvoir lui appliquer ta couleur globale */
    background-color: var(--e-global-color-text);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'><path d='M528.12 301.319l47.273-208C578.806 78.301 567.391 64 551.99 64H159.208l-9.166-44.81C147.758 8.021 137.93 0 126.529 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24h69.88l70.248 343.433C147.308 418.966 136 439.14 136 462c0 27.614 22.386 50 50 50h292c27.614 0 50-22.386 50-50 0-26.628-20.727-48.428-47.013-49.917l-1.604-7.854a24.004 24.004 0 0 0-23.425-19.229H236.009l-8.163-40H504.6c11.393 0 21.215-8.014 23.52-19.319zM186 488c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24zm256 0c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24z'/></svg>") no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'><path d='M528.12 301.319l47.273-208C578.806 78.301 567.391 64 551.99 64H159.208l-9.166-44.81C147.758 8.021 137.93 0 126.529 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24h69.88l70.248 343.433C147.308 418.966 136 439.14 136 462c0 27.614 22.386 50 50 50h292c27.614 0 50-22.386 50-50 0-26.628-20.727-48.428-47.013-49.917l-1.604-7.854a24.004 24.004 0 0 0-23.425-19.229H236.009l-8.163-40H504.6c11.393 0 21.215-8.014 23.52-19.319zM186 488c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24zm256 0c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24z'/></svg>") no-repeat center / contain;

    /* Vitesse de vol ralentie (1.1s) */
    transition:
        left 1.1s cubic-bezier(.25,.8,.25,1),
        top 1.1s cubic-bezier(.25,.8,.25,1),
        transform 1.1s ease,
        opacity 1.1s ease;
}

.rdb-fly-particle.flying {
    transform: scale(.2) rotate(30deg);
    opacity: 0;
}

/* ----------------------------------------------------------
   ANIMATION DU PANIER CIBLE (BUMP)
---------------------------------------------------------- */
.rdb-cart-bump {
    animation: rdb-cart-bump .45s ease;
}

@keyframes rdb-cart-bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* ----------------------------------------------------------
   Livraison offerte
---------------------------------------------------------- */
/* Livraison offerte : cachée par défaut, visible seulement sur les produits Boutique */
.e-con.rdb-livraison-offerte { display: none !important; }
body.rdb-boutique .e-con.rdb-livraison-offerte { display: flex !important; }


/* =====================================================================
   RDB – NOËL
   Classes utilisées dans Elementor > Avancé > Classes CSS :
   rdb-neige, rdb-cadre, rdb-carte-noel, rdb-carte-noel--best,
   rdb-bandeau-noel, rdb-hero-noel, rdb-popup-noel, rdb-popup-noel__gauche
   Pour retirer Noël en janvier : supprimer ce bloc, le reste du site ne bouge pas.
   ===================================================================== */

/* ---------- 1. NEIGE ----------
   Classe rdb-neige à poser sur un conteneur : le bandeau, le bloc Noël, le panneau du sapin.
   Deux couches de flocons (petits + gros) dessinées en dégradés, sans script.
   VITESSE IDENTIQUE PARTOUT : chaque couche parcourt une tuile de 300 px en 6 s
   et une de 420 px en 8,4 s, soit 50 px par seconde, quelle que soit la taille du bloc.
   Pour aller plus vite ou plus lentement : changer 6s et 8.4s ensemble
   (garder le rapport 300/6 = 420/8,4). */
.rdb-neige { position: relative; overflow: hidden; }
.rdb-neige::before,
.rdb-neige::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: repeat;
}
.rdb-neige::before {
  background-image:
    radial-gradient(2px 2px at 30px 40px,  rgba(246,241,233,.85) 50%, transparent 60%),
    radial-gradient(2px 2px at 120px 210px, rgba(246,241,233,.7)  50%, transparent 60%),
    radial-gradient(1.5px 1.5px at 210px 90px, rgba(246,241,233,.8) 50%, transparent 60%),
    radial-gradient(2px 2px at 260px 250px, rgba(246,241,233,.7) 50%, transparent 60%),
    radial-gradient(1.5px 1.5px at 70px 150px, rgba(246,241,233,.75) 50%, transparent 60%),
    radial-gradient(2px 2px at 175px 20px, rgba(246,241,233,.8) 50%, transparent 60%);
  background-size: 300px 300px;
  animation: rdb-neige-a 6s linear infinite;
}
.rdb-neige::after {
  background-image:
    radial-gradient(3px 3px at 60px 80px,  rgba(246,241,233,.75) 50%, transparent 65%),
    radial-gradient(2.5px 2.5px at 300px 300px, rgba(246,241,233,.65) 50%, transparent 65%),
    radial-gradient(3px 3px at 190px 180px, rgba(246,241,233,.7) 50%, transparent 65%),
    radial-gradient(2.5px 2.5px at 370px 60px, rgba(246,241,233,.7) 50%, transparent 65%),
    radial-gradient(3px 3px at 110px 350px, rgba(246,241,233,.65) 50%, transparent 65%);
  background-size: 420px 420px;
  animation: rdb-neige-b 8.4s linear infinite;
}
@keyframes rdb-neige-a { to { background-position: 0 300px; } }
@keyframes rdb-neige-b { to { background-position: 0 420px; } }
/* Le contenu reste au-dessus de la neige */
.rdb-neige > * { position: relative; z-index: 1; }

/* ---------- 2. CADRE FIN CHAMPAGNE (hero) ---------- */
.rdb-cadre { outline: 1px solid rgba(201,184,138,.35); outline-offset: -14px; }

/* ---------- 3. ÉCLATS CHAMPAGNE (petites étoiles qui scintillent) ---------- */
.rdb-eclat {
  position: absolute;
  width: 10px; height: 10px;
  background: #C9B88A;
  clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);
  animation: rdb-eclat 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes rdb-eclat { 0%,100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- 4. BON CADEAU EN VEDETTE (widget HTML du hero) ---------- */
.rdb-scene { position: relative; width: 100%; max-width: 380px; height: 300px; margin: 0 auto; display: grid; place-items: center; }
.rdb-coffret {
  position: absolute; width: 250px; height: 170px;
  background: #4C563B; border: 1px solid rgba(201,184,138,.6); border-radius: 3px;
  transform: translate(46px, 56px) rotate(7deg);
  box-shadow: 0 24px 50px rgba(0,0,0,.35);
}
.rdb-coffret::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 22px; margin-left: -11px; background: #B86F52; }
.rdb-bon {
  position: relative; width: 330px; max-width: 100%; aspect-ratio: 1.6;
  background: #F6F1E9; color: #2F302D; border-radius: 3px; padding: 12px;
  transform: rotate(-5deg);
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
  animation: rdb-flotte 7s ease-in-out infinite;
}
.rdb-bon__in { height: 100%; border: 1px solid #C9B88A; padding: 16px 20px; display: flex; flex-direction: column; justify-content: space-between; }
.rdb-bon__marque { font: 400 10px/1.2 "Open Sans", sans-serif; letter-spacing: .3em; text-transform: uppercase; color: #5F6156; }
.rdb-bon__titre { font: italic 400 42px/1 "Cormorant Garamond", Georgia, serif; color: #3B402D; }
.rdb-bon__ligne { display: flex; gap: 18px; align-items: flex-end; font: 300 11px/1 "Open Sans", sans-serif; color: #5F6156; letter-spacing: .06em; }
.rdb-bon__montant { font: 500 34px/1 "Cormorant Garamond", Georgia, serif; color: #9C5A41; }
.rdb-bon__ruban { position: absolute; left: 76%; top: -4px; bottom: -4px; width: 20px; background: #B86F52; }
.rdb-bon__noeud { position: absolute; left: calc(76% - 20px); top: -26px; width: 60px; }
@keyframes rdb-flotte { 50% { transform: rotate(-5deg) translateY(-8px); } }

/* ---------- 5. CARTES (Rituel, Chèque Cadeau, Sensation) ---------- */
/* Survol : on agrandit l'ombre (pas de déplacement, pour ne pas gêner l'animation d'entrée Elementor) */
.rdb-carte-noel { transition: box-shadow .3s; }
.rdb-carte-noel:hover { box-shadow: 0 24px 50px rgba(47,48,45,.2) !important; }
/* Pastille « Meilleure vente » : classe rdb-carte-noel--best sur la carte concernée */
.rdb-carte-noel--best { position: relative; }
.rdb-carte-noel--best::before {
  content: "MEILLEURE VENTE";
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: #3B402D; color: #C9B88A; border: 1px solid #C9B88A;
  font: 500 10px/1 "Open Sans", sans-serif; letter-spacing: .18em; padding: 6px 12px;
}

/* ---------- 6. POPUP ---------- */
.rdb-popup-noel { overflow: hidden; }
.rdb-sapin { position: relative; width: 150px; margin: 0 auto; }
.rdb-sapin svg { display: block; width: 100%; height: auto; overflow: visible; }
@media (max-width: 767px) {
  .rdb-sapin { width: 100px; }
  .rdb-bon__titre { font-size: 36px; }
  .rdb-scene { height: 250px; }
  .rdb-popup-noel { flex-direction: column !important; }
}

/* ---------- 7. ACCESSIBILITÉ ---------- */
/* Pour les visiteurs qui ont réduit les animations dans leur appareil : tout reste fixe */
@media (prefers-reduced-motion: reduce) {
  .rdb-neige::before, .rdb-neige::after, .rdb-eclat, .rdb-bon { animation: none; }
}


/* ---------- 4 bis. VRAI BON CADEAU EN VEDETTE (widget Image du hero) ----------
   Classe rdb-bon-reel à poser sur le widget Image du bon (Avancé > Classes CSS).
   Le widget est incliné et flotte ; le ruban et le nœud sont dessinés dans son ::after,
   le coffret en arrière-plan dans son ::before. */
.rdb-bon-reel {
  position: relative;
  transform: rotate(-4deg);
  animation: rdb-flotte-reel 7s ease-in-out infinite;
}
.rdb-bon-reel img {
  position: relative; z-index: 1; display: block; width: 100%; height: auto;
  border-radius: 3px; box-shadow: 0 30px 60px rgba(0,0,0,.45);
}
/* Coffret derrière le bon */
.rdb-bon-reel::before {
  content: ""; position: absolute; z-index: 0;
  left: 30px; right: -18px; bottom: -26px; height: 70%;
  background: #4C563B; border: 1px solid rgba(201,184,138,.6); border-radius: 3px;
  transform: rotate(9deg);
}
/* Ruban horizontal + nœud, au milieu du bon : il cache les conditions détaillées (le milieu du texte),
   on garde visibles le logo, le nom du coffret et le cadre « Prendre rendez-vous ».
   Le nœud est un dessin (fond SVG), le ruban un dégradé de 26 px de haut qui dépasse un peu du bon. */
.rdb-bon-reel::after {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  left: -14px; right: -14px; top: calc(56% - 35px); height: 70px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 60'%3E%3Cpath d='M45 36 C20 56 2 46 6 22 C9 4 33 12 45 36Z' fill='%23D8946F'/%3E%3Cpath d='M45 36 C70 56 88 46 84 22 C81 4 57 12 45 36Z' fill='%23D8946F'/%3E%3Cpath d='M45 36 C26 50 14 44 16 28 C18 18 34 22 45 36Z' fill='%239C5A41'/%3E%3Cpath d='M45 36 C64 50 76 44 74 28 C72 18 56 22 45 36Z' fill='%239C5A41'/%3E%3Crect x='37' y='28' width='16' height='16' rx='5' fill='%23823F2A'/%3E%3C/svg%3E") center / 90px 60px no-repeat,
    linear-gradient(180deg, transparent 22px, #A9593F 22px, #C2805F 29px, #B86F52 38px, #A9593F 48px, transparent 48px);
}
@keyframes rdb-flotte-reel { 50% { transform: rotate(-4deg) translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .rdb-bon-reel { animation: none; } }

/* RDB Noël : petit chapeau de Père Noël posé sur le coin haut-droit d'une carte
   Classe à mettre dans Avancé > Classes CSS du conteneur carte : rdb-chapeau
   (on utilise ::after car Elementor se sert déjà de ::before sur les conteneurs)
   Pour l'enlever en janvier : supprimer ce bloc, ou retirer la classe de la carte. */
.rdb-chapeau { position: relative; overflow: visible !important; }
.rdb-chapeau::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: -10px;
  top: -34px;
  width: 66px;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100'%3E%3Cpath d='M18 72C22 30 52 8 92 14C96 30 94 52 104 72Z' fill='%23B3402E'/%3E%3Cpath d='M60 18C70 14 82 14 92 14C94 30 94 52 104 72L84 72C86 48 78 30 60 18Z' fill='%238F2F21' opacity='.45'/%3E%3Crect x='10' y='66' width='104' height='22' rx='11' fill='%23F6F1E9'/%3E%3Ccircle cx='96' cy='14' r='11' fill='%23F6F1E9'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(16deg);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25));
  pointer-events: none;
}
@media (max-width: 767px) {
  .rdb-chapeau::after { width: 54px; height: 46px; top: -28px; right: -6px; }
}