/*
Theme Name: WiPlay
Theme URI: https://example.com/wiplay
Author: OpenAI
Description: Thème WooCommerce responsive inspiré d'une boutique gaming moderne, avec bannière, catégories, produits vedettes et nouveautés.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: wiplay
*/
:root{--wp-yellow:#ffc928;--wp-ink:#171923;--wp-muted:#6b7280;--wp-soft:#f4f5f7;--wp-radius:16px;--wp-shadow:0 8px 24px rgba(17,24,39,.08)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--wp-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:#fff;line-height:1.55}
a{color:inherit;text-decoration:none}
a:hover{color:#a66e00}
img{max-width:100%;height:auto;display:block}
button,input,select,textarea{font:inherit}
.site-topline{background:var(--wp-yellow);padding:7px 15px;text-align:center;font-size:12px;font-weight:700;letter-spacing:.02em}
.site-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid #eee}
.header-inner{max-width:1180px;margin:auto;padding:15px 22px;display:flex;align-items:center;gap:28px}
.site-branding{display:flex;align-items:center;gap:9px;min-width:max-content;font-size:23px;font-weight:900;letter-spacing:-1px}
.brand-mark{width:31px;height:31px;display:grid;place-items:center;background:#171923;color:var(--wp-yellow);border-radius:9px;font-size:19px}
.primary-nav{margin-left:auto}
.primary-nav ul{display:flex;align-items:center;gap:24px;list-style:none;padding:0;margin:0}
.primary-nav a{font-size:13px;font-weight:650}
.header-actions{display:flex;align-items:center;gap:13px}
.header-icon{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;border-radius:50%;background:#f3f4f6;font-size:17px}
.menu-toggle{display:none;border:0;background:var(--wp-yellow);padding:9px 12px;border-radius:9px;font-weight:800}
main{min-height:60vh}
.container{width:min(1120px,calc(100% - 36px));margin-inline:auto}
.hero{margin:22px auto 0;max-width:1180px;padding:0 18px}
.hero-panel{min-height:300px;border-radius:18px;overflow:hidden;position:relative;display:flex;align-items:center;padding:42px 6%;color:#fff;background:radial-gradient(circle at 75% 35%,rgba(122,79,171,.95),transparent 30%),radial-gradient(circle at 88% 90%,rgba(237,111,104,.9),transparent 28%),linear-gradient(112deg,#17182d 0%,#272343 52%,#55416d 100%)}
.hero-panel:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(15,17,34,.28),transparent 80%);pointer-events:none}
.hero-copy{position:relative;z-index:2;max-width:430px}
.hero-eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.18em;color:var(--wp-yellow);font-weight:800}
.hero h1{font-size:clamp(29px,4vw,43px);line-height:1.08;letter-spacing:-1.5px;margin:10px 0 18px;color:#fff}
.hero p{max-width:340px;color:#e8e7f1;margin:0 0 22px}
.btn,.button,button.button,a.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{display:inline-flex;align-items:center;justify-content:center;background:var(--wp-yellow)!important;color:#1b1b1b!important;border:0!important;border-radius:9px;padding:11px 18px;font-weight:800;font-size:13px;transition:transform .2s,filter .2s}
.btn:hover,.button:hover,.woocommerce a.button:hover{filter:brightness(.96);transform:translateY(-1px)}
.hero-art{position:absolute;right:4%;bottom:0;width:49%;height:90%;display:flex;align-items:flex-end;justify-content:center;gap:10px;opacity:.98}
.gamer{width:24%;height:72%;border-radius:48% 48% 12px 12px  ;position:relative;box-shadow:inset 0 18px 0 rgba(255,255,255,.12);transform:rotate(var(--tilt,0deg));background:var(--shirt,#f0a05b)}
.gamer:before{content:"";position:absolute;width:54%;aspect-ratio:1;border-radius:50%;background:var(--skin,#c98761);top:-23%;left:23%;box-shadow:inset -7px -3px 0 rgba(0,0,0,.08)}
.gamer:after{content:"🎮";position:absolute;left:50%;top:35%;transform:translateX(-50%) rotate(-8deg);font-size:clamp(19px,3vw,38px);filter:drop-shadow(0 4px 4px #0004)}
.gamer:nth-child(1){height:60%;--shirt:#39bda2;--skin:#b87855;--tilt:-7deg}
.gamer:nth-child(2){height:78%;--shirt:#ef725c;--skin:#f1c49a;--tilt:4deg}
.gamer:nth-child(3){height:86%;--shirt:#4c9fd7;--skin:#75452f;--tilt:-2deg}
.gamer:nth-child(4){height:67%;--shirt:#b27ed4;--skin:#e4a17d;--tilt:7deg}
.section{padding:28px 0}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:16px}
.section-heading h2{margin:0;font-size:23px;letter-spacing:-.7px}
.section-heading p{margin:4px 0 0;color:var(--wp-muted);font-size:13px}
.text-link{font-size:13px;font-weight:800;color:#8b6500}
.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.category-card{min-height:105px;border-radius:14px;background:var(--wp-soft);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 20px;overflow:hidden;transition:transform .2s}
.category-card:hover{transform:translateY(-3px)}
.category-card h3{font-size:16px;line-height:1.2;margin:0 0 12px;max-width:150px}
.category-card .category-emoji{font-size:47px;filter:drop-shadow(0 5px 5px #0002)}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.product-card{border:1px solid #eceef1;border-radius:14px;padding:10px;background:#fff;position:relative;min-width:0;transition:box-shadow .2s,transform .2s}
.product-card:hover{box-shadow:var(--wp-shadow);transform:translateY(-3px)}
.product-thumb{height:155px;background:#f6f7f9;border-radius:9px;display:grid;place-items:center;overflow:hidden;margin-bottom:10px}
.product-thumb img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.product-thumb .placeholder{font-size:65px}
.sale-tag{position:absolute;top:17px;left:16px;background:#f08b4f;color:#fff;border-radius:5px;font-size:10px;font-weight:900;padding:3px 6px}
.product-card h3{font-size:13px;line-height:1.35;margin:0 0 6px;min-height:35px}
.product-card .price{font-size:13px;font-weight:800;margin:5px 0;color:#20212a}
.product-card .price del{font-size:11px;color:#9ca3af;font-weight:500}
.product-card .price ins{text-decoration:none}
.product-rating{color:#f0b323;font-size:12px;letter-spacing:1px;margin:3px 0 8px}
.product-card .button{width:100%;padding:9px 8px;font-size:11px}
.new-releases{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.release-card{border-radius:10px;overflow:hidden;background:#eee;aspect-ratio:3/4;position:relative}
.release-card img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.release-card:hover img{transform:scale(1.05)}
.release-placeholder{height:100%;display:grid;place-items:center;text-align:center;padding:8px;background:linear-gradient(145deg,#24283a,#6a5269);color:white;font-weight:900;font-size:14px}
.testimonial{background:#fafafa;border-radius:16px;padding:25px;text-align:center;margin:12px 0 32px}
.testimonial .stars{color:#f2b82b;letter-spacing:3px}
.testimonial blockquote{max-width:620px;margin:10px auto;color:#555;font-size:14px}
.testimonial strong{font-size:12px}
.site-footer{background:#f4f5f7;margin-top:25px;padding:32px 0 18px}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr) 1.4fr;gap:22px}
.footer-col h3{font-size:13px;margin:0 0 12px}
.footer-col ul{list-style:none;padding:0;margin:0}
.footer-col li{font-size:12px;color:#5b606b;margin:7px 0}
.payment-badges{display:flex;flex-wrap:wrap;gap:5px}
.payment-badges span{background:#fff;border:1px solid #e5e7eb;border-radius:4px;padding:4px 6px;font-size:10px;font-weight:900}
.footer-brand{text-align:center;font-size:27px;font-weight:950;letter-spacing:-1px;padding:22px 0 8px}
.footer-bottom{text-align:center;color:#8b909a;font-size:11px}
.woocommerce .woocommerce-breadcrumb{font-size:12px;color:#777;margin:22px 0}
.woocommerce ul.products li.product{border:1px solid #eceef1;border-radius:14px;padding:10px;overflow:hidden}
.woocommerce ul.products li.product a img{border-radius:8px;background:#f6f7f9}
.woocommerce span.onsale{background:#f08b4f;min-height:auto;line-height:1.8;padding:0 8px;border-radius:5px}
.woocommerce div.product div.images img{border-radius:14px}
.woocommerce div.product .product_title{letter-spacing:-.8px}
.woocommerce-message,.woocommerce-info{border-top-color:var(--wp-yellow)}
.woocommerce-message:before,.woocommerce-info:before{color:#b58a00}
.woocommerce input.input-text,.woocommerce select,.woocommerce textarea{border:1px solid #dfe2e7;border-radius:8px;padding:10px}
.site-main{padding-bottom:30px}
@media(max-width:850px){.header-inner{gap:14px}.primary-nav ul{gap:13px}.hero-art{right:-2%;width:50%;opacity:.75}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-thumb{height:175px}.footer-grid{grid-template-columns:repeat(3,1fr)}.footer-col:last-child{grid-column:span 3}}
@media(max-width:640px){.header-inner{padding:12px 16px;flex-wrap:wrap}.site-branding{font-size:21px}.menu-toggle{display:inline-flex;margin-left:auto}.primary-nav{display:none;order:4;width:100%;margin:0}.primary-nav.is-open{display:block}.primary-nav ul{display:flex;flex-direction:column;align-items:flex-start;gap:0;padding:8px 0}.primary-nav li{width:100%;border-top:1px solid #f0f0f0}.primary-nav a{display:block;padding:11px 3px}.header-actions{gap:6px}.hero{padding:0 12px;margin-top:12px}.hero-panel{min-height:320px;padding:28px 23px;align-items:flex-start}.hero-copy{max-width:290px}.hero h1{font-size:31px}.hero p{font-size:13px;max-width:235px}.hero-art{width:70%;height:43%;right:-3%;opacity:.42}.gamer{height:80%!important}.container{width:calc(100% - 28px)}.section{padding:22px 0}.section-heading h2{font-size:20px}.category-grid{grid-template-columns:1fr;gap:10px}.category-card{min-height:92px}.category-card .category-emoji{font-size:40px}.product-grid{gap:10px}.product-card{padding:8px}.product-thumb{height:135px}.product-card h3{font-size:12px}.new-releases{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.footer-grid{grid-template-columns:repeat(2,1fr)}.footer-col:last-child{grid-column:span 2}.testimonial{padding:20px 14px}.woocommerce .col2-set,.woocommerce-page .col2-set{display:block}.woocommerce .col2-set .col-1,.woocommerce .col2-set .col-2{float:none;width:100%}}
