/*
Theme Name: T3P
Theme URI: https://t3p.fr
Author: T3P
Description: Thème bloc léger pour T3P (lames et outils coupants). Aucun constructeur de pages requis : tout se modifie dans l'éditeur de site WordPress. Compatible WooCommerce en mode catalogue / demande de devis.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: t3p
*/

/* ---------- En-tête ---------- */
.t3p-topbar { background: #2c3338; color: #f0f0f1; font-size: .85rem; }
.t3p-topbar a { color: #fff; text-decoration: none; }
.t3p-header { border-bottom: 1px solid #d8d8d8; background: linear-gradient(180deg,#ffffff 0%,#e9e9e9 100%); position: sticky; top: 0; z-index: 50; }
.t3p-header .wp-block-site-title a { text-decoration: none; color: var(--wp--preset--color--primary); font-weight: 800; letter-spacing: .04em; }
.t3p-logo { display: block; line-height: 0; }
.t3p-logo img { height: 64px; width: auto; display: block; }
.t3p-header .wp-block-navigation { font-family: var(--wp--preset--font-family--montserrat); text-transform: uppercase; font-size: .95rem; }
.t3p-header .wp-block-navigation a { color: #4c4c4c; }
.t3p-header .wp-block-navigation a:hover, .t3p-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--primary); }
.t3p-header .wp-block-navigation a { text-decoration: none; font-weight: 600; }
.t3p-header .wp-block-search { max-width: 280px; }
.t3p-quote-btn .wp-block-button__link { white-space: nowrap; }

/* ---------- Sections de la page d'accueil ---------- */
.t3p-hero { background: linear-gradient(180deg, #3d9bd8 0%, #2b7bb9 100%); color: #fff; }
.t3p-hero h1, .t3p-hero p { color: #fff; }
.t3p-section-alt { background: var(--wp--preset--color--light); }
.t3p-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 28px; padding: 1.5rem; height: 100%; }
.t3p-slogan { background: var(--wp--preset--color--primary); color: #fff; text-align: center; }
.t3p-slogan h2, .t3p-slogan p { color: #fff; }

/* Liste des catégories (bloc WooCommerce « Catégories de produits ») */
.wc-block-product-categories-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.wc-block-product-categories-list-item { margin: 0; }
.wc-block-product-categories-list-item > a { display: block; padding: .9rem 1.1rem; background: #fff; border: 1px solid #e0e0e0; border-left: 4px solid var(--wp--preset--color--primary); border-radius: 6px; text-decoration: none; font-weight: 600; }
.wc-block-product-categories-list-item > a:hover { background: var(--wp--preset--color--light); }
.wc-block-product-categories-list-item-count { float: right; color: var(--wp--preset--color--steel); font-weight: 400; }

/* ---------- Catalogue ---------- */
.t3p-quote-link { display: inline-block; }
.woocommerce .wp-block-woocommerce-product-collection .wc-block-components-product-name { font-size: 1rem; }

/* ---------- Pied de page ---------- */
.t3p-footer { background: #1d2125; color: #c3c4c7; }
.t3p-footer a { color: #fff; }
.t3p-footer h3, .t3p-footer h2 { color: #fff; }

/* ---------- Formulaire Contact Form 7 ---------- */
.wpcf7 form label { display: block; font-weight: 600; margin-bottom: 1rem; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid #b8c2cc; border-radius: 4px; font: inherit; margin-top: .3rem;
}
.wpcf7 input[type="submit"] {
  background: var(--wp--preset--color--primary); color: #fff; border: 0; border-radius: 4px; padding: .8rem 1.8rem; font-weight: 700; cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { filter: brightness(.92); }

/* ---------- Titres ---------- */
h1, h2, h3, h4 { font-family: var(--wp--preset--font-family--raleway); }

/* ---------- Produits sans photo (image par défaut = logo T3P) ---------- */
.wc-block-components-product-image img[src*="produit-sans-photo"],
.woocommerce-product-gallery__image--placeholder img,
img.woocommerce-placeholder { object-fit: contain; background: #f2f2f2; border-radius: 6px; }
.wc-block-components-product-image, .wp-block-woocommerce-product-image { border-radius: 6px; overflow: hidden; }