.rv-main { padding-top: var(--rv-header-h); }
.rv-site-header { position: fixed; inset: 0 0 auto; z-index: 100; color: var(--rv-foret); transition: transform .4s var(--rv-ease), background .3s, box-shadow .3s; }
.rv-site-header::before { content: ""; position: absolute; inset: 0; background: rgba(244,241,234,.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(31,42,34,.08); transition: opacity .3s; }
.rv-site-header.is-hidden { transform: translateY(-100%); }
.rv-site-header__bar { position: relative; display: flex; align-items: center; gap: 24px; max-width: var(--rv-max); height: var(--rv-header-h); margin: 0 auto; padding: 0 var(--rv-gutter); box-sizing: border-box; }
.rv-site-header__brand { display: inline-flex; color: inherit; text-decoration: none; flex: none; }
.admin-bar .rv-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rv-site-header { top: 46px; } }

/* Superposition sur un hero plein écran tant qu'on n'a pas défilé */
body:has(.rv-main .rv-hero--full:first-child) .rv-site-header:not(.is-scrolled):not(:has(.is-open)) { color: var(--rv-lin); }
body:has(.rv-main .rv-hero--full:first-child) .rv-site-header:not(.is-scrolled):not(:has(.is-open))::before { opacity: 0; }
body:has(.rv-main .rv-hero--full:first-child) .rv-site-header:not(.is-scrolled):not(:has(.is-open)) .rv-logo__name em { color: #C9D6BC; }
body:has(.rv-main .rv-hero--full:first-child) .rv-site-header:not(.is-scrolled):not(:has(.is-open)) .rv-logo__mark path { stroke: var(--rv-lin); }

/* Logo */
.rv-logo { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.rv-logo__mark { width: 40px; height: 40px; flex: none; }
.rv-logo__text { display: flex; flex-direction: column; gap: 5px; }
.rv-logo__name { font: 600 1.375rem/1 var(--rv-serif); letter-spacing: -.01em; white-space: nowrap; font-variation-settings: "opsz" 72; }
.rv-logo__name em { color: var(--rv-sauge); font-weight: 400; }
.rv-logo__tag { font: 500 .625rem/1 var(--rv-sans); letter-spacing: .2em; text-transform: uppercase; opacity: .8; white-space: nowrap; }
.rv-logo--dark { color: var(--rv-lin); }
.rv-logo--dark .rv-logo__name em { color: #B9C9AA; }

/* Navigation */
.rv-nav { margin-left: auto; }
.rv-nav__list { display: flex; align-items: center; gap: 4px; }
.rv-nav__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; background: none; color: inherit; font: 500 1rem/1 var(--rv-sans); text-decoration: none; border-radius: 999px; transition: background .2s; }
.rv-nav__link:hover, .rv-nav__item.is-open > .rv-nav__link { background: rgba(31,42,34,.06); }
.rv-nav__link[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.rv-nav__link .rv-icon { transition: transform .25s; }
.rv-nav__item.is-open .rv-nav__link .rv-icon { transform: rotate(180deg); }
.rv-site-header__tools { display: flex; align-items: center; gap: 6px; }
.rv-iconbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: inherit; text-decoration: none; transition: background .2s; }
.rv-iconbtn:hover { background: rgba(31,42,34,.06); }
.rv-cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--rv-terre); color: #fff; font: 700 .6875rem/18px var(--rv-sans); text-align: center; box-sizing: border-box; }
.rv-site-header__cta { min-height: 44px; padding: 10px 20px; margin-left: 8px; }
.rv-site-header__burger { display: none; }

/* Méga-menu */
.rv-nav__item--mega { position: static; }
.rv-mega { position: absolute; left: 0; right: 0; top: 100%; padding: 0 var(--rv-gutter); color: var(--rv-foret); }
.rv-mega__inner { display: grid; grid-template-columns: 1fr 280px; gap: 32px; max-width: calc(var(--rv-max) - 2 * var(--rv-gutter)); margin: 8px auto 0; padding: 28px; background: var(--rv-lin); border-radius: 22px; box-shadow: 0 24px 60px -24px rgba(31,42,34,.35); border: 1px solid rgba(31,42,34,.08); animation: rv-drop .3s var(--rv-ease); }
@keyframes rv-drop { from { opacity: 0; transform: translateY(-8px); } }
.rv-mega__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rv-mega__card { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; color: inherit; text-decoration: none; transition: background .2s; }
.rv-mega__card:hover, .rv-mega__card[aria-current] { background: var(--rv-mousse); }
.rv-mega__img { flex: none; width: 88px; height: 72px; border-radius: 12px 28px 12px 24px; overflow: hidden; background: var(--rv-mousse); display: grid; place-items: center; color: var(--rv-sauge); }
.rv-mega__img img { width: 100%; height: 100%; object-fit: cover; }
.rv-mega__txt { display: flex; flex-direction: column; gap: 4px; font-size: .875rem; line-height: 1.4; color: var(--rv-ink-soft); }
.rv-mega__txt strong { font: 500 1.0625rem/1.2 var(--rv-serif); color: var(--rv-foret); }
.rv-mega__aside { padding: 22px; border-radius: 16px; background: var(--rv-foret); color: var(--rv-lin); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.rv-mega__aside .rv-eyebrow { color: #B9C9AA; margin: 0; }
.rv-mega__pitch { margin: 0; font: 400 1.25rem/1.3 var(--rv-serif); }
.rv-mega__tel { display: inline-flex; gap: 8px; align-items: center; color: var(--rv-lin); text-decoration: none; font-weight: 600; }

/* Tiroir mobile */
.rv-drawer { width: min(420px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--rv-lin); color: var(--rv-foret); }
.rv-drawer::backdrop { background: rgba(31,42,34,.5); }
.rv-drawer[open] { animation: rv-slide .35s var(--rv-ease); }
@keyframes rv-slide { from { transform: translateX(40px); opacity: 0; } }
.rv-drawer__inner { display: flex; flex-direction: column; min-height: 100%; padding: 16px 20px 28px; box-sizing: border-box; gap: 20px; }
.rv-drawer__top { display: flex; justify-content: space-between; align-items: center; }
.rv-drawer__label { margin: 8px 0 6px; font: 600 .75rem var(--rv-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rv-sauge); }
.rv-drawer__services a, .rv-drawer__links a { display: flex; align-items: center; gap: 12px; min-height: 48px; color: inherit; text-decoration: none; font: 500 1.125rem var(--rv-sans); border-bottom: 1px solid rgba(31,42,34,.08); }
.rv-drawer__services .rv-icon { color: var(--rv-sauge); }
.rv-drawer__links { margin-top: 16px !important; }
.rv-drawer__links a { font: 500 1.375rem var(--rv-serif); }
.rv-drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.rv-drawer__foot .rv-btn { justify-content: center; }
.rv-drawer__tel { display: inline-flex; justify-content: center; gap: 8px; color: var(--rv-foret); font-weight: 600; text-decoration: none; min-height: 44px; align-items: center; }

@media (max-width: 1180px) {
	.rv-nav, .rv-site-header__tools .rv-iconbtn:first-child { display: none; }
	.rv-site-header__burger { display: grid; }
	.rv-site-header__tools { margin-left: auto; }
}
@media (max-width: 560px) {
	.rv-site-header__cta { padding: 10px 14px; font-size: .875rem; }
	.rv-logo__tag { display: none; }
	.rv-logo__name { font-size: 1.1875rem; }
	.rv-logo__mark { width: 34px; height: 34px; }
	.rv-site-header__bar { gap: 8px; }
}
@media (max-width: 380px) { .rv-site-header__cta span { font-size: .8125rem; } .rv-site-header__cta { padding: 8px 12px; } }
.rv-nav__link .rv-icon { display: inline-block; }
.rv-site-header__cta { white-space: nowrap; }
@media (max-width: 420px) { .rv-iconbtn--cart { display: none; } }
/* Survol du menu : on garde la couleur du header (la règle globale des liens passerait en Forêt) */
.rv-site-header .rv-nav__link:hover, .rv-site-header .rv-nav__link:focus-visible, .rv-site-header .rv-iconbtn:hover { color: inherit; }
.rv-site-header .rv-nav__link { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 50% calc(100% - 10px); background-repeat: no-repeat; transition: background-size .3s var(--rv-ease), background-color .2s; }
.rv-site-header .rv-nav__link:hover, .rv-site-header .rv-nav__item.is-open > .rv-nav__link { background-color: transparent; background-size: calc(100% - 28px) 1px; }
.rv-site-header .rv-nav__link[aria-current] { text-decoration: none; background-size: calc(100% - 28px) 1px; }
.rv-site-header .rv-iconbtn:hover { background: rgba(127,140,118,.16); }
