/*
Theme Name: Rogfire (Astra Child)
Theme URI: https://rogfire.shop
Description: Thème enfant Astra pour la boutique Rogfire, spécialiste manettes PS5 DualSense.
Author: Rogfire
Template: astra
Version: 1.0.0
Text Domain: rogfire
*/

/* =========================================================================
   Identité Rogfire
   Palette : fond sombre profond, accent "braise" orange, bleu électrique
   en touche discrète, surfaces claires pour la lecture.
   ========================================================================= */
:root {
	--rf-ink: #0b0f19;
	--rf-ink-2: #141a2a;
	--rf-ink-3: #1e2536;
	--rf-ember: #f25c05;
	--rf-ember-dark: #d44e02;
	--rf-blue: #2d6bff;
	--rf-paper: #ffffff;
	--rf-paper-2: #f5f6f9;
	--rf-line: #e5e7eb;
	--rf-text: #111827;
	--rf-muted: #6b7280;
	--rf-radius: 14px;
	--rf-shadow: 0 10px 30px rgba(11, 15, 25, 0.08);
}

body { -webkit-font-smoothing: antialiased; }

/* Boutons : pleins, arrondis, sans effets tape-à-l'œil */
.ast-theme-transparent-header .main-header-menu .menu-link,
.wp-block-button__link,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce input.button.alt, .woocommerce #respond input#submit.alt,
.wc-block-components-button, .ast-button, .button, button, input[type="submit"] {
	letter-spacing: .01em;
	font-weight: 600;
}

/* En-tête */
.site-header { border-bottom: 1px solid rgba(255,255,255,.06); }
.ast-builder-html-element p { margin: 0; }
.rf-topbar { font-size: 13px; color: #cbd5e1; }
.rf-topbar a { color: #fff; text-decoration: none; }
.rf-topbar a:hover { color: var(--rf-ember); }

/* Logo typographique */
.site-title a { letter-spacing: -.02em; font-weight: 800; }
.site-title a span.rf-dot { color: var(--rf-ember); }

/* Sections plein-largeur utilisées sur la page d'accueil */
.rf-section { padding: 72px 0; }
.rf-section--dark { background: var(--rf-ink); color: #e5e7eb; }
.rf-section--dark h1, .rf-section--dark h2, .rf-section--dark h3 { color: #fff; }
.rf-section--soft { background: var(--rf-paper-2); }
.rf-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rf-ember); margin-bottom: 12px; }
.rf-lead { font-size: 1.15rem; color: var(--rf-muted); max-width: 60ch; }
.rf-section--dark .rf-lead { color: #cbd5e1; }

/* Hero */
.rf-hero { background: radial-gradient(1200px 600px at 80% 20%, rgba(242,92,5,.18), transparent 60%), radial-gradient(800px 400px at 10% 90%, rgba(45,107,255,.14), transparent 60%), var(--rf-ink); color: #e5e7eb; }
.rf-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 18px; }
.rf-hero .wp-block-image img { filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }
.rf-hero .wp-block-buttons { margin-top: 26px; }
.rf-hero .is-style-outline .wp-block-button__link { border-color: rgba(255,255,255,.35); color: #fff; }
.rf-hero .is-style-outline .wp-block-button__link:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.rf-hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .95rem; color: #cbd5e1; }
.rf-hero-points li::before { content: "✓"; color: var(--rf-ember); font-weight: 700; margin-right: 8px; }

/* Cartes catégories */
.rf-cats .wp-block-column { background: var(--rf-paper); border: 1px solid var(--rf-line); border-radius: var(--rf-radius); padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.rf-cats .wp-block-column:hover { transform: translateY(-3px); box-shadow: var(--rf-shadow); }
.rf-cats h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.rf-cats p { color: var(--rf-muted); margin-bottom: 14px; }
.rf-cats a.rf-more { font-weight: 600; color: var(--rf-text); text-decoration: none; }
.rf-cats a.rf-more::after { content: " →"; color: var(--rf-ember); }
.rf-cats .wp-block-image { margin: 0 0 8px; }
.rf-cats .wp-block-image img { border-radius: 10px; aspect-ratio: 4/3; object-fit: contain; background: var(--rf-paper-2); width: 100%; }

/* Réassurance : sobre, factuelle */
.rf-trust .wp-block-column { text-align: left; padding: 22px; border-radius: var(--rf-radius); background: var(--rf-paper); border: 1px solid var(--rf-line); }
.rf-trust .rf-ico { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.rf-trust h3 { font-size: 1.05rem; margin: 0 0 6px; }
.rf-trust p { color: var(--rf-muted); font-size: .95rem; margin: 0; }

/* Section expertise */
.rf-expert ul { padding-left: 1.2em; }
.rf-expert li { margin-bottom: 8px; }

/* FAQ (bloc Détails natif) */
.rf-faq details { border: 1px solid var(--rf-line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; background: var(--rf-paper); }
.rf-faq summary { font-weight: 600; padding: 12px 0; cursor: pointer; list-style: none; position: relative; padding-right: 30px; }
.rf-faq summary::-webkit-details-marker { display: none; }
.rf-faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; color: var(--rf-ember); font-size: 1.3rem; font-weight: 600; }
.rf-faq details[open] summary::after { content: "–"; }
.rf-faq details p { color: #374151; }

/* Bandeau CTA */
.rf-cta { background: linear-gradient(120deg, var(--rf-ink-2), var(--rf-ink-3)); color: #fff; border-radius: var(--rf-radius); padding: 40px; }
.rf-cta h2 { color: #fff; margin-top: 0; }

/* =========================================================================
   WooCommerce
   ========================================================================= */
/* Grille boutique */
.woocommerce ul.products li.product { background: var(--rf-paper); border: 1px solid var(--rf-line); border-radius: var(--rf-radius); padding: 14px 14px 18px; transition: transform .2s ease, box-shadow .2s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--rf-shadow); }
.woocommerce ul.products li.product a img { border-radius: 10px; background: var(--rf-paper-2); aspect-ratio: 1/1; object-fit: contain; padding: 8px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .astra-shop-summary-wrap .woocommerce-loop-product__title { font-size: 1rem; line-height: 1.35; min-height: 2.7em; }
.woocommerce ul.products li.product .price { font-weight: 700; color: var(--rf-text); }
.woocommerce ul.products li.product .price del { color: var(--rf-muted); font-weight: 400; margin-right: 6px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .ast-woo-product-category { color: var(--rf-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.woocommerce span.onsale { background: var(--rf-ember); color: #fff; font-weight: 700; border-radius: 999px; padding: 4px 10px; font-size: .78rem; min-height: 0; line-height: 1.4; left: 18px; top: 18px; }

/* Fiche produit */
.woocommerce div.product .product_title { letter-spacing: -.01em; }
.woocommerce div.product p.price { font-size: 1.6rem; font-weight: 700; color: var(--rf-text); }
.woocommerce div.product p.price del { color: var(--rf-muted); font-weight: 400; font-size: 1.1rem; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description { color: #374151; }
.woocommerce div.product form.cart .button { padding: 14px 28px; }
.woocommerce div.product .woocommerce-product-gallery img { border-radius: var(--rf-radius); background: var(--rf-paper-2); }
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img { border-radius: 8px; border: 2px solid transparent; }
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img.flex-active { border-color: var(--rf-ember); }
.rf-reassurance { list-style: none; margin: 18px 0 0; padding: 16px 18px; border: 1px solid var(--rf-line); border-radius: 12px; background: var(--rf-paper-2); font-size: .93rem; }
.rf-reassurance li { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.rf-reassurance a { color: var(--rf-text); text-decoration: underline; text-decoration-color: var(--rf-line); text-underline-offset: 3px; }
.rf-reassurance a:hover { text-decoration-color: var(--rf-ember); }
.rf-ico { width: 1.4em; text-align: center; }
.woocommerce div.product .product_meta { font-size: .9rem; color: var(--rf-muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--rf-ember); }
.woocommerce div.product .woocommerce-tabs .panel table.shop_attributes th { width: 30%; color: var(--rf-text); }
.woocommerce div.product .woocommerce-tabs .panel table th { text-align: left; }
.rf-links { padding-left: 1.2em; }
.woocommerce table.shop_attributes { border-radius: 10px; overflow: hidden; }

/* Panier / commande */
.woocommerce-cart table.shop_table, .woocommerce-checkout #customer_details, .woocommerce-checkout #order_review { border-radius: var(--rf-radius); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border-radius: 8px; padding: 12px; }
.wc-block-components-checkout-step__title { font-weight: 700; }

/* Messages */
.woocommerce-message, .woocommerce-info { border-top-color: var(--rf-ember); }

/* Pied de page */
.site-footer a:hover { color: var(--rf-ember); }
.rf-footer-note { font-size: .85rem; color: #94a3b8; }

/* Pages légales et infos : lisibilité */
.rf-legal h2 { font-size: 1.35rem; margin-top: 2em; }
.rf-legal table { font-size: .95rem; }
.rf-placeholder { background: #fff7ed; border: 1px dashed var(--rf-ember); border-radius: 8px; padding: 12px 14px; color: #9a3412; }

/* Guides d'achat */
.rf-guide .wp-block-table th { background: var(--rf-paper-2); }

/* Mobile */
@media (max-width: 921px) {
	.rf-section { padding: 48px 0; }
	.rf-hero h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
	.rf-hero .wp-block-columns { gap: 18px; }
	.rf-cats .wp-block-column { padding: 18px; }
	.woocommerce ul.products li.product { padding: 10px 10px 14px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .92rem; }
	.rf-cta { padding: 26px; }
}

/* Correctifs après vérification visuelle */
.rf-hero h1, .rf-hero h2, .rf-hero h3 { color: #fff; }
.rf-hero .rf-lead { color: #cbd5e1; }
.site-title a::after { content: "."; color: var(--rf-ember); }
.site-footer .footer-widget-area h2.widget-title, .site-footer .widget-title { color: #fff; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer .footer-widget-area .menu li { margin-bottom: 8px; }
.site-footer .footer-widget-area .menu a { color: #e5e7eb; }
.site-footer .footer-widget-area .menu a:hover { color: var(--rf-ember); }
.site-footer .ast-builder-html-element, .site-footer .footer-widget-area { color: #cbd5e1; }
.site-footer .rf-footer-brand { margin-bottom: 8px; }
.ast-above-header-bar .rf-topbar { color: #cbd5e1; }

/* Contenu éditorial sous la grille des catégories */
.rf-cat-content { margin-top: 56px; clear: both; }
.rf-cat-section { padding: 44px 0; border-top: 1px solid var(--rf-line); }
.rf-cat-section:first-child { border-top: 0; padding-top: 24px; }
.rf-cat-section--soft { background: var(--rf-paper-2); border-radius: var(--rf-radius); padding: 44px 36px; border-top: 0; margin: 12px 0; }
.rf-cat-section--dark { background: var(--rf-ink); color: #e5e7eb; border-radius: var(--rf-radius); padding: 44px 36px; border-top: 0; margin: 12px 0; }
.rf-cat-section--dark h2, .rf-cat-section--dark h3 { color: #fff; }
.rf-cat-section--dark p, .rf-cat-section--dark li { color: #cbd5e1; }
.rf-cat-section h2 { font-size: 1.7rem; margin-top: 0; }
.rf-cat-section .rf-lead { max-width: 70ch; }
.rf-cat-section .wp-block-table table { border-collapse: collapse; }
.rf-cat-section .wp-block-table th { background: var(--rf-paper-2); text-align: left; }
.rf-cat-section .wp-block-table td, .rf-cat-section .wp-block-table th { padding: 12px 14px; border: 1px solid var(--rf-line); vertical-align: top; }
.rf-cat-cards .wp-block-column { background: var(--rf-paper); border: 1px solid var(--rf-line); border-radius: 12px; padding: 22px; }
.rf-cat-cards h3 { font-size: 1.05rem; margin: 6px 0 8px; }
.rf-cat-cards p { color: var(--rf-muted); font-size: .95rem; margin-bottom: 8px; }
.rf-cat-cards .rf-ico { font-size: 1.5rem; display: block; }
@media (max-width: 921px) {
	.rf-cat-content { margin-top: 36px; }
	.rf-cat-section { padding: 30px 0; }
	.rf-cat-section--soft, .rf-cat-section--dark { padding: 28px 20px; }
	.rf-cat-section .wp-block-table { overflow-x: auto; }
}

/* Les groupes "constrained" centrent les enfants à largeur limitée : on garde le texte à gauche */
.rf-cat-section > .rf-lead, .rf-section > .rf-lead, .rf-cat-section > p, .rf-section > p { max-width: none; }
@media (min-width: 922px) {
	.rf-cat-section > .rf-lead, .rf-section > .rf-lead { padding-right: 28%; }
	.rf-cat-section > p:not(.rf-lead):not(.rf-eyebrow) { padding-right: 18%; }
}

/* Guides d'achat : vignettes non déformées, cadre 4/3 uniforme */
.ast-article-post .post-thumb-img-content img, .blog-layout-4 .post-thumb img, .ast-blog-layout-4-grid .post-thumb img {
	width: 100%; height: auto; aspect-ratio: 4 / 3 !important; object-fit: contain !important; background: var(--rf-paper-2); border-radius: 10px; padding: 12px; box-sizing: border-box;
}

/* Tiroir panier */
#astra-mobile-cart-drawer .astra-cart-drawer-title { font-weight: 700; }
#astra-mobile-cart-drawer .woocommerce-mini-cart__buttons .button { width: 100%; text-align: center; margin-bottom: 8px; }
#astra-mobile-cart-drawer .woocommerce-mini-cart__buttons .button.checkout { background: var(--rf-ember); }

/* Indicateur stock faible */
.rf-low-stock { display: inline-flex; align-items: center; gap: 7px; color: #b45309; font-weight: 600; font-size: .92rem; margin: 2px 0 12px; }
.rf-low-stock--loop { font-size: .8rem; margin: 4px 0 6px; }
.rf-low-dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.2); flex: 0 0 auto; }
