/* =====================================================================
   En-tête du site (refonte du 15 nov. 2026) - partials/home/header-04.php, script : assets/js/csb-header.js
   Bandeau d'information (.csb-tb) + une seule ligne (.csb-hd-bar : logo, menu, langue, contact, panier) + menu mobile (.csb-dw).
   Sauvegarde de l'ancienne version : csb-docs/sauvegarde-2026-11-15-header/
   Point de bascule vers le menu hamburger : 1100 px (voir « Largeur nécessaire » dans le rapport de la refonte).
   Palette : texte #111, vert #004540, jaune #FFE06A, fond blanc ; bandeau vert très clair #EFF5EE.
   ===================================================================== */
.csb-hd {
	--hd-texte: #111; --hd-vert: #004540; --hd-mil: #FFE06A; --hd-mil-2: #FFD54A; --hd-trait: rgba(0, 69, 64, .12); --hd-bande: #EFF5EE;
	--hd-ease: cubic-bezier(.2, .7, .2, 1);
	position: sticky; top: calc(-1 * var(--csb-topbar-h, 0px)); z-index: 60; background: #fff; color: var(--hd-texte);
}
.csb-hd ul, .csb-dw ul { margin: 0; padding: 0; list-style: none; }
.csb-hd li, .csb-dw li { margin: 0; padding: 0; }
.csb-hd a, .csb-dw a { text-decoration: none; }
.csb-hd :is(a, button, summary):focus-visible, .csb-dw :is(a, button):focus-visible { outline: 2px solid var(--hd-vert); outline-offset: 2px; border-radius: 4px; }
.csb-hd button, .csb-dw button { font-family: inherit; }
.csb-hd [hidden], .csb-dw [hidden] { display: none !important; }

/* --- Bandeau d'information --- */
.csb-tb { background: var(--hd-bande); border-bottom: 1px solid var(--hd-trait); font-size: 13px; line-height: 1.3; }
.csb-tb-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); align-items: center; column-gap: 24px; height: 36px; }
.csb-tb p.csb-tb-lieu { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 500; color: var(--hd-texte); white-space: nowrap; }
.csb-tb-lieu i { font-size: 13px; color: var(--hd-vert); }
.csb-slider { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; height: 36px; }
.csb-slider-liste { position: relative; height: 36px; }
.csb-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.csb-slide.is-actif { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.csb-slide a { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; color: var(--hd-texte); font-weight: 500; }
.csb-slide a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csb-slide a i { flex: none; font-size: 11px; color: var(--hd-vert); transition: transform .2s var(--hd-ease); }
.csb-slide a:hover span { text-decoration: underline; text-decoration-color: var(--hd-mil); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.csb-slide a:hover i { transform: translateX(3px); }
.csb-slider-ctrl { display: flex; align-items: center; gap: 2px; }
.csb-slider-btn { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--hd-texte); font-size: 11px; cursor: pointer; transition: background-color .2s ease; }
.csb-slider-btn:hover { background: rgba(0, 69, 64, .08); }
.csb-slider-pause i.fa-play, .csb-slider-pause[aria-pressed="true"] i.fa-pause { display: none !important; }
.csb-slider-pause[aria-pressed="true"] i.fa-play { display: inline-block !important; }
.csb-tb-reseaux { display: flex; justify-content: flex-end; gap: 2px; }
.csb-tb-reseaux a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--hd-texte); font-size: 13px; transition: background-color .2s ease, color .2s ease; }
.csb-tb-reseaux a:hover { background: var(--hd-vert); color: #fff; }

/* --- Ligne principale : logo | menu | langue · contact · panier --- */
.csb-hd-bar { position: relative; background: #fff; border-bottom: 1px solid var(--hd-trait); transition: box-shadow .3s ease; }
.csb-hd.is-scrolled .csb-hd-bar { box-shadow: 0 12px 24px -20px rgba(0, 40, 36, .45); }
.csb-hd-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.csb-hd-logo { display: block; flex: none; }
.csb-hd-logo .csb-logo { display: block; width: auto; max-width: none; height: 52px; }
.csb-logo-lockup { display: inline-flex; align-items: center; gap: 10px; }
.csb-logo-lockup .csb-logo-mark { width: 44px; height: 44px; flex: none; object-fit: contain; }
.csb-logo-lockup .csb-logo-text { font-family: var(--csb-font-titre); font-size: 15px; font-weight: 600; line-height: 1.12; color: var(--hd-vert); }

.csb-nav { flex: 1 1 auto; min-width: 0; margin-left: 8px; }
.csb-nav-liste { display: flex; align-items: center; gap: 2px; }
.csb-nav-item { position: relative; }
.csb-nav-lien {
	position: relative; display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 12px; border: 0; background: none;
	font-family: var(--csb-font-texte); font-size: 15px; font-weight: 500; line-height: 1; color: var(--hd-texte); white-space: nowrap; cursor: pointer; transition: color .2s ease;
}
.csb-nav-lien::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--hd-mil); transform: scaleX(0); transform-origin: left center; transition: transform .22s var(--hd-ease); }
.csb-nav-lien:hover::after, .csb-nav-lien:focus-visible::after, .csb-nav-item.is-open > .csb-nav-lien::after, .csb-nav-lien.is-actif::after { transform: scaleX(1); }
.csb-nav-lien:hover, .csb-nav-lien.is-actif { color: var(--hd-vert); }
.csb-nav-lien.is-actif::after { background: var(--hd-mil); }
.csb-nav-chevron { flex: none; width: 11px; height: 11px; margin-right: -2px; transition: transform .22s var(--hd-ease); }
.csb-nav-item.is-open > .csb-nav-lien .csb-nav-chevron { transform: rotate(180deg); }
.csb-sub { position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; min-width: 176px; padding: 6px; border: 1px solid var(--hd-trait); border-radius: 10px; background: #fff; box-shadow: 0 14px 30px -18px rgba(0, 40, 36, .35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .22s var(--hd-ease), visibility 0s linear .22s; }
.csb-nav-item.is-open > .csb-sub, .csb-nav-item.has-sub:focus-within > .csb-sub { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .22s var(--hd-ease); }
.csb-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.csb-sub a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 14.5px; font-weight: 500; color: var(--hd-texte); transition: color .2s ease, box-shadow .2s ease; }
.csb-sub a:hover, .csb-sub a:focus-visible { color: var(--hd-vert); box-shadow: inset 3px 0 0 var(--hd-mil); }
.csb-sub a[aria-current="page"] { color: var(--hd-vert); font-weight: 600; box-shadow: inset 3px 0 0 var(--hd-vert); }

.csb-hd-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.csb-hd-contact { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--hd-mil); font-size: 14.5px; font-weight: 600; line-height: 1; color: var(--hd-texte); white-space: nowrap; transition: background-color .2s ease; }
.csb-hd-contact i { font-size: 12px; transition: transform .2s var(--hd-ease); }
.csb-hd-contact:hover, .csb-hd-contact:focus-visible { background: var(--hd-mil-2); color: var(--hd-texte); }
.csb-hd-contact:hover i { transform: translateX(2px); }
.csb-hd-contact[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--hd-vert); }

/* Panier conditionnel : espace réservé à zéro, puis ouverture douce (aucun saut du menu : le menu est aligné à gauche, seules les actions se décalent) */
.csb-hd-cart { position: relative; display: grid; place-items: center; width: 0; height: 40px; overflow: visible; border-radius: 50%; color: var(--hd-texte); opacity: 0; visibility: hidden; transition: width .3s var(--hd-ease), opacity .3s ease, visibility 0s linear .3s, color .2s ease; }
.csb-hd-cart.is-on { width: 40px; opacity: 1; visibility: visible; transition: width .3s var(--hd-ease), opacity .3s ease .08s, color .2s ease; }
.csb-hd-cart svg { width: 24px; height: 24px; }
.csb-hd-cart:hover { color: var(--hd-vert); }
.csb-hd-cart-n { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--hd-vert); font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; color: #fff; font-variant-numeric: tabular-nums; }

/* Langue : drapeau + code, liste de deux entrées */
.csb-langue { position: relative; }
.csb-langue-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 8px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--hd-texte); cursor: pointer; list-style: none; user-select: none; transition: background-color .2s ease; }
.csb-langue-btn::-webkit-details-marker { display: none; }
.csb-langue-btn::marker { content: ""; }
.csb-langue-btn:hover, .csb-langue[open] .csb-langue-btn { background: rgba(0, 69, 64, .06); }
.csb-drapeau { flex: none; width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.csb-langue-liste { position: absolute; top: calc(100% + 6px); right: 0; z-index: 6; display: flex; flex-direction: column; gap: 2px; padding: 4px; border: 1px solid var(--hd-trait); border-radius: 10px; background: #fff; box-shadow: 0 14px 30px -18px rgba(0, 40, 36, .35); }
.csb-langue-liste a { display: flex; align-items: center; gap: 8px; min-width: 76px; height: 36px; padding: 0 10px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--hd-texte); transition: background-color .15s ease; }
.csb-langue-liste a:hover, .csb-langue-liste a:focus-visible { background: rgba(0, 69, 64, .06); }
.csb-langue-liste a[aria-current="true"] { box-shadow: inset 3px 0 0 var(--hd-mil); }

/* Hamburger (mobile) */
.csb-hd-burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.csb-hd-burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--hd-texte); transition: background-color .2s ease; }
.csb-hd-burger:hover span { background: var(--hd-vert); }

/* --- Largeur nécessaire --- */
/* 1100 à 1279 px : menu un peu plus serré */
@media (min-width: 1100px) and (max-width: 1279px) {
	.csb-hd-in { gap: 16px; }
	.csb-hd-logo .csb-logo { height: 46px; }
	.csb-nav { margin-left: 0; }
	.csb-nav-lien { padding: 0 9px; font-size: 14.5px; }
	.csb-nav-lien::after { left: 9px; right: 9px; }
	.csb-hd-contact { padding: 0 14px; }
}
/* En dessous de 1100 px : logo + langue (+ panier) + hamburger sur une seule ligne */
@media (max-width: 1099px) {
	.csb-nav, .csb-hd-contact { display: none; }
	.csb-hd-burger { display: flex; }
	.csb-hd-in { gap: 12px; height: 64px; }
	.csb-hd-logo .csb-logo { height: 44px; }
	.csb-hd-actions { gap: 4px; }
	.csb-tb-in { grid-template-columns: minmax(0, 1fr); height: 40px; }
	.csb-tb-lieu, .csb-tb-reseaux, .csb-slider-prec, .csb-slider-suiv { display: none !important; }
	.csb-slider { height: 40px; }
	.csb-slider-liste { height: 40px; }
	.csb-slide { justify-content: flex-start; }
	.csb-slide a span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; font-size: 12.5px; }
}
@media (max-width: 374px) {
	.csb-hd-logo .csb-logo { height: 36px; }
	.csb-langue-btn { padding: 0 6px; }
	.csb-langue-btn .csb-langue-code { display: none; }
	.csb-hd-in { gap: 8px; }
}

/* --- Menu mobile --- */
html.csb-menu-lock, html.csb-menu-lock body { overflow: hidden; }
.csb-dw { position: fixed; inset: 0; z-index: 10040; visibility: hidden; pointer-events: none; transition: visibility 0s linear .3s; }
.csb-dw.is-open { visibility: visible; pointer-events: auto; transition: none; }
.csb-dw-overlay { position: absolute; inset: 0; background: rgba(17, 17, 17, .42); opacity: 0; transition: opacity .3s ease; }
.csb-dw.is-open .csb-dw-overlay { opacity: 1; }
.csb-dw-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(100vw, 420px); background: #fff; transform: translateX(100%); transition: transform .3s var(--hd-ease, cubic-bezier(.2, .7, .2, 1)); outline: none; }
.csb-dw.is-open .csb-dw-panel { transform: none; }
.csb-dw { --hd-texte: #111; --hd-vert: #004540; --hd-mil: #FFE06A; --hd-mil-2: #FFD54A; --hd-trait: rgba(0, 69, 64, .12); }
.csb-dw-tete { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--hd-trait); }
.csb-dw-logo { display: block; }
.csb-dw-logo .csb-logo { display: block; width: auto; max-width: none; height: 44px; }
.csb-dw-fermer { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--hd-texte); font-size: 20px; cursor: pointer; transition: background-color .2s ease; }
.csb-dw-fermer:hover { background: rgba(0, 69, 64, .08); }
.csb-dw-corps { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px calc(24px + env(safe-area-inset-bottom)); }
.csb-dw-liste { border-bottom: 1px solid var(--hd-trait); }
.csb-dw-item { border-top: 1px solid var(--hd-trait); }
.csb-dw-item:first-child { border-top: 0; }
.csb-dw-lien { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 2px; border: 0; background: none; font-family: var(--csb-font-texte); font-size: 17px; font-weight: 500; text-align: left; color: var(--hd-texte); cursor: pointer; transition: color .2s ease; }
.csb-dw-lien:hover { color: var(--hd-vert); }
.csb-dw-lien.is-actif { color: var(--hd-vert); font-weight: 600; box-shadow: inset 3px 0 0 var(--hd-mil); padding-left: 14px; }
.csb-dw-lien .csb-nav-chevron { width: 13px; height: 13px; margin-right: 0; }
.csb-dw-item.is-ouvert .csb-nav-chevron { transform: rotate(180deg); }
.csb-dw-acc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--hd-ease, cubic-bezier(.2, .7, .2, 1)); }
.csb-dw-item.is-ouvert .csb-dw-acc { grid-template-rows: 1fr; }
.csb-dw-acc > ul { min-height: 0; overflow: hidden; }
.csb-dw-acc a { display: flex; align-items: center; min-height: 46px; padding: 0 2px 0 16px; font-size: 16px; font-weight: 500; color: var(--hd-texte); transition: color .2s ease; }
.csb-dw-acc a:hover, .csb-dw-acc a[aria-current="page"] { color: var(--hd-vert); }
.csb-dw-acc a[aria-current="page"] { font-weight: 600; box-shadow: inset 3px 0 0 var(--hd-mil); }
.csb-dw-item:not(.is-ouvert) .csb-dw-acc a { visibility: hidden; }
.csb-dw-cart { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--hd-trait); font-size: 17px; font-weight: 500; color: var(--hd-texte); }
.csb-dw-cart svg { width: 24px; height: 24px; flex: none; }
.csb-dw-cart-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--hd-vert); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; color: #fff; font-variant-numeric: tabular-nums; }
.csb-dw-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.csb-dw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 12px; border: 1.5px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.1; text-align: center; color: var(--hd-texte); transition: background-color .2s ease, border-color .2s ease; }
.csb-dw-btn--contour { background: #fff; border-color: var(--hd-vert); color: var(--hd-vert); }
.csb-dw-btn--contour:hover { background: rgba(0, 69, 64, .06); }
.csb-dw-btn--plein { background: var(--hd-mil); }
.csb-dw-btn--plein:hover { background: var(--hd-mil-2); }
.csb-dw-btn i { font-size: 12px; }
.csb-dw-bloc { margin-top: 28px; }
.csb-dw-bloc h2 { margin: 0 0 12px; font-family: var(--csb-font-texte); font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--hd-texte); }
.csb-dw-bloc h2::after { content: ""; display: block; width: 24px; height: 3px; margin-top: 6px; border-radius: 2px; background: var(--hd-mil); }
.csb-dw-coord { display: grid; gap: 4px; }
.csb-dw-coord a, .csb-dw-coord span { display: flex; align-items: flex-start; gap: 12px; min-height: 40px; padding: 8px 0; font-size: 15px; line-height: 1.4; color: var(--hd-texte); overflow-wrap: anywhere; }
.csb-dw-coord a:hover { color: var(--hd-vert); }
.csb-dw-coord i { flex: none; width: 18px; margin-top: 3px; font-size: 15px; text-align: center; color: var(--hd-vert); }
.csb-dw-reseaux { display: grid; grid-template-columns: repeat(4, 44px); gap: 12px; }
.csb-dw-reseaux a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--hd-trait); border-radius: 50%; background: #fff; font-size: 17px; color: var(--hd-vert); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.csb-dw-reseaux a:hover, .csb-dw-reseaux a:focus-visible { border-color: var(--hd-vert); background: var(--hd-vert); color: #fff; }
@media (min-width: 1100px) { .csb-dw { display: none; } }

/* --- Mouvement réduit : pas de rotation automatique (script), pas de transitions décoratives --- */
@media (prefers-reduced-motion: reduce) {
	.csb-slide, .csb-slide a i, .csb-nav-lien::after, .csb-nav-chevron, .csb-sub, .csb-hd-cart, .csb-hd-contact i,
	.csb-dw, .csb-dw-overlay, .csb-dw-panel, .csb-dw-acc, .csb-hd-bar { transition: none !important; }
}

/* --- Priorité sur les styles globaux du thème (boutons, titres h2) --- */
body .csb-hd button.csb-nav-lien { font-family: var(--csb-font-texte); font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--hd-texte); }
body .csb-hd button.csb-nav-lien:hover, body .csb-hd button.csb-nav-lien.is-actif { color: var(--hd-vert); }
@media (min-width: 1100px) and (max-width: 1279px) { body .csb-hd button.csb-nav-lien { font-size: 14.5px; } }
body .csb-dw button.csb-dw-lien { font-family: var(--csb-font-texte); font-size: 17px; font-weight: 500; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--hd-texte); }
body .csb-dw button.csb-dw-lien.is-actif { color: var(--hd-vert); font-weight: 600; }
body .csb-dw .csb-dw-bloc h2:not(#csb) { margin: 0 0 12px; font-family: var(--csb-font-texte); font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--hd-texte); }
/* Page active du menu mobile : repère jaune dans la marge, le texte ne bouge pas */
.csb-dw-lien.is-actif, .csb-dw-acc a[aria-current="page"] { box-shadow: none; padding-left: 2px; }
.csb-dw-acc a[aria-current="page"] { padding-left: 16px; }
.csb-dw-lien.is-actif::before, .csb-dw-acc a[aria-current="page"]::before { content: ""; position: absolute; left: -20px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 2px 2px 0; background: var(--hd-mil); }
.csb-dw-acc a { position: relative; }
