/* En-tête « DP Header » (51533) : un seul logo à la fois, en-tête moins haut sur téléphone — 31/10/2026 (voir entete.php)
   La barre de recherche collée a aussi ses propres règles dans le CSS personnalisé du modèle 51533 (fond blanc pleine
   largeur, recherche seule sur téléphone) : elles restent en place. */

/* Le petit logo n'apparaît que dans la barre de recherche collée en haut (classe ajoutée par Elementor quand elle colle) */
.sticky-search .logo-sticky-bar { display: none; }
.sticky-search.elementor-sticky--active:not(.elementor-sticky__spacer) .logo-sticky-bar { display: block; }

/* Barre collée sur ordinateur : toute la largeur, petit logo à gauche, recherche centrée */
@media (min-width: 768px) {
	.sticky-search.elementor-sticky--active:not(.elementor-sticky__spacer) {
		left: 0 !important; right: 0 !important; width: 100% !important; max-width: none !important;
		height: 84px; box-sizing: border-box; padding: 0 1.5rem !important;
	}
	.sticky-search.elementor-sticky--active .logo-sticky-bar img { height: 60px; width: auto; max-width: none; }
	.sticky-search.elementor-sticky--active .elementor-widget-jet-ajax-search { max-width: 820px !important; margin: 0 auto !important; }
}

/* En haut de page sur téléphone : logo plus petit, sans les 4 pictos (« + 2 000 produits », livraison, 20 ans, SAV)
   ni le choix de catégorie de la recherche (le menu les donne) */
@media (max-width: 767px) {
	.elementor-51533 .elementor-element.elementor-element-55d5680 img { max-width: 72px !important; }
	.elementor-51533 .elementor-element-99e3ca4 { display: none; }
	.elementor-51533 .elementor-element-9c33658 .jet-ajax-search__categories { display: none !important; }
}

/* ---- En-tête compact — 01/11/2026 (voir une-fois-entete.php) ----
   « body » devant : passe avant le CSS des modèles Elementor, chargé dans la page après cette feuille. */

/* Barre du haut : téléphone, retrait gratuit, liens pratiques */
body .e-con.dp-entete-barre { background: #0B1D51; padding: 0 1.5rem !important; }
.dp-haut { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; max-width: 1600px; min-height: 36px; margin: 0 auto;
	color: #FFFFFF; font: 400 14px/1.2 "Rubik", sans-serif; }
.dp-haut-info { display: flex; align-items: center; gap: 22px; margin: 0; white-space: nowrap; }
.dp-haut a { color: #FFFFFF; text-decoration: none; }
.dp-haut a:hover, .dp-haut a:focus { text-decoration: underline; }
.dp-haut-tel { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.dp-haut-tel svg { width: 15px; height: 15px; }
.dp-haut-info > span { position: relative; }
.dp-haut-info > span::before { content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #00AEEF; }
.dp-haut-liens { display: flex; gap: 18px; white-space: nowrap; }

/* Ligne principale : logo, grande recherche, compte, panier */
body .elementor-51533 .e-con.dp-entete-ligne { padding: 10px 1.5rem !important; gap: 24px; align-items: center; }
body .elementor-51533 .e-con.dp-entete-ligne > .e-con-inner { padding: 0 !important; min-height: 0 !important; gap: 24px; align-items: center; }   /* conteneur « boxed » : sa marge intérieure doublait la hauteur */
body .elementor-51533 .elementor-element.elementor-element-4d30342 { --width: auto; flex: 0 0 auto; }
body .elementor-51533 .elementor-element-55d5680 img { width: auto; max-width: none; height: 76px; }
body .elementor-51533 .elementor-element.elementor-element-e6f415f { --width: auto; flex: 1 1 auto; }
body .elementor-51533 .elementor-element.elementor-element-bc5ab7a { gap: 22px; align-items: center; }
body .elementor-51533 .elementor-element.elementor-element-9c33658 { --width: auto; flex: 1 1 auto; max-width: 820px; margin: 0 auto; }
body .elementor-51533 .elementor-element.elementor-element-82f88a8 { --width: auto; flex: 0 0 auto; gap: 14px; align-items: center; }
body .elementor-51533 .elementor-element.elementor-element-5f00086,
body .elementor-51533 .elementor-element.elementor-element-275f158 { --width: auto; }
body .elementor-51533 .elementor-element-740ecdf .elementor-icon-box-title,
body .elementor-51533 .elementor-element-740ecdf .elementor-icon-box-title a { color: #0B1D51 !important; font: 500 15px/1.2 "Rubik", sans-serif; }
body .elementor-51533 .elementor-element-740ecdf .elementor-icon i,
body .elementor-51533 .elementor-element-740ecdf .elementor-icon svg { color: #0B1D51 !important; fill: #0B1D51 !important; }
/* Panier : pastille bleu nuit bien visible, avec « Panier » et le nombre d'articles ; le texte d'origine est remplacé */
body .elementor-51533 .elementor-element-f1c7a35 { display: none; }
body .elementor-51533 .elementor-element-9af132a .elementor-menu-cart__toggle .elementor-button {
	display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px !important; border-radius: 999px; background: #0B1D51 !important; color: #FFFFFF !important;
}
body .elementor-51533 .elementor-element-9af132a .elementor-menu-cart__toggle .elementor-button i,
body .elementor-51533 .elementor-element-9af132a .elementor-menu-cart__toggle .elementor-button svg { color: #FFFFFF !important; fill: #FFFFFF !important; font-size: 20px; width: 20px; height: 20px; }
body .elementor-51533 .elementor-element-9af132a .elementor-menu-cart__toggle .elementor-button::after { content: "Panier"; font: 600 15px/1 "Rubik", sans-serif; }
body .elementor-51533 .elementor-element-9af132a .elementor-menu-cart__toggle .elementor-button:hover { background: #00AEEF !important; }
body .elementor-51533 .elementor-element-9af132a .elementor-button-icon-qty[data-counter] { background: #DA4167; color: #FFFFFF; }
body .elementor-51533 .elementor-element-9af132a .elementor-button-icon-qty[data-counter="0"],
body .elementor-51533 .elementor-element-9af132a .elementor-button-icon[data-counter="0"]::before { display: none !important; }   /* panier vide : pas de « 0 » */

/* Menu : « Noël » en pastille rouge (masquée après Noël par entete.php) */
.e-n-menu-title:has(> a[href$="/noel/"]) a { padding: 6px 16px !important; border-radius: 999px; background: #DA4167; }
.e-n-menu-title:has(> a[href$="/noel/"]) .e-n-menu-title-text { color: #FFFFFF !important; }
.e-n-menu-title:has(> a[href$="/noel/"]) .e-n-menu-title-text::after { content: " 🎄"; }   /* sapin après « Noël », demandé par Christophe */

/* Téléphone : barre du haut sur une ligne, puis une seule ligne menu / logo / compte et panier, puis la recherche */
@media (max-width: 767px) {
	header.elementor-51533 { position: relative; display: flex; flex-direction: column; }
	body .e-con.dp-entete-barre { order: 1; padding: 0 12px !important; }
	.dp-haut { min-height: 30px; height: 30px; justify-content: center; font-size: 12.5px; overflow: hidden; }
	.dp-haut-info { gap: 18px; }
	.dp-haut-plus, .dp-haut-liens { display: none; }
	/* Le menu (bouton à gauche) devient la ligne principale ; logo, compte et panier sont posés dessus */
	/* z-index : le menu déroulant passe devant la recherche (z-index 99) ; logo, compte et panier restent devant la ligne du menu */
	body .e-con.dp-entete-menu { order: 2; min-height: 58px; justify-content: center; position: relative; z-index: 130; }
	body .e-con.dp-entete-menu .elementor-widget-n-menu { --n-menu-toggle-align: flex-start; }
	body .e-con.dp-entete-menu .e-n-menu-toggle { align-self: flex-start !important; margin: 0 auto 0 4px !important; }
	body .elementor-51533 .e-con.dp-entete-ligne { order: 3; position: static; padding: 6px 12px 10px !important; }
	body .elementor-51533 .elementor-element.elementor-element-e6f415f,
	body .elementor-51533 .elementor-element.elementor-element-bc5ab7a { position: static; }
	/* Au-dessus de la ligne du menu (son conteneur collant a z-index 98) ; le menu déroulant s'ouvre en dessous, sans les toucher */
	body .elementor-51533 .elementor-element.elementor-element-4d30342 { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); height: 58px; justify-content: center; align-items: center; z-index: 140; }
	/* 40 px : le logo de 46 px remplissait toute la bande grise du menu et débordait sur son trait du bas sur certains téléphones */
	body .elementor-51533 .elementor-element-55d5680 img { height: 40px; }
	body .elementor-51533 .elementor-element.elementor-element-82f88a8 { position: absolute; top: 30px; right: 12px; height: 58px; z-index: 140; gap: 12px; flex-wrap: nowrap; }
	body .elementor-51533 .elementor-element-740ecdf .elementor-icon-box-content { display: none; }
	body .elementor-51533 .elementor-element-9af132a .elementor-menu-cart__toggle .elementor-button { padding: 9px 12px !important; }
	body .elementor-51533 .elementor-element-9af132a .elementor-menu-cart__toggle .elementor-button::after { content: none; }
	body .elementor-51533 .elementor-element.elementor-element-9c33658 { max-width: none; margin: 0; }
	body .elementor-51533 .e-con.dp-entete-ligne > .e-con-inner,
	body .elementor-51533 .elementor-element.elementor-element-e6f415f,
	body .elementor-51533 .elementor-element.elementor-element-bc5ab7a { padding: 0 !important; margin: 0 !important; gap: 0; min-height: 0; }
}

/* Tablette : recherche avant le compte et le panier, sans le choix de catégorie (le menu le donne) */
@media (min-width: 768px) and (max-width: 1024px) {
	body .elementor-51533 .elementor-element.elementor-element-9c33658 { order: 1; }
	body .elementor-51533 .elementor-element.elementor-element-82f88a8 { order: 2; }
	body .elementor-51533 .elementor-element-9c33658 .jet-ajax-search__categories { display: none !important; }
	body .elementor-51533 .elementor-element-740ecdf .elementor-icon-box-content { display: none; }
}

/* Téléphone, en faisant défiler : petit logo à gauche de la barre de recherche collée en haut (demande de Christophe, 01/11/2026) */
@media (max-width: 767px) {
	body .elementor-51533 .sticky-search.elementor-sticky--active:not(.elementor-sticky__spacer) { display: flex; flex-direction: row; align-items: center; gap: 10px;
		padding: 6px 12px !important; background: #FFFFFF; box-shadow: 0 2px 8px rgba(11,29,81,.12); }
	body .elementor-51533 .sticky-search.elementor-sticky--active:not(.elementor-sticky__spacer) .logo-sticky-bar { display: block !important; flex: 0 0 auto; width: auto; margin: 0; }
	body .elementor-51533 .sticky-search.elementor-sticky--active:not(.elementor-sticky__spacer) .logo-sticky-bar img { height: 40px; width: auto; max-width: none !important; }
	body .elementor-51533 .sticky-search.elementor-sticky--active:not(.elementor-sticky__spacer) .elementor-widget-jet-ajax-search { flex: 1 1 auto; min-width: 0; }
}

/* Ordinateur et tablette : tout l'en-tête reste en haut (barre bleu nuit, logo, recherche, compte, panier, menu) et se
   resserre dès qu'on fait défiler (entete.js) — 01/11/2026, « je ne vois plus le panier ni Mon compte au scroll » */
@media (min-width: 768px) {
	header.elementor-51533 { position: sticky; top: 0; z-index: 9000; background: #FFFFFF; transition: box-shadow .2s; }
	body.admin-bar header.elementor-51533 { top: 32px; }
	header.elementor-51533.dp-entete-compact { box-shadow: 0 4px 14px rgba(11,29,81,.12); }
	body .elementor-51533 .elementor-element-55d5680 img { transition: height .2s; }
	body .elementor-51533.dp-entete-compact .elementor-element-55d5680 img { height: 46px; }
	body .elementor-51533.dp-entete-compact .e-con.dp-entete-ligne { padding-top: 6px !important; padding-bottom: 6px !important; }
	/* Le petit logo de l'ancienne barre collée ne sert plus ici */
	body .elementor-51533 .logo-sticky-bar { display: none !important; }
}
@media (min-width: 768px) and (max-width: 782px) { body.admin-bar header.elementor-51533 { top: 46px; } }
