/* DS Relooking — En-tête ordinateur (≥ 1025 px). Le mobile n'est pas touché. */
body.ds-hd {
	--ds-hd-primary: #1B3159;
	--ds-hd-accent: #8E1417;
}

@media (min-width: 1025px) {

	/* 1. Barre du haut : bandeau marine */
	body.ds-hd .whb-header .whb-top-bar {
		background: var(--ds-hd-primary) !important;
		background-image: none !important;
		border-bottom: 0 !important;
	}
	body.ds-hd .whb-header .whb-top-bar .whb-flex-row { min-height: 34px; height: 34px; }
	body.ds-hd .whb-header .whb-top-bar .wd-header-secondary-nav .wd-nav > li > a {
		color: rgba(255, 255, 255, .82) !important;
		font-family: "Work Sans", sans-serif;
		font-size: 12px;
		font-weight: 500;
		letter-spacing: .06em;
		transition: color .15s;
	}
	body.ds-hd .whb-header .whb-top-bar .wd-header-secondary-nav .wd-nav > li > a:hover { color: #fff !important; }
	body.ds-hd .whb-header .whb-top-bar .info-box-wrapper .info-box-title,
	body.ds-hd .whb-header .whb-top-bar .info-box-wrapper .info-box-inner,
	body.ds-hd .whb-header .whb-top-bar .info-box-wrapper a { color: #fff !important; }
	body.ds-hd .whb-header .whb-top-bar .info-box-wrapper .info-box-title {
		font-family: "Work Sans", sans-serif;
		font-size: 13px !important;
		font-weight: 500;
		letter-spacing: .02em;
		white-space: nowrap;
	}
	body.ds-hd .whb-header .whb-top-bar .info-box-wrapper .info-svg-wrapper img,
	body.ds-hd .whb-header .whb-top-bar .info-box-wrapper .info-box-icon svg {
		filter: brightness(0) invert(1);
		opacity: .85;
	}
	body.ds-hd .whb-header .whb-top-bar .wd-header-divider:before {
		border-color: rgba(255, 255, 255, .22) !important;
		height: 16px;
	}
	body.ds-hd .whb-header .whb-top-bar .info-box-wrapper:hover .info-box-title {
		text-decoration: underline;
		text-underline-offset: 3px;
	}

	/* « Nous contacter » (dernier encadré, avec les avatars) : pastille blanche */
	body.ds-hd .whb-header .whb-top-bar .whb-col-right > .info-box-wrapper:last-child .wd-info-box {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 3px 14px 3px 5px;
		background: #fff;
		border-radius: 999px;
	}
	body.ds-hd .whb-header .whb-top-bar .whb-col-right > .info-box-wrapper:last-child .info-box-icon img { filter: none; opacity: 1; }
	body.ds-hd .whb-header .whb-top-bar .whb-col-right > .info-box-wrapper:last-child .box-icon-wrapper { margin: 0 !important; }
	body.ds-hd .whb-header .whb-top-bar .whb-col-right > .info-box-wrapper:last-child .info-box-title {
		color: var(--ds-hd-primary) !important;
		font-size: 12.5px !important;
		font-weight: 600;
	}
	body.ds-hd .whb-header .whb-top-bar .whb-col-right > .info-box-wrapper:last-child:hover .info-box-title {
		color: var(--ds-hd-accent) !important;
		text-decoration: none;
	}

	/* 2. Ligne principale : recherche et PROMO */
	body.ds-hd .whb-header .whb-general-header { border-bottom: 1px solid #ECE7E2 !important; }
	body.ds-hd .whb-header .whb-general-header .whb-flex-row { min-height: 58px; height: 58px; }
	body.ds-hd .whb-header .whb-general-header .searchform input.s {
		background: #F6F4F1 !important;
		border: 1.5px solid #E4DED7 !important;
		border-radius: 999px !important;
		color: var(--ds-hd-primary);
		font-family: "Work Sans", sans-serif;
		font-size: 14px;
		transition: border-color .15s, background .15s, box-shadow .15s;
	}
	body.ds-hd .whb-header .whb-general-header .searchform input.s::placeholder { color: #7A7F8C; }
	body.ds-hd .whb-header .whb-general-header .searchform input.s:focus {
		background: #fff !important;
		border-color: var(--ds-hd-primary) !important;
		box-shadow: 0 0 0 4px rgba(27, 49, 89, .10);
	}
	body.ds-hd .whb-header .whb-general-header .searchform .searchsubmit { color: var(--ds-hd-primary) !important; }

	body.ds-hd-promo .whb-header .whb-general-header .wd-button-wrapper .btn {
		display: inline-flex !important;
		align-items: center;
		gap: 7px;
		padding-left: 18px !important;
		padding-right: 20px !important;
		background: var(--ds-hd-accent) !important;
		color: #fff !important;
		border: 0 !important;
		border-radius: 999px !important;
		box-shadow: 0 6px 14px -6px rgba(142, 20, 23, .6) !important;
		font-family: "Work Sans", sans-serif;
		font-weight: 700;
		letter-spacing: .08em;
		transition: transform .15s, filter .15s;
	}
	body.ds-hd-promo .whb-header .whb-general-header .wd-button-wrapper .btn:before {
		content: "";
		flex: none;
		width: 15px;
		height: 15px;
		background: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8Z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8Z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
	}
	body.ds-hd-promo .whb-header .whb-general-header .wd-button-wrapper .btn:hover {
		filter: brightness(.85);
		transform: translateY(-1px);
	}

	/* 3. Barre des rayons : fond blanc uni, rayons en marine, soulignés en rouge au survol */
	body.ds-hd .whb-header .whb-header-bottom {
		background: #fff !important;
		background-image: none !important;
		border-bottom: 1px solid #ECE7E2 !important;
		box-shadow: 0 6px 16px -14px rgba(27, 49, 89, .35);
		padding: 0 !important;
		margin: 0 !important;
	}
	/* La barre s'arrête au niveau du trait rouge (le thème ajoutait 7 px de marge en haut et en bas). */
	body.ds-hd .whb-header .whb-header-bottom .whb-flex-row { min-height: 44px; height: 44px; }
	body.ds-hd .whb-header .whb-header-bottom .whb-col-left { flex: 1 1 auto; }
	body.ds-hd .whb-header .whb-header-bottom .wd-header-main-nav { width: 100%; }
	body.ds-hd .whb-header .whb-header-bottom .wd-header-main-nav,
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main {
		height: 44px;
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main {
		display: flex !important;
		flex-wrap: nowrap;
		justify-content: space-between;
		gap: 4px;
		margin: 0;
	}
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li {
		position: relative;
		padding: 0 !important;
		background: none !important;
		border: 0 !important;
		border-radius: 0 !important;
	}
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li > a {
		height: 44px !important;
		padding: 0 8px !important;
		background: none !important;
		border-radius: 0 !important;
		color: var(--ds-hd-primary) !important;
		font-family: "Work Sans", sans-serif !important;
		font-size: 14px !important;
		font-weight: 600 !important;
		letter-spacing: 0;
		white-space: nowrap;
		transition: color .15s;
	}
	/* Flèches des sous-menus masquées : l'icône suffit et tout tient sur une ligne. */
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li > a:after { display: none !important; }

	/* Icône devant chaque rayon */
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li > a:has(.ds-hd-ico) {
		display: flex !important;
		align-items: center;
		gap: 6px;
	}
	body.ds-hd .whb-header .ds-hd-ico {
		flex: none;
		width: 20px;
		height: 20px;
		fill: none;
		stroke-width: 1.6;
		stroke-linecap: round;
		stroke-linejoin: round;
		transition: transform .2s ease;
	}
	body.ds-hd .whb-header .ds-hd-ico-base { stroke: var(--ds-hd-primary); transition: stroke .15s; }
	body.ds-hd .whb-header .ds-hd-ico-accent { stroke: var(--ds-hd-accent); }
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li:hover .ds-hd-ico { transform: translateY(-1px) scale(1.08); }
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li:hover .ds-hd-ico-base,
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li.current-menu-item .ds-hd-ico-base,
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li.current-menu-ancestor .ds-hd-ico-base { stroke: var(--ds-hd-accent); }

	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li:before {
		content: "";
		position: absolute;
		z-index: 2;
		left: 8px;
		right: 8px;
		bottom: 0;
		height: 3px;
		background: var(--ds-hd-accent);
		border-radius: 3px 3px 0 0;
		transform: scaleX(0);
		transition: transform .2s ease;
		pointer-events: none;
	}
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li:hover:before,
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li.current-menu-item:before,
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li.current-menu-ancestor:before { transform: scaleX(1); }
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li:hover > a,
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li.current-menu-item > a,
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li.current-menu-ancestor > a { color: var(--ds-hd-accent) !important; }

	/* Sous-menus des rayons */
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li > .wd-dropdown {
		border-top: 0;
		border-radius: 0 0 12px 12px;
		box-shadow: 0 18px 36px -12px rgba(27, 49, 89, .28) !important;
	}
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main .wd-sub-menu li a {
		color: var(--ds-hd-primary) !important;
		font-family: "Work Sans", sans-serif;
		font-size: 14px;
		border-radius: 8px;
		transition: background .15s, color .15s;
	}
	body.ds-hd .whb-header .whb-header-bottom .wd-nav-main .wd-sub-menu li a:hover {
		background: #F3F5F9;
		color: var(--ds-hd-accent) !important;
	}

	/* Écrans moyens : les 11 rayons tiennent sur une ligne */
	@media (max-width: 1440px) {
		body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li > a {
			padding: 0 6px !important;
			font-size: 13.5px !important;
		}
		body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li:before { left: 6px; right: 6px; }
		body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li > a:has(.ds-hd-ico) { gap: 5px; }
		body.ds-hd .whb-header .ds-hd-ico { width: 18px; height: 18px; }
	}
	@media (max-width: 1340px) {
		body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li > a {
			padding: 0 5px !important;
			font-size: 12.5px !important;
		}
		body.ds-hd .whb-header .whb-header-bottom .wd-nav-main > li:before { left: 5px; right: 5px; }
		body.ds-hd .whb-header .ds-hd-ico { width: 16px; height: 16px; }
	}
	@media (max-width: 1240px) {
		body.ds-hd .whb-header .ds-hd-ico { display: none; }
	}
}
