/* WFX - Menu principal et footer. Tokens --wfx-* (wfx-styles.php). Un seul HTML : ordinateur >= 1025px, tiroir en dessous. */

.wfx-nav { position: relative; display: flex; justify-content: flex-end; align-items: center; font-family: Roboto, sans-serif; }
.wfx-nav ul { list-style: none; margin: 0; padding: 0; }
.wfx-nav a { text-decoration: none !important; }
.wfx-nav__burger { display: none; }

/* ---------- Barre ---------- */
.wfx-nav__top { display: flex; align-items: center; gap: 2px; }
.wfx-nav__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent;
	font: 600 15px/1 Roboto, sans-serif; color: var(--wfx-ink, #54595F); cursor: pointer; transition: background .15s, color .15s; }
.wfx-nav__btn:hover, .wfx-nav__btn[aria-expanded="true"] { background: var(--wfx-blue-soft, #E8F4FB); color: #1F6F95; }
.wfx-nav__btn:focus-visible, .wfx-nav__burger:focus-visible, .wfx-nav a:focus-visible { outline: 3px solid rgba(46, 150, 196, .45); outline-offset: 2px; }
.wfx-nav__chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.wfx-nav__btn[aria-expanded="true"] .wfx-nav__chev { transform: rotate(180deg); }

/* ---------- Menus déroulants (ordinateur) ---------- */
.wfx-nav__dd { display: none; position: absolute; top: calc(100% + 12px); right: 0; z-index: 9999; background: #fff; border: 1px solid var(--wfx-line, #E0E3E6);
	border-radius: 14px; box-shadow: 0 18px 44px rgba(31, 52, 66, .14); padding: 22px 24px 0; text-align: left; }
.wfx-nav__dd::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* pont de survol */
.wfx-nav__item.is-open > .wfx-nav__dd { display: block; animation: wfxNavIn .16s ease-out; }
@keyframes wfxNavIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wfx-nav__item.is-open > .wfx-nav__dd { animation: none; } }
.wfx-nav__dd--mega { width: min(860px, calc(100vw - 48px)); }
.wfx-nav__dd--2 { width: 520px; }
.wfx-nav__dd--1 { width: 340px; }
.wfx-nav__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 6px 26px; padding-bottom: 18px; }
.wfx-nav__coltitle { margin: 0 0 8px !important; font: 700 11.5px/1.3 Roboto, sans-serif !important; letter-spacing: .09em; text-transform: uppercase; color: var(--wfx-cta, #2E96C4) !important; }
.wfx-nav__coltitle a { color: inherit !important; }
.wfx-nav__col li { margin: 0 !important; }
.wfx-nav__col a { display: block; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; font: 500 14.5px/1.3 Roboto, sans-serif; color: var(--wfx-ink, #54595F) !important; transition: background .12s, color .12s; }
.wfx-nav__col a:hover { background: var(--wfx-blue-soft, #E8F4FB); color: #1F6F95 !important; }
.wfx-nav__col a small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; color: var(--wfx-text, #7A7A7A); }
.wfx-nav__plus a { color: var(--wfx-cta, #2E96C4) !important; font-weight: 600; }
.wfx-nav__foot { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 -24px; padding: 13px 24px; border-top: 1px solid var(--wfx-line, #E0E3E6); background: var(--wfx-panel, #F4F6F7); border-radius: 0 0 14px 14px; }
.wfx-nav__foot a { font: 600 14px/1.3 Roboto, sans-serif; color: var(--wfx-cta, #2E96C4) !important; }
.wfx-nav__foot a::after { content: " →"; }
.wfx-nav__foot a:hover { text-decoration: underline !important; }

/* ---------- Mobile : tiroir ---------- */
@media (max-width: 1024px) {
	.wfx-nav__burger { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--wfx-line, #E0E3E6); border-radius: 10px;
		background: #fff; font: 600 14px/1 Roboto, sans-serif; color: var(--wfx-ink, #54595F); cursor: pointer; }
	.wfx-nav__burger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
	.wfx-nav__burger svg path { transition: transform .2s, opacity .2s; transform-origin: center; }
	.wfx-nav__burger[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
	.wfx-nav__burger[aria-expanded="true"] .l2 { opacity: 0; }
	.wfx-nav__burger[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }
	.wfx-nav__panel { display: none; position: fixed; z-index: 9998; left: 0; right: 0; top: var(--wfx-nav-top, 64px); bottom: 0; overflow-y: auto; overscroll-behavior: contain;
		background: #fff; padding: 6px 16px 32px; border-top: 1px solid var(--wfx-line, #E0E3E6); }
	.wfx-nav__panel.is-open { display: block; }
	html.wfx-nav-ouvert, html.wfx-nav-ouvert body { overflow: hidden; }
	.wfx-nav__top { flex-direction: column; align-items: stretch; gap: 0; }
	.wfx-nav__item { border-bottom: 1px solid var(--wfx-line, #E0E3E6); }
	.wfx-nav__btn { width: 100%; justify-content: space-between; height: 56px; padding: 0 4px; border-radius: 0; font-size: 17px; }
	.wfx-nav__btn:hover, .wfx-nav__btn[aria-expanded="true"] { background: transparent; color: #1F6F95; }
	.wfx-nav__dd, .wfx-nav__dd--mega, .wfx-nav__dd--2, .wfx-nav__dd--1 { position: static; width: auto; border: 0; box-shadow: none; padding: 0 0 8px; border-radius: 0; }
	.wfx-nav__dd::before { display: none; }
	.wfx-nav__cols { grid-template-columns: 1fr; gap: 14px; padding: 4px 4px 12px; }
	.wfx-nav__col a { font-size: 16px; padding: 10px 8px; }
	.wfx-nav__foot { margin: 0; padding: 12px 4px 14px; background: transparent; border-radius: 0; }
}

/* ---------- Footer : 4 colonnes (marque + 3), mentions dans la barre du bas ---------- */
.wfx-sitefooter .wf-main.wf-main--4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.wfx-sitefooter .wf-legal a { color: var(--wfx-ink, #54595F); text-decoration: none; }
.wfx-sitefooter .wf-legal a:hover { color: var(--wfx-cta, #2E96C4); }
@media (max-width: 860px) {
	.wfx-sitefooter .wf-main.wf-main--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.wfx-sitefooter .wf-main.wf-main--4 { grid-template-columns: 1fr; }
}

/* ---------- Fil d'Ariane ([wfx_ariane], wfx-ariane.php) ---------- */
nav.wfx-ariane { margin: 0 0 14px; font: 400 13px/1.45 Roboto, sans-serif; color: var(--wfx-text, #7A7A7A); }
nav.wfx-ariane ol { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
nav.wfx-ariane li { display: inline-flex; align-items: center; min-width: 0; margin: 0 !important; padding: 0 !important; font-size: 13px !important; line-height: 1.45 !important; }
nav.wfx-ariane li + li::before { content: "›"; margin: 0 8px; color: #AEB5BB; }
nav.wfx-ariane a { color: var(--wfx-text, #7A7A7A) !important; font-weight: 500 !important; text-decoration: none !important; }
nav.wfx-ariane a:hover { color: var(--wfx-cta, #2E96C4) !important; text-decoration: underline !important; }
nav.wfx-ariane a:focus-visible { outline: 3px solid rgba(46, 150, 196, .45); outline-offset: 2px; border-radius: 3px; }
nav.wfx-ariane [aria-current] span { color: var(--wfx-ink, #54595F); max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
	nav.wfx-ariane li { display: none; }
	nav.wfx-ariane li.wfx-ariane__parent { display: inline-flex; }
	nav.wfx-ariane li.wfx-ariane__parent::before { content: "‹"; margin: 0 6px 0 0; color: var(--wfx-cta, #2E96C4); font-size: 16px; line-height: 1; }
	nav.wfx-ariane a { font-size: 14px !important; }
}
