/* =====================================================================
   DIFALUX — thème enfant Storefront
   Style « épicerie fine » inspiré du catalogue des fêtes
   ===================================================================== */

:root {
	--dfx-creme:  #F7F4EE;
	--dfx-papier: #FFFFFF;
	--dfx-encre:  #1C1C1A;
	--dfx-gris:   #6E6A62;
	--dfx-ligne:  #E4DED2;
	--dfx-bleu:   #0A55A3;
	--dfx-bleu-f: #08467F;
	--dfx-bleu-l: #EEF4FB;
	--dfx-or:     #B8972E;
	--dfx-noir:   #0C0C0B;
	--dfx-serif:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--dfx-sans:   Raleway, "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}

/* ── Base ────────────────────────────────────────────────────────────── */
html body {
	background: var(--dfx-creme);
	color: var(--dfx-encre);
	font-family: var(--dfx-sans);
}
html body p, html body li, html body td, html body th { color: inherit; }
html body .entry-content p, html body .woocommerce-product-details__short-description { color: #3b3934; }

html body h1, html body h2, html body h3, html body h4,
html body .entry-title, html body .page-title,
html body .woocommerce-loop-product__title, html body .product_title {
	font-family: var(--dfx-serif);
	font-weight: 500;
	color: var(--dfx-encre);
	letter-spacing: 0;
}
html body h1, html body .entry-title, html body .page-title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.1; }
html body h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.15; }
html body h3 { font-size: 1.6rem; }

html body a { color: var(--dfx-bleu); }
html body a:hover { color: var(--dfx-bleu-f); }

/* ── Boutons ─────────────────────────────────────────────────────────── */
html body .button, html body button.button, html body input[type="submit"].button, html body #place_order,
html body .added_to_cart, html body .wc-block-components-button, html body .single_add_to_cart_button,
html body .checkout-button, html body .wc-forward {
	background: var(--dfx-bleu) !important;
	border: 0 !important;
	color: #fff !important;
	border-radius: 4px;
	font-family: var(--dfx-sans);
	font-weight: 600;
	letter-spacing: .02em;
	padding: .85em 1.5em;
	transition: background .2s;
}
html body .button:hover, html body #place_order:hover,
html body .single_add_to_cart_button:hover { background: var(--dfx-bleu-f) !important; }
html body .button.alt.disabled, html body .button:disabled { opacity: .5; }

/* ── Bandeau fêtes ───────────────────────────────────────────────────── */
.dfx-ribbon {
	background: var(--dfx-noir); color: #E9DFC6; text-align: center;
	font-size: 13px; letter-spacing: .04em; padding: 9px 16px;
}
.dfx-ribbon a { color: var(--dfx-or) !important; border-bottom: 1px solid rgba(184,151,46,.5); margin-left: 8px; }
.dfx-rb-short { display: none; }

/* ── En-tête ─────────────────────────────────────────────────────────── */
html body .site-header {
	background: rgba(247,244,238,.97) !important;
	border-bottom: 1px solid var(--dfx-ligne);
	padding-top: 1.2em;
	position: sticky; top: 0; z-index: 99;
	backdrop-filter: blur(8px);
}
html body.admin-bar .site-header { top: 32px; }
html body .site-header .site-branding img, html body .site-header .custom-logo { max-height: 56px; width: auto; }

/* Menu secondaire (Accueil, Difalux, Produits…) : discret, en haut à droite */
html body .secondary-navigation .menu > li > a {
	font-family: var(--dfx-sans) !important;
	font-size: 13px !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dfx-gris) !important;
	padding: .6em .9em !important;
}
html body .secondary-navigation .menu > li > a:hover { color: var(--dfx-bleu) !important; }

/* Menu principal (rayons) : texte élégant au lieu des boutons bleus */
html body .storefront-primary-navigation { background: transparent !important; border-top: 1px solid var(--dfx-ligne); }
html body .main-navigation ul.menu > li > a,
html body .main-navigation ul.nav-menu > li > a {
	background: transparent !important;
	color: #3a3833 !important;
	font-family: var(--dfx-serif) !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	letter-spacing: .07em;
	text-transform: uppercase;
	padding: 1em .62em !important;
	border-bottom: 2px solid transparent;
	transition: color .2s, border-color .2s;
}
html body .main-navigation ul.menu > li > a:hover,
html body .main-navigation ul.menu > li.current-menu-item > a,
html body .main-navigation ul.menu > li.current-menu-ancestor > a {
	color: var(--dfx-bleu) !important;
	border-bottom-color: var(--dfx-bleu);
}
html body .main-navigation ul.menu > li.menufetes > a,
html body .main-navigation ul.menu > li#menu-item-21015 > a { color: var(--dfx-or) !important; background: transparent !important; }
html body .main-navigation ul.menu > li { margin-right: 0 !important; background: transparent !important; }
/* Lien « Fêtes » en or, où qu'il soit dans le menu */
html body .main-navigation ul.menu > li > a[href*="fetes"],
html body .main-navigation ul.nav-menu > li > a[href*="fetes"] { color: var(--dfx-or) !important; }
/* Menu des rayons sur une seule ligne, panier à droite */
@media (min-width: 768px) {
	html body .storefront-primary-navigation .main-navigation { width: calc(100% - 190px) !important; margin-right: 0 !important; }
	html body .storefront-primary-navigation .site-header-cart { width: 180px !important; margin-right: 0 !important; }
}

/* Sous-menus */
html body .main-navigation ul.menu ul, html body .main-navigation ul.nav-menu ul {
	background: var(--dfx-papier) !important;
	border: 1px solid var(--dfx-ligne);
	border-radius: 6px;
	box-shadow: 0 14px 34px rgba(28,28,26,.10);
	padding: 8px 0;
}
html body .main-navigation ul.menu ul li a {
	background: transparent !important; color: var(--dfx-encre) !important;
	font-family: var(--dfx-sans) !important; font-size: 15px !important;
	text-transform: none; letter-spacing: 0; padding: .6em 1.2em !important;
}
html body .main-navigation ul.menu ul li a:hover { background: var(--dfx-bleu-l) !important; color: var(--dfx-bleu) !important; }

/* Panier dans l'en-tête : pastille bleue */
html body .site-header-cart .cart-contents {
	background: var(--dfx-bleu) !important; color: #fff !important;
	border-radius: 999px; padding: .55em 1.1em !important; margin-top: .6em;
}
html body .site-header-cart .cart-contents .amount,
html body .site-header-cart .cart-contents .count { color: #fff !important; opacity: 1; }
html body .site-header-cart .cart-contents::after { color: #fff !important; }

/* Recherche */
html body .site-search input[type="search"], html body .dgwt-wcas-search-input {
	background: var(--dfx-papier) !important; border: 1px solid var(--dfx-ligne) !important;
	border-radius: 999px !important; box-shadow: none !important;
}

/* ── Contenu ─────────────────────────────────────────────────────────── */
html body .site-content { background: transparent; }
html body .storefront-breadcrumb { background: transparent; border-bottom: 0; margin-bottom: 1em; }
html body .woocommerce-breadcrumb { font-size: 13px; color: var(--dfx-gris); }

/* Cartes produits (boutique, rayons, menu de la semaine) */
html body ul.products li.product {
	background: var(--dfx-papier);
	border: 1px solid var(--dfx-ligne);
	border-radius: 6px;
	overflow: hidden;
	padding-bottom: 1.2em;
	transition: box-shadow .25s, transform .25s;
}
html body ul.products li.product:hover { box-shadow: 0 14px 34px rgba(28,28,26,.10); transform: translateY(-3px); }
html body ul.products li.product img { margin-bottom: 1em; transition: transform .6s; }
html body ul.products li.product:hover img { transform: scale(1.04); }
html body ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.35rem !important; line-height: 1.2; padding: 0 1em; text-align: left;
}
html body ul.products li.product .price {
	font-family: var(--dfx-serif); font-size: 1.5rem; color: var(--dfx-bleu) !important;
	padding: 0 .85em; text-align: left; display: block;
}
html body ul.products li.product .button { margin: .6em 1em 0; }
html body ul.products li.product { text-align: left; }

/* Grilles produits de WPBakery / DHVC (menu de la semaine, rayons) */
html body .dhvc-woo-grid-item {
	background: var(--dfx-papier) !important; border: 1px solid var(--dfx-ligne) !important;
	border-radius: 6px !important; overflow: hidden; box-shadow: none !important;
	transition: box-shadow .25s, transform .25s;
}
html body .dhvc-woo-grid-item:hover { box-shadow: 0 14px 34px rgba(28,28,26,.10) !important; transform: translateY(-3px); }
html body .dhvc-woo-title, html body .dhvc-woo-title a {
	font-family: var(--dfx-serif) !important; font-size: 1.55rem !important; line-height: 1.2 !important;
	color: var(--dfx-encre) !important; font-weight: 500 !important;
}
html body .dhvc-woo-item .price, html body .dhvc-woo-item .amount {
	font-family: var(--dfx-serif) !important; font-size: 1.6rem !important; color: var(--dfx-bleu) !important; font-weight: 500 !important;
}

/* Fiche produit */
html body.single-product div.product .product_title { font-size: clamp(2rem, 4vw, 3rem); }
html body.single-product div.product p.price { font-family: var(--dfx-serif); font-size: 2rem; color: var(--dfx-bleu); }
html body.single-product div.product .woocommerce-product-gallery img { border-radius: 6px; }
html body .woocommerce-tabs ul.tabs li a { font-family: var(--dfx-serif); font-size: 1.2rem; }

/* Champs de formulaire */
html body input[type="text"], html body input[type="email"], html body input[type="tel"],
html body input[type="number"], html body input[type="password"], html body textarea, html body select {
	background: var(--dfx-papier);
	border: 1px solid #d7dde6;
	border-radius: 6px;
	box-shadow: none;
}
html body input:focus, html body textarea:focus, html body select:focus {
	border-color: var(--dfx-bleu); box-shadow: 0 0 0 3px rgba(10,85,163,.15); outline: none;
}

/* ── Pied de page ────────────────────────────────────────────────────── */
html body .site-footer { background: var(--dfx-encre) !important; color: #CFC9BC !important; padding-top: 4em; }
html body .site-footer a:not(.button) { color: #E9DFC6 !important; }
html body .site-footer h2, html body .site-footer h3, html body .site-footer .widget-title {
	font-family: var(--dfx-serif); color: #fff !important; border-bottom: 0;
}
html body .site-info { color: #8C877C !important; font-size: 12px; }

/* ── Mode fêtes (15/11 → 7/01) : accents dorés ───────────────────────── */
html body.dfx-fetes .main-navigation ul.menu > li.menufetes > a,
html body.dfx-fetes .main-navigation ul.menu > li#menu-item-21015 > a { border-bottom-color: var(--dfx-or); }

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
	.dfx-rb-long { display: none; }
	.dfx-rb-short { display: inline; }
	html body .site-header { padding-top: .8em; }
	html body .site-header, html body.admin-bar .site-header { position: relative; top: 0; }
	html body .site-header .site-branding img, html body .site-header .custom-logo { max-height: 40px; }

	html body .main-navigation.toggled .handheld-navigation,
	html body .main-navigation.toggled .menu { background: var(--dfx-papier); border-radius: 6px; }
	html body .handheld-navigation ul.menu li a {
		font-family: var(--dfx-serif) !important; font-size: 19px !important;
		color: var(--dfx-encre) !important; background: transparent !important;
		border-bottom: 1px solid var(--dfx-ligne);
	}

	/* Barre du bas (compte / recherche / panier) */
	html body .storefront-handheld-footer-bar { background: var(--dfx-papier); border-top: 1px solid var(--dfx-ligne); box-shadow: 0 -4px 18px rgba(0,0,0,.06); }
	html body .storefront-handheld-footer-bar ul li > a { background: transparent !important; border: 0 !important; }
	html body .storefront-handheld-footer-bar ul li > a::before { color: var(--dfx-encre) !important; }
	html body .storefront-handheld-footer-bar ul li.cart .count { background: var(--dfx-bleu) !important; border-color: var(--dfx-papier) !important; color: #fff !important; }

	html body h1, html body .entry-title, html body .page-title { font-size: 2.1rem; }
	html body ul.products li.product .woocommerce-loop-product__title { font-size: 1.2rem !important; }
	html body ul.products li.product .price { font-size: 1.3rem; }
	html body .button, html body .single_add_to_cart_button { width: auto; padding: .75em 1.1em; font-size: 14px; }
	html body .dhvc-woo-info { padding: 0 14px 14px !important; }
	html body .dhvc-woo-item .button { padding: .7em .9em !important; white-space: nowrap; }
	html body .dhvc-woo-title, html body .dhvc-woo-title a { font-size: 1.35rem !important; }
}

/* ── Fiche produit : pleine largeur ──────────────────────────────────── */
@media (min-width: 768px) {
	html body.single-product .content-area { width: 100% !important; float: none !important; margin-right: 0 !important; }
	html body.single-product #secondary { display: none !important; }
}

/* ── Options produit en pastilles ────────────────────────────────────── */
.dfx-select-hidden { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; }
.dfx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.dfx-chip {
	background: var(--dfx-papier) !important; color: var(--dfx-encre) !important;
	border: 1px solid var(--dfx-ligne) !important; border-radius: 999px !important;
	padding: .55em 1.15em !important; font: 500 15px/1.2 var(--dfx-sans) !important;
	cursor: pointer; transition: border-color .15s, background .15s, color .15s; box-shadow: none !important;
}
.dfx-chip:hover { border-color: var(--dfx-bleu) !important; color: var(--dfx-bleu) !important; }
.dfx-chip.is-active { background: var(--dfx-bleu-l) !important; border-color: var(--dfx-bleu) !important; color: var(--dfx-bleu) !important; font-weight: 600 !important; }
.dfx-chip:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
html body.single-product table.variations { border: 0; margin-bottom: .5em; }
html body.single-product table.variations th, html body.single-product table.variations td { display: block; padding: 0; background: transparent !important; border: 0; text-align: left !important; }
html body.single-product table.variations th.label label, html body.single-product table.variations td.label label {
	font: 600 12px/1 var(--dfx-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--dfx-gris); margin-bottom: 8px; display: block;
}
html body.single-product .reset_variations { font-size: 13px; color: var(--dfx-gris) !important; }

/* =====================================================================
   Modèle « Accueil Difalux »
   ===================================================================== */
html body.dfx-home-page .site-content { padding-top: 0; }
html body.dfx-home-page .storefront-breadcrumb { display: none; }
html body.dfx-home-page .site-header { margin-bottom: 0 !important; }
.dfx-home { width: 100vw; margin-left: calc(50% - 50vw); }
html body.dfx-home-page .dfx-home-wrap { width: 100% !important; float: none !important; margin: 0 !important; }
html body.dfx-home-page .site-main { margin-bottom: 0; }
.dfx-home h1, .dfx-home h2 { font-family: var(--dfx-serif); font-weight: 400; }
.dfx-home h2 em, .dfx-home h1 em { font-style: italic; }

.dfx-btn { display: inline-block; padding: 15px 28px; border-radius: 4px; font: 600 15px/1 var(--dfx-sans); letter-spacing: .03em; text-decoration: none !important; margin: 0 10px 10px 0; }
.dfx-btn--p { background: var(--dfx-bleu); color: #fff !important; }
.dfx-btn--p:hover { background: var(--dfx-bleu-f); }
.dfx-btn--g { color: #fff !important; border: 1px solid rgba(255,255,255,.65); }
.dfx-btn--or { background: var(--dfx-or); color: var(--dfx-noir) !important; }
.dfx-btn--line { color: var(--dfx-or) !important; border: 1px solid rgba(184,151,46,.7); }
.dfx-link { color: var(--dfx-bleu) !important; font-weight: 600; text-decoration: none !important; }
.dfx-link::after { content: " →"; }
.dfx-center { text-align: center; margin-top: 1.5em; }
.dfx-kicker { color: var(--dfx-bleu); font: 600 12px/1 var(--dfx-sans); letter-spacing: .32em; text-transform: uppercase; }
.dfx-kicker--or { color: var(--dfx-or); }

/* Grande photo */
.dfx-hero { position: relative; min-height: 76vh; background: #222 center/cover no-repeat; display: flex; align-items: flex-end; }
.dfx-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,12,11,.88), rgba(12,12,11,.3) 55%, rgba(12,12,11,.05)), linear-gradient(to right, rgba(12,12,11,.55), transparent 60%); }
.dfx-hero__txt { position: relative; z-index: 1; padding-bottom: 70px; width: 100%; }
.dfx-eyebrow { color: #E9DFC6; font: 500 13px/1 var(--dfx-sans); letter-spacing: .3em; text-transform: uppercase; margin-bottom: 16px; }
html body .dfx-hero__title { color: #fff !important; font-size: clamp(2.6rem, 6vw, 4.8rem) !important; line-height: 1.03; max-width: 780px; margin: 0; }
.dfx-hero__title em { color: #E9DFC6; }
.dfx-hero__sub { color: rgba(255,255,255,.9) !important; font-size: 18px; max-width: 520px; margin: 18px 0 28px; }

/* Infos pratiques */
.dfx-infos { background: var(--dfx-papier); border-bottom: 1px solid var(--dfx-ligne); }
.dfx-infos .col-full { display: grid; grid-template-columns: repeat(4, 1fr); }
.dfx-home .col-full::before, .dfx-home .col-full::after { display: none !important; content: none !important; }
.dfx-infos .col-full > div { padding: 22px 8px; text-align: center; font-size: 14px; color: var(--dfx-gris); border-right: 1px solid var(--dfx-ligne); }
.dfx-infos .col-full > div:last-child { border-right: 0; }
.dfx-infos strong { display: block; color: var(--dfx-encre); font: 500 19px/1.3 var(--dfx-serif); }

/* Sections */
.dfx-section { padding: 80px 0; }
.dfx-head { text-align: center; margin-bottom: 40px; }
html body .dfx-head h2 { font-size: clamp(2.2rem, 4vw, 3rem) !important; margin: 10px 0 0; }
.dfx-head h2 em { color: var(--dfx-bleu); }

/* Rayons */
.dfx-rayon { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; background: var(--dfx-papier); }
.dfx-rayon__ph { background: #ddd center/cover no-repeat; min-height: 320px; }
.dfx-rayon--rev .dfx-rayon__ph { order: 2; }
.dfx-rayon__tx { padding: 70px 8%; display: flex; flex-direction: column; justify-content: center; }
.dfx-num { font: 400 80px/1 var(--dfx-serif); color: rgba(10,85,163,.12); }
html body .dfx-rayon h2 { font-size: clamp(2.1rem, 3.6vw, 2.8rem) !important; margin: -12px 0 14px; }
.dfx-rayon h2 em { color: var(--dfx-bleu); }
.dfx-rayon p { color: var(--dfx-gris); max-width: 440px; }

/* Fêtes */
.dfx-band-fetes { position: relative; background: var(--dfx-noir) center/cover no-repeat; color: #F2EBD8; padding: 100px 0; }
.dfx-band-fetes::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(12,12,11,.95) 30%, rgba(12,12,11,.45)); }
.dfx-band-fetes .col-full { position: relative; z-index: 1; }
html body .dfx-band-fetes h2 { color: #F2EBD8 !important; font-size: clamp(2.4rem, 4.5vw, 3.6rem) !important; margin: 10px 0 14px; max-width: 620px; }
.dfx-band-fetes h2 em { color: var(--dfx-or); }
.dfx-band-fetes p { color: rgba(242,235,216,.85); max-width: 520px; margin-bottom: 26px; }
.dfx-dates { display: flex; gap: 34px; margin-top: 26px; font-size: 14px; color: rgba(242,235,216,.8); }
.dfx-dates strong { display: block; color: var(--dfx-or); font: 500 20px/1.3 var(--dfx-serif); }

@media (max-width: 767px) {
	.dfx-hero { min-height: 0; }
	.dfx-hero__txt { padding: 150px 0 36px; }
	.dfx-hero::before { background: linear-gradient(to top, rgba(12,12,11,.92) 35%, rgba(12,12,11,.5) 70%, rgba(12,12,11,.2)); }
	html body .dfx-hero__title { font-size: 2.3rem !important; }
	.dfx-hero__sub { font-size: 16px; }
	.dfx-btn { display: block; text-align: center; margin: 0 0 10px; }
	.dfx-infos .col-full { grid-template-columns: 1fr 1fr; }
	.dfx-infos .col-full > div { border-bottom: 1px solid var(--dfx-ligne); padding: 16px 6px; }
	.dfx-infos .col-full > div:nth-child(2n) { border-right: 0; }
	.dfx-section { padding: 50px 0; }
	.dfx-rayon { grid-template-columns: 1fr; min-height: 0; }
	.dfx-rayon--rev .dfx-rayon__ph { order: 0; }
	.dfx-rayon__ph { min-height: 240px; }
	.dfx-rayon__tx { padding: 30px 20px 44px; }
	.dfx-num { font-size: 56px; }
	.dfx-band-fetes { padding: 56px 0; }
	.dfx-band-fetes::before { background: linear-gradient(to top, rgba(12,12,11,.95) 40%, rgba(12,12,11,.6)); }
	.dfx-dates { flex-direction: column; gap: 12px; }
}

/* Accueil : grille du menu de la semaine (3 colonnes, 1 sur mobile) */
.dfx-home ul.products { margin-left: 0; }
.dfx-home ul.products::after { content: ""; display: block; clear: both; }
@media (min-width: 768px) {
	.dfx-home ul.products.columns-3 li.product { width: 31% !important; float: left !important; margin-right: 3.5% !important; clear: none !important; }
	.dfx-home ul.products.columns-3 li.product.last { margin-right: 0 !important; }
	.dfx-home ul.products.columns-3 li.product.first { clear: both !important; }
}
@media (max-width: 767px) {
	.dfx-home ul.products li.product { width: 100% !important; float: none !important; margin-right: 0 !important; }
}
