/* ==========================================================================
   Woerther Cache Clim — feuille de styles principale
   Direction artistique : fond blanc/gris clair, sans-serif large,
   boutons noirs à angles doux, mise en page aérée.
   ========================================================================== */

:root {
	--wcc-ink: #1a1a1a;
	--wcc-muted: #6b6b6b;
	--wcc-line: #e6e6e6;
	--wcc-bg: #ffffff;
	--wcc-bg-soft: #f5f5f3;
	--wcc-accent: #111111;
	--wcc-radius: 10px;
	--wcc-radius-sm: 6px;
	--wcc-container: 1200px;
	--wcc-gap: 24px;
}

body { color: var(--wcc-ink); background: var(--wcc-bg); }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--wcc-container); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; z-index: 1000; }
.notice { color: var(--wcc-muted); }

/* ------- Boutons ------- */
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: .2s; }
.btn-primary { background: var(--wcc-accent); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--wcc-ink); border-color: var(--wcc-ink); }
.btn-outline:hover { background: var(--wcc-ink); color: #fff; }

/* ------- Barre d'annonce ------- */
.announcement-bar { background: #111; color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 12px; }

/* ------- En-tête ------- */
.site-header { border-bottom: 1px solid var(--wcc-line); position: sticky; top: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); z-index: 100; }
.header-inner { display: flex; align-items: center; gap: var(--wcc-gap); padding: 14px 20px; }
.brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 26px; font-weight: 800; letter-spacing: 1px; color: var(--wcc-ink); }
.brand-accent { color: #F5B301; }
.brand-baseline { font-size: 11px; color: var(--wcc-muted); margin-top: 4px; letter-spacing: .5px; }
.main-navigation { margin-left: auto; }
.nav-menu { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-menu a:hover { border-color: var(--wcc-ink); }
.header-actions { display: flex; align-items: center; gap: 14px; font-size: 18px; }
.header-actions a, .header-actions button { background: none; border: 0; cursor: pointer; text-decoration: none; position: relative; }
.header-cart { position: relative; }
.cart-count { position: absolute; top: -8px; right: -10px; background: var(--wcc-ink); color: #fff; font-size: 11px; min-width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 999px; padding: 0 4px; }
.menu-toggle { display: none; }
.header-search-panel { border-top: 1px solid var(--wcc-line); padding: 12px 0; background: #fff; }

/* ------- Blocs génériques ------- */
.block { padding: 64px 0; }
.block-title { font-size: 30px; margin: 0 0 28px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* ------- Bloc 1 : Hero ------- */
.hero { min-height: 68vh; display: flex; align-items: center; color: #fff; background: #222 center/cover no-repeat; }
.hero-inner { max-width: 720px; }
.hero-title { font-size: clamp(30px, 5vw, 54px); margin: 0 0 16px; }
.hero-subtitle { font-size: 18px; margin: 0 0 28px; opacity: .95; }

/* ------- Bloc 2 : Produits + onglets ------- */
.products-home { background: var(--wcc-bg); }
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.tab { background: none; border: 0; padding: 10px 18px; font-weight: 700; color: var(--wcc-muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tab.is-active { color: var(--wcc-ink); border-color: var(--wcc-ink); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.center { margin-top: 24px; }

/* Grille produits (surcharge légère de WooCommerce) */
ul.products.wcc-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
ul.products li.product { text-align: left; }
ul.products li.product img { border-radius: var(--wcc-radius); }
ul.products li.product .price { font-weight: 800; color: var(--wcc-ink); }
ul.products li.product .button { display: inline-block; margin-top: 8px; background: var(--wcc-ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }

/* ------- Bloc 3 : Avis ------- */
.reviews { background: var(--wcc-bg-soft); }

/* ------- Bloc 4 : Avant / après ------- */
.ba-slider { position: relative; max-width: 900px; margin: 0 auto; border-radius: var(--wcc-radius); overflow: hidden; user-select: none; }
.ba-slider img { display: block; width: 100%; }
.ba-after-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba-after-wrap img { width: 900px; max-width: none; height: 100%; object-fit: cover; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.15); pointer-events: none; }
.ba-handle::after { content: "⟺"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #fff; color: #111; width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* ------- Bloc 5 : Infos ------- */
.info-visual { background: var(--wcc-bg-soft) center/cover; border-radius: var(--wcc-radius); min-height: 320px; }
.info-tech { background: var(--wcc-bg-soft); }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.tech-item h3 { font-size: 18px; margin: 0 0 8px; }
.tech-item p { color: var(--wcc-muted); margin: 0; font-size: 14px; }
.inout-card { background: var(--wcc-bg-soft); padding: 32px; border-radius: var(--wcc-radius); }
.inout-card h3 { font-size: 22px; margin: 0 0 12px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--wcc-line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 0; font-size: 17px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-icon { font-weight: 400; font-size: 22px; }
.faq-a { padding: 0 0 20px; color: var(--wcc-muted); }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }

/* ------- Bloc 6 : Galerie réalisations ------- */
.gallery-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.gallery-item { flex: 0 0 320px; scroll-snap-align: start; }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--wcc-radius); }

/* ------- Pied de page ------- */
.site-footer { border-top: 1px solid var(--wcc-line); margin-top: 40px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 30px; padding: 56px 20px 30px; }
.footer-col-title { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { text-decoration: none; color: var(--wcc-muted); }
.footer-col a:hover { color: var(--wcc-ink); }
.footer-legal-entity { color: var(--wcc-muted); font-size: 14px; }
.footer-reassurance { display: flex; gap: 18px; flex-wrap: wrap; padding: 20px; border-top: 1px solid var(--wcc-line); }
.footer-reassurance .badge { font-size: 13px; font-weight: 600; color: var(--wcc-muted); }
.footer-bottom { border-top: 1px solid var(--wcc-line); background: #111; color: #fff; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 20px; flex-wrap: wrap; }
.legal-menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.legal-menu a { color: #ddd; text-decoration: none; font-size: 13px; }
.copyright { margin: 0; font-size: 13px; color: #bbb; }

/* ------- Contenus WooCommerce / pages ------- */
.wc-wrapper, .wc-page, .site-main.container { padding-top: 40px; padding-bottom: 40px; }
.page-title, .entry-title { font-size: 30px; }

/* ------- Responsive ------- */
@media (max-width: 900px) {
	.two-col, .footer-cols { grid-template-columns: 1fr; }
	.tech-grid { grid-template-columns: repeat(2, 1fr); }
	ul.products.wcc-products { grid-template-columns: repeat(2, 1fr); }
	.main-navigation { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); background: #fff; transform: translateX(100%); transition: transform .25s; padding: 80px 24px; box-shadow: -8px 0 30px rgba(0,0,0,.1); }
	.main-navigation.is-open { transform: translateX(0); }
	.nav-menu { flex-direction: column; gap: 8px; }
	.menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: 0; margin-left: auto; cursor: pointer; }
	.menu-toggle-bar, .menu-toggle-bar::before, .menu-toggle-bar::after { content: ""; display: block; width: 24px; height: 2px; background: var(--wcc-ink); position: relative; }
	.menu-toggle-bar::before { position: absolute; top: -7px; }
	.menu-toggle-bar::after { position: absolute; top: 7px; }
}

@media (max-width: 560px) {
	.tech-grid, ul.products.wcc-products { grid-template-columns: 1fr; }
	.block { padding: 44px 0; }
}
