/*
Theme Name: HORIBL Shop
Theme URI: https://horibl-staging.solofable.com
Description: Boutique de HORIBL, « le vêtement du joueur, brodé et discret » : thème enfant de Twenty Twenty-Five construit par E-com Factory sur le symbole H griffu (papier blanc cassé, encre noire, graphite, un seul vert acide réservé aux yeux du signe ; Space Grotesk, Inter, JetBrains Mono).
Author: E-com Factory
Template: twentytwentyfive
Version: 0.1.2
Requires at least: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: horibl-shop
*/

/* ---- Jetons (repris de theme.json) ---------------------------------------- */
:root {
	--hb-paper: var(--wp--preset--color--paper);
	--hb-paper-2: var(--wp--preset--color--paper-2);
	--hb-line: var(--wp--preset--color--line);
	--hb-steel: var(--wp--preset--color--steel);
	--hb-graphite: var(--wp--preset--color--graphite);
	--hb-ink: var(--wp--preset--color--ink);
	--hb-cream: var(--wp--preset--color--cream);
	--hb-signal: var(--wp--preset--color--signal);
	--hb-display: var(--wp--preset--font-family--display);
	--hb-mono: var(--wp--preset--font-family--mono);
	--hb-gutter: max(20px, calc((100% - 1280px) / 2));
}

/* ---- Le signe : une couleur ; les yeux ne s'allument qu'en « signal » ------ */
.hb-symbol { display: block; fill: currentColor; }
.hb-symbol .sig { fill: none; }
.hb-symbol.hb-signal .sig { fill: var(--hb-signal); }
.hb-logotype { display: block; fill: currentColor; height: auto; }

/* ---- Bandeaux du haut ----------------------------------------------------- */
.hb-staging { background: var(--hb-signal); color: var(--hb-ink); text-align: center; font: 500 12px/1.4 var(--hb-mono); letter-spacing: .04em; padding: 6px 12px; }
.hb-bar { background: var(--hb-ink); color: var(--hb-cream); text-align: center; font: 500 12px/1.4 var(--hb-mono); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; }

/* ---- En-tête -------------------------------------------------------------- */
.hb-header { border-bottom: 1px solid var(--hb-line); }
.hb-brand { display: flex; align-items: center; gap: 12px; color: var(--hb-ink); text-decoration: none; }
.hb-brand .hb-symbol { width: 40px; height: 40px; }
.hb-brand .hb-logotype { width: 118px; }
.hb-nav a { font-family: var(--hb-display); font-weight: 600; font-size: 13.5px; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.hb-nav a:hover { color: var(--hb-steel); }
.hb-nav .hb-nav-ltd a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; vertical-align: middle; background: var(--hb-signal); }
@media (max-width: 600px) { .hb-brand .hb-logotype { width: 92px; } .hb-brand .hb-symbol { width: 32px; height: 32px; } }

/* ---- Mise en page commune ------------------------------------------------- */
.hb-wrap { max-width: 1280px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.hb-label { font: 500 12px/1.3 var(--hb-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hb-steel); margin: 0 0 12px; }
.hb-lead { font-size: 1.125rem; max-width: 60ch; }
.hb-note { font: 500 12.5px/1.5 var(--hb-mono); color: var(--hb-steel); border-left: 3px solid var(--hb-signal); padding-left: 12px; }
.home .wp-block-post-title, body:has(.hb-page) .wp-block-post-title { display: none; }
.home .wp-block-post-content > .alignfull { margin-top: 0; margin-bottom: 0; }
/* Accueil : le héros colle à l'en-tête et la dernière section au pied de page (les marges du gabarit sont en style en ligne). */
.home main { margin-top: 0 !important; margin-bottom: 0 !important; }
.home main > .wp-block-group { padding-top: 0 !important; padding-bottom: 0 !important; }
.home .wp-block-post-content { margin-top: 0 !important; margin-bottom: 0 !important; }
.home footer.wp-block-template-part, .home .wp-site-blocks > footer { margin-block-start: 0 !important; }

/* ---- Héros : noir, le signe en grand, les yeux allumés -------------------- */
.hb-hero { background: var(--hb-ink); color: var(--hb-cream); padding-block: clamp(48px, 8vw, 104px); }
.hb-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.hb-hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: .98; margin: 0 0 20px; }
.hb-hero h1 span { color: var(--hb-steel); }
.hb-hero .hb-label { color: var(--hb-steel); }
.hb-hero .hb-lead { color: #c9c6be; }
.hb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hb-btn-light { background: var(--hb-cream) !important; color: var(--hb-ink) !important; }
.hb-btn-ghost { background: transparent !important; color: var(--hb-cream) !important; box-shadow: inset 0 0 0 1px rgba(236, 228, 210, .45); }
.hb-hero-mark { display: grid; justify-items: center; gap: 14px; color: var(--hb-cream); }
.hb-hero-mark .hb-symbol { width: min(320px, 70%); height: auto; }
@media (max-width: 800px) { .hb-hero-grid { grid-template-columns: 1fr; } .hb-hero-mark { order: -1; } .hb-hero-mark .hb-symbol { width: 140px; } }

/* ---- Bande des engagements ------------------------------------------------ */
.hb-strip { background: var(--hb-paper-2); border-block: 1px solid var(--hb-line); }
.hb-strip .hb-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-block: 14px; font: 500 12.5px/1.4 var(--hb-mono); text-transform: uppercase; letter-spacing: .08em; }
.hb-strip span::before { content: "■ "; color: var(--hb-ink); font-size: 9px; vertical-align: 2px; }

/* ---- Sections ------------------------------------------------------------- */
.hb-section { padding-top: clamp(48px, 6vw, 80px); }
.hb-section h2 { margin: 0; }
.hb-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 8px; }
.hb-sub { color: var(--hb-steel); margin: 8px 0 0; }
.hb-more { font: 600 13px/1 var(--hb-display); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; border-bottom: 2px solid var(--hb-ink); padding-bottom: 4px; }

/* ---- Grilles de produits (codes courts) ----------------------------------- */
.hb-grid { padding: 24px var(--hb-gutter) 8px; }
.hb-grid ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.hb-grid ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hb-grid ul.products::before, .hb-grid ul.products::after { display: none; }
.hb-grid ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
@media (max-width: 900px) { .hb-grid ul.products, .hb-grid ul.products.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .hb-grid { padding-left: 16px; padding-right: 16px; } .hb-grid ul.products, .hb-grid ul.products.columns-3 { gap: 12px; } ul.products li.product .woocommerce-loop-product__title { font-size: 13px !important; } }

/* Cartes produit : image sur papier ombré, nom en capitales, prix en mono. */
ul.products li.product, .wc-block-product-template > li { background: transparent; border: 0; padding: 0 !important; text-align: left; }
ul.products li.product img, .wc-block-components-product-image img, .wp-block-woocommerce-product-image img { background: var(--hb-paper-2); border-radius: 0; margin-bottom: 12px !important; transition: filter .2s ease; }
ul.products li.product:hover img { filter: brightness(.96); }
ul.products li.product .woocommerce-loop-product__title, .wc-block-components-product-name, .wp-block-post-title a { font-family: var(--hb-display); font-weight: 600; font-size: 15px !important; text-transform: uppercase; letter-spacing: .03em; line-height: 1.25; padding: 0 !important; }
.woocommerce-Price-amount, .wc-block-components-product-price, .wp-block-woocommerce-product-price, ul.products li.product .price { font-family: var(--hb-mono); color: var(--hb-ink) !important; font-weight: 500; font-size: 14px; }
ul.products li.product .button { margin-top: 10px; font-size: 12px !important; padding: .7em 1.2em !important; }
.onsale, .wc-block-components-product-sale-badge { background: var(--hb-signal) !important; color: var(--hb-ink) !important; border: 0 !important; border-radius: 0 !important; font: 500 11px/1 var(--hb-mono) !important; text-transform: uppercase; }

/* ---- Rayons --------------------------------------------------------------- */
.hb-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.hb-tile { display: grid; gap: 4px; text-decoration: none; color: var(--hb-ink); }
.hb-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--hb-paper-2); }
.hb-tile-name { font: 700 18px/1.2 var(--hb-display); text-transform: uppercase; margin-top: 8px; }
.hb-tile-note { font: 500 12px/1.4 var(--hb-mono); color: var(--hb-steel); }
@media (max-width: 800px) { .hb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Le signe expliqué ---------------------------------------------------- */
.hb-sign { background: var(--hb-graphite); color: var(--hb-cream); margin-top: clamp(48px, 6vw, 80px); padding-block: clamp(48px, 6vw, 80px); }
.hb-sign h2 { color: #fff; margin: 0 0 16px; }
.hb-sign p { max-width: 58ch; color: #c9c6be; }
.hb-sign .hb-label { color: var(--hb-steel); }
.hb-sign-grid { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hb-sign-mark { display: grid; place-items: center; aspect-ratio: 1; max-width: 300px; background: #26272d; }
.hb-sign-mark .hb-symbol { width: 38%; color: #34363c; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .06)); }
@media (max-width: 800px) { .hb-sign-grid { grid-template-columns: 1fr; } .hb-sign-mark { max-width: 200px; } }

/* ---- Questions ------------------------------------------------------------ */
.hb-faq { padding-bottom: clamp(48px, 6vw, 80px); }
.hb-faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 2px solid var(--hb-ink); padding-top: 28px; }
.hb-faq h3 { font-size: 18px; text-transform: uppercase; margin: 0 0 8px; }
.hb-faq p { color: var(--hb-graphite); margin: 0; }
@media (max-width: 800px) { .hb-faq-grid { grid-template-columns: 1fr; } }

/* ---- Pages d'aide --------------------------------------------------------- */
.hb-page { padding-block: 24px 64px; }
.hb-page h1 { margin: 0 0 16px; }
.hb-page h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.hb-page ul { padding-left: 20px; }
.hb-brand-mark { width: 120px; margin: 32px 0; color: var(--hb-ink); }
.hb-table-wrap { overflow-x: auto; }
.hb-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.hb-table th { font: 500 11.5px/1.3 var(--hb-mono); text-transform: uppercase; letter-spacing: .08em; text-align: left; border-bottom: 2px solid var(--hb-ink); padding: 10px 12px 10px 0; }
.hb-table td { border-bottom: 1px solid var(--hb-line); padding: 10px 12px 10px 0; }

/* ---- Fiche produit -------------------------------------------------------- */
.single-product .product_title, .wp-block-post-title { text-transform: uppercase; }
.single-product .summary .price { font-family: var(--hb-mono); font-size: 1.25rem; }
.variations select { border: 1px solid var(--hb-ink); border-radius: 0; padding: 10px 12px; font: 500 14px var(--hb-mono); background: var(--hb-paper); }
.variations th.label label { font: 500 12px var(--hb-mono); text-transform: uppercase; letter-spacing: .08em; }
.hb-promise { list-style: none; padding: 16px 0 0; margin: 20px 0 0; border-top: 1px solid var(--hb-line); display: grid; gap: 8px; font-size: 14px; }
.hb-promise li::before { content: "■"; font-size: 8px; vertical-align: 2px; margin-right: 10px; }
.hb-promise-links { display: flex; gap: 18px; font: 500 12.5px var(--hb-mono); text-transform: uppercase; letter-spacing: .06em; }

/* ---- Pied de page --------------------------------------------------------- */
.hb-footer { background: var(--hb-ink); color: #c9c6be; padding-block: 56px 24px; margin-top: 0; }
.hb-footer a { color: var(--hb-cream); text-decoration: none; }
.hb-footer a:hover { color: #fff; text-decoration: underline; }
.hb-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.hb-footer .hb-label { color: var(--hb-steel); }
.hb-footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.hb-footer-brand { color: var(--hb-cream); display: grid; gap: 14px; align-content: start; }
.hb-footer-brand .hb-symbol { width: 48px; height: 48px; }
.hb-footer-brand .hb-logotype { width: 130px; }
.hb-footer-brand p { max-width: 38ch; font-size: 14px; color: #c9c6be; margin: 0; }
.hb-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid #2a2b31; margin-top: 40px; padding-top: 18px; font: 500 12px var(--hb-mono); color: var(--hb-steel); }
@media (max-width: 800px) { .hb-footer-grid { grid-template-columns: 1fr 1fr; } .hb-footer-brand { grid-column: 1 / -1; } }
footer.wp-block-template-part { margin-top: 0; }

/* ---- Focus visible -------------------------------------------------------- */
a:focus-visible, button:focus-visible, .wp-element-button:focus-visible, select:focus-visible { outline: 2px solid var(--hb-signal); outline-offset: 2px; }
