/*
Theme Name: Les Musiciens du Louvre
Theme URI: https://www.musiciensdulouvre.fr/
Description: Thème enfant de Hello Elementor pour le site Les Musiciens du Louvre. Personnalisation des styles et du comportement tout en conservant les mises à jour du thème parent.
Author: Les Musiciens du Louvre
Author URI: https://www.musiciensdulouvre.fr/
Template: hello-elementor
Version: 1.0.0
Text Domain: lmdl-musiciensdulouvre
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ==========================================================================
   Variables – Les Musiciens du Louvre (d’après le modèle Elementor)
   ========================================================================== */

:root {
	--lmdl-primary: #1B1A17;
	--lmdl-primary-light: #350F0D;
	--lmdl-accent: #6E654D;
	--lmdl-beige: #CCBC9F;
	--lmdl-light: #F6F6F6;
	--lmdl-header-top-bg: var(--lmdl-primary);
	--lmdl-header-main-bg: var(--lmdl-light);
	--lmdl-header-glass-bg: rgba(27, 26, 23, 0.75);
	--lmdl-header-glass-border: rgba(246, 246, 246, 0.12);
	--lmdl-font-sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ==========================================================================
   Header – structure et barre haute
   ========================================================================== */

.lmdl-header {
	position: relative;
	z-index: 98;
	overflow: visible;
	margin-bottom: -72px;
}

@media (max-width: 1024px) {
	.lmdl-header {
		margin-bottom: -64px;
	}
}

@media (max-width: 767px) {
	.lmdl-header {
		margin-bottom: -48px;
	}
}

/* Barre haute : fond sombre, adresse + téléphone à gauche, réseaux à droite */
.lmdl-header-top {
	background-color: var(--lmdl-header-top-bg);
	border-bottom: 1px solid var(--lmdl-light);
}

.lmdl-header-top-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 5px 24px;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: space-between;
	gap: 0;
}

.lmdl-header-top-left {
	flex: 0 1 50%;
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

.lmdl-header-top-right {
	flex: 0 1 50%;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

@media (max-width: 767px) {
	.lmdl-header-top-left {
		display: none;
	}
	.lmdl-header-top-right {
		flex: 1;
		justify-content: center;
	}
}

/* Liste adresse / téléphone */
.lmdl-icon-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	font-family: var(--lmdl-font-sans);
	font-size: 12px;
	color: var(--lmdl-light);
}

.lmdl-icon-list a {
	color: var(--lmdl-light);
	text-decoration: none;
}

.lmdl-icon-list a:hover {
	text-decoration: underline;
}

.lmdl-icon-list li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.lmdl-icon {
	display: inline-flex;
	flex-shrink: 0;
	color: var(--lmdl-light);
}

.lmdl-icon svg {
	width: 14px;
	height: 14px;
}

/* Réseaux sociaux */
.lmdl-social-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
}

.lmdl-social-list a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: var(--lmdl-accent);
	color: var(--lmdl-light);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.lmdl-social-list a:hover {
	background-color: var(--lmdl-beige);
	transform: scale(1.1);
}

.lmdl-social-list svg {
	width: 18px;
	height: 18px;
}

/* ==========================================================================
   Header – barre principale (logo + menu)
   ========================================================================== */

/* Barre logo + menu : effet verre ; fixe au scroll géré par header.js (.lmdl-header-main--fixed) */
.lmdl-header-main {
	position: relative;
	z-index: 100;
	width: 100%;
	padding: 0;
	background: var(--lmdl-header-glass-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--lmdl-header-glass-border);
	box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.lmdl-header-main.lmdl-header-main--fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 10000;
}

.lmdl-header-main-inner {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 12px 24px;
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-wrap: wrap;
	box-sizing: border-box;
	min-height: 0;
}

@media (max-width: 1024px) {
	.lmdl-header-main-inner {
		padding: 12px 20px;
	}
}

@media (max-width: 767px) {
	.lmdl-header-main-inner {
		padding: 10px 18px;
	}
}

/* Logo (blanc sur fond sombre / verre) — zone un peu plus large, logo plus grand */
.lmdl-header-logo {
	flex: 0 0 26%;
	min-width: 200px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 6px 0;
}

.lmdl-header-logo a {
	display: block;
}

.lmdl-logo-img {
	display: block;
	max-width: 100%;
	height: auto;
	max-height: 72px;
	width: auto;
	object-fit: contain;
}

/* Fallback texte si le fichier logo n’existe pas */
.lmdl-logo-fallback {
	display: inline-block;
	font-family: var(--lmdl-font-sans);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--lmdl-light);
	text-decoration: none;
	line-height: 1.2;
}

.lmdl-header-logo a:hover .lmdl-logo-fallback {
	color: var(--lmdl-beige);
}

@media (max-width: 1024px) {
	.lmdl-header-logo {
		flex: 0 0 50%;
		min-width: 0;
	}
	.lmdl-logo-img {
		max-width: 90%;
		max-height: 60px;
	}
}

@media (max-width: 767px) {
	.lmdl-header-logo {
		flex: 0 0 50%;
		justify-content: center;
		min-width: 0;
	}
	.lmdl-logo-img {
		max-width: 92%;
		max-height: 52px;
	}
}

/* Navigation */
.lmdl-header-nav {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	position: relative;
}

.lmdl-nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0 18px;
	font-family: var(--lmdl-font-sans);
	font-size: 17px;
	font-weight: 500;
}

.lmdl-nav-menu a {
	color: var(--lmdl-light);
	text-decoration: none;
	padding: 14px 0;
	display: inline-block;
	transition: color 0.2s ease;
}

.lmdl-nav-menu a:hover,
.lmdl-nav-menu .current-menu-item > a {
	color: var(--lmdl-beige);
}

/* Sous-menus */
.lmdl-nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: var(--lmdl-primary);
	list-style: none;
	margin: 0;
	padding: 10px 0;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.lmdl-nav-menu li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.lmdl-nav-menu .sub-menu a {
	padding: 10px 20px;
	font-size: 16px;
	display: block;
}

.lmdl-nav-menu .sub-menu a:hover {
	color: var(--lmdl-primary-light);
}

/* Bouton menu mobile (hamburger) */
.lmdl-nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.lmdl-nav-toggle-bar {
	display: block;
	width: 24px;
	height: 2px;
	background-color: var(--lmdl-light);
	border-radius: 1px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.lmdl-nav-toggle[aria-expanded="true"] .lmdl-nav-toggle-bar:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.lmdl-nav-toggle[aria-expanded="true"] .lmdl-nav-toggle-bar:nth-child(2) {
	opacity: 0;
}

.lmdl-nav-toggle[aria-expanded="true"] .lmdl-nav-toggle-bar:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
	.lmdl-nav-toggle {
		display: flex;
	}

	.lmdl-nav-menu {
		position: fixed;
		top: 0;
		right: 0;
		width: min(280px, 85vw);
		height: 100vh;
		background: var(--lmdl-primary);
		flex-direction: column;
		justify-content: flex-start;
		padding: 80px 20px 20px;
		gap: 0;
		z-index: 10001;
		transform: translateX(100%);
		transition: transform 0.3s ease;
		overflow-y: auto;
	}

	body.lmdl-nav-open .lmdl-nav-menu {
		transform: translateX(0);
	}

	.lmdl-nav-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		display: none;
		margin-left: 20px;
		padding: 0 0 10px;
	}

	.lmdl-nav-menu li.menu-item-has-children.open > .sub-menu {
		display: block;
	}

	.lmdl-nav-menu a {
		padding: 12px 0;
		width: 100%;
	}

	.lmdl-nav-menu .sub-menu a {
		padding: 8px 0;
		font-size: 15px;
	}
}

/* Masquer la barre haute sur mobile (optionnel) ou garder uniquement les icônes sociales */
@media (max-width: 767px) {
	.lmdl-header-top-inner {
		padding: 4px 14px;
	}
}

/* ==========================================================================
   Main (contenu)
   ========================================================================== */

.lmdl-main {
	min-height: 40vh;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.lmdl-footer {
	background-color: var(--lmdl-primary);
	color: var(--lmdl-light);
	padding: 36px 24px 0;
	margin-top: 0;
}

.lmdl-footer-inner {
	max-width: 1240px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* Zone principale : logo + contact + réseaux */
.lmdl-footer-main {
	display: grid;
	grid-template-columns: minmax(160px, 0.9fr) 1.15fr 1fr;
	gap: 36px 48px;
	align-items: start;
	padding-bottom: 28px;
}

.lmdl-footer-brand {
	display: flex;
	align-items: flex-start;
}

.lmdl-footer-logo-link {
	display: inline-block;
	line-height: 0;
	opacity: 0.92;
	transition: opacity 0.2s ease;
}

.lmdl-footer-logo-link:hover {
	opacity: 1;
}

.lmdl-footer-logo {
	display: block;
	height: auto;
	max-height: 58px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
}

/* Libellés de section : petits, discrets */
.lmdl-footer-label {
	font-family: var(--lmdl-font-sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(246, 246, 246, 0.55);
	margin: 0 0 10px;
	line-height: 1.3;
}

.lmdl-footer-text {
	margin: 0 0 6px;
	font-family: var(--lmdl-font-sans);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.55;
	color: rgba(246, 246, 246, 0.92);
}

.lmdl-footer-text:last-child {
	margin-bottom: 0;
}

.lmdl-footer-contact .lmdl-icon,
.lmdl-footer-text .lmdl-icon {
	display: inline-flex;
	vertical-align: -2px;
	margin-right: 6px;
	color: rgba(246, 246, 246, 0.65);
}

.lmdl-footer-contact .lmdl-icon svg,
.lmdl-footer-text .lmdl-icon svg {
	width: 12px;
	height: 12px;
}

.lmdl-footer a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.lmdl-footer a:hover {
	color: var(--lmdl-beige);
	border-bottom-color: rgba(204, 188, 159, 0.45);
}

/* Réseaux : liste dédiée au footer (évite les styles du header) */
.lmdl-footer-social-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: center;
}

.lmdl-footer-social-list a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-color: rgba(110, 101, 77, 0.45);
	color: var(--lmdl-light);
	border: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.lmdl-footer-social-list a:hover {
	background-color: var(--lmdl-accent);
	transform: scale(1.05);
	border-bottom: none;
}

.lmdl-footer-social-list svg {
	width: 17px;
	height: 17px;
}

/* Copyright : tout en bas, bande séparée */
.lmdl-footer-bottom {
	margin-top: auto;
	padding: 18px 0 22px;
	border-top: 1px solid rgba(246, 246, 246, 0.1);
	text-align: center;
}

.lmdl-footer-copyright {
	margin: 0;
	font-family: var(--lmdl-font-sans);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: rgba(246, 246, 246, 0.5);
	line-height: 1.5;
}

@media (max-width: 900px) {
	.lmdl-footer-main {
		grid-template-columns: 1fr 1fr;
		gap: 28px 32px;
	}
	.lmdl-footer-brand {
		grid-column: 1 / -1;
		justify-content: center;
		text-align: center;
	}
	.lmdl-footer-logo {
		max-height: 52px;
	}
}

@media (max-width: 600px) {
	.lmdl-footer {
		padding: 28px 18px 0;
	}
	.lmdl-footer-main {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.lmdl-footer-contact .lmdl-icon,
	.lmdl-footer-text .lmdl-icon {
		vertical-align: middle;
	}
	.lmdl-footer-social-list {
		justify-content: center;
	}
}

/* Ajoutez vos autres styles personnalisés ci-dessous */
