/*
Theme Name: Hello Elementor Child
Theme URI: https://example.com/
Description: Thème enfant pour Hello Elementor
Author: Ton Nom ou Agence
Author URI: https://tonsite.com/
Template: hello-elementor
Version: 1.0.0
*/

@import url("../hello-elementor/style.css");
/* utile pour certains thèmes très légers */

/**test/

/* Carte collection – base */
.bar-collection-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    background-color: #f3d3a1;
    color: #4b1417;
    transition:
        color 0.4s ease-out,
        transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    /* espace entre les blocs (mascotte / titre / texte / bouton) */
}

/* Optionnel : légère montée au hover */
.bar-collection-card:hover {
    transform: translateY(-4px);
}

/* Calque image */
.bar-collection-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* état initial : image un peu ZOOMÉE et invisible */
    opacity: 0;
    transform: scale(1.12);
    /* zoom léger */
    transform-origin: center center;

    /* on anime l'opacité + le scale */
    transition:
        opacity 0.6s ease-in-out,
        transform 1.2s ease-out;
    z-index: 0;
}

/* Image visible au hover */
.bar-collection-card:hover::before {
    opacity: 1;
    transform: scale(1);
    /* revient à la taille normale */
}

/* Calque sombre (overlay) */
.bar-collection-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    /* transparent au repos */
    z-index: 0;
    /* même plan que ::before */
    transition: background 0.6s ease-in-out;
    /* fade doux */
}

/* Au hover : on assombrit l'image */
.bar-collection-card:hover::after {
    background: rgba(0, 0, 0, 0.60);
    /* ajustable : 0.30 / 0.40 / 0.50 */
}

/* Contenu par-dessus */
.bar-collection-card>* {
    position: relative;
    z-index: 1;
}

/* Tout le texte en blanc au hover */
.bar-collection-card:hover,
.bar-collection-card:hover h2,
.bar-collection-card:hover h3,
.bar-collection-card:hover h4,
.bar-collection-card:hover p,
.bar-collection-card:hover span,
.bar-collection-card:hover a {
    color: #ffffff !important;
}

.bar-collection-card:hover .card-title-rose p {
    color: #E30F73 !important;
}

/* 1. On dit que le inner-container gère la mise en colonne */
.bar-collection-card > .e-con-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    gap: 1.5rem; /* espace entre mascotte / titre / texte / bouton */
}

/* 2. Le widget du bouton est poussé en bas de la carte */
.bar-collection-card .bar-card-cta {
    margin-top: auto;
}

/* Bouton */
.bar-collection-card .elementor-button {
    border-radius: 999px;
    padding-inline: 1.8rem;
    padding-block: 0.8rem;
    background: transparent;
    color: #4b1417;
    border: 1px solid #4b1417;
    transition:
        color 0.3s ease-out,
        border-color 0.3s ease-out,
        background-color 0.3s ease-out;
}

.bar-collection-card:hover .elementor-button {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.bar-collection-card:hover .elementor-button span,
.bar-collection-card:hover .elementor-button i {
    color: #ffffff;
}

/* ------ Mascotte Hover Swap ------ */

/* Image normale visible, image hover cachée */
/* Mascotte normale */
.bar-collection-card .mascot-normal {
    opacity: 1;
    transition: opacity 0.35s ease-out;
  }

/* Mascotte hover */
.bar-collection-card .mascot-hover {
    opacity: 0;
    position: absolute;
    inset: 0;
    object-fit: contain;
    pointer-events: none;
  
    /* 👇 état initial : un peu plus grande */
    transform: scale(0.9);
    transform-origin: center center;
  
    /* 👇 transitions dissociées */
    transition:
      opacity 0.3s ease-out,
      transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }

/* Au hover : swap */
.bar-collection-card:hover .mascot-normal {
    opacity: 0;
}

.bar-collection-card:hover .mascot-hover {
    opacity: 1;
}

/* ===== Bouton ghost dans les cartes collection ===== */

/* On enlève tout cadre, on garde le look "lien" */
.bar-collection-card .bar-btn--ghost {
    background: transparent;
    border: none;
    padding-left: 0;
    /* optionnel : aligner le texte sur la grille */
    padding-right: 0;
}

/* Le label du bouton sert de base pour le soulignement */
.bar-collection-card .bar-btn--ghost .bar-btn__label {
    position: relative;
    padding-bottom: 0.1rem;
}

/* Ligne par défaut */
.bar-collection-card .bar-btn--ghost .bar-btn__label::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.05rem;
    height: 1px;
    background-color: currentColor;
    transform-origin: center center;
    /* IMPORTANT : retrécit depuis le centre */
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

/* Au hover : ligne réduite centré */
.bar-collection-card .bar-btn--ghost:hover .bar-btn__label::after,
.bar-collection-card .bar-btn--ghost:focus-visible .bar-btn__label::after {
    transform: scaleX(0.3);
    /* se réduit vers le centre (ajuste la valeur) */
}

.orange-word {
    color: #ec6b2a;
    font-weight: 800;
}

/* ================================
   Mascotte hover : plus petite
   (sans toucher à la structure)
================================ */

/* 1) Le parent des images devient la référence pour l'absolu */
.bar-collection-card .mascot-normal,
.bar-collection-card .mascot-hover {
  display: block;
}

/* Le wrapper immédiat (souvent <figure> dans Elementor) */
.bar-collection-card .mascot-normal,
.bar-collection-card .mascot-hover {
  /* rien ici */
}

.bar-collection-card .mascot-normal {
  opacity: 1;
  transition: opacity 0.4s ease-out;
}

/* IMPORTANT : on force un parent relatif via :has() si supporté,
   sinon fallback juste après. */
@supports(selector(:has(*))) {
  .bar-collection-card :has(> .mascot-normal, > .mascot-hover) {
    position: relative;
    display: inline-block; /* évite que ça prenne toute la largeur */
  }
}

/* Fallback sans :has() (fonctionne dans la majorité des cas Elementor) */
.bar-collection-card .mascot-normal,
.bar-collection-card .mascot-hover {
  /* rien */
}
.bar-collection-card .mascot-normal,
.bar-collection-card .mascot-hover {
  /* rien */
}

/* 2) Mascotte hover en absolute + plus petite */
.bar-collection-card .mascot-hover {
  opacity: 0;
  position: absolute;
  inset: 0;
  object-fit: contain;
  pointer-events: none;

  /* ✅ taille plus petite au hover */
  transform: scale(0.92);           /* ajuste: 0.65 / 0.7 / 0.8 */
  transform-origin: center center;

  /* ✅ transition opacity + scale */
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* 3) Swap + apparition */
.bar-collection-card:hover .mascot-normal {
  opacity: 0;
}

.bar-collection-card:hover .mascot-hover {
  opacity: 1;
  transform: scale(0.72); /* tu peux aussi animer 0.9 -> 0.72 (voir variante) */
}

/* Société des Avis Garantis – remonter le badge au-dessus de Cookiebot */
.agJsWidget{
   bottom: 4rem!important;
  }
  
  