/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* ==========================
   RECTANGLE TITRE
   ========================== */

/* Text Block avec la classe "square" */
.fusion-text.square {
    text-align: center;
}

/* Le H1 à l'intérieur */
.fusion-text.square h1 {
    position: relative;
    display: inline-block;
    padding: 40px 50px; /* espace pour les traits */
    font-weight: 400;
    /* surtout PAS de z-index ici */
}

/* Les 4 traits (2 horizontaux + 2 verticaux) */
.fusion-text.square h1::before,
.fusion-text.square h1::after {
    content: "";
    position: absolute;
    inset: 0;              /* occupe toute la zone du h1 (padding compris) */
    pointer-events: none;
    /* pas de z-index non plus */
}

/* Coin haut droit : horizontal + vertical */
.fusion-text.square h1::before {
    background:
        /* ligne horizontale haut droite */
        linear-gradient(#AF8261, #AF8261) top right / 60% 5px no-repeat,
        /* ligne verticale droite haut */
        linear-gradient(#AF8261, #AF8261) top right / 5px 50% no-repeat;
    transform: translateY(-4px);
}

/* Coin bas gauche : horizontal + vertical */
.fusion-text.square h1::after {
    background:
        /* ligne horizontale bas gauche */
        linear-gradient(#AF8261, #AF8261) bottom left / 60% 5px no-repeat,
        /* ligne verticale gauche bas */
        linear-gradient(#AF8261, #AF8261) bottom left / 5px 50% no-repeat;
    transform: translateY(4px);
}

/* ==========================
   PRIORITÉ AU HEADER / MENU
   ========================== */

/* On force le header et le méga menu tout en haut de la pile */
.fusion-header-wrapper,
.fusion-header,
.fusion-header-v1,
.fusion-main-menu,
.fusion-main-menu .fusion-menu,
.fusion-main-menu .fusion-megamenu-wrapper {
    position: relative;
    z-index: 99999 !important;
}

/* On s'assure que le contenu passe en dessous du header */
#wrapper,
#boxed-wrapper,
#main,
.fusion-page-title-bar,
.fusion-builder-row {
    position: relative;
    z-index: 1;
}

/* ==========================
   VERSION MOBILE : TOUS LES H1 à 35px
   ========================== */
@media (max-width: 767px) {
    h1 {
        font-size: 42px !important;
		line-height: 42px !important;
    }
}


/* 🔹 Tous les blocs de filtres YITH */
.yith-wcan-filters .yith-wcan-filter {
    background-color: #E8E8E6 !important;
	margin-bottom: 0px !important;
	padding-top: 0px;
	margin-top: -10px;
}


/* Contenu interne (liste des termes, sliders, etc.) */
.yith-wcan-filters .yith-wcan-filter .filter-content,
.yith-wcan-filters .yith-wcan-filter .filter-items {
    background-color: transparent !important;
}

/* Liens des termes (François Legoubin, etc.) */
.yith-wcan-filters .yith-wcan-filter .filter-item a.term-label {
    display: block;
}

/* Supprime le fond blanc imposé par Avada sur les éléments de liste */
.yith-wcan-filter .filter-items .filter-item {
    background: transparent !important;
}

/* Neutralise aussi tout éventuel padding ou border */
.yith-wcan-filter .filter-items .filter-item {
    padding: 0 !important;
    border: none !important;
}

/* Pour les <a> éventuellement vides */
.yith-wcan-filter .filter-item a.term-label:empty {
    display: none !important;
}

/* Supprimer le fond blanc sur chaque ligne de filtre */
.yith-wcan-filter .filter-items > li.filter-item {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}


/* ✔️ WooCommerce Checkout – bouton principal */
.wc-block-checkout__actions_row button {
    font-family: var(--awb-button-font-family) !important;
    font-weight: var(--awb-button-font-weight) !important;
    font-size: var(--awb-button-font-size) !important;
    letter-spacing: var(--awb-button-letter-spacing) !important;
    text-transform: uppercase !important;
    line-height: var(--awb-button-line-height) !important;

    padding-top: var(--awb-button-padding-top) !important;
    padding-bottom: var(--awb-button-padding-bottom) !important;
    padding-left: var(--awb-button-padding-left) !important;
    padding-right: var(--awb-button-padding-right) !important;

    background-color: #1D2327 !important;
    color: white !important;
    border-color: #1D2327 !important;

    border-radius: var(--awb-button-border-radius) !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: var(--awb-button-border-color) !important;

    transition: all .3s ease !important;
}

/* ✔️ Hover */
.wc-block-checkout__actions_row button:hover {
    background-color: white !important;
    color: #1D2327 !important;
    border-color: #1D2327 !important;
}


.blue-link {
  color: #1D273C;
}

.blue-link:hover {
  color: #917CA8;
}

