/*
Theme Name: La Grange Defrance
Template: astra
Description: Thème enfant d’Astra aux couleurs de La Grange Defrance (épicerie fine & bar à vin).
Version: 1.0.0
Text Domain: la-grange
*/

/* Les couleurs et typographies (--lgd-*) sont définies dans l’extension La Grange Defrance. */

html:root {
	--ast-global-color-0: #56453e;
	--ast-global-color-1: #7a2e2e;
	--ast-global-color-2: #33261f;
	--ast-global-color-3: #33261f;
	--ast-global-color-4: #faf5ec;
	--ast-global-color-5: #ffffff;
	--ast-global-color-6: #e6d8c4;
	--ast-global-color-7: #33261f;
}

body {
	background: var(--lgd-cream, #faf5ec);
	color: var(--lgd-ink, #33261f);
	font-family: var(--lgd-sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .entry-title { font-family: var(--lgd-serif); color: var(--lgd-ink); font-weight: 600; }
a { color: var(--lgd-wine); }
a:hover { color: var(--lgd-ink); }
body:not(.home) .site-content { background: var(--lgd-cream); }

/* ---------- En-tête ---------- */
.main-header-bar,
.ast-primary-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar { background: var(--lgd-kraft) !important; border-bottom: 0 !important; }
.ast-primary-header-bar .site-primary-header-wrap { min-height: 96px; }
.site-branding .custom-logo-link img,
.ast-header-break-point .custom-logo-link img { max-height: 84px; width: auto !important; }
.ast-builder-menu-1 .menu-item > .menu-link { font: 500 15px var(--lgd-sans) !important; color: var(--lgd-brown) !important; letter-spacing: .02em; padding: 0 14px !important; }
.ast-builder-menu-1 .menu-item > .menu-link:hover,
.ast-builder-menu-1 .current-menu-item > .menu-link { color: var(--lgd-wine) !important; }
.ast-builder-menu-1 .current-menu-item > .menu-link { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.ast-header-button-1 .ast-custom-button,
.ast-header-button-1 .ast-custom-button-link .ast-custom-button {
	background: var(--lgd-brown) !important; color: var(--lgd-cream) !important; border: 0 !important;
	border-radius: 999px !important; padding: 12px 22px !important; font: 600 15px var(--lgd-sans) !important; letter-spacing: .02em; text-transform: none !important;
}
.ast-header-button-1 .ast-custom-button:hover { background: var(--lgd-ink) !important; }
.ast-mobile-menu-trigger-minimal,
.menu-toggle { color: var(--lgd-brown) !important; }
.ast-mobile-popup-drawer .ast-mobile-popup-inner { background: var(--lgd-cream); }
.ast-mobile-popup-drawer .menu-link { color: var(--lgd-ink) !important; font: 500 18px var(--lgd-sans) !important; }

/* ---------- Pages ---------- */
.home .site-content > .ast-container { max-width: none; padding: 0; display: block; }
.home .entry-content > * { margin-top: 0; margin-bottom: 0; }
.home .entry-header { display: none; }
body:not(.home) .entry-header { text-align: center; margin: 24px 0 36px; }
body:not(.home) .entry-title { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; }
body:not(.home) .entry-title::before {
	content: "La Grange Defrance"; display: block; font-family: var(--lgd-script); font-weight: 400;
	font-size: 26px; color: var(--lgd-wine); margin-bottom: 6px;
}
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-plain-container .site-main > article { background: transparent; }
.ast-separate-container .ast-article-single:not(.ast-related-post) { padding: 24px 0 48px; }

/* ---------- WooCommerce (cadeaux) ---------- */
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--lgd-serif); font-size: 20px; color: var(--lgd-ink); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--lgd-wine); font-weight: 600; }
.woocommerce a.button, .woocommerce button.button, .woocommerce .button, .wc-block-components-button:not(.is-link) {
	background: var(--lgd-brown) !important; color: var(--lgd-cream) !important; border-radius: 999px !important; font-family: var(--lgd-sans) !important; font-weight: 600 !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--lgd-ink) !important; }

/* ---------- Pied de page ---------- */
.lgd-footer { background: var(--lgd-brown); color: var(--lgd-kraft-soft); padding: 64px 0 24px; font-size: 15px; }
.lgd-footer a { color: var(--lgd-cream); }
.lgd-footer a:hover { color: var(--lgd-kraft); }
.lgd-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 36px; }
.lgd-footer h3 { font-family: var(--lgd-script); font-weight: 400; color: var(--lgd-kraft); font-size: 28px; margin: 0 0 12px; }
.lgd-footer-logo { width: 120px; height: auto; display: block; margin-bottom: 14px; }
.lgd-footer ul { list-style: none; margin: 0; padding: 0; }
.lgd-footer li { margin: 0 0 8px; }
.lgd-footer .lgd-horaires th, .lgd-footer .lgd-horaires td { padding: 4px 0; border-color: rgba(222, 196, 163, .2); color: var(--lgd-kraft-soft); font-size: 14px; }
.lgd-footer .lgd-horaires .is-today { background: transparent; color: #fff; }
.lgd-footer .lgd-horaires .is-today th, .lgd-footer .lgd-horaires .is-today td { color: #fff; }
.lgd-footer .lgd-fermetures { background: rgba(255,255,255,.08); color: var(--lgd-cream); }
.lgd-footer-bottom { border-top: 1px solid rgba(222, 196, 163, .2); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; opacity: .85; }
.lgd-footer-bottom ul { display: flex; flex-wrap: wrap; gap: 16px; }
.lgd-footer-bottom li { margin: 0; }
@media (max-width: 900px) { .lgd-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lgd-footer-grid { grid-template-columns: 1fr; } }

/* Bouton « Réserver » flottant sur mobile */
.lgd-fab { display: none; }
@media (max-width: 921px) {
	.lgd-fab { display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
}

/* Correctifs Astra */
.site-branding .custom-logo-link img { width: 96px !important; max-width: none !important; max-height: none !important; height: auto !important; }
@media (max-width: 921px) { .site-branding .custom-logo-link img { width: 72px !important; } .ast-primary-header-bar .site-primary-header-wrap { min-height: 80px; } }
.lgd-hero .lgd-hero-media { width: 100% !important; max-width: none !important; height: 100% !important; }
.lgd-card-body h3 a { text-decoration: none; }
.lgd-card-body h3 a:hover { color: var(--lgd-wine); }
body:not(.home) .site-content > .ast-container { padding-top: 40px; padding-bottom: 72px; }
body:not(.home) .entry-header { margin: 0 0 36px; }
