/* ============================================
 * ROSE&FLY — CSS GLOBAL
 * Chargé sur toutes les pages
 * ============================================ */

/* ------ Dev temporaire ------ */
.rf-rosybox-cta { display: none; }
.woocommerce-variation-description .rf-savoir-plus { display: none; }

/* ------ Variables ------ */
:root {
  --rf-rose: #a14b68;
  --rf-rose-light: #eab0c0;
  --rf-rose-bg: #fff7fa;
  --rf-rose-hover: #8a3f58;
  --rf-gold: #d4af37;
  --rf-gold-dark: #b8860b;
  --rf-ink: #2b2b2b;
  --rf-muted: #888;
  --rf-bg: #fff;
  --rf-card: #fff;
  --rf-border: rgba(0, 0, 0, 0.08);
  --rf-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  --rf-shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.12);
  --rf-radius: 18px;
  --rf-gap: 20px;
  --rf-pink-btn: #e295b9;
  --rf-dark: #3a2e36;
  --rf-purple: #520b75;
}

/* ------ Reset ------ */
html, body { overflow-x: hidden !important; width: 100%; }
body:not(.logged-in) { position: inherit !important; }

.ast-separate-container #primary,
.ast-separate-container.ast-left-sidebar #primary,
.ast-separate-container.ast-right-sidebar #primary { margin: 0 !important; padding: 0; }

.ppcp-messages { display: none; }
.site-content { padding-top: 0 !important; }
.site-content > .ast-container { padding-top: 0 !important; }

.site .site-content #primary .ast-woocommerce-container { margin-top: 2rem; }
.ast-woocommerce-container, .ast-article-single { background-color: #fff; border: none; }
.ast-separate-container #primary { order: 1 !important; }
.site-footer { order: 99 !important; }
#secondary { order: 2 !important; }

/* ------ Top Bar ------ */
.top-bar {
  color: #fff; font-size: 15px; text-align: center; overflow: hidden;
  height: 30px; display: flex; align-items: center; justify-content: center;
  min-width: 320px; padding: 0 10px; margin: 0 auto;
}
@media (min-width: 1025px) { .top-bar { margin-top: 5px; } }

.message-rotator { position: relative; height: 40px; width: 100%; max-width: 600px; margin: 0 auto; }
.message { position: absolute; width: 100%; top: 0; left: 0; opacity: 0; animation: fadeInOut 16s infinite; }
.message:nth-child(1) { animation-delay: 0s; }
.message:nth-child(2) { animation-delay: 6s; }
.message:nth-child(3) { animation-delay: 12s; }
@keyframes fadeInOut { 0% { opacity: 0; } 10% { opacity: 1; } 30% { opacity: 1; } 40% { opacity: 0; } 100% { opacity: 0; } }

/* ------ Header ------ */
.ast-below-header-bar { background-color: #d9a7a7 !important; }
.header-widget-area[data-section="sidebar-widgets-header-widget-1"] { display: block; width: auto; }
[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg { fill: var(--rf-rose); }
.search:hover { color: #fff; }

.wishlistheader { display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.wishlistheader .wishlist-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.wishlistheader .wishlist-heart-icon { width: 24px; height: 24px; display: block; fill: transparent; stroke: var(--rf-rose); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s ease; }
.wishlistheader .wishlist-link:hover .wishlist-heart-icon { fill: var(--rf-rose-light); stroke: var(--rf-rose); transform: scale(1.06); }
@media (max-width: 600px) { .wishlistheader .wishlist-heart-icon { width: 22px; height: 22px; } }

.ast-hb-account-login-wrapper.show .ast-hb-account-login { transform: scale(1) translateY(-50%); opacity: 1; background-color: #fff; font-family: 'Playfair Display', serif; border-radius: 15px; box-shadow: 0 0 150px var(--rf-gold); }
#ast-hb-account-login-wrap.show .ast-hb-account-login { transform: none; opacity: 1; top: 10%; }
.ast-desktop .astra-cart-drawer { width: 30% !important; }

/* ------ Mega Menu ------ */
.main-header-menu .menu-item.rf-mega-vertical > .sub-menu { display: grid !important; grid-template-columns: 280px 1fr; gap: 22px; padding: 18px !important; background: #fff !important; border-radius: 16px; box-shadow: var(--rf-shadow); z-index: 9999; }
.main-header-menu .menu-item.rf-mega-vertical > .sub-menu > li > .menu-link { display: none !important; }
.main-header-menu .menu-item.rf-mega-vertical > .sub-menu > li.rf-col-rail { grid-column: 1; border-right: 1px solid var(--rf-border); padding-right: 14px; }
.main-header-menu .menu-item.rf-mega-vertical > .sub-menu > li.rf-panel { grid-column: 2; display: none !important; visibility: hidden; height: 0; overflow: hidden; }
.main-header-menu .menu-item.rf-mega-vertical > .sub-menu > li.rf-panel.is-visible { display: block !important; visibility: visible; height: auto; overflow: visible; }
.menu-item.rf-mega-vertical .rf-panel > .sub-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.rf-vm-grid { display: grid; grid-template-columns: 280px 1fr; gap: 22px; min-height: 380px; }
.rf-vm-left { border-right: 1px solid var(--rf-border); padding-right: 14px; }
.rf-vm-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rf-vm-cats li { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--rf-border); border-radius: 10px; background: #fff; font-weight: 600; line-height: 1.2; }
.rf-vm-cats li:hover { background: #f7e9ef; }
.rf-vm-cats li.is-active { background: var(--rf-rose); color: #fff; border-color: transparent; position: relative; }
.rf-vm-cats li::after { content: "›"; opacity: 0.55; transition: transform 0.15s ease; }
.rf-vm-cats li:hover::after { transform: translateX(2px); }
.rf-vm-cats li.is-active::after { opacity: 0.9; color: #fff; }
.rf-vm-cats li.is-active::before { content: ""; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); border: 8px solid transparent; border-left-color: var(--rf-rose); }
.rf-vm-panel { display: none; }
.rf-vm-panel.is-visible { display: block; animation: rfFade 0.18s ease-out; }
@keyframes rfFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.rf-vm-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rf-vm-links { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.rf-vm-links a { text-decoration: none; display: inline-block; padding: 6px; border-radius: 8px; }
.rf-vm-links a:hover { background: rgba(0, 0, 0, 0.05); }
.rf-vm-cols h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 10px; padding: 0 0 10px; border-bottom: 1px solid var(--rf-border); }
.rf-vm-card { display: grid; gap: 8px; padding: 12px; border-radius: 14px; text-decoration: none; border: 1px solid var(--rf-border); }
.rf-vm-card img { width: 100%; height: auto; border-radius: 12px; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
.rf-vm-card span { font-size: 12px; opacity: 0.8; }
.rf-vm-card strong { font-size: 16px; }
@media (max-width: 980px) { .rf-vm-grid { grid-template-columns: 1fr; } .rf-vm-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .rf-vm-cols { grid-template-columns: 1fr; } }

/* ------ Mini-cart drawer ------ */
.astra-cart-drawer-content .woocommerce-mini-cart__empty-message,
.astra-cart-drawer-content .ast-empty-cart-content { display: none; }
.astra-cart-drawer-content .rf-mini-cart-empty-rosy { padding: 1.5rem 1.5rem 2rem; }
.rf-mini-cart-empty-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.2rem; }
.rf-mini-cart-illu img { width: 90px; height: auto; display: block; }
.rf-mini-cart-bubble { position: relative; background: var(--rf-rose-bg); border-radius: 18px; padding: 1rem 1.3rem; max-width: 360px; width: 100%; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04); }
.rf-mini-cart-bubble::before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); border-width: 0 10px 10px 10px; border-style: solid; border-color: transparent transparent var(--rf-rose-bg) transparent; }
.rf-mini-cart-bubble-title { margin: 0 0 0.4rem; font-size: 1.1rem; font-weight: 600; }
.rf-mini-cart-bubble-subtitle { margin: 0; font-size: 0.95rem; color: #7a6a73; }
.rf-mini-cart-suggestion { margin-top: 0.8rem; padding: 0.9rem 1rem 1.1rem; border-radius: 16px; background: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04); width: 100%; max-width: 400px; }
.rf-mini-cart-suggestion::before { content: ""; }
.rf-mini-cart-suggestion-link { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; margin-bottom: 0.7rem; }
.rf-mini-cart-suggestion-thumb img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.rf-mini-cart-suggestion-name { display: block; font-size: 0.95rem; font-weight: 600; color: #222; }
.rf-mini-cart-suggestion-price { display: block; font-size: 0.9rem; color: #c26b8a; }
.rf-mini-cart-suggestion-btn { width: 100%; text-align: center; border-radius: 999px; background: var(--rf-rose-light); border: none; font-weight: 600; padding: 0.5rem 0.9rem; }
.rf-mini-cart-suggestion-btn:hover { background: #dd8ca7; }

.woocommerce-mini-cart__buttons .button { display: inline-block !important; background: var(--rf-pink-btn) !important; color: #fff !important; font-size: 14px !important; font-weight: 600 !important; text-transform: uppercase; padding: 12px 20px !important; border: none !important; border-radius: 50px !important; margin-right: 10px !important; transition: background 0.3s ease, transform 0.2s ease !important; box-shadow: 0 4px 8px rgba(226, 149, 185, 0.3) !important; }
.woocommerce-mini-cart__buttons .button:hover { background: #d1769b !important; transform: translateY(-2px) !important; }
.woocommerce-mini-cart__buttons .checkout { background: var(--rf-dark) !important; box-shadow: 0 4px 8px rgba(58, 46, 54, 0.2) !important; }
.woocommerce-mini-cart__buttons .checkout:hover { background: #2b2127 !important; }
#rfc-popup { margin-bottom: 4%; }

/* ------ Footer (paiements) ------ */
.rf-footer-payments { max-width: 150px; margin: 0 auto; text-align: center; }
.rf-footer-payments__title { font-weight: 700; font-size: 14px; margin: 0 0 10px; letter-spacing: 0.2px; opacity: 0.95; }
.rf-pay-sprite { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; align-items: center; }
.rf-pay-sprite li { display: inline-flex; }
.rf-pay { display: inline-block; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); width: 40px; height: 25px; background-image: url("https://roseandfly.fr/wp-content/uploads/2026/03/test.png"); background-repeat: no-repeat; background-size: 110px 50px; }
.rf-pay--mastercard { background-position: 3px 0; }
.rf-pay--applepay   { background-position: -30px 0; }
.rf-pay--googlepay  { background-position: -67px 0; }
.rf-pay--paypal     { background-position: -3px -26px; }
.rf-pay--klarna     { background-position: -40px -26px; }
.rf-pay--visa       { background-position: -70px -24px; }

/* ------ Boutons WP Blocks ------ */
.wp-block-button__link { background: linear-gradient(135deg, var(--rf-gold), var(--rf-gold-dark)); color: #000 !important; font-weight: 600; font-size: 1.1rem; padding: 14px 28px; border: none; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; box-shadow: 0 6px 14px rgba(212, 175, 55, 0.3); transition: all 0.3s ease-in-out; }
.wp-block-button__link:hover { background: linear-gradient(135deg, var(--rf-gold-dark), var(--rf-gold)); box-shadow: 0 8px 20px rgba(184, 134, 11, 0.35); transform: translateY(-2px); color: #fff !important; }
.woocommerce.button.wc-backward { color: antiquewhite; background-color: lightcoral; }

.comic-button { display: inline-block; padding: 10px 20px; font-size: 24px; font-weight: bold; text-align: center; text-decoration: none; color: #fff; background-color: #ff5252; border: 2px solid #000; border-radius: 10px; box-shadow: 5px 5px 0 #000; transition: all 0.3s ease; cursor: pointer; }
.comic-button:hover { background-color: #fff; color: #ff5252; border: 2px solid #ff5252; box-shadow: 5px 5px 0 #ff5252; }
.comic-button:active { background-color: #fcf414; box-shadow: none; transform: translateY(4px); }

/* ------ Messages WC (apparaissent partout) ------ */
.woocommerce-message { background-color: #fff6f9; border-left: 4px solid var(--rf-pink-btn); padding: 16px 20px; border-radius: 12px; color: var(--rf-dark); font-family: 'Poppins', sans-serif; font-size: 15px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); margin-top: 20px; animation: fadeInRose 0.4s ease; }
.woocommerce-message a.restore-item { color: #d1769b; font-weight: 600; text-decoration: none; margin-left: 10px; }
.woocommerce-message a.restore-item:hover { color: #b75183; text-decoration: underline; }
.woocommerce-info { background-color: #fff4f8; border-left: 4px solid var(--rf-pink-btn); color: var(--rf-dark); padding: 14px 20px; border-radius: 12px; margin-bottom: 24px; font-weight: 500; }
.woocommerce-info::before { content: ""; }
@keyframes fadeInRose { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ------ Prix global ------ */
.woocommerce-Price-amount { font-size: 20px; font-family: Cambria, serif; font-weight: bold; color: var(--rf-purple) !important; }
@media (max-width: 480px) { .woocommerce-Price-amount { font-size: 1em !important; } }

/* ------ Réassurance UAGB ------ */
.wp-block-uagb-container .wp-block-uagb-info-box.uagb-infobox__content-wrap { display: inline-flex; flex-direction: column; align-items: center; text-align: center; }
.wp-block-uagb-container .uagb-ifb-icon-wrap { width: clamp(32px, 4.2vw, 48px); height: clamp(32px, 4.2vw, 48px); flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-size: 0 !important; line-height: 1; }
.wp-block-uagb-container .uagb-ifb-icon-wrap svg { width: 100% !important; height: 100% !important; max-width: 100%; max-height: 100%; display: block; }
.wp-block-uagb-container .uagb-ifb-title-wrap { margin-top: 0.5rem; }
.wp-block-uagb-container .uagb-ifb-desc { margin-top: 0.25rem; }

@media (max-width: 768px) {
  .Reassurance { display: flex !important; overflow-x: auto !important; overflow-y: hidden !important; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 16px; padding: 12px 16px 18px; }
  .Reassurance > .wp-block-uagb-info-box { flex: 0 0 78%; min-width: 240px; max-width: 320px; scroll-snap-align: center; }
  .Reassurance > .wp-block-uagb-info-box .uagb-ifb-content { text-align: center; }
  .Reassurance::-webkit-scrollbar { display: none; }
  .Reassurance { -ms-overflow-style: none; scrollbar-width: none; }
}

.reassurance-block { width: auto; height: 94%; overflow: hidden; border-radius: 12px; transition: transform 0.3s ease; }
.reassurance-image { position: relative; width: 100%; height: auto; margin-top: 15%; }
.reassurance-image img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.reassurance-block:hover { transform: scale(1.01); }
@media (max-width: 768px) { .reassurance-block { max-width: 100%; margin: 1.5rem auto; } }

/* ------ Spectra / UAGB ------ */
.uagb-tm__items { visibility: visible !important; opacity: 1 !important; height: auto !important; overflow: hidden; transition: none !important; }
.uagb-tm__item { display: flex; flex-direction: column; justify-content: center; opacity: 1 !important; }

/* ------ Divers ------ */
.widgettitle, .select2-selection__arrow { display: none !important; }
.screen-reader-text { border: 2px solid #FADDAD; background-color: #FADDAD; }
.astra-shop-summary-wrap { position: relative; }
.owl-dot::before, .slick-dots li button::before { font-family: 'Font Awesome 5 Free' !important; content: "\f111"; }

@media (max-width: 550px) {
  .wps-product-data { padding-right: 5px; padding-left: 5px; }
  .wps-product-data img { height: auto !important; }
}

.wpsf-product-price { font-size: 10px !important; font-family: 'Playfair Display', serif; }
.wpsf-product-title a { font-size: 15px !important; padding-bottom: 15px !important; }

#ast-scroll-top { position: fixed; right: 20px; bottom: 20px; z-index: 99998; background: linear-gradient(135deg, var(--rf-rose-light), var(--rf-rose)) !important; color: #fff !important; border-radius: 999px !important; box-shadow: 0 4px 12px rgba(161, 75, 104, 0.3) !important; cursor: pointer; transition: all 0.3s ease; }
