/* ==========================================================================
   LC Layout — Header, Navigation, Footer
   Mobile-first, accessible, professional
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Site Header
   --------------------------------------------------------------------------- */

.lc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--lc-border);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.lc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	padding-block: 0.5rem;
	gap: 16px;
}

/* Logo */

.lc-header__logo {
	flex-shrink: 0;
}

.lc-header__logo a,
.lc-header__logo .lc-site-name,
.lc-header__logo .lc-logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.lc-header__logo .lc-site-name {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--lc-primary);
	letter-spacing: -0.02em;
}

.lc-header__logo .lc-site-name:hover {
	color: var(--lc-secondary);
	text-decoration: none;
}

.lc-header__logo img,
.lc-header__logo .lc-logo {
	height: 70px;
	width: auto;
	display: block;
}

/* custom-logo generated by WP */
.lc-header__logo .custom-logo-link img {
	height: 70px;
	width: auto;
}

/* ---------------------------------------------------------------------------
   Primary Navigation
   --------------------------------------------------------------------------- */

.lc-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 1;
	justify-content: flex-end;
}

.lc-nav__menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 2px;
}

.lc-nav__menu li {
	position: relative;
}

.lc-nav__menu li a {
	display: block;
	padding: 8px 12px;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--lc-text);
	text-decoration: none;
	border-radius: 6px;
	white-space: nowrap;
	transition: color 0.15s, background-color 0.15s;
}

.lc-nav__menu li a:hover,
.lc-nav__menu li.current-menu-item > a,
.lc-nav__menu li.current_page_item > a,
.lc-nav__menu li.current_page_ancestor > a {
	color: var(--lc-primary);
	background: #eff6ff;
	text-decoration: none;
}

/* ---------------------------------------------------------------------------
   Dropdown Submenus (desktop)
   --------------------------------------------------------------------------- */

.lc-nav__menu li.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 6px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid currentColor;
	vertical-align: middle;
}

.lc-nav__menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid var(--lc-border);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	padding: 6px 0;
	margin: 0;
	list-style: none;
	z-index: 100;
}

.lc-nav__menu li.menu-item-has-children:hover > .sub-menu,
.lc-nav__menu li.menu-item-has-children.is-dropdown-open > .sub-menu {
	display: block;
}

.lc-nav__menu .sub-menu li {
	position: relative;
}

.lc-nav__menu .sub-menu li a {
	padding: 8px 16px;
	font-size: 0.875rem;
	font-weight: 400;
	border-radius: 0;
	white-space: nowrap;
}

.lc-nav__menu .sub-menu li a:hover {
	background: #f0f4ff;
	color: var(--lc-primary);
}

/* Nested sub-menu (level 3+) */
.lc-nav__menu .sub-menu .sub-menu {
	top: 0;
	left: 100%;
}

/* Header auth CTA */

.lc-header__cta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	margin-left: 12px;
	padding-left: 12px;
	border-left: 1px solid var(--lc-border);
}

/* ---------------------------------------------------------------------------
   Mobile Menu Toggle (hamburger)
   --------------------------------------------------------------------------- */

.lc-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 10px;
	background: none;
	border: 1.5px solid var(--lc-border);
	border-radius: 6px;
	cursor: pointer;
	flex-shrink: 0;
	transition: border-color 0.15s, background-color 0.15s;
}

.lc-menu-toggle:hover {
	background: var(--lc-bg-light);
	border-color: var(--lc-text-muted);
}

.lc-menu-toggle__bar {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--lc-text);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
	transform-origin: center;
}

/* Animated X when menu is open */
.lc-menu-toggle[aria-expanded="true"] .lc-menu-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.lc-menu-toggle[aria-expanded="true"] .lc-menu-toggle__bar:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.lc-menu-toggle[aria-expanded="true"] .lc-menu-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------------------------
   Responsive: Mobile Navigation
   --------------------------------------------------------------------------- */

@media (max-width: 767px) {
	.lc-menu-toggle {
		display: flex;
	}

	.lc-header__inner {
		min-height: 60px;
	}

	.lc-header__logo img,
	.lc-header__logo .lc-logo,
	.lc-header__logo .custom-logo-link img {
		height: 52px;
	}

	.lc-nav {
		/* Hidden drawer — slides down from header (always anchored to header bottom) */
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--lc-border);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
		padding: 16px 20px 20px;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		z-index: 99;
		/* Hidden by default */
		transform: translateY(-8px);
		opacity: 0;
		pointer-events: none;
		visibility: hidden;
		transition: transform 0.22s ease, opacity 0.22s ease, visibility 0s linear 0.22s;
	}

	.lc-nav.is-open {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
		visibility: visible;
		transition: transform 0.22s ease, opacity 0.22s ease, visibility 0s linear 0s;
	}

	.lc-nav__menu {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.lc-nav__menu li a {
		padding: 12px 16px;
		font-size: 1rem;
		border-radius: 8px;
	}

	/* Mobile submenus — stacked, no absolute positioning */
	.lc-nav__menu .sub-menu {
		position: static;
		background: transparent;
		border: none;
		box-shadow: none;
		padding: 0 0 0 16px;
		min-width: 0;
		border-radius: 0;
	}

	.lc-nav__menu li.menu-item-has-children > a::after {
		transition: transform 0.2s ease;
	}

	.lc-nav__menu li.menu-item-has-children.is-dropdown-open > a::after {
		transform: rotate(180deg);
	}

	.lc-nav__menu .sub-menu li a {
		padding: 10px 16px;
		font-size: 0.9375rem;
		border-radius: 6px;
	}

	.lc-header__cta {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		border-left: none;
		border-top: 1px solid var(--lc-border);
		padding-left: 0;
		margin-left: 0;
		padding-top: 12px;
	}

	.lc-header__cta .lc-btn {
		flex: 1;
		justify-content: center;
	}

	.lc-header__cta .lc-notif {
		position: static;
	}

	.lc-header__cta .lc-notif__dropdown.is-open {
		position: fixed;
		top: auto;
		left: 12px;
		right: 12px;
		width: auto;
		max-height: 60vh;
		border-radius: 12px;
	}
}

/* ---------------------------------------------------------------------------
   Notification bell + dropdown
   --------------------------------------------------------------------------- */

.lc-notif {
	position: relative;
}

.lc-notif__bell {
	position: relative;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	color: var(--lc-text);
	border-radius: 50%;
	transition: background 0.15s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lc-notif__bell:hover {
	background: var(--lc-bg-light);
}

.lc-notif__badge {
	position: absolute;
	top: 2px;
	right: 0;
	background: #dc2626;
	color: #fff;
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.lc-notif__dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 340px;
	max-height: 400px;
	background: #fff;
	border: 1px solid var(--lc-border);
	border-radius: 10px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	z-index: 1000;
	overflow: hidden;
	display: none;
	flex-direction: column;
}

.lc-notif__dropdown.is-open {
	display: flex;
}

.lc-notif__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	border-bottom: 1px solid var(--lc-border);
	font-size: 0.875rem;
}

.lc-notif__mark-all {
	background: none;
	border: none;
	color: var(--lc-primary);
	font-size: 0.75rem;
	cursor: pointer;
	padding: 0;
}

.lc-notif__mark-all:hover {
	text-decoration: underline;
}

.lc-notif__list {
	overflow-y: auto;
	flex: 1;
}

.lc-notif__item {
	display: flex;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--lc-border-light, #f0f0f0);
	font-size: 0.8125rem;
	line-height: 1.4;
	text-decoration: none;
	color: var(--lc-text);
	transition: background 0.1s;
	cursor: pointer;
}

.lc-notif__item:hover {
	background: var(--lc-bg-light);
}

.lc-notif__item--unread {
	background: #f0f7ff;
}

.lc-notif__item--unread:hover {
	background: #e4f0fd;
}

.lc-notif__icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
}

.lc-notif__icon--cert {
	background: #dcfce7;
}

.lc-notif__icon--revista {
	background: #dbeafe;
}

.lc-notif__icon--carte {
	background: #fef3c7;
}

.lc-notif__body {
	flex: 1;
	min-width: 0;
}

.lc-notif__msg {
	margin: 0;
	word-wrap: break-word;
}

.lc-notif__time {
	color: var(--lc-text-muted);
	font-size: 0.6875rem;
	margin-top: 2px;
}

.lc-notif__empty {
	padding: 32px 16px;
	text-align: center;
	color: var(--lc-text-muted);
	font-size: 0.875rem;
}


/* Prevent body scroll when mobile menu is open */
body.lc-menu-open {
	overflow: hidden;
}

/* ---------------------------------------------------------------------------
   Site Footer
   --------------------------------------------------------------------------- */

.lc-footer {
	background: #1a2744;
	color: rgba(255, 255, 255, 0.75);
	padding-block: 3rem 1.5rem;
	margin-top: auto;
}

.lc-footer__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}

@media (min-width: 640px) and (max-width: 979px) {
	.lc-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}
}

@media (min-width: 980px) {
	.lc-footer__inner {
		grid-template-columns: 1.5fr 1fr 1fr 1fr;
		gap: 2rem;
	}
}

/* Footer logo / brand */

.lc-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.lc-footer__logo .lc-site-name {
	color: #fff;
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.lc-footer__logo .lc-site-name:hover {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.lc-footer__logo img,
.lc-footer__logo .lc-logo {
	height: 76px;
	width: auto;
	/* Invert dark logos to white in dark footer */
	filter: brightness(0) invert(1);
}

.lc-footer__logo .custom-logo-link img {
	height: 88px;
	width: auto;
	filter: brightness(0) invert(1);
}

.lc-footer__desc {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1.6;
	margin: 0;
}

.lc-footer__copyright {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.4);
	margin: 1rem 0 0;
	text-align: center;
}

/* Footer nav columns */

.lc-footer__heading {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 1rem;
}

.lc-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lc-footer__menu li a {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	transition: color 0.15s;
}

.lc-footer__menu li a:hover {
	color: #fff;
	text-decoration: none;
}

/* Footer contact */

.lc-footer__address {
	font-style: normal;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lc-footer__address p {
	margin: 0;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.65);
}

.lc-footer__address a {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	transition: color 0.15s;
}

.lc-footer__address a:hover {
	color: #fff;
	text-decoration: none;
}

.lc-footer__address a[href^="tel:"] {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
}

.lc-footer__address a[href^="tel:"]:hover {
	color: #fff;
}

/* Company info */
.lc-footer__company {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.6;
}

.lc-footer__company p {
	margin: 0;
}

/* Social icons */
.lc-footer__social {
	margin-top: 1rem;
	display: flex;
	gap: 0.75rem;
}

.lc-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.7);
	transition: background 0.2s, color 0.2s;
}

.lc-footer__social a:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

/* Trust badges row */
.lc-footer__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	align-items: center;
	justify-content: center;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lc-footer__badges a {
	display: block;
	transition: opacity 0.2s;
}

.lc-footer__badges a:hover {
	opacity: 0.8;
}

.lc-footer__badges img {
	height: 28px;
	width: auto;
	border-radius: 4px;
}

.lc-footer__badges a:last-child img {
	height: 56px;
}

/* Muted text in dark footer */
.lc-footer .lc-text-muted {
	color: rgba(255, 255, 255, 0.45);
}

/* ---------------------------------------------------------------------------
   Skip to content (accessibility)
   --------------------------------------------------------------------------- */

.lc-skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	padding: 8px 16px;
	background: var(--lc-primary);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 0 0 6px 6px;
	z-index: 9999;
	text-decoration: none;
	transition: top 0.1s;
}

.lc-skip-link:focus {
	top: 0;
	color: #fff;
	text-decoration: none;
}

/* ---------------------------------------------------------------------------
   Page wrapper (makes footer stick to bottom)
   --------------------------------------------------------------------------- */

body {
	display: flex;
	flex-direction: column;
}

#page,
.lc-site-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
}

main {
	flex: 1;
}
