/*
Theme Name:   Blocksy LYMA
Theme URI:    https://lymariviera.brightfolks-agency.com
Description:  Thème enfant Blocksy pour LYMA Riviera : palette monochrome, Cormorant Garamond + Jost, habillage WooCommerce B2B.
Template:     blocksy
Version:      1.0.0
Text Domain:  blocksy-lyma
*/

/* Palette Blocksy = palette du site d'origine (noir / papier / lignes) */
:root {
	--theme-palette-color-1: #0a0a0a !important; /* accent */
	--theme-palette-color-2: #6f6d6a !important; /* accent survol */
	--theme-palette-color-3: #0a0a0a !important; /* texte */
	--theme-palette-color-4: #0a0a0a !important; /* titres */
	--theme-palette-color-5: #e3e1dc !important; /* bordures */
	--theme-palette-color-6: #efeaea !important; /* fond secondaire */
	--theme-palette-color-7: #f7f6f3 !important; /* fond page */
	--theme-palette-color-8: #ffffff !important;

	--lyma-font-sans: "Jost", sans-serif;
	--lyma-font-display: "Cormorant Garamond", serif;
	--theme-button-border-radius: 0.5rem;
}

body {
	font-family: var(--lyma-font-sans);
	font-weight: 300;
	background-color: #f7f6f3;
	color: #0a0a0a;
}

h1, h2, h3, h4,
.entry-title,
.woocommerce-loop-product__title,
.product_title {
	font-family: var(--lyma-font-display);
	font-weight: 400;
	letter-spacing: 0.01em;
}

/* Boutons : noir plein, texte papier */
.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.single_add_to_cart_button {
	background: #0a0a0a;
	color: #f7f6f3;
	border: 1px solid #0a0a0a;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.78rem;
	font-weight: 400;
	transition: background .2s, color .2s;
}
.button:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.single_add_to_cart_button:hover {
	background: transparent;
	color: #0a0a0a;
}

/* Grille produits : cartes sobres, sans ombre */
.woocommerce ul.products li.product {
	background: transparent;
	border: 0;
	box-shadow: none;
}
.woocommerce ul.products li.product img {
	border-radius: 0;
	background: #efeaea;
}
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
	color: #0a0a0a;
	font-weight: 400;
}

/* Champs de formulaire */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], select, textarea {
	background: #f7f6f3;
	border: 1px solid #e3e1dc;
	border-radius: 0.5rem;
}
input:focus, select:focus, textarea:focus {
	border-color: #0a0a0a;
	outline: none;
}

/* Bandeau d'annonce (à activer via Blocksy > Header > Top bar) */
.ct-header [data-row="top"] {
	background: #0a0a0a;
	color: #f7f6f3;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body, .ct-main-styles-inline-css { background-color: #f7f6f3 !important; }

/* En-tête / pied de page */
.ct-header [data-row], #header [data-row] { background: #f7f6f3 !important; border-bottom: 1px solid #e3e1dc; }
.ct-header .menu > li > a, #header .menu > li > a {
	font-size: 0.72rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
}
.ct-footer [data-row], #footer [data-row] { background: #efeaea !important; }
.site-logo-container img { max-height: 44px; width: auto; }

/* ---------- Page d'accueil ---------- */
.lyma-home { background: #f7f6f3; }
.lyma-wrap { max-width: 80rem; margin: 0 auto; padding: 0 2rem; }
.lyma-micro {
	font-size: 11px; font-weight: 300; letter-spacing: 0.35em; text-transform: uppercase;
	color: #6f6d6a; margin: 0;
}
.lyma-home h1, .lyma-home h2 { font-family: var(--lyma-font-display); font-weight: 300; color: #0a0a0a; margin: 0; }
.lyma-home h1 { font-size: clamp(3.5rem, 8vw, 7rem); line-height: 0.95; }
.lyma-home h2 { font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1.1; margin-top: 1rem; }
.lyma-lead { max-width: 28rem; margin: 2rem 0 0; font-size: 1rem; font-weight: 300; line-height: 1.7; color: #6f6d6a; }
.lyma-text { max-width: 32rem; margin: 2rem 0 0; font-size: 0.9rem; font-weight: 300; line-height: 2; color: #6f6d6a; }
.lyma-text + .lyma-text { margin-top: 1.25rem; }

.lyma-hero { border-bottom: 1px solid #e3e1dc; }
.lyma-hero__grid { display: grid; gap: 3rem; align-items: center; min-height: 85vh; padding-top: 4rem; padding-bottom: 4rem; }
.lyma-hero__img img { width: 100%; max-width: 28rem; opacity: .5; margin: 0 auto; display: block; }
@media (min-width: 1024px) { .lyma-hero__grid { grid-template-columns: 7fr 5fr; gap: 2rem; } }
@media (max-width: 1023px) { .lyma-hero__img { display: none; } .lyma-hero__grid { min-height: 70vh; } }

.lyma-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.lyma-btn {
	display: inline-flex; align-items: center; height: 2.75rem; padding: 0 1.75rem;
	background: #0a0a0a; color: #f7f6f3 !important; border: 1px solid #0a0a0a; border-radius: 0.5rem;
	font-size: 11px; font-weight: 300; letter-spacing: 0.25em; text-transform: uppercase; text-decoration: none;
	transition: background .2s, color .2s;
}
.lyma-btn:hover { background: transparent; color: #0a0a0a !important; }
.lyma-btn--ghost { background: transparent; color: #0a0a0a !important; }
.lyma-btn--ghost:hover { background: #0a0a0a; color: #f7f6f3 !important; }

.lyma-section { padding: 6rem 0; border-bottom: 1px solid #e3e1dc; }
@media (min-width: 768px) { .lyma-section { padding: 8rem 0; } }
.lyma-section--surface { background: #efeaea; }
.lyma-center { text-align: center; }
.lyma-center .lyma-text { margin-left: auto; margin-right: auto; }
.lyma-center p:last-child { margin-top: 2.5rem; }

.lyma-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 3.5rem; }
@media (min-width: 768px) { .lyma-cats { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.lyma-cat {
	display: flex; flex-direction: column; aspect-ratio: 3/4; overflow: hidden; text-decoration: none;
	border: 1px solid #e3e1dc; border-radius: 0.75rem; background: #efeaea; transition: background .3s;
}
.lyma-cat:hover { background: #f7f6f3; }
.lyma-cat__img { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; min-height: 0; }
.lyma-cat__img img { width: 100%; height: 100%; object-fit: contain; }
.lyma-cat__name {
	display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem;
	border-top: 1px solid #e3e1dc; font-family: var(--lyma-font-display); font-size: 1.25rem; font-weight: 300; color: #0a0a0a;
}
.lyma-cat__name i { font-style: normal; opacity: .4; transition: opacity .3s; }
.lyma-cat:hover .lyma-cat__name i { opacity: 1; }

.lyma-products { margin-top: 3.5rem; }
.lyma-products ul.products { margin: 0 !important; }

.lyma-maison { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 1024px) { .lyma-maison { grid-template-columns: 1fr 1fr; gap: 6rem; } .lyma-maison figure { order: 2; } }
.lyma-maison figure { margin: 0 auto; width: 100%; max-width: 28rem; }
.lyma-maison figure img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 1rem; filter: grayscale(1) contrast(1.05); }
.lyma-maison figcaption { margin-top: 1rem; font-size: 10px; }
.lyma-features { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.5rem; }
.lyma-features li { display: grid; gap: .25rem; padding-left: 1.25rem; border-left: 1px solid #e3e1dc; }
.lyma-features strong { font-family: var(--lyma-font-display); font-size: 1.25rem; font-weight: 400; }
.lyma-features span { font-size: .85rem; font-weight: 300; color: #6f6d6a; }
