/*
Theme Name: Afrostar Premium V5
Theme URI: https://example.com/afrostar-v4
Author: Perplexity
Description: Thème WordPress premium orienté média africain, e-commerce et onboarding, prêt pour un marché premium.
Version: 5.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: afrostar
*/
:root,[data-theme="dark"]{--color-bg:#0d0c0a;--color-surface:#121110;--color-surface-2:#171513;--color-surface-offset:#1e1c19;--color-divider:#302d24;--color-border:#3a3628;--color-text:#f0ece3;--color-text-muted:#8a8474;--color-text-inverse:#0d0c0a;--color-primary:var(--afrostar-primary,#e8a020);--color-accent:var(--afrostar-accent,#d42b2b);--radius-md:.5rem;--radius-lg:.75rem;--radius-xl:1rem;--radius-full:9999px;--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-5:1.25rem;--space-6:1.5rem;--space-8:2rem;--space-10:2.5rem;--space-12:3rem;--space-16:4rem;--text-xs:clamp(.75rem,.7rem + .25vw,.875rem);--text-sm:clamp(.875rem,.8rem + .35vw,1rem);--text-base:clamp(1rem,.95rem + .25vw,1.125rem);--text-lg:clamp(1.125rem,1rem + .75vw,1.5rem);--text-xl:clamp(1.5rem,1.2rem + 1.25vw,2.25rem);--text-2xl:clamp(2rem,1.2rem + 2.5vw,3.5rem);--font-display:'Boska',Georgia,serif;--font-body:'Cabinet Grotesk',Arial,sans-serif;--content-wide:1280px}
[data-theme="light"]{--color-bg:#faf8f2;--color-surface:#f5f2ea;--color-surface-2:#f2ecdf;--color-surface-offset:#e8e3d6;--color-divider:#c8c2b0;--color-border:#bdb79f;--color-text:#1a1812;--color-text-muted:#6b6450;--color-text-inverse:#faf8f2}
*,:before,:after{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:var(--font-body);font-size:var(--text-base);line-height:1.6;background:var(--color-bg);color:var(--color-text)}a{text-decoration:none;color:inherit}img{display:block;max-width:100%;height:auto}ul{list-style:none;padding:0;margin:0}.screen-reader-text{position:absolute;left:-9999px}.site{overflow:hidden}.top-bar{background:var(--color-accent);color:#fff;padding:var(--space-2) var(--space-6);display:flex;justify-content:space-between;gap:var(--space-4);font-size:var(--text-xs);font-weight:700;text-transform:uppercase;letter-spacing:.08em}.site-header{position:sticky;top:0;z-index:100;background:color-mix(in oklch,var(--color-bg) 90%,transparent);backdrop-filter:blur(16px);border-bottom:1px solid var(--color-divider)}
.nav-main,.nav-secondary-inner,.main-content,.hero,.footer-inner,.footer-bottom,.promo-strip,.wc-container,.feature-row,.editorial-section,.mag-grid,.shop-showcase{max-width:var(--content-wide);margin-inline:auto;padding-inline:var(--space-6)}.nav-main{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:72px;gap:var(--space-6)}.nav-logo{font-family:var(--font-display);font-size:1.6rem;font-weight:700}.mark{color:var(--color-primary)}.nav-links .menu,.secondary-menu .menu,.footer-menu .menu{display:flex;gap:0;flex-wrap:wrap}.nav-links a,.secondary-menu a{padding:var(--space-2) var(--space-4);font-size:var(--text-sm);font-weight:600;text-transform:uppercase;color:var(--color-text-muted)}.nav-links a:hover,.secondary-menu a:hover,.current-menu-item>a{color:var(--color-primary)}.nav-actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--space-3)}.nav-cta,.button,.wp-element-button,.woocommerce button.button,.woocommerce a.button,.woocommerce input.button{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-3) var(--space-5);border:none;border-radius:var(--radius-full);background:var(--color-primary);color:var(--color-text-inverse)!important;font-weight:700}.nav-icon-btn{background:none;border:none;color:var(--color-text-muted)}
.nav-secondary{border-bottom:1px solid var(--color-divider);background:var(--color-surface);overflow-x:auto}.nav-secondary-inner{height:44px;display:flex;align-items:center}.promo-strip,.hero,.editorial-section,.shop-showcase{padding-top:var(--space-8)}.promo-panel,.hero-main,.hero-card,.article-card,.widget,.ad-panel,.shop-card,.wc-shell,.wc-card,.feature-card,.editorial-card{background:var(--color-surface);border:1px solid var(--color-divider);border-radius:var(--radius-xl);overflow:hidden}.promo-panel{display:grid;grid-template-columns:1.25fr .75fr}.promo-body,.hero-overlay,.article-card-body,.widget,.ad-panel-body,.shop-card-body,.wc-card,.feature-card,.editorial-card-body{padding:var(--space-6)}.promo-title,.hero-title,.entry-title,.archive-title,.wc-heading,.section-title{font-family:var(--font-display);font-size:var(--text-2xl);line-height:1.1;margin:0 0 var(--space-3)}.section-title{font-size:var(--text-xl)}.promo-label,.article-card-cat,.ad-label,.wc-chip,.eyebrow{display:inline-flex;padding:var(--space-2) var(--space-3);border-radius:var(--radius-full);font-size:var(--text-xs);font-weight:800;text-transform:uppercase;background:var(--color-primary);color:var(--color-text-inverse)}.ad-label{background:var(--color-accent);color:#fff}.promo-media img,.hero-main img,.hero-card img,.article-card img,.shop-card img,.editorial-card img{width:100%;object-fit:cover}.hero-grid{display:grid;grid-template-columns:1fr 360px;gap:var(--space-4)}.hero-side{display:flex;flex-direction:column;gap:var(--space-4)}.hero-main img{aspect-ratio:16/10}.hero-card img,.editorial-card img{aspect-ratio:16/9}.hero-card-title,.article-card-title,.product_title{font-family:var(--font-display);font-size:var(--text-lg);line-height:1.25;margin:.4rem 0}.section-header{display:flex;align-items:baseline;gap:var(--space-4);margin:var(--space-12) 0 var(--space-6);padding-bottom:var(--space-4);border-bottom:1px solid var(--color-divider)}.section-label,.widget-title{font-size:var(--text-xs);font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--color-primary)}.main-content{padding-block:var(--space-12);display:grid;grid-template-columns:1fr 320px;gap:var(--space-12)}.card-grid,.shop-grid,.mag-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-6)}.feature-row{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-6);padding-top:var(--space-12)}.article-card img,.shop-card img{aspect-ratio:16/10}.article-card-excerpt,.entry-summary,.woocommerce .price,.wc-muted{color:var(--color-text-muted);font-size:var(--text-sm)}.sidebar{display:flex;flex-direction:column;gap:var(--space-8)}.search-field,input,select,textarea{width:100%;padding:var(--space-3) var(--space-4);background:var(--color-surface-offset);border:1px solid var(--color-border);border-radius:var(--radius-md);color:var(--color-text)}.site-footer{background:var(--color-surface);border-top:1px solid var(--color-divider);padding:var(--space-16) 0 var(--space-8);margin-top:var(--space-12)}.footer-inner{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:var(--space-8);margin-bottom:var(--space-12)}.footer-bottom{padding-top:var(--space-6);border-top:1px solid var(--color-divider);display:flex;justify-content:space-between;gap:var(--space-4);font-size:var(--text-xs);color:var(--color-text-muted)}
.woocommerce ul.products,.woocommerce-page ul.products{display:grid!important;grid-template-columns:repeat(3,1fr);gap:var(--space-6)}.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{width:auto!important;margin:0!important;background:var(--color-surface);border:1px solid var(--color-divider);border-radius:var(--radius-xl);padding:var(--space-4)}.woocommerce div.product{display:grid;grid-template-columns:1.05fr .95fr;gap:var(--space-8)}.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none!important;width:auto!important;margin:0!important}.woocommerce form.checkout{display:grid;grid-template-columns:1.15fr .85fr;gap:var(--space-8)}.woocommerce-checkout #order_review_heading,.woocommerce-checkout #order_review{grid-column:2}.woocommerce-checkout .col2-set{grid-column:1}.woocommerce-MyAccount-navigation ul{display:grid;gap:var(--space-3)}.woocommerce-MyAccount-navigation a{display:block;padding:var(--space-3) var(--space-4);background:var(--color-surface-2);border:1px solid var(--color-divider);border-radius:var(--radius-lg)}.woocommerce-cart-form,.cart-collaterals,.woocommerce-MyAccount-content{background:var(--color-surface);border:1px solid var(--color-divider);border-radius:var(--radius-xl);padding:var(--space-6)}.woocommerce-message,.woocommerce-info,.woocommerce-error{border-radius:var(--radius-lg);background:var(--color-surface-offset);color:var(--color-text);border-top:3px solid var(--color-primary)}
.admin-welcome-wrap .card,.afrostar-admin-grid .card{background:#fff;border:1px solid #e5e5e5;border-radius:12px;padding:20px}.afrostar-admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.afrostar-checklist li{margin-bottom:10px}
@media (max-width:1024px){.nav-main{grid-template-columns:1fr auto}.nav-links{display:none}.promo-panel,.hero-grid,.main-content,.woocommerce div.product,.woocommerce form.checkout,.feature-row,.afrostar-admin-grid{grid-template-columns:1fr}.hero-side{display:grid;grid-template-columns:1fr 1fr}.card-grid,.shop-grid,.mag-grid,.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:1fr 1fr!important}.footer-inner{grid-template-columns:1fr 1fr}.woocommerce-checkout #order_review_heading,.woocommerce-checkout #order_review,.woocommerce-checkout .col2-set{grid-column:auto}}
@media (max-width:640px){.hero-side,.card-grid,.shop-grid,.mag-grid,.footer-inner,.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:1fr!important}.footer-bottom,.top-bar{flex-direction:column;align-items:flex-start}.nav-cta{display:none}}
