/* ==========================================================================
   Le Ballon Publicitaire — retouches « plus fin, plus léger »
   --------------------------------------------------------------------------
   Feuille unique, chargée APRÈS les styles du thème. Elle ne change ni le
   HTML ni la structure : seulement les graisses, les tailles et les épaisseurs.

   Intégré dans assets/css/refonte-fine.css (chemins des polices corrigés en ../fonts/).
   ========================================================================== */

/* 1. GRAISSES ----------------------------------------------------------------
   Le site utilisait Helvetica Neue Medium pour le texte courant et Bold partout
   ailleurs. On descend d'un cran : Light pour le texte, Medium pour les titres
   et tout ce qui était en gras. */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue-Light.woff2') format('woff2'),
         url('../fonts/HelveticaNeue-Light.woff') format('woff');
    font-weight: 100 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue-Medium.woff2') format('woff2'),
         url('../fonts/HelveticaNeue-Medium.woff') format('woff');
    font-weight: 500 900;
    font-style: normal;
    font-display: swap;
}

/* 2. ÉCHELLE ------------------------------------------------------------------
   Les variables du thème pilotent presque tout : on resserre l'échelle ici. */
:root {
    --fs-xs: 0.6875rem;
    --fs-sm: 0.8125rem;
    --fs-base: 0.9375rem;      /* texte courant : 15 px (choix d’Eric) */
    --fs-md: 1rem;
    --fs-lg: 1.0625rem;
    --fs-xl: 1.1875rem;
    --fs-2xl: 1.375rem;
    --fs-3xl: 1.625rem;
    --fs-4xl: 2rem;
    --fs-5xl: 2.5rem;

    --fw-semibold: 500;
    --fw-bold: 500;

    --color-text: #2a2a2a;
    --radius-md: 6px;

    /* Réglages propres à cette feuille */
    --rf-logo: 168px;
    --rf-label-tracking: 0.14em;
    --rf-hairline: #ececec;
}

body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* 3. EN-TÊTE ------------------------------------------------------------------ */
.topbar { padding: 7px 0; }
.topbar-message { font-family: var(--font-body); font-size: 12px; font-weight: 400; letter-spacing: 0.04em; }

.site-header { padding: 14px 0; }
.site-logo,
.woocommerce-page .site-logo,
.woocommerce .site-logo { max-width: var(--rf-logo); }

.header-phone { gap: 10px; }
.header-phone-icon svg { width: 20px; height: 20px; stroke-width: 1.5; }
.header-phone-label { font-family: var(--font-body); font-size: 9.5px; font-weight: 500; letter-spacing: 0.16em; color: var(--color-text-light); }
.header-phone-number { font-family: var(--font-body); font-size: 16px; font-weight: 500; letter-spacing: 0.02em; }
.header-icon svg { width: 21px; height: 21px; stroke-width: 1.5; }
.header-cart-count { height: 16px; min-width: 16px; padding: 0 4px; font-family: var(--font-body); font-size: 9.5px; font-weight: 500; border-width: 1.5px; }
.header-cart-arrow { font-size: 13px; }

.site-nav { padding: 7px 0; }
.primary-menu, .secondary-menu { gap: var(--space-6); }
.primary-menu .menu-item a,
.secondary-menu .menu-item a { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; }
.primary-menu .menu-item a::after,
.secondary-menu .menu-item a::after { height: 1px; }
.menu-badge { font-family: var(--font-body); font-size: 8.5px; font-weight: 500; letter-spacing: 0.1em; padding: 2px 6px; }
.nav-toggle-bar { width: 20px; height: 1.5px; }

/* 4. BOUTONS ------------------------------------------------------------------ */
.btn,
.hero-slide-cta,
.products-slide-cta { padding: 9px 22px; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }
.btn { border-width: 1px; }

/* 5. ACCUEIL ------------------------------------------------------------------ */
.hero-slide-title { font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -0.01em; }
.hero-slide-subtitle { font-size: clamp(0.85rem, 1.2vw, 1rem); }
.hero-arrow { width: 36px; height: 36px; }
.hero-arrow svg, .products-slider-arrow svg { width: 16px; height: 16px; stroke-width: 1.5; }
.hero-dots, .products-slider-dots { gap: 8px; padding: 5px 10px; }
.hero-dot, .products-slider-dot { width: 7px; height: 7px; }
.hero-dot.is-active, .products-slider-dot.is-active { width: 20px; border-radius: 4px; }
.products-slider-arrow { width: 38px; height: 38px; }

.seo-intro-title { font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 500; }
.products-slide-title { font-size: clamp(1.3rem, 2.1vw, 1.7rem); font-weight: 500; }
.products-slide-features li::before { border-bottom-width: 1.5px; border-left-width: 1.5px; }
.eco-banner-text { font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-weight: 500; }
.feature-icon svg { width: 40px; height: 40px; stroke-width: 1.25; }
.feature-title { font-weight: 500; }
.seo-block-title { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 500; }

/* 6. BOUTIQUE (catégories) ---------------------------------------------------- */
.lbp-breadcrumb { padding: 16px 24px; font-size: 12px; }
.lbp-breadcrumb-current { font-weight: 500; }

.shop-sidebar { gap: 24px; }
.shop-sidebar-block { padding: 22px 20px; border-color: var(--rf-hairline); box-shadow: none; }
/* Les « cases » Catégories / À savoir : plus de pavé gris, un simple libellé fin */
.shop-sidebar-title { background: none; padding: 0; border-radius: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; color: var(--color-text-light); }
.shop-sidebar-divider { background: var(--rf-hairline); }
.shop-sidebar-item a { color: #9c9c9c; }
.shop-sidebar-item a::before { width: 4px; height: 4px; background: #c4c4c4; }
.shop-sidebar-item.is-active a { font-weight: 500; }

.shop-card { border-color: var(--rf-hairline); box-shadow: none; }
.shop-card:hover { box-shadow: 0 0 0 1px var(--color-primary), 0 6px 18px rgba(31, 168, 220, 0.12); }
.shop-card-title { font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; line-height: 1.45; }
.shop-card-price { font-size: 14px; font-weight: 500; }
.shop-seo-card { border-color: var(--rf-hairline); box-shadow: none; }

.woocommerce nav.woocommerce-pagination ul.page-numbers li a,
.woocommerce nav.woocommerce-pagination ul.page-numbers li span { height: 32px; min-width: 32px; font-size: 13px; border-color: var(--rf-hairline); }

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.woocommerce div.product .onsale { font-size: 9.5px; font-weight: 500; letter-spacing: 0.1em; padding: 4px 8px; box-shadow: none; }

/* 7. FICHE PRODUIT ------------------------------------------------------------ */
.woocommerce div.product .single-product-summary .product_title,
.single-product-summary .product_title { font-size: 26px; }
.woocommerce div.product .single-product-summary .price,
.single-product-summary .price { font-size: 20px; }

.woocommerce div.product .single-product-summary .quantity,
.single-product-summary .quantity { height: 42px !important; }
.woocommerce div.product .single-product-summary .quantity input.qty,
.single-product-summary .quantity input.qty { font-size: 14px !important; }
/* :not(#rf) sert uniquement à passer devant les règles !important très spécifiques du thème */
html body form.cart button.single_add_to_cart_button:not(#rf) { height: 42px !important; padding: 0 26px !important; font-size: 12px !important; letter-spacing: 0.12em !important; border-radius: 4px !important; }
html body form.cart button.single_add_to_cart_button:not(#rf)::before { width: 17px !important; height: 17px !important; }

.single-product-tabs-card .wc-tabs li a,
.woocommerce div.product .single-product-tabs-card .wc-tabs li a { font-size: 11.5px; letter-spacing: 0.14em; border-bottom-width: 1px; }
.single-product-tabs-card .woocommerce-Tabs-panel h2,
.leballon-description-heading { font-size: 16px; }
.leballon-description-icon { width: 44px; height: 44px; }

/* Configurateur de devis */
.lbc-section-title { font-size: 16px; }
.lbc-forme-select, .lbc-taille-select, .lbc-impression-select, .lbc-tranche-select { height: 42px; font-size: 14px; }
.lbc-pastille { width: 30px; height: 30px; border-width: 1px; }
.lbc-upload-box { padding: 12px 18px; }
.lbc-sens-opt { padding: 12px 10px; }
.lbc-sens-icon { height: 34px; }
.lbc-summary-label,
.lbc-summary-total .lbc-summary-label { font-size: 13px; font-weight: 400; }
.lbc-summary-value { font-size: 18px; }
.lbc-summary-total .lbc-summary-value { font-size: 26px; }

/* 8. CONTACT ------------------------------------------------------------------ */
.lbp-contact-page { padding: 44px 20px 64px; }
.lbp-contact-header h1 { font-size: 28px; font-weight: 500; letter-spacing: -0.2px; }
.lbp-contact-subtitle { font-size: 15px; }
.lbp-contact-card { padding: 22px 20px; }
.lbp-contact-card-icon { width: 40px; height: 40px; }
.lbp-contact-card-icon svg { width: 18px; height: 18px; stroke-width: 1.5; }
.lbp-contact-card h2 { font-size: 11.5px; font-weight: 500; letter-spacing: var(--rf-label-tracking); }
.lbp-contact-form-wrap { padding: 28px; }
.lbp-contact-form-wrap .lbp-form-field input:not([type="checkbox"]),
.lbp-contact-form-wrap .lbp-form-field textarea,
.lbp-contact-form-wrap .lbp-form-field select { padding: 9px 12px; font-size: 14px; }
.lbp-captcha-field label strong { font-size: 15px; font-weight: 500; }
.lbp-contact-form-wrap .lbp-captcha-field input { font-size: 15px !important; font-weight: 500; }
.lbp-btn-submit { padding: 12px 28px; font-size: 12px; font-weight: 500; letter-spacing: var(--rf-label-tracking); border-radius: 4px; }

/* 9. FAQ ---------------------------------------------------------------------- */
.lbp-faq-page { padding: 44px 20px 64px; }
.lbp-faq-header h1 { font-size: 27px; font-weight: 500; letter-spacing: -0.2px; }
.lbp-faq-subtitle { font-size: 15px; }
.lbp-faq-question { padding: 15px 20px; font-size: 14.5px; font-weight: 500; }
.lbp-faq-cta { padding: 30px 26px; }
.lbp-faq-cta h2 { font-size: 19px; font-weight: 500; }
.lbp-faq-btn { padding: 10px 24px; font-size: 12px; font-weight: 500; letter-spacing: var(--rf-label-tracking); border-width: 1px; border-radius: 4px; }

/* 10. BLOG ET ARTICLES -------------------------------------------------------- */
.lbp-blog-archive { padding: 44px 0 64px; }
.lbp-blog-title { font-size: 30px; font-weight: 500; letter-spacing: -0.2px; }
.lbp-blog-description { font-size: 15px; }
.lbp-blog-card__category,
.lbp-article__category a { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; padding: 4px 10px; }
.lbp-blog-card__content { padding: 20px 22px 22px; }
.lbp-blog-card__title { font-size: 17.5px; font-weight: 500; }
.lbp-blog-pagination .page-numbers { height: 34px; padding: 0 11px; font-size: 13px; font-weight: 500; }

.lbp-article__hero { padding: 32px 0 22px; }
.lbp-article__title { font-size: 31px; font-weight: 500; letter-spacing: -0.2px; }
.lbp-article__content { font-size: 16px; }
.lbp-article__content h2 { font-size: 22px; font-weight: 500; }
.lbp-article__content h3 { font-size: 18.5px; font-weight: 500; }
.lbp-article__content h4 { font-size: 16.5px; font-weight: 500; }
.lbp-article__content blockquote { font-size: 17px; }
.lbp-related { padding: 52px 0; }
.lbp-related__title,
.lbp-article-cta__inner h2 { font-size: 23px; font-weight: 500; }
.lbp-related__card-title { font-size: 15.5px; font-weight: 500; }
.lbp-article-cta { padding: 44px 0; }
.lbp-article-cta__inner p { font-size: 15px; }
.lbp-article-cta__btn { padding: 11px 28px; font-size: 12px; font-weight: 500; letter-spacing: var(--rf-label-tracking); border-radius: 4px; }
.lbp-nav-label { font-size: 10px; font-weight: 500; letter-spacing: var(--rf-label-tracking); }
.single-post .entry-title,
.single-post h1.entry-title { font-size: 27px; }
.single-post .entry-content h2,
.single-post article h2 { font-size: 20px; }
.single-post .entry-content h3,
.single-post article h3 { font-size: 17px; }

/* 11. PANIER ------------------------------------------------------------------ */
.woocommerce-cart .shop_table.cart .product-name > a { font-size: 18px; }
.lbp-subtotal-inline { font-size: 15px; font-weight: 500; }
.woocommerce-cart .coupon input#coupon_code,
.woocommerce-cart input[name="coupon_code"],
.woocommerce-cart .coupon button[name="apply_coupon"],
.woocommerce-cart button[name="apply_coupon"] { height: 40px; font-size: 13px; }
.woocommerce-cart .cart_totals h2 { font-size: 12px; font-weight: 500; letter-spacing: var(--rf-label-tracking); }
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td { font-size: 15px; font-weight: 500; }
.woocommerce-cart a.checkout-button { padding: 12px 18px !important; font-size: 12px !important; font-weight: 500 !important; letter-spacing: 0.14em !important; border-radius: 4px !important; }
.woocommerce-cart .woocommerce-info.cart-empty,
.woocommerce-cart .cart-empty { font-size: 15px !important; }
.woocommerce-cart .return-to-shop a.wc-backward,
.woocommerce-cart a.wc-backward { padding: 11px 26px !important; font-size: 12px !important; font-weight: 500 !important; letter-spacing: 0.14em !important; border-radius: 4px !important; }
.lbp-transport-helium-title { font-size: 13px; font-weight: 500; letter-spacing: var(--rf-label-tracking); }
.lbp-transport-helium-option-radio { border-width: 1px; }
.lbp-transport-helium-option-price { font-size: 14px; font-weight: 500; }

/* 12. COMPTE CLIENT ----------------------------------------------------------- */
.woocommerce-account .site-main.page-main { padding: 44px 0 64px; }
.lbp-login-intro h2 { font-size: 24px; }
.lbp-login-box { padding: 26px 24px; }
.lbp-login-box h3 { font-size: 17px; }
html .lbp-login-box input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]) { height: 44px !important; padding: 0 14px !important; font-size: 14px !important; }
.lbp-login-box .password-input { height: 44px; }
.lbp-account-btn { font-weight: 500; }
.lbp-login-actions .lbp-account-btn { padding: 12px 20px; font-size: 13px; }
.lbp-dashboard-welcome h2,
.lbp-view-order-title { font-size: 22px; }
.lbp-stat-number { font-size: 30px; font-weight: 500; }
.lbp-stat-label { font-size: 11px; font-weight: 500; letter-spacing: var(--rf-label-tracking); }
.lbp-orders-table thead th,
.lbp-view-order-table thead th { font-size: 11px; font-weight: 500; letter-spacing: var(--rf-label-tracking); }
.lbp-orders-table thead th,
.lbp-view-order-section h3,
.lbp-view-order-addresses .woocommerce-column__title,
.woocommerce-account .woocommerce-Address-title { border-bottom-width: 1px; }
.lbp-view-order-table tfoot tr:last-child th,
.lbp-view-order-table tfoot tr:last-child td { border-top-width: 1px; }
.woocommerce-account .woocommerce-MyAccount-content form input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content form select { height: 44px; font-size: 14px; }

/* 13. MOBILE ------------------------------------------------------------------ */
@media (max-width: 768px) {
    :root { --rf-logo: 122px; }
    .topbar { padding: 5px 0; }
    .topbar-message { font-size: 10.5px; }
    .site-header { padding: 10px 0; }
    .header-phone-icon svg, .header-icon svg { width: 20px; height: 20px; }
    .site-nav { padding: 0; }
    .primary-menu, .secondary-menu { gap: 0; }
    .primary-menu .menu-item a,
    .secondary-menu .menu-item a { font-size: 12.5px; }
    .shop-sidebar-block { padding: 14px; }
    .shop-sidebar-title { font-size: 10.5px; }
    .shop-card-title { font-size: 12px; }
    .woocommerce div.product .single-product-summary .product_title,
    .single-product-summary .product_title { font-size: 20px; }
    .single-product-summary .price { font-size: 18px; }
    .lbc-section-title { font-size: 15px; }
    .lbc-summary-total .lbc-summary-value { font-size: 23px; }
    .lbp-contact-form-wrap { padding: 20px 16px; }
    .lbp-faq-header h1, .lbp-contact-header h1 { font-size: 22px; }
    .lbp-faq-question { padding: 13px 16px; font-size: 13.5px; }
    .lbp-blog-title { font-size: 24px; }
    .lbp-blog-card__title { font-size: 16px; }
    .lbp-article__title { font-size: 23px; }
    .lbp-article__content h2 { font-size: 19.5px; }
    .lbp-article__content h3 { font-size: 17px; }
    .lbp-related__title, .lbp-article-cta__inner h2 { font-size: 20px; }
    .woocommerce-cart .shop_table.cart .product-name > a:not(.lbp-edit-options) { font-size: 16px !important; }
}
@media (max-width: 380px) {
    :root { --rf-logo: 106px; }
}

/* 14. CORRECTIFS LISIBILITÉ (ajoutés à l'intégration) --------------------------
   Rien sous 11 px pour le texte, 10 px pour les pastilles chiffrées ;
   liens de la sidebar à un gris lisible (contraste AA sur fond blanc). */
.header-phone-label { font-size: 10px; }
.header-cart-count { font-size: 10px; }
.menu-badge { font-size: 9.5px; }
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.woocommerce div.product .onsale { font-size: 10.5px; }
.lbp-blog-card__category,
.lbp-article__category a,
.lbp-nav-label { font-size: 11px; }
.shop-sidebar-item a { color: #6b6b6b; }
@media (max-width: 768px) {
    .topbar-message { font-size: 11.5px; }
    .shop-sidebar-title { font-size: 11px; }
}
