/*
Theme Name:   Diffusion Régionale du Livre (Astra)
Description:  Thème enfant Astra pour diffusionregionaledulivre.fr (site professionnel, mode bon de commande) : palette bleue de la maquette drl-accueil-pro-v5.
Template:     astra
Version:      2.4.1
Text Domain:  drl-astra
*/

/* ===== En-tête / pied de page (maquette accueil v4) ===== */
/* En-tête fixe au défilement (Elementor gratuit na pas loption « sticky ») */
/* .ehf-header : HFE impose « position: relative » avec un sélecteur plus fort (sinon décalage de 32 px quand on est connecté) */
#masthead, .ehf-header #masthead { position: sticky; top: 0; z-index: 99; }
.admin-bar #masthead, .admin-bar.ehf-header #masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar #masthead, .admin-bar.ehf-header #masthead { top: 0; } }

/* Bloc Compte + Panier : largeur selon le contenu (sinon 100 % et poussé hors écran) */
.dl-hact.e-con { --width: auto; width: auto !important; max-width: none; }
.dl-hact .hfe-menu-cart__toggle .elementor-button { padding: 4px 6px !important; }
.dl-hact .hfe-menu-cart__toggle .elementor-button-icon { font-size: 22px; }
.dl-hact .hfe-menu-cart__toggle .elementor-button-text { font-size: 14px; font-weight: 600; color: #2b2b2b; }

/* Ligne basse du pied de page */
.dl-fb { margin: 0; }
.dl-fb a { color: #bbb; text-decoration: none; }
.dl-fb a:hover, .dl-fb .cn-revoke-cookie:hover { color: #fff; }
.dl-fb .cn-revoke-cookie { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important;
	color: #bbb !important; font: inherit !important; text-decoration: none; cursor: pointer; box-shadow: none !important; }

/* Champ de recherche façon maquette (Ajax Search Lite, thème « simple-red » : cadre orangé, texte blanc).
   Le plugin cible #ajaxsearchlite1 avec !important : il faut un identifiant dans nos sélecteurs. */
.dl-recherche.elementor-widget { max-width: 560px !important; }
.dl-recherche div.asl_w, .dl-recherche #ajaxsearchlite1 { background: none !important; border: 0 !important; border-radius: 8px !important; box-shadow: none !important; }
.dl-recherche #ajaxsearchlite1 .probox { box-sizing: border-box !important; height: 48px !important; border: 2px solid #e3dfd8 !important; border-radius: 8px !important; box-shadow: none !important; background: #fff !important; transition: border-color .2s; }
.dl-recherche #ajaxsearchlite1 .probox:focus-within { border-color: #1f3a5f !important; }
.dl-recherche #ajaxsearchlite1 .probox .proinput { padding: 0 6px 0 14px !important; color: #2b2b2b !important; }
.dl-recherche #ajaxsearchlite1 .probox .proinput input.orig { height: 44px !important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; font-size: 15px !important; color: #2b2b2b !important; }
.dl-recherche #ajaxsearchlite1 .probox .proinput input.orig::placeholder { color: #999 !important; opacity: 1 !important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; }
.dl-recherche #ajaxsearchlite1 .probox .proinput, .dl-recherche #ajaxsearchlite1 .probox .proinput form { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; }
.dl-recherche #ajaxsearchlite1 .probox .proinput input.autocomplete { height: 44px !important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; font-size: 15px !important; color: #bbb !important; }
.dl-recherche #ajaxsearchlite1 .probox .promagnifier { width: 48px !important; height: 44px !important; background: #1f3a5f !important; background-image: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.dl-recherche #ajaxsearchlite1 .probox .promagnifier:hover { background: #14283f !important; }
.dl-recherche #ajaxsearchlite1 .probox .promagnifier .innericon svg { fill: #fff !important; }

/* ===== Accueil (maquette v4) ===== */
.dl-reass-item p { margin: 0; font-size: 13px; line-height: 1.5; }
.dl-reass-item strong { display: block; color: #2b2b2b; }
.dl-reass-item span { color: #666; font-size: 12px; }

/* Tuiles « Parcourir nos rayons » (conteneurs Elementor avec la classe dl-tile) */
.dl-tiles.e-con { --gap: 16px; gap: 16px; align-items: stretch; }
.dl-tiles > .dl-tile.e-con { --width: auto; flex: 1 1 0 !important; min-width: 0; }
.dl-tile .elementor-widget-text-editor { color: #2b2b2b; }
a.dl-tile:focus-visible { outline: 2px solid #1f3a5f; outline-offset: 3px; }
a.dl-tile { background: #fff; border: 1px solid #e3dfd8; border-top: 4px solid #1f3a5f; border-radius: 10px; transition: .2s; color: #2b2b2b; text-decoration: none; height: 100%; }
a.dl-tile:hover, a.dl-tile:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.1); color: #2b2b2b; }
.dl-tile h3 { font-family: Georgia, "Times New Roman", serif; font-size: 17px; margin: 0 0 10px; color: #2b2b2b; }
.dl-tile ul { margin: 0; padding: 0; list-style: none; }
.dl-tile li { font-size: 13px; color: #555; padding: 2px 0; }
.dl-tile .more { display: block; margin-top: 12px; font-size: 13px; font-weight: 600; color: #1f3a5f; }
.dl-tile p:last-child { margin: 0; }

/* En-tête des blocs de livres (.shead) : titre + sous-titre à gauche, lien à droite */
.dl-shead.e-con { --flex-direction: row; flex-direction: row !important; flex-wrap: nowrap !important; align-items: flex-end; justify-content: space-between; }
.dl-shead > .e-con { --gap: 4px; gap: 4px; }
.dl-shead p:last-child { margin-bottom: 0; }
.dl-shead > .e-con { --width: auto; width: auto !important; flex: 1 1 auto !important; min-width: 0; }
@media (max-width: 560px) { .dl-shead.e-con { flex-wrap: wrap !important; } }
.dl-shead > .elementor-widget-button { flex: 0 0 auto; }

/* Cartes de livres (.card) */
/* Blocs de livres de l'accueil : 8 livres sur une ligne, défilement horizontal natif (scroll-snap) ; ~5,3 cartes visibles
   pour montrer qu'il y a une suite. Flèches ajoutées par js/dl-defil.js. */
.dl-grille { position: relative; --dl-gap: 18px; --dl-n: 5; --dl-vis: 5.3; }
.dl-grille ul.products { display: flex !important; flex-wrap: nowrap !important; gap: var(--dl-gap); margin: -4px -6px -14px !important; padding: 4px 6px 14px !important;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 6px; scrollbar-width: thin; scrollbar-color: #d8cfc2 transparent; }
.dl-grille ul.products::-webkit-scrollbar { height: 6px; }
.dl-grille ul.products::-webkit-scrollbar-thumb { background: #d8cfc2; border-radius: 3px; }
.dl-grille ul.products li.product { flex: 0 0 calc((100% - var(--dl-gap) * var(--dl-n)) / var(--dl-vis)) !important; scroll-snap-align: start; }
/* Flèches ‹ › : ordinateur uniquement (au doigt, on fait glisser) */
.dl-fl { position: absolute; top: 34%; z-index: 3; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: #fff; color: #1f3a5f; box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer; transition: opacity .2s, background .2s, color .2s; }
.dl-fl:hover, .dl-fl:focus-visible { background: #1f3a5f; color: #fff; }
.dl-fl:focus-visible { outline: 2px solid #1f3a5f; outline-offset: 2px; }
.dl-fl-prec { left: -14px; } .dl-fl-suiv { right: -14px; }
.dl-fl:disabled { opacity: 0; pointer-events: none; }
@media (hover: none), (max-width: 1000px) { .dl-fl { display: none; } }
.dl-grille ul.products::before, .dl-grille ul.products::after { display: none !important; }
.dl-grille ul.products li.product { width: auto !important; min-width: 0; margin: 0 !important; float: none !important; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); display: flex; flex-direction: column; }
.dl-grille ul.products li.product .astra-shop-thumbnail-wrap { background: #f3ede2; aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; padding: 8% 14%; }
.dl-grille ul.products li.product .astra-shop-thumbnail-wrap img { width: auto; max-height: 100%; object-fit: contain; box-shadow: 3px 3px 8px rgba(0,0,0,.3); margin: 0 !important; }
.dl-grille ul.products li.product .astra-shop-summary-wrap { padding: 14px; display: flex; flex-direction: column; flex: 1; }
/* nom de l'auteur (à la place de la catégorie, voir functions.php) */
.dl-grille .ast-woo-product-category { display: block; font-size: 12px; line-height: 1.35; color: #1f3a5f; font-weight: 600; }
.dl-grille .woocommerce-loop-product__title { font-family: Georgia, "Times New Roman", serif; font-size: 14px !important; margin: 4px 0 !important; color: #2b2b2b; }
.dl-grille .price { font-weight: 700; color: #c98a1b !important; margin: 8px 0 !important; }
.dl-grille .button { margin-top: auto !important; width: 100%; text-align: center; background: #2b2b2b !important; color: #fff !important; border-radius: 6px !important; font-size: 12px !important; font-weight: 600; padding: 9px !important; }
.dl-grille .button:hover { background: #1f3a5f !important; }
@media (max-width: 1000px) { .dl-grille { --dl-n: 3; --dl-vis: 3.3; }
	.dl-tiles.e-con { flex-wrap: wrap !important; }
	.dl-tiles > .dl-tile.e-con { flex: 1 1 calc(50% - 8px) !important; } }
@media (max-width: 560px) { .dl-tiles > .dl-tile.e-con { flex-basis: 100% !important; } }
@media (max-width: 560px)  { .dl-grille { --dl-gap: 12px; --dl-n: 2; --dl-vis: 2.25; } }

/* ===== Formulaire de contact (WPForms) ===== */
.dl-form .wpforms-container { margin: 0 !important; }
.dl-form .wpforms-field input, .dl-form .wpforms-field textarea { border: 2px solid #e3dfd8 !important; border-radius: 8px !important; box-shadow: none !important; }
.dl-form .wpforms-field input:focus, .dl-form .wpforms-field textarea:focus { border-color: #1f3a5f !important; }
.dl-form .wpforms-field-label { font-weight: 600 !important; color: #2b2b2b !important; }
.dl-form button.wpforms-submit { background: #1f3a5f !important; color: #fff !important; border: 0 !important; border-radius: 8px !important; padding: 13px 26px !important; font-weight: 600 !important; height: auto !important; }
.dl-form button.wpforms-submit:hover { background: #14283f !important; }

/* ---------- Méga menu « Tout le catalogue » (bureau ; en tablette/mobile, menu déroulant HFE) ---------- */
@media (min-width: 1025px) {
	.dl-nav .hfe-nav-menu li.dl-mega > .sub-menu {
		display: grid !important;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 8px 28px;
		width: min(1180px, calc(100vw - 48px)) !important;
		padding: 22px 26px 26px !important;
		left: 0 !important;
		background: #fff;
		border-top: 3px solid #1f3a5f;
		border-radius: 0 0 10px 10px;
		box-shadow: 0 18px 40px rgba(0,0,0,.16);
	}
	.dl-nav .hfe-nav-menu li.dl-mega > .sub-menu > li { border: 0 !important; }
	/* titres de colonnes = les 5 univers */
	.dl-nav .hfe-nav-menu li.dl-mega > .sub-menu > li > .hfe-has-submenu-container > a,
	.dl-nav .hfe-nav-menu li.dl-mega > .sub-menu > li > a {
		font-family: Georgia, serif !important;
		font-size: 16px !important;
		font-weight: 700 !important;
		color: #1f3a5f !important;
		background: transparent !important;
		padding: 6px 0 8px !important;
		border-bottom: 1px solid #E3DFD8 !important;
		white-space: normal;
	}
	.dl-nav .hfe-nav-menu li.dl-mega .sub-arrow { display: none !important; }
	/* sous-catégories : liste statique, toujours visible dans le panneau */
	.dl-nav .hfe-nav-menu li.dl-mega .sub-menu .sub-menu {
		position: static !important;
		visibility: inherit !important; /* pas « visible » : sinon zone invisible sensible au survol, panneau fermé */
		opacity: 1 !important;
		display: block !important;
		width: auto !important;
		min-width: 0 !important;
		box-shadow: none !important;
		border: 0 !important;
		padding: 6px 0 0 !important;
		background: transparent !important;
		transform: none !important;
	}
	.dl-nav .hfe-nav-menu li.dl-mega .sub-menu .sub-menu li { border: 0 !important; }
	.dl-nav .hfe-nav-menu li.dl-mega .sub-menu .sub-menu a {
		font-size: 13.5px !important;
		font-weight: 400 !important;
		color: #2B2B2B !important;
		background: transparent !important;
		padding: 5px 0 !important;
		white-space: normal;
	}
	.dl-nav .hfe-nav-menu li.dl-mega .sub-menu .sub-menu a:hover { color: #1f3a5f !important; text-decoration: underline; }
}

/* Réassurance : boîtes d icône (pictogramme rond à gauche) */
.dl-reass-item .elementor-icon-box-title { margin-top: 0; }
.dl-reass-item .elementor-icon-box-description { margin: 0; }

/* ===== Miniatures de livres hors accueil : recherche, catégories, fiche produit (v1.8.0, 12/11/2026) ===== */
/* Grilles : 5 livres par ligne et 15 par page (réglages Astra shop-grids / shop-no-of-products).
   Couverture : ombre très légère + coins arrondis à droite seulement (côté tranche du livre). */
body:not(.home) ul.products li.product .astra-shop-thumbnail-wrap { aspect-ratio: 3 / 4; min-height: 0; margin-bottom: 10px; } /* min-height 0 : sinon une couverture haute agrandit la boîte */
body:not(.home) ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link { box-sizing: border-box; }
body:not(.home) ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link { display: flex; height: 100%; align-items: flex-end; justify-content: center; padding: 0 6px 6px 0; }
body:not(.home) ul.products li.product .astra-shop-thumbnail-wrap img { width: auto !important; max-width: 100%; max-height: 100%; object-fit: contain; margin: 0 !important; }
/* WooCommerce met « box-shadow: none » avec un sélecteur plus fort : !important nécessaire */
body:not(.home) ul.products li.product .astra-shop-thumbnail-wrap img,
.single-product div.product .woocommerce-product-gallery__image {
	border-radius: 0 6px 6px 0 !important;
	box-shadow: 2px 3px 8px rgba(0,0,0,.14) !important;
}
/* Fiche produit : le conteneur (overflow hidden, nécessaire au zoom) porte l'arrondi et l'ombre */
.single-product div.product .woocommerce-product-gallery__image img { display: block; }
/* Fiche produit : couverture réduite (environ 340 px au lieu de 600) ; un peu d'air pour que l'ombre ne soit pas coupée */
.single-product div.product .woocommerce-product-gallery { padding: 0 8px 10px 0; }
@media (min-width: 922px) {
	.woocommerce-js.single-product div.product div.images { width: 30% !important; max-width: 340px; }
	.woocommerce-js.single-product div.product div.summary { width: calc(100% - min(30%, 340px) - 48px) !important; }
}
@media (max-width: 921px) {
	.single-product div.product .woocommerce-product-gallery { max-width: 300px; margin-left: auto; margin-right: auto; }
}

/* ===== Cohérence avec l'accueil : fiches produits, recherche, catégories, panier… (v1.9.0, 12/11/2026) =====
   Palette Astra (option astra-color-palettes) alignée sur la maquette : 0 violet #1f3a5f, 1 violet foncé #14283f,
   2 et 3 texte #2B2B2B, 5 papier #FAF8F5, 7 filet #E3DFD8. Les liens et boutons Astra ne sont donc plus bleus. */
h1, h2, h3, h4, h5, h6, .entry-title, .product_title { font-family: Georgia, "Times New Roman", serif; color: #2b2b2b; }
.woocommerce-products-header__title, .ast-archive-title, .search .page-title { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(26px, 3vw, 34px); color: #2b2b2b; }

/* Boutons (style des boutons de la maquette : coins arrondis, graisse 600) */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce-page a.button, .woocommerce-page button.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt, .wp-element-button, .ast-button {
	border-radius: 8px !important; font-weight: 600 !important; }

/* Fil d'Ariane : un seul sur la fiche produit (celui de WooCommerce, à côté de la couverture) ; celui de Yoast, au-dessus, est masqué */
.single-product .woo-breadcrumbs { display: none; }
.woo-breadcrumbs, .woocommerce-breadcrumb { font-size: 13px !important; color: #777 !important; }
.woo-breadcrumbs a, .woocommerce-breadcrumb a { color: #777 !important; text-decoration: none; }
.woo-breadcrumbs a:hover, .woocommerce-breadcrumb a:hover { color: #1f3a5f !important; }

/* Cartes de livres des grilles (recherche, catégories, produits apparentés) = cartes de l'accueil */
/* boutons alignés en bas des cartes, quelle que soit la longueur du titre */
body:not(.home) ul.products li.product { display: flex; flex-direction: column; }
body:not(.home) ul.products li.product .astra-shop-summary-wrap { display: flex; flex-direction: column; flex: 1; }
body:not(.home) ul.products li.product .astra-shop-summary-wrap .button { margin-top: auto !important; }
body:not(.home) ul.products li.product .ast-woo-product-category { display: block; font-size: 12px; line-height: 1.35; color: #1f3a5f; font-weight: 600; }
body:not(.home) ul.products li.product .woocommerce-loop-product__title { font-family: Georgia, "Times New Roman", serif; font-size: 15px !important; font-weight: 600; line-height: 1.3; margin: 4px 0 !important; color: #2b2b2b; }
body:not(.home) ul.products li.product .price { font-weight: 700; color: #c98a1b !important; margin: 6px 0 10px !important; }
body:not(.home) ul.products li.product .button { width: 100%; text-align: center; background: #2b2b2b !important; color: #fff !important; border-radius: 6px !important;
	font-size: 12px !important; font-weight: 600 !important; padding: 9px !important; line-height: 1.4 !important; }
body:not(.home) ul.products li.product .button:hover { background: #1f3a5f !important; }
.woocommerce-result-count, .woocommerce-ordering select { font-size: 14px; color: #555; }

/* Fiche produit */
.single-product div.product .summary .product_title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.25; margin-bottom: 10px; }
.single-product div.product .summary .single-product-category a { color: #1f3a5f; font-size: 13px; font-weight: 600; }
.single-product div.product .summary p.price, .single-product div.product .summary span.price { color: #c98a1b !important; font-size: 26px; font-weight: 700; }
.single-product div.product .summary .woocommerce-product-details__short-description { color: #2b2b2b; }
.single-product div.product .summary .woocommerce-product-details__short-description ul { margin-left: 1.1em; }
.single-product div.product form.cart .quantity .qty { border: 2px solid #e3dfd8; border-radius: 8px; height: 48px; color: #2b2b2b; }
.single-product div.product form.cart .single_add_to_cart_button { background: #1f3a5f !important; color: #fff !important; border-radius: 8px !important;
	padding: 0 28px !important; height: 48px; font-size: 15px !important; font-weight: 600 !important; }
.single-product div.product form.cart .single_add_to_cart_button:hover { background: #14283f !important; }
.single-product div.product .product_meta { font-size: 13px; color: #666; border-top-color: #e3dfd8 !important; }
.single-product div.product .product_meta a { color: #1f3a5f; }
/* Onglets Description / Informations complémentaires */
.woocommerce div.product .woocommerce-tabs ul.tabs { border-top-color: #e3dfd8 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: #666; font-weight: 600; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a, .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover { color: #2b2b2b; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::before { background: #1f3a5f !important; }
.woocommerce div.product .woocommerce-tabs .panel { color: #2b2b2b; }
.single-product .related.products > h2, .single-product .upsells.products > h2 { font-size: 26px; font-weight: 700; margin-bottom: 18px; }

/* ===== Fiche produit : retouches du 12/11/2026 (v1.10.0) ===== */
/* Catégorie affichée par Astra entre le fil d'Ariane et le titre : retirée (elle reste dans « Catégories : » sous le bouton) */
.single-product div.product .summary .single-product-category { display: none !important; }
/* « Également disponible » : 5 livres, miniatures réduites d'environ 1/3 (≈ 190 px au lieu de 285) et plus espacées */
.single-product .related.products ul.products { display: grid !important; grid-template-columns: repeat(5, minmax(0, 190px)); gap: 32px 56px; justify-content: start; margin: 0 !important; }
.single-product .related.products ul.products::before, .single-product .related.products ul.products::after { display: none !important; }
.single-product .related.products ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
@media (max-width: 921px) { .single-product .related.products ul.products { grid-template-columns: repeat(2, minmax(0, 190px)); gap: 28px 32px; justify-content: center; } }

/* ===== v1.11.0 (12/11/2026) ===== */
/* Accueil : carte « Voir tout » en fin de bloc (ajoutée par js/dl-defil.js) */
.dl-grille ul.products li.dl-voir-tout { background: #f3ede2; box-shadow: none; border: 2px dashed #d8cfc2; }
.dl-grille li.dl-voir-tout a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px;
	text-align: center; text-decoration: none; color: #1f3a5f; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 16px; line-height: 1.3; }
.dl-grille li.dl-voir-tout .dl-vt-rond { width: 52px; height: 52px; border-radius: 50%; background: #1f3a5f; color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s; }
.dl-grille li.dl-voir-tout a:hover .dl-vt-rond, .dl-grille li.dl-voir-tout a:focus-visible .dl-vt-rond { background: #14283f; transform: translateX(4px); }
.dl-grille li.dl-voir-tout a:focus-visible { outline: 2px solid #1f3a5f; outline-offset: -4px; }

/* Accueil : avis de lecteurs */
.dl-avis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.dl-avis-item { margin: 0; background: #fff; border: 1px solid #e3dfd8; border-radius: 10px; padding: 26px 24px 20px; display: flex; flex-direction: column; position: relative; }
.dl-avis-item::before { content: "\201C"; font-family: Georgia, "Times New Roman", serif; font-size: 64px; line-height: .8; color: #1f3a5f; height: 34px; display: block; }
.dl-avis-livre { margin: 6px 0 10px; font-size: 13px; color: #666; }
.dl-avis-livre a { color: #1f3a5f; font-weight: 600; text-decoration: none; }
.dl-avis-livre a:hover { text-decoration: underline; }
.dl-avis-item blockquote { margin: 0 0 18px; padding: 0; border: 0; font-size: 15px; line-height: 1.65; color: #2b2b2b; font-style: normal; flex: 1; }
.dl-avis-item blockquote p { margin: 0; }
.dl-avis-item figcaption { border-top: 1px solid #e3dfd8; padding-top: 12px; font-weight: 600; font-size: 14px; color: #2b2b2b; }
@media (max-width: 921px) { .dl-avis { grid-template-columns: 1fr; gap: 14px; } }

/* Accueil : présentation (accroche reprise du pied de page) */
.dl-presentation-accroche p { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.55; color: #2b2b2b; margin: 0; }

/* Pied de page, ligne basse : liens légaux à gauche, crédit du concepteur à droite (12/11/2026, v1.11.1) */
.dl-fb { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; }
.dl-fb-credit { color: #999; }
@media (max-width: 767px) { .dl-fb { flex-direction: column; align-items: flex-start; } }

/* v1.12.1 (18/11/2026, demande cliente) : étiquettes masquées sur la fiche produit
   (l'étiquette « nouveau » ne sert plus : les Nouveautés sont triées par date de parution). */
.single-product .product_meta .tagged_as { display: none; }

/* v1.12.2 (20/11/2026) : menu mobile (déroulant HFE ≤ 1024 px). Le fond des entrées de 1er niveau y est blanc,
   mais leurs états focus / page courante / sous-menu ouvert gardaient le texte blanc du bandeau de bureau
   → blanc sur blanc. Texte noir, violet au survol / au toucher. */
@media (max-width: 1024px) {
	.dl-nav nav.hfe-dropdown a.hfe-menu-item,
	.dl-nav nav.hfe-dropdown-expandible a.hfe-menu-item {
		color: #2B2B2B !important; background-color: #FFFFFF !important;
	}
	.dl-nav nav.hfe-dropdown a.hfe-menu-item:hover,
	.dl-nav nav.hfe-dropdown a.hfe-menu-item:focus,
	.dl-nav nav.hfe-dropdown a.hfe-menu-item.highlighted,
	.dl-nav nav.hfe-dropdown-expandible a.hfe-menu-item:hover,
	.dl-nav nav.hfe-dropdown-expandible a.hfe-menu-item:focus,
	.dl-nav nav.hfe-dropdown-expandible a.hfe-menu-item.highlighted {
		color: #1f3a5f !important; background-color: #FAF8F5 !important;
	}
}

/* ===== v1.12.3 (20/11/2026) : fiche produit sans « Étiquette : nouveau » ; page Commander : points relais DPD
   sur toute la largeur du récapitulatif, nom/distance sans chevauchement, logo PayPal réduit de moitié ===== */
.single-product .product_meta .tagged_as { display: none; }

/* Récapitulatif de commande : tableau passé en lignes flex pour que la ligne Expédition occupe toute la largeur */
.woocommerce-checkout .woocommerce-checkout-review-order-table,
.woocommerce-checkout .woocommerce-checkout-review-order-table thead,
.woocommerce-checkout .woocommerce-checkout-review-order-table tbody,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot { display: block; width: 100%; }
.woocommerce-checkout .woocommerce-checkout-review-order-table tr { display: flex; justify-content: space-between; gap: 0; }
.woocommerce-checkout .woocommerce-checkout-review-order-table tr > :first-child { flex: 1 1 auto; min-width: 0; }
.woocommerce-checkout .woocommerce-checkout-review-order-table tr > :last-child:not(:first-child) { flex: 0 0 auto; text-align: right; padding-left: 12px; }
.woocommerce-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals { flex-wrap: wrap; }
.woocommerce-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > td { flex: 1 1 100%; width: 100%; text-align: left; }
.woocommerce-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > th { border-bottom: 0; padding-bottom: 0; }
.woocommerce-checkout #shipping_method { text-align: left; }
.woocommerce-checkout #shipping_method .dpd-pickup-points * { text-indent: 0; }
.woocommerce-checkout #shipping_method li { margin-bottom: 14px; }

/* Liste des points relais */
.woocommerce-checkout .dpd-pickup-points { width: 100%; text-align: left; text-indent: 0; }
.woocommerce-checkout .dpdpp-listing-item { padding: 14px 16px; text-align: left; }
.woocommerce-checkout .dpdpp-listing-top { gap: 12px; align-items: flex-start; }
.woocommerce-checkout .dpdpp-listing-name { flex: 1 1 auto; min-width: 0; margin-right: 0; overflow-wrap: anywhere; }
.woocommerce-checkout .dpdpp-listing-distance { flex: 0 0 auto; white-space: nowrap; }
.woocommerce-checkout .dpdpp-listing-address { margin-top: 4px; }
.woocommerce-checkout .dpdpp-listing-day > div:first-of-type { flex: 0 0 60px; width: 60px; }

/* Logo PayPal : 52 px → 18 px de haut (v1.12.4) */
.woocommerce-checkout #payment .payment_method_paypal label img { max-height: 18px; width: auto; vertical-align: middle; margin-left: 6px; }

/* =====================================================================
   DRL v2.0.0 (26/11/2026) : accueil professionnel, maquette drl-accueil-pro-v5
   Palette : --p #1F3A5F, --pd #14283F, --a #C98A1B (ocre), --dark #2B2B2B, --paper #FAF8F5, --warm #F3EDE2, --line #E3DFD8
   ===================================================================== */

/* Logo texte de l'en-tête : « Diffusion Régionale du Livre », « du Livre » en bleu */
.drl-logo .elementor-heading-title { font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 700; line-height: 1.15; color: #2b2b2b; white-space: nowrap; }
.drl-logo .elementor-heading-title a { color: inherit; display: block; padding: 9px 0 9px 78px; line-height: 30px;
	background: url("img/drl-picto.png") no-repeat left center / 68px 48px; }
/* Pictogramme DRL (livres + plume, repris du logo de la prod) devant le nom — 26/11/2026, v2.1.1 ; la recherche rétrécit pour lui laisser la place */
.elementor-widget.dl-recherche { flex-shrink: 1 !important; min-width: 220px; }
.drl-logo .elementor-heading-title b { color: #1f3a5f; font-weight: 700; }
@media (max-width: 767px) { .drl-logo .elementor-heading-title { font-size: 20px; white-space: normal; } .drl-logo .elementor-heading-title a { padding: 6px 0 6px 60px; line-height: 25px; background-size: 52px 37px; } }

/* Section « Nos éditeurs » : lettres A-Z + cartes d'éditeurs (shortcode [drl_editeurs]) */
.drl-alpha { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.drl-alpha button { min-width: 36px; padding: 6px 11px; border: 1px solid #e3dfd8; border-radius: 6px; background: #fff; color: #2b2b2b;
	font: 600 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; cursor: pointer; transition: background .15s, color .15s; }
.drl-alpha button:hover, .drl-alpha button:focus-visible, .drl-alpha button[aria-pressed="true"] { background: #1f3a5f; border-color: #1f3a5f; color: #fff; }
.drl-alpha button:disabled { opacity: .35; cursor: default; background: #fff; color: #2b2b2b; border-color: #e3dfd8; }
.drl-alpha button:focus-visible { outline: 2px solid #c98a1b; outline-offset: 2px; }
.drl-eds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.drl-ed { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; background: #fff; border: 1px solid #e3dfd8; border-radius: 8px;
	padding: 14px 16px; font-size: 14px; font-weight: 600; color: #2b2b2b !important; text-decoration: none !important; transition: border-color .15s, box-shadow .15s, color .15s; }
.drl-ed:hover, .drl-ed:focus-visible { border-color: #1f3a5f; color: #1f3a5f !important; box-shadow: 0 6px 16px rgba(31,58,95,.12); }
.drl-ed span { color: #999; font-weight: 400; flex: 0 0 auto; }
.drl-ed[hidden] { display: none; }
.drl-eds-pied { margin: 14px 0 0; }
.drl-eds-pied button { padding: 0; border: 0; background: none; color: #1f3a5f; font: 600 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; cursor: pointer; }
.drl-eds-pied button:hover, .drl-eds-pied button:focus-visible { color: #14283f; text-decoration: underline; }
@media (max-width: 1000px) { .drl-eds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .drl-eds { grid-template-columns: 1fr; } }

/* Bloc « Un besoin particulier ? » : carte blanche, filet ocre à gauche, formulaire sur 2 colonnes */
.drl-big.e-con { background: #fff; border: 1px solid #e3dfd8; border-left: 5px solid #c98a1b; border-radius: 10px; }
.drl-big h3 { font-family: Georgia, "Times New Roman", serif; font-size: 20px; margin: 0 0 8px; }
.drl-cform .wpforms-container { margin: 0 !important; }
.drl-cform .wpforms-field-container { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.drl-cform .wpforms-field-container > .wpforms-field { padding: 0 0 14px !important; }
.drl-cform .wpforms-field-container > .drl-full { grid-column: 1 / -1; }
.drl-cform .wpforms-field-label { font-size: 13px !important; font-weight: 600 !important; color: #2b2b2b !important; margin-bottom: 4px !important; }
.drl-cform .wpforms-field input, .drl-cform .wpforms-field select, .drl-cform .wpforms-field textarea {
	width: 100% !important; max-width: 100% !important; padding: 11px 14px !important; border: 1px solid #e3dfd8 !important; border-radius: 8px !important;
	font-size: 14px !important; background: #fff !important; box-shadow: none !important; height: auto !important; }
.drl-cform .wpforms-field textarea { min-height: 120px !important; resize: vertical; }
.drl-cform .wpforms-field input:focus, .drl-cform .wpforms-field select:focus, .drl-cform .wpforms-field textarea:focus { border-color: #1f3a5f !important; outline: none; }
.drl-cform .wpforms-submit-container { padding-top: 0 !important; }
.drl-cform button.wpforms-submit { background: #1f3a5f !important; color: #fff !important; border: 0 !important; border-radius: 8px !important; padding: 13px 26px !important; font-weight: 600 !important; font-size: 14px !important; height: auto !important; }
.drl-cform button.wpforms-submit:hover { background: #14283f !important; }
@media (max-width: 560px) { .drl-cform .wpforms-field-container { grid-template-columns: 1fr; } }

/* Présentation DRL : texte en 16 px / interligne 1,8 (.txt de la maquette) */
.drl-txt p { font-size: 16px; line-height: 1.8; color: #444; margin: 0; }
.drl-txt p + p { margin-top: 14px; }
.drl-txt strong { color: #2b2b2b; }

/* Ancres de l'accueil (#editeurs, #themes, #contact) : arrivée sous l'en-tête fixe */
html { scroll-behavior: smooth; }
.drl-ancre { scroll-margin-top: 170px; }
@media (max-width: 1024px) { .drl-ancre { scroll-margin-top: 20px; } }

/* Carte contact : la colonne du formulaire prend la place restante (jamais de débordement) */
.drl-big > .drl-big-form.e-con { --width: auto; flex: 1 1 0 !important; min-width: 0; }

/* ===== v2.2.0 (27/11/2026) : quantité − / + sur les cartes de livres, compteur du bon de commande ===== */
ul.products li.product .drl-qte { display: flex; align-items: stretch; justify-content: center; margin: 10px 0 8px; margin-top: auto; height: 34px; }
body:not(.drl-x) ul.products li.product .astra-shop-summary-wrap .drl-qte + .button { margin-top: 0 !important; }
.drl-qte button { width: 34px; padding: 0; border: 1px solid #e3dfd8; background: #fff; color: #1f3a5f; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; }
.drl-qte button:hover, .drl-qte button:focus-visible { background: #e6ecf3; }
.drl-qte .drl-qte-moins { border-radius: 6px 0 0 6px; }
.drl-qte .drl-qte-plus { border-radius: 0 6px 6px 0; }
.drl-qte .drl-qte-nb { width: 52px; height: auto; margin: 0; padding: 0 2px; border: 1px solid #e3dfd8; border-left: 0; border-right: 0; border-radius: 0;
	text-align: center; font-size: 14px; font-weight: 600; color: #2b2b2b; background: #fff; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.drl-qte .drl-qte-nb::-webkit-outer-spin-button, .drl-qte .drl-qte-nb::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.drl-bc-nb { display: inline-block; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 10px; background: #c98a1b; color: #fff;
	font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; vertical-align: 1px; }
.drl-bc-nb:empty { display: none; }
