/*
Theme Name:   Astra Child - CJ Créations
Theme URI:    http://localhost/cj-creation
Description:  Thème enfant Astra pour la refonte du site CJ Créations (mobilier & aménagements urbains). Développé par ADWEB Conseil.
Author:       ADWEB Conseil
Author URI:   https://www.adweb-conseil.fr
Template:     astra
Version:      1.2.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child
*/

/* ===================================================================
   Styles personnalisés CJ Créations
=================================================================== */

/* --- TYPOGRAPHIE : Roboto partout (comme cj-creations.fr) --- */
body, button, input, select, textarea, p, a, li, span, div,
h1, h2, h3, h4, h5, h6,
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor, .elementor-button,
.cj-header, .cj-header *, .cj-menu, .cj-menu a, .cj-newsletter, .cj-newsletter *,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .product_title,
.widget, .site-footer, .ast-woocommerce-container,
.cj-catnav, .cj-catnav *, .cj-btn-devis {
    font-family: 'Roboto', sans-serif !important;
}
body { font-size: 14px; color: #666; }


/* Titres produits : Roboto 700 majuscules, gris très foncé */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important; font-weight: 700 !important; color: #262626 !important; text-transform: uppercase; letter-spacing: 0;
}
/* Séparateur orange sous le titre produit (comme l'original) */
.woocommerce ul.products li.product .woocommerce-loop-product__title:after {
    content: ""; display: block; width: 100%; border-bottom: 2px solid #ed5c2d; margin-top: 12px; opacity: .85;
}

/* --- Slider d'accueil : ratio bannière (2953x1095), pas de crop carré --- */
.elementor-widget-image-carousel .swiper-slide,
.elementor-widget-image-carousel .swiper-slide-inner,
.elementor-widget-image-carousel figure.swiper-slide-inner {
    height: auto !important;
}
.elementor-widget-image-carousel img.swiper-slide-image {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}
.elementor-widget-image-carousel .swiper,
.elementor-widget-image-carousel .swiper-container {
    height: auto !important;
}
/* Slider d'accueil : forcer le ratio bannière (haute spécificité) */
.cj-slider .swiper, .cj-slider .swiper-container,
.cj-slider .swiper-wrapper,
.cj-slider .swiper-slide,
.cj-slider .swiper-slide-inner,
.cj-slider figure { height: auto !important; }
.cj-slider .swiper-slide-image,
.cj-slider img.swiper-slide-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    max-height: none !important;
}

/* --- Titres de section (exact : products-section-title du thème Furnished) --- */
.cj-sectitle .elementor-heading-title { font-size: 24px !important; text-transform: uppercase; font-weight: 700 !important; letter-spacing: .5px; line-height: 1.4; }
.cj-sectitle:after { content: ""; display: block; width: 272px; max-width: 90%; height: 9px; margin: 16px auto 0; background: url('/cj-creation/wp-content/uploads/sliders/title-pattern.png') no-repeat center; background-size: contain; }

/* --- Section avantages : fond photo forcé ---
   Le CSS de fond généré par Elementor pour cette section est capricieux
   (parfois non appliqué : cache/lazyload). On force la photo ici (style.css
   se charge de façon fiable). L'overlay sombre reste géré par le ::before Elementor. */
.elementor-1113 .elementor-element.elementor-element-638c1ce {
    background: #3c4a52 url('/cj-creation/wp-content/uploads/sliders/avantages-bg.jpg') center center / cover no-repeat !important;
}

/* --- Section avantages (ancien shortcode [cj_avantages], désormais inutilisé) --- */
.cj-adv-title { text-align: center; color: #fff; text-transform: uppercase; font-weight: 700; font-size: 21px; letter-spacing: .3px; margin: 0 0 34px; }
.cj-service-area { display: flex; justify-content: center; gap: 90px; flex-wrap: wrap; }
.cj-service { text-align: center; }
.cj-service-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background-color: #ed5c2d; }
.cj-service-icon svg { width: 34px; height: 34px; display: block; }
.cj-service-heading { color: #fff; font-weight: 700; font-size: 16px; margin-top: 16px; }

/* --- Barre newsletter --- */
.cj-newsletter { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; margin: 0 auto; flex-wrap: wrap; gap: 16px; color: #fff; }
.cj-nl-left { display: flex; align-items: center; gap: 12px; }
.cj-nl-icon { font-size: 26px; }
.cj-nl-left strong { display: block; font-size: 16px; }
.cj-nl-sub { font-size: 13px; color: #e8ddd6; }
.cj-nl-form { display: flex; }
.cj-nl-form input { border: none; padding: 11px 14px; width: 250px; font-size: 14px; }
.cj-nl-form button { border: none; background: #ed5c2d; color: #fff; padding: 0 22px; font-weight: 700; cursor: pointer; }

/* --- Recherche header (HFE #3623) : boîte sombre PLEINE HAUTEUR + loupe, façon original.
   On étire via flex (align-items:stretch) de la barre jusqu'à l'input — pas de
   hauteur en % (qui ne résout pas dans cette chaîne de conteneurs). --- */
.elementor-element-a8f8cba { align-self: stretch !important; }
.elementor-element-9c25ae5 { display: flex !important; align-items: stretch !important; }
.elementor-element-9c25ae5 .elementor-widget-container,
.elementor-element-9c25ae5 .hfe-search-button-wrapper,
.elementor-element-9c25ae5 form.hfe-search-button-wrapper,
.elementor-element-9c25ae5 .hfe-search-form__container { display: flex !important; align-items: stretch !important; flex: 1 1 auto; }
.elementor-element-9c25ae5 .hfe-search-button-wrapper { position: relative; }
.elementor-element-9c25ae5 .hfe-search-form__container { position: relative; }
.elementor-element-9c25ae5 .hfe-search-form__input { background: #401d10 !important; color: #fff !important; border: none !important; height: auto !important; align-self: stretch !important; padding: 0 42px 0 16px !important; width: 240px !important; font-style: italic; }
.elementor-element-9c25ae5 .hfe-search-form__input::placeholder { color: #cbbdb4 !important; opacity: 1; }
.elementor-element-9c25ae5 .hfe-search-form__container::after { content: ""; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.5-4.5'/%3E%3C/svg%3E") no-repeat center/contain; }
.elementor-element-9c25ae5 button#clear { display: none !important; }

/* --- Newsletter FOOTER (#3624 / SureForms #3639) : barre brune inline comme l'original --- */
.elementor-3624 .elementor-element-731dde1 { background-color: #401d10 !important; padding: 20px 30px !important; }
/* ⚠️ le .e-con-inner d'Elementor a 40px de padding vertical par défaut → barre trop haute. */
.elementor-3624 .elementor-element-731dde1 > .e-con-inner { padding-top: 0 !important; padding-bottom: 0 !important; }
.elementor-3624 .elementor-element-b0072ec { flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; flex-wrap: wrap !important; gap: 6px 26px !important; width: 100% !important; max-width: 1200px !important; margin: 0 auto !important; padding: 0 !important; }
.elementor-3624 .elementor-element-b0072ec > .elementor-element { flex: 0 0 auto !important; width: auto !important; max-width: none !important; }
/* Formulaire poussé à droite (barre sur une ligne, façon original) */
.elementor-3624 .elementor-element-364f511 { margin-left: auto !important; }
.elementor-3624 .elementor-element-9fd8200 { margin: 0 !important; }
.elementor-3624 .elementor-element-9fd8200 .elementor-heading-title { color: #fff !important; font-size: 18px !important; line-height: 1.2 !important; }
.elementor-3624 .elementor-element-6be32d9 { margin: 0 !important; }
.elementor-3624 .elementor-element-6be32d9, .elementor-3624 .elementor-element-6be32d9 * { color: #e8ddd6 !important; font-size: 13px !important; line-height: 1.3 !important; }
/* formulaire SureForms rendu inline (input + bouton collés, même hauteur) */
.elementor-3624 #srfm-form-3639 { display: flex !important; align-items: stretch !important; flex-wrap: nowrap !important; gap: 0 !important; margin: 0 !important; }
.elementor-3624 #srfm-form-3639 .srfm-block-label { display: none !important; }
.elementor-3624 #srfm-form-3639 .srfm-error-wrap,
.elementor-3624 #srfm-form-3639 .srfm-error-message { display: none !important; }
.elementor-3624 #srfm-form-3639 .srfm-block,
.elementor-3624 #srfm-form-3639 .srfm-block-single,
.elementor-3624 #srfm-form-3639 .srfm-email-block,
.elementor-3624 #srfm-form-3639 .srfm-block-wrap,
.elementor-3624 #srfm-form-3639 .srfm-block-width-100,
.elementor-3624 #srfm-form-3639 .srfm-submit-container,
.elementor-3624 #srfm-form-3639 .wp-block-button,
.elementor-3624 #srfm-form-3639 .srfm-submit-wrap { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; display: flex !important; align-items: stretch !important; }
.elementor-3624 #srfm-form-3639 .srfm-input-email { background: #fff !important; color: #333 !important; border: none !important; margin: 0 !important; padding: 0 14px !important; width: 260px !important; height: 46px !important; font-size: 14px !important; border-radius: 0 !important; }
.elementor-3624 #srfm-form-3639 .srfm-submit-button { background: #ed5c2d !important; border: none !important; color: #fff !important; font-weight: 700 !important; padding: 0 26px !important; height: 46px !important; border-radius: 0 !important; white-space: nowrap !important; width: auto !important; min-width: 120px; cursor: pointer; transition: background .2s ease; }
.elementor-3624 #srfm-form-3639 .srfm-submit-button:hover { background: #d94e20 !important; }

/* --- Onglets OFFRES / NOUVEAUTÉS (home) façon original --- */
.cj-tabs-nav { list-style: none; display: flex; justify-content: center; gap: 34px; margin: 0 0 26px; padding: 0; }
.cj-tabs-nav li { cursor: pointer; text-transform: uppercase; font-size: 13px; font-weight: 700; letter-spacing: .5px; color: #999; padding-bottom: 8px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.cj-tabs-nav li:hover { color: #401d10; }
.cj-tabs-nav li.is-active { color: #21201f; border-bottom-color: #ed5c2d; }
.cj-tab-panel { display: none; }
.cj-tab-panel.is-active { display: block; }

/* --- Quantité + « Ajouter au devis » sur la fiche produit (façon original) --- */
.cjq-single-wrap { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; }
.cjq-single-wrap .cjq-qty { width: 66px; height: 46px; text-align: center; border: 1px solid #ddd; padding: 0 6px; font-size: 15px; -moz-appearance: textfield; }
.cjq-single-wrap .cjq-btn-single { height: 46px; }

/* --- Titre de catégorie (petit, foncé, majuscules) --- */
.woocommerce-products-header__title,
.ast-woocommerce-container .woocommerce-products-header__title,
.woocommerce .page-title {
    font-size: 26px !important;
    color: #333 !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .3px;
}

/* --- Fil d'Ariane --- */
.cj-breadcrumb { font-size: 13px; color: #999; margin: 0 0 22px; }
.cj-breadcrumb a { color: #777; text-decoration: none; }
.cj-breadcrumb a:hover { color: #ed5c2d; }
.cj-breadcrumb span { margin: 0 6px; color: #ccc; }

/* --- Pages internes (CMS) : style identique à l'original --- */
.page .entry-header .entry-title,
.page-title .ast-container .entry-title,
body.page:not(.home-page) .entry-title { font-size: 26px !important; color: #333 !important; text-transform: uppercase; font-weight: 700; letter-spacing: .3px; }
.page .entry-content h1 { font-size: 22px; color: #808080; font-weight: 700; text-transform: uppercase; margin: 22px 0 10px; }
.page .entry-content h2 { font-size: 17px; color: #808080; font-weight: 700; text-transform: uppercase; margin: 18px 0 8px; }
.page .entry-content h3, .page .entry-content h4 { font-size: 15px; color: #808080; font-weight: 700; margin: 14px 0 8px; }
.page .entry-content p, .page .entry-content li { color: #666; font-size: 14px; line-height: 1.75; }
.page .entry-content strong { color: #555; }

/* --- Page contact (2 colonnes) --- */
.cj-contact-wrap { display: flex; gap: 40px; flex-wrap: wrap; }
.cj-contact-info, .cj-contact-form { flex: 1 1 320px; }
.cj-contact-wrap h2 { font-size: 18px !important; color: #401d10 !important; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }

/* --- Bouton "Ajouter au devis" (YITH Request a Quote + custom) --- */
.cj-devis-box { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.cj-qty input { width: 66px; padding: 11px 8px; border: 1px solid #ccc; text-align: center; font-size: 15px; }
.cj-btn-devis,
.yith-ywraq-add-button a, a.add-request-quote-button, .add_to_quote_button,
.yith_ywraq_add_item_product_actions a, .single_add_to_cart_button.add_to_quote {
    display: inline-block !important; background: #401d10 !important; color: #fff !important; padding: 13px 26px !important;
    text-decoration: none !important; font-weight: 700 !important; border-radius: 3px !important; font-size: 14px !important; text-transform: none !important; border: none !important;
}
.cj-btn-devis:hover,
.yith-ywraq-add-button a:hover, a.add-request-quote-button:hover, .add_to_quote_button:hover { background: #ed5c2d !important; }
.single-product .price { display: none; }
/* Bouton devis dans les listes produits */
.woocommerce ul.products li.product .yith-ywraq-add-button { margin-top: 8px; }
.woocommerce ul.products li.product .yith-ywraq-add-button a { padding: 8px 16px !important; font-size: 12px !important; }

/* --- Sidebar catégories custom (cj-catnav) --- */
.cj-catnav { border: 1px solid #eee; margin-bottom: 20px; }
.cj-catnav-head { background: #401d10; color: #fff; padding: 13px 16px; font-size: 15px; font-weight: 700; text-transform: uppercase; }
.cj-catnav ul { list-style: none; margin: 0; padding: 0; }
.cj-catnav li { border-bottom: 1px solid #eee; }
.cj-catnav li a { display: block; padding: 10px 14px; color: #444; text-decoration: none; font-size: 13.5px; }
.cj-catnav li a:before { content: "\2192"; color: #ed5c2d; margin-right: 8px; }
.cj-catnav li a:hover, .cj-catnav li.current-cat > a { color: #ed5c2d; font-weight: 600; }
/* [+] de dépliage des sous-catégories (comme le span.add de l'original) */
.cj-catnav li.cj-has-sub { position: relative; }
.cj-catnav li.cj-has-sub > a { padding-right: 42px; }
.cj-catnav .cj-sub-toggle {
    position: absolute; top: 6px; right: 12px; width: 18px; height: 18px;
    border: 1px solid #ddd; cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center;
}
.cj-catnav .cj-sub-toggle::before {
    content: "+"; color: #999; font-size: 14px; line-height: 1;
}
.cj-catnav li.cj-open > .cj-sub-toggle::before { content: "\2212"; } /* − */
.cj-catnav .cj-sub-toggle:hover { border-color: #ed5c2d; }
.cj-catnav .cj-sub-toggle:hover::before { color: #ed5c2d; }
/* Sous-catégories : repliées par défaut, dépliées sur .cj-open */
.cj-catnav .cj-subcat { display: none; }
.cj-catnav li.cj-open > .cj-subcat { display: block; }
.cj-catnav .cj-subcat li { border-bottom: 0; border-top: 1px solid #f2f2f2; }
.cj-catnav .cj-subcat li a { padding-left: 30px; font-size: 13px; color: #666; }
.cj-catnav .cj-subcat .cj-subcat li a { padding-left: 46px; }
.cj-catnav .cj-subcat li a:before { content: "\203A"; } /* › pour les niveaux inférieurs */
/* La catégorie courante reste orange même en sous-niveau (même spécificité que
   la règle ci-dessus, déclarée après : sinon le gris #666 l'emportait). */
.cj-catnav .cj-subcat li.current-cat > a { color: #ed5c2d; font-weight: 600; }

/* --- Encart facettes MATIÈRES (FILTRER PAR) façon original --- */
.cj-facet { margin-bottom: 24px; }
.cj-facet-head { color: #888; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 6px; }
.cj-facet-title { color: #21201f; font-size: 16px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; }
.cj-facet ul { list-style: none; margin: 0; padding: 0; }
.cj-facet li { margin: 0 0 8px; }
.cj-facet-item { display: flex; align-items: center; color: #444; text-decoration: none; font-size: 13.5px; }
.cj-facet-item:hover { color: #ed5c2d; }
.cj-facet-box { width: 15px; height: 15px; border: 1px solid #bbb; margin-right: 9px; display: inline-block; flex: 0 0 auto; position: relative; background: #fff; }
.cj-facet-item.is-active .cj-facet-box { background: #ed5c2d; border-color: #ed5c2d; }
.cj-facet-item.is-active .cj-facet-box:after { content: "\2713"; color: #fff; font-size: 11px; position: absolute; top: -1px; left: 2px; }
.cj-facet-item.is-active .cj-facet-label { color: #ed5c2d; font-weight: 600; }
.cj-facet-item em { color: #999; font-style: normal; margin-left: 4px; }

/* --- Sidebar catégories façon cj-creations --- */
.widget_product_categories .widget-title,
.widget_product_categories .widgettitle { background: #401d10; color: #fff; padding: 12px 16px; margin: 0 0 10px; font-size: 15px; text-transform: uppercase; }
.widget_product_categories ul { list-style: none; margin: 0; padding: 0; }
.widget_product_categories ul li { border-bottom: 1px solid #eee; }
.widget_product_categories ul li a { display: block; padding: 9px 4px 9px 14px; color: #444; text-decoration: none; font-size: 13.5px; }
.widget_product_categories ul li a:before { content: "\2192"; color: #ed5c2d; margin-right: 8px; }
.widget_product_categories ul li a:hover { color: #ed5c2d; }
.widget_product_categories ul li.current-cat > a { color: #ed5c2d; font-weight: 700; }
.widget_product_categories .count { color: #aaa; font-size: 12px; }

/* --- ACCORDÉON catégories (l'arbre complet était trop long) --- */
/* Astra pose un chevron gris en ::before sur chaque sous-item de la liste de
   catégories. Redondant ici : on a déjà la flèche orange (a::before) et le
   caret d'accordéon à droite (.cj-cat-toggle). */
.woocommerce ul.product-categories > li ul li::before { content: none !important; }
/* Sous-catégories repliées par défaut ; ouvertes si le parent a .cj-open */
.widget_product_categories .children { display: none; }
.widget_product_categories li.cj-open > .children { display: block; }
/* Indentation par niveau */
.widget_product_categories .children li a { padding-left: 28px; }
.widget_product_categories .children .children li a { padding-left: 42px; }
.widget_product_categories .children .children .children li a { padding-left: 56px; }
/* Caret cliquable sur les rubriques à enfants (sépare l'ouverture du lien) */
.widget_product_categories li.cat-parent { position: relative; }
.widget_product_categories li.cat-parent > a { padding-right: 42px; }
.widget_product_categories .cj-cat-toggle {
    position: absolute; top: 0; right: 0; width: 42px; height: 39px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #9a8f88; z-index: 2;
}
.widget_product_categories .cj-cat-toggle::before {
    content: ""; width: 8px; height: 8px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(-45deg); margin-top: -2px; transition: transform .2s ease;
}
.widget_product_categories li.cj-open > .cj-cat-toggle::before { transform: rotate(45deg); margin-top: -4px; }
.widget_product_categories .cj-cat-toggle:hover { color: #ed5c2d; }

/* --- Hover produits : léger zoom image (transition 0.5s, comme l'original) --- */
.woocommerce ul.products li.product a img,
.woocommerce div.product .woocommerce-product-gallery img { transition: transform .5s ease; }
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; overflow: hidden; }
.woocommerce ul.products li.product:hover a img { transform: scale(1.06); }

/* --- Cartes produits épurées (comme l'original) --- */
.woocommerce ul.products li.product .ast-woo-product-category,
.woocommerce ul.products li.product .woocommerce-loop-category { display: none !important; }
.woocommerce ul.products li.product .astra-shop-summary-wrap { text-align: center; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; font-weight: 700; text-transform: uppercase; color: #401d10; }

/* ===================================================================
   SLIDER D'ACCUEIL (shortcode cj_slider) — version « design »
   Fondu enchaîné + effet Ken Burns + flèches en verre + barre de progression.
=================================================================== */
.cjslider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background: #1c130d;
    aspect-ratio: 2953 / 1095; /* ratio des bannières : hauteur tenue sans JS */
    perspective: 1500px;       /* profondeur 3D pour l'effet cube */
    --cjdur: .85s;             /* durée d'une rotation de cube */
}
.cjslider-track { position: absolute; inset: 0; transform-style: preserve-3d; }

/* Chaque slide : superposé, tourné en 3D (effet cube) */
.cjslide {
    position: absolute; inset: 0;
    opacity: 0; z-index: 1;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    pointer-events: none;
}
.cjslide.active { opacity: 1; z-index: 2; pointer-events: auto; }
.cjslide a { display: block; width: 100%; height: 100%; }
.cjslide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Rotations de cube — sens SUIVANT */
.cjslide.cj-out-next { z-index: 3; transform-origin: right center; animation: cjCubeOutNext var(--cjdur) both cubic-bezier(.72,.02,.28,1); }
.cjslide.cj-in-next  { z-index: 4; transform-origin: left center;  animation: cjCubeInNext  var(--cjdur) both cubic-bezier(.72,.02,.28,1); }
/* Rotations de cube — sens PRÉCÉDENT */
.cjslide.cj-out-prev { z-index: 3; transform-origin: left center;  animation: cjCubeOutPrev var(--cjdur) both cubic-bezier(.72,.02,.28,1); }
.cjslide.cj-in-prev  { z-index: 4; transform-origin: right center; animation: cjCubeInPrev  var(--cjdur) both cubic-bezier(.72,.02,.28,1); }
@keyframes cjCubeOutNext { from { transform: rotateY(0);      filter: brightness(1);   } to { transform: rotateY(-90deg); filter: brightness(.4); } }
@keyframes cjCubeInNext  { from { transform: rotateY(90deg);  filter: brightness(.4);  } to { transform: rotateY(0);      filter: brightness(1); } }
@keyframes cjCubeOutPrev { from { transform: rotateY(0);      filter: brightness(1);   } to { transform: rotateY(90deg);  filter: brightness(.4); } }
@keyframes cjCubeInPrev  { from { transform: rotateY(-90deg); filter: brightness(.4);  } to { transform: rotateY(0);      filter: brightness(1); } }

/* Vignette bas pour lisibilité des puces sur n'importe quelle image */
.cjslider::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
    background: linear-gradient(to top, rgba(0,0,0,.30), rgba(0,0,0,0));
    z-index: 3; pointer-events: none;
}

/* Flèches rondes « verre », visibles au survol
   (!important pour battre les styles de bouton d'Astra) */
.cjslider .cjslider-arrow {
    position: absolute !important; top: 50% !important;
    transform: translateY(-50%) scale(.9) !important;
    width: 52px !important; height: 52px !important; min-height: 0 !important;
    padding: 0 !important; margin: 0 !important; line-height: 1 !important;
    display: flex !important; align-items: center; justify-content: center;
    background: rgba(28,19,13,.42) !important; color: #fff !important;
    border: 1px solid rgba(255,255,255,.55) !important; border-radius: 50% !important;
    cursor: pointer; z-index: 5;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(0,0,0,.28);
    opacity: 0; transition: opacity .3s ease, transform .3s ease, background .2s ease, border-color .2s ease;
}
.cjslider .cjslider-arrow svg { width: 22px !important; height: 22px !important; display: block; }
.cjslider .cjslider-prev { left: 24px !important; right: auto !important; }
.cjslider .cjslider-next { right: 24px !important; left: auto !important; }
.cjslider:hover .cjslider-arrow,
.cjslider .cjslider-arrow:focus-visible { opacity: 1; transform: translateY(-50%) scale(1) !important; }
.cjslider .cjslider-arrow:hover { background: #ed5c2d !important; border-color: #ed5c2d !important; }
.cjslider .cjslider-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Puces en barres (pills) */
.cjslider-dots {
    position: absolute; left: 0; right: 0; bottom: 20px;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    z-index: 6; line-height: 1;
}
.cjdot {
    width: 12px; height: 5px; padding: 0; border: none; cursor: pointer;
    background: rgba(255,255,255,.5); border-radius: 5px;
    transition: width .35s ease, background .35s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.cjdot i { display: none; }
.cjdot:hover { background: rgba(255,255,255,.85); }
.cjdot.active { width: 30px; background: #ed5c2d; }

/* Barre de progression d'autoplay (fine, en bas) */
.cjslider-progress {
    position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: rgba(255,255,255,.18); z-index: 6;
}
.cjslider-progress span { display: block; height: 100%; width: 0; background: #ed5c2d; }

@media (max-width: 782px) {
    .cjslider-arrow { width: 42px; height: 42px; }
    .cjslider-prev { left: 12px; } .cjslider-next { right: 12px; }
    .cjslider-dots { bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .cjslide.cj-out-next, .cjslide.cj-in-next,
    .cjslide.cj-out-prev, .cjslide.cj-in-prev { animation: none !important; }
    .cjslide { transition: opacity .3s ease; }
}

/* ===================================================================
   HEADER CUSTOM cj-creations
=================================================================== */
.cj-container { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; }

/* Barre du haut */
.cj-topbar { background: #f2f2f2; font-size: 12px; color: #555; border-bottom: 1px solid #e5e5e5; }
.cj-topbar .cj-container { justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.cj-topbar a { color: #555; text-decoration: none; margin-left: 16px; }
.cj-topbar .cj-devis-link { margin-left: 0; font-weight: 600; }

/* Barre principale */
.cj-mainbar { background: #fff; }
.cj-mainbar .cj-container { justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 20px; }
.cj-logo img { max-height: 70px; width: auto; display: block; }
.cj-plus { font-size: 12px; color: #444; line-height: 1.7; text-align: left; }
.cj-plus strong { color: #ed5c2d; display: block; font-size: 13px; }
.cj-plus span { display: block; }
.cj-contact { text-align: center; font-size: 12px; color: #666; }
.cj-btn-contact { display: inline-block; background: #401d10; color: #fff !important; padding: 7px 16px; border-radius: 3px; text-decoration: none; font-weight: 600; font-size: 12px; }
.cj-phone { font-size: 18px; font-weight: 700; color: #333; margin-top: 4px; }
.cj-contact-note { font-size: 11px; color: #888; }
.cj-icons { display: flex; align-items: center; gap: 16px; font-size: 22px; }
.cj-icons a { color: #444; text-decoration: none; position: relative; }
.cj-cart-count { position: absolute; top: -6px; right: -10px; background: #ed5c2d; color: #fff; font-size: 10px; border-radius: 50%; width: 16px; height: 16px; line-height: 16px; text-align: center; }

/* Bandeau tagline */
.cj-tagline { background: #fff; color: #401d10; text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: .3px; padding: 6px 10px; text-transform: uppercase; }

/* Barre de navigation ORANGE */
.cj-navbar { background: #ed5c2d; }
.cj-navbar .cj-container { justify-content: space-between; }
.cj-menu { list-style: none; margin: 0; padding: 0; display: flex; }
.cj-menu-item { position: relative; }
.cj-menu-item > a { display: block; color: #fff; text-decoration: none; text-transform: uppercase; font-size: 13px; font-weight: 500; padding: 14px 18px; letter-spacing: .5px; }
.cj-menu-item:hover > a { background: rgba(0,0,0,.14); }
/* Panneau méga-menu */
.cj-mega { position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.2); padding: 22px 26px; z-index: 1000; display: none; border-top: 3px solid #ed5c2d; }
.cj-menu-item.cj-has-mega:hover > .cj-mega { display: block; }
.cj-mega-inner { display: flex; flex-wrap: wrap; gap: 24px 34px; width: max-content; max-width: 1040px; align-items: flex-start; }
.cj-mega-col { width: 190px; flex: 0 0 190px; }
.cj-mega-head { display: block; color: #401d10; font-weight: 700; text-transform: uppercase; font-size: 12.5px; letter-spacing: .3px; border-bottom: 2px solid #ed5c2d; padding-bottom: 7px; margin-bottom: 9px; text-decoration: none; }
.cj-mega-head:hover { color: #ed5c2d; }
.cj-mega-col ul { list-style: none; margin: 0; padding: 0; }
.cj-mega-col ul li a { display: block; color: #666; font-size: 12.5px; padding: 5px 0; text-decoration: none; transition: .15s; }
.cj-mega-col ul li a:hover { color: #ed5c2d; padding-left: 5px; }
.cj-navbar, .cj-navbar .cj-container { overflow: visible; }
.cj-search { display: flex; }
.cj-search input { border: none; padding: 8px 12px; font-size: 13px; width: 180px; }
.cj-search button { border: none; background: #401d10; color: #fff; padding: 0 14px; cursor: pointer; }

@media (max-width: 921px) {
    .cj-plus, .cj-contact-note { display: none; }
    .cj-mainbar .cj-container, .cj-navbar .cj-container { flex-wrap: wrap; }
    .cj-menu { flex-wrap: wrap; }
}

/* Pleine largeur du contenu */
.ast-page-builder-template .site-content .content-area,
.elementor-section.elementor-section-boxed > .elementor-container { max-width: 100%; }


/* --- Compteur de devis dynamique dans le header (shortcode [cj_devis_count]) --- */
.cjq-count-link{
    display:inline-flex;align-items:center;gap:6px;
    color:#401d10;text-decoration:none;font-size:13px;font-weight:600;line-height:1;
}
.cjq-count-link:hover{color:#ed5c2d;}
.cjq-count-link::before{
    font-family:"Font Awesome 5 Free";font-weight:900;content:"\f4ad"; /* comment-dots, comme l'ancien module devis */
    font-size:14px;
}
.cjq-count-link .cjq-count{font-weight:700;}

/* --- Icône panier-devis sprite (cart.png) + badge compteur, façon ancien header --- */
.cjq-cart-icon .cjq-count-link{
    display:inline-block; position:relative;
    width:38px; height:39px;
    background:url(assets/cart.png) no-repeat 0 0 transparent;
    font-size:0; text-decoration:none;
}
.cjq-cart-icon .cjq-count-link::before{ content:none; }      /* pas d'icône FA sur cette version */
.cjq-cart-icon .cjq-count-link:hover{ background-position:0 -53px; }  /* état orange du sprite */
.cjq-cart-icon .cjq-count-label{ display:none; }              /* on masque le mot "Devis" */
.cjq-cart-icon .cjq-count{
    position:absolute; top:-10px; right:-10px;
    min-width:18px; padding:2px 6px; box-sizing:border-box;
    background-color:#401d10; color:#fff; border-radius:50%;
    font-size:12px; font-weight:400; line-height:1; text-align:center;
}

/* --- Icône compte : icône Font Awesome propre (nette, jamais coupée) --- */
.cjq-user-icon .elementor-icon{
    display:inline-flex; align-items:center; justify-content:center;
    width:auto; height:auto; min-width:33px; padding:0;
    background:none; border:none;
}
.cjq-user-icon .elementor-icon i{
    display:inline-block; font-size:34px; line-height:1; color:#401d10;
}
.cjq-user-icon .elementor-icon:hover i{ color:#ed5c2d; }  /* hover orange marque */

/* --- Alignement vertical des icônes compte + devis (même ligne, centrées) --- */
.elementor-element-de8eacd{ display:flex !important; align-items:center !important; gap:16px; }
.elementor-element-de8eacd > .elementor-element{ display:flex !important; align-items:center !important; margin:0 !important; }
.cjq-user-icon .elementor-widget-container,
.cjq-user-icon .elementor-icon-wrapper,
.cjq-cart-icon .elementor-widget-container,
.cjq-cart-icon .elementor-shortcode{ display:flex; align-items:center; }
.cjq-cart-icon .cjq-count-link{ vertical-align:middle; }

/* Sprites : changement d'état instantané (pas de glissement au survol) */
.cjq-cart-icon .cjq-count-link, .cjq-cart-icon .cjq-count-link:hover,
.cjq-user-icon .elementor-icon,  .cjq-user-icon .elementor-icon:hover{
    -webkit-transition:none !important; transition:none !important;
}

/* ===================================================================
   MÉGA-MENU (menu HFE) — reproduction du hover de cj-creations.fr
   Au survol d'une rubrique niveau 1, un panneau pleine largeur affiche
   toutes les sous-rubriques (niveau 2 = colonnes) avec leurs enfants
   (niveau 3) visibles en permanence.
=================================================================== */

/* Ancrage pleine largeur : on neutralise le position:relative des
   wrappers Elementor intermédiaires pour que le panneau s'ancre sur la
   section pleine largeur (.elementor-element-8ea5d74, barre orange). */
.elementor-element-405a80d,           /* widget nav */
.elementor-element-433adbf {          /* container enfant du menu */
    position: static !important;
}
.elementor-element-8ea5d74 { position: relative; }
.elementor-element-8ea5d74,
.elementor-element-8ea5d74 > .e-con-inner,
.elementor-element-433adbf,
.elementor-element-405a80d,
.elementor-element-405a80d .elementor-widget-container,
.hfe-nav-menu,
.hfe-nav-menu__layout-horizontal { overflow: visible !important; }

/* Le <li> de niveau 1 reste statique : le panneau s'ancre plus haut */
.hfe-nav-menu > li.menu-item { position: static; }

/* --- Panneau méga-menu (niveau 2), caché par défaut --- */
.hfe-nav-menu > li.menu-item-has-children > ul.sub-menu {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 30px;
    row-gap: 4px;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    background: #fff;
    border-top: 3px solid #ed5c2d;
    box-shadow: 0 22px 40px rgba(0,0,0,.30);
    padding: 26px max(40px, calc((100% - 1360px) / 2)) 34px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease;
}
.hfe-nav-menu > li.menu-item-has-children:hover > ul.sub-menu,
.hfe-nav-menu > li.menu-item-has-children:focus-within > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* --- FIX zone de survol : panneau FERMÉ = display:none PAR DÉFAUT (dès le CSS,
   sans attendre le JS). Sinon, au chargement, les sous-menus niveau 3 (qui ont
   visibility:visible !important) restent « hittables » et recouvrent le haut de
   la page → le menu s'ouvrait TOUT SEUL si le curseur était là. display:none
   neutralise tout le sous-arbre. La hauteur (push-down) est mesurée au survol,
   quand :hover repasse le panneau en display:flex. --- */
.hfe-nav-menu > li.menu-item-has-children > ul.sub-menu { display: none !important; }
.hfe-nav-menu > li.menu-item-has-children:hover > ul.sub-menu,
.hfe-nav-menu > li.menu-item-has-children:focus-within > ul.sub-menu { display: flex !important; }

/* --- Niveau 2 = une colonne --- */
.hfe-nav-menu > li > ul.sub-menu > li.menu-item {
    position: static !important;
    flex: 0 1 auto;
    width: auto !important;
    min-width: 190px;
    max-width: 250px;
    margin: 0 0 18px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}
.hfe-nav-menu > li > ul.sub-menu > li > .hfe-has-submenu-container,
.hfe-nav-menu > li > ul.sub-menu > li > a {
    background: transparent !important;
}
/* Le conteneur du titre prend toute la largeur de colonne (pour que le
   séparateur orange s'étende sur toute la colonne). */
.hfe-nav-menu > li > ul.sub-menu > li > .hfe-has-submenu-container {
    display: block !important; width: 100% !important;
}
/* Titre de colonne (lien niveau 2) : plus gros + SÉPARATEUR orange dessous */
.hfe-nav-menu > li > ul.sub-menu > li > .hfe-has-submenu-container > a,
.hfe-nav-menu > li > ul.sub-menu > li > a.hfe-sub-menu-item {
    display: block !important;
    color: #401d10 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 14.5px !important;
    letter-spacing: .3px;
    line-height: 1.3;
    padding: 0 0 9px !important;
    margin: 0 0 11px !important;
    border-bottom: 2px solid #ed5c2d !important;
    white-space: normal !important;
    background: transparent !important;
}
.hfe-nav-menu > li > ul.sub-menu > li > .hfe-has-submenu-container > a:hover,
.hfe-nav-menu > li > ul.sub-menu > li > a.hfe-sub-menu-item:hover {
    color: #ed5c2d !important;
    background: transparent !important;
}

/* --- Niveau 3 : toujours affiché, en flux, sous le titre de colonne --- */
.hfe-nav-menu > li > ul.sub-menu > li > ul.sub-menu {
    display: block !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
}
.hfe-nav-menu > li > ul.sub-menu > li > ul.sub-menu > li.menu-item {
    position: static !important;
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}
.hfe-nav-menu > li > ul.sub-menu > li > ul.sub-menu > li > a {
    display: block !important;
    color: #5a5a5a !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0;
    line-height: 1.4;
    padding: 5px 0 !important;
    white-space: normal !important;
    background: transparent !important;
    transition: color .15s ease, padding .15s ease;
}
.hfe-nav-menu > li > ul.sub-menu > li > ul.sub-menu > li > a:hover {
    color: #ed5c2d !important;
    padding-left: 5px !important;
    background: transparent !important;
}

/* --- Masquer toutes les flèches de sous-menu dans le panneau --- */
.hfe-nav-menu > li > ul.sub-menu .hfe-menu-toggle,
.hfe-nav-menu > li > ul.sub-menu .sub-arrow { display: none !important; }

/* --- Méga-menu : POUSSE LE CONTENU VERS LE BAS (aucun recouvrement du slider).
   Le panneau est position:absolute (top:100% de la barre orange). À l'ouverture
   d'une rubrique, on décale le contenu sous le header d'une hauteur = hauteur du
   panneau (calculée en JS) : le vide créé est exactement comblé par le panneau. --- */
.site-content { transition: margin-top .38s cubic-bezier(.33,.1,.2,1); }
@media (prefers-reduced-motion: reduce) { .site-content { transition: none; } }

/* --- BARRE ORANGE STICKY AU SCROLL (conteneur Elementor 8ea5d74) ---
   Au scroll, la barre passe en position:fixed en haut ; un spacer (inséré en JS)
   comble sa place pour éviter le saut de contenu. --- */
.elementor-element-8ea5d74.cj-nav-stuck {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    width: 100% !important;
    z-index: 200 !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.20);
    animation: cjNavDrop .32s cubic-bezier(.2,.7,.3,1);
}
@keyframes cjNavDrop { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.cj-nav-spacer { width: 100%; }
@media (prefers-reduced-motion: reduce) { .elementor-element-8ea5d74.cj-nav-stuck { animation: none; } }

