/* ==========================================================================
   Les Love Rooms – header & mega menu
   Couleurs et dimensions : modifiez les variables ci-dessous.
   ========================================================================== */

.llr-header {
	--llr-bg: #fffaf8;          /* fond du header */
	--llr-panel: #ffffff;       /* fond du mega menu */
	--llr-ink: #2b1520;         /* texte principal (prune très foncé) */
	--llr-muted: #85606e;       /* texte secondaire */
	--llr-accent: #b52b56;      /* rose framboise : bouton, survols */
	--llr-accent-dark: #8e1d41;
	--llr-accent-ink: #ffffff;
	--llr-soft: #fbeef2;        /* fond de survol */
	--llr-line: #f0e1e7;        /* filets */
	--llr-radius: 14px;
	--llr-max: 1240px;          /* largeur max du contenu */
	--llr-h: 76px;              /* hauteur du header */
	--llr-logo-h: 46px;         /* hauteur max du logo */

	position: sticky;
	top: 0;
	z-index: 999;
	background: var(--llr-bg);
	border-bottom: 1px solid var(--llr-line);
	color: var(--llr-ink);
	font-family: inherit;
	transition: box-shadow .2s ease;
}
.admin-bar .llr-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .llr-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .llr-header { top: 0; } }

.llr-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(43, 21, 32, .35); }

.llr-header *,
.llr-header *::before,
.llr-header *::after { box-sizing: border-box; }

.llr-header__bar {
	max-width: var(--llr-max);
	height: var(--llr-h);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

/* ---------- Logo ---------- */
.llr-header .llr-logo { flex: 0 0 auto; display: flex; align-items: center; }
.llr-header .llr-logo a { display: inline-flex; align-items: center; text-decoration: none; }
.llr-header .llr-logo img {
	display: block;
	width: auto;
	max-height: var(--llr-logo-h);
}
.llr-header .llr-logo__text {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--llr-ink);
}

/* ---------- Navigation (desktop) ---------- */
.llr-header .llr-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.llr-header .llr-nav__item { position: static; margin: 0; padding: 0; list-style: none; }

.llr-header .llr-nav__link,
.llr-header .llr-nav__trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 10px 14px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: var(--llr-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}
.llr-header .llr-nav__link:hover,
.llr-header .llr-nav__trigger:hover,
.llr-header .llr-has-mega.is-open > .llr-nav__trigger,
.llr-header .llr-nav__item.is-current > .llr-nav__link,
.llr-header .llr-nav__item.is-current > .llr-nav__trigger {
	background: var(--llr-soft);
	color: var(--llr-accent-dark);
}
.llr-header .llr-ico--chevron { transition: transform .2s ease; }
.llr-header .llr-has-mega.is-open > .llr-nav__trigger .llr-ico--chevron { transform: rotate(180deg); }

/* Bouton d'appel à l'action : ajoutez la classe CSS « llr-cta » à l'élément de menu */
.llr-header .llr-nav__item.llr-cta { margin-left: 8px; }
.llr-header .llr-nav__item.llr-cta > .llr-nav__link {
	padding: 11px 20px;
	background: var(--llr-accent);
	color: var(--llr-accent-ink);
}
.llr-header .llr-nav__item.llr-cta > .llr-nav__link:hover {
	background: var(--llr-accent-dark);
	color: var(--llr-accent-ink);
}

/* ---------- Panneau mega menu ---------- */
.llr-header .llr-mega {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--llr-panel);
	border-top: 1px solid var(--llr-line);
	box-shadow: 0 30px 50px -30px rgba(43, 21, 32, .35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.llr-header .llr-has-mega.is-open > .llr-mega {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}
.llr-header .llr-mega__inner {
	max-width: var(--llr-max);
	max-height: calc(100vh - var(--llr-h) - 48px);
	margin: 0 auto;
	padding: 28px 24px 32px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 40px;
	overflow: auto;
}

/* Grille de tuiles (menu à 2 niveaux) */
.llr-header .llr-mega__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 4px 12px;
	list-style: none;
	margin: 0;
	padding: 0;
	align-content: start;
}
.llr-header .llr-mega__grid li { margin: 0; padding: 0; list-style: none; }
.llr-header .llr-tile {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	color: var(--llr-ink);
	text-decoration: none;
	transition: background-color .15s ease;
}
.llr-header a.llr-tile:hover,
.llr-header .llr-tile.is-current { background: var(--llr-soft); }
.llr-header .llr-tile__icon {
	flex: 0 0 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--llr-soft);
	color: var(--llr-accent);
	transition: background-color .15s ease, color .15s ease;
}
.llr-header a.llr-tile:hover .llr-tile__icon { background: var(--llr-accent); color: var(--llr-accent-ink); }
.llr-header .llr-tile__text { display: flex; flex-direction: column; min-width: 0; }
.llr-header .llr-tile__title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.llr-header .llr-tile__meta { font-size: 13px; color: var(--llr-muted); line-height: 1.3; }

/* Colonnes (menu à 3 niveaux, ex. Région > Départements) */
.llr-header .llr-mega__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 28px 32px;
	align-content: start;
}
.llr-header .llr-col__title {
	display: block;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--llr-line);
	color: var(--llr-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
}
.llr-header a.llr-col__title:hover { color: var(--llr-accent-dark); }
.llr-header .llr-col__list { list-style: none; margin: 0; padding: 0; }
.llr-header .llr-col__list li { margin: 0; padding: 0; list-style: none; }
.llr-header .llr-col__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 -8px;
	padding: 7px 8px;
	border-radius: 8px;
	color: var(--llr-ink);
	font-size: 15px;
	line-height: 1.3;
	text-decoration: none;
}
.llr-header a.llr-col__link:hover,
.llr-header .llr-col__link.is-current { background: var(--llr-soft); color: var(--llr-accent-dark); }
.llr-header .llr-count {
	flex: 0 0 auto;
	min-width: 26px;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--llr-soft);
	color: var(--llr-muted);
	font-size: 12px;
	font-weight: 600;
	text-align: center;
}

/* Carte mise en avant */
.llr-header .llr-feature {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	min-height: 260px;
	padding: 22px;
	border-radius: var(--llr-radius);
	overflow: hidden;
	isolation: isolate;
	background: linear-gradient(140deg, #4a1530 0%, #8e1d41 55%, #c8476f 100%);
	color: #fff;
	text-decoration: none;
}
.llr-header .llr-feature.has-img {
	background: var(--llr-img) center / cover no-repeat, #4a1530;
}
.llr-header .llr-feature.has-img::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(43, 21, 32, .05) 20%, rgba(43, 21, 32, .85) 100%);
}
.llr-header .llr-feature__eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: .85;
}
.llr-header .llr-feature__title { font-size: 20px; font-weight: 700; line-height: 1.2; }
.llr-header .llr-feature__text { font-size: 14px; line-height: 1.45; opacity: .9; }
.llr-header .llr-feature__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	margin-top: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	background: #fff;
	color: var(--llr-accent-dark);
	font-size: 14px;
	font-weight: 700;
	transition: gap .15s ease;
}
.llr-header .llr-feature:hover .llr-feature__cta { gap: 10px; }

/* ---------- Burger ---------- */
.llr-header .llr-burger {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: var(--llr-soft);
	box-shadow: none;
	color: var(--llr-ink);
	cursor: pointer;
}
.llr-header .llr-burger:hover { background: var(--llr-line); }
.llr-header .llr-burger span {
	position: absolute;
	left: 12px;
	right: 12px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.llr-header .llr-burger span:nth-child(1) { top: 15px; }
.llr-header .llr-burger span:nth-child(2) { top: 21px; }
.llr-header .llr-burger span:nth-child(3) { top: 27px; }
.llr-header .llr-burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.llr-header .llr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.llr-header .llr-burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Focus clavier ---------- */
.llr-header a:focus-visible,
.llr-header button:focus-visible {
	outline: 2px solid var(--llr-accent);
	outline-offset: 2px;
}

/* ---------- Mobile / tablette ---------- */
@media (max-width: 960px) {
	.llr-header { --llr-h: 64px; --llr-logo-h: 40px; }
	.llr-header__bar { padding: 0 16px; }
	.llr-header .llr-burger { display: block; }

	.llr-header .llr-nav {
		position: fixed;
		top: var(--llr-drawer-top, 64px);
		right: 0;
		bottom: 0;
		width: min(420px, 100%);
		padding: 12px 16px 32px;
		background: var(--llr-bg);
		border-left: 1px solid var(--llr-line);
		box-shadow: -24px 0 48px -24px rgba(43, 21, 32, .35);
		overflow-y: auto;
		overscroll-behavior: contain;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .25s ease, visibility 0s linear .25s;
	}
	.llr-header.is-menu-open .llr-nav {
		transform: none;
		visibility: visible;
		transition-delay: 0s;
	}

	.llr-header .llr-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
	.llr-header .llr-nav__link,
	.llr-header .llr-nav__trigger {
		width: 100%;
		justify-content: space-between;
		padding: 14px 12px;
		border-radius: 12px;
		font-size: 16px;
	}
	.llr-header .llr-nav__item.llr-cta { margin: 12px 0 0; }
	.llr-header .llr-nav__item.llr-cta > .llr-nav__link { justify-content: center; padding: 14px 20px; }

	.llr-header .llr-mega {
		position: static;
		display: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		box-shadow: none;
		background: transparent;
		transition: none;
	}
	.llr-header .llr-has-mega.is-open > .llr-mega { display: block; }
	.llr-header .llr-mega__inner {
		grid-template-columns: 1fr;
		gap: 16px;
		max-height: none;
		padding: 4px 0 16px;
		overflow: visible;
	}
	.llr-header .llr-mega__grid { grid-template-columns: 1fr 1fr; gap: 2px 6px; }
	.llr-header .llr-tile { padding: 8px; gap: 10px; }
	.llr-header .llr-tile__icon { flex-basis: 30px; height: 30px; }
	.llr-header .llr-tile__icon .llr-ico { width: 14px; height: 14px; }
	.llr-header .llr-tile__title { font-size: 14px; }
	.llr-header .llr-mega__cols { grid-template-columns: 1fr; gap: 18px; padding: 0 12px; }
	.llr-header .llr-feature { min-height: 0; padding: 18px; }
	.llr-header .llr-feature__title { font-size: 17px; }
}
@media (max-width: 380px) {
	.llr-header .llr-mega__grid { grid-template-columns: 1fr; }
}

html.llr-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.llr-header,
	.llr-header * { transition: none !important; }
}
