/* ==========================================================================
   layout.css — conteneur, en-tête, navigation, pied de page, sections
   ========================================================================== */

.lune-wrap {
	width: 100%;
	max-width: var(--lune-wrap);
	margin-inline: auto;
	padding-inline: var(--lune-gutter);
}

/* --- En-tête : logo à gauche, recherche large, outils à droite ------- */

.lune-head { padding: 22px 0 0; background: var(--lune-accent); color: var(--lune-white); }

/* En-tête à l'aplat de marque : tout ce qui s'y trouve passe en blanc, sauf
   le bouton de recherche qui garde l'encre pour rester lisible. */
.lune-head .lune-tools__link { color: rgba(255, 255, 255, .92); }
.lune-head .lune-tools__link:hover,
.lune-head .lune-tools__link:hover .lune-icon { color: var(--lune-white); }
.lune-head .lune-cart__count { color: rgba(255, 255, 255, .68); }
.lune-head .lune-search { border-color: rgba(255, 255, 255, .5); }
.lune-head .lune-search button { background: var(--lune-ink); }
.lune-head .lune-search button:hover { background: var(--lune-white); color: var(--lune-accent); }
.lune-head .lune-nav { border-top-color: rgba(255, 255, 255, .3); border-bottom-color: rgba(255, 255, 255, .3); }
.lune-head .lune-nav__list > li > a { color: var(--lune-white); font-weight: 600; }
.lune-head .lune-nav__list > li > a:hover,
.lune-head .lune-nav__list .current-menu-item > a,
.lune-head .lune-nav__list .current_page_item > a {
	color: var(--lune-white);
	border-bottom-color: var(--lune-white);
}
/* Sous-menu : carte blanche, sinon il flotte transparent sur l'aplat. */
.lune-head .lune-nav__list .sub-menu {
	background: var(--lune-white);
	box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

.lune-head__row {
	display: grid;
	grid-template-columns: auto minmax(320px, 720px) minmax(0, 1fr) auto;
	align-items: center;
	gap: 34px;
	padding-bottom: 16px;
}

.lune-logo { display: block; line-height: 0; }
.lune-logo img { height: 34px; width: auto; display: block; }
.lune-logo .custom-logo-link { display: block; }
.lune-logo .custom-logo { height: 38px; width: auto; }

/* Champ de recherche classique : cadre d'un pixel, champ, bouton carré. */
.lune-search {
	display: flex;
	align-items: stretch;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 1px solid var(--lune-line);
	background: var(--lune-white);
}

.lune-search input[type="search"] {
	flex: 1;
	min-width: 0;
	min-height: 0;
	border: 0;
	background: none;
	font-size: 14.5px;
	padding: 13px 15px;
	color: var(--lune-ink);
	border-radius: 0;
}

.lune-search input[type="search"]::placeholder { color: var(--lune-muted); }
.lune-search input[type="search"]:focus { outline: 0; box-shadow: none; }

.lune-search button {
	display: grid;
	place-items: center;
	width: 52px;
	border: 0;
	padding: 0;
	background: var(--lune-ink);
	color: var(--lune-white);
}

.lune-search button:hover { background: var(--lune-accent); }

/* --- Icônes ------------------------------------------------------------- */

/* Spécificité : la base impose `.lune-site svg { height: auto }`, ce qui donnait
   aux icônes la hauteur par défaut de 150 px. On repasse devant. */
.lune-site .lune-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.lune-site .lune-icon { width: 20px; height: 20px; flex: none; display: block; }

.lune-tools { display: flex; gap: 20px; align-items: center; grid-column: 4; justify-self: end; }
.lune-tools__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	letter-spacing: .02em;
	color: var(--lune-ink-2);
	white-space: nowrap;
	padding-block: 6px;
}

.lune-tools__link:hover .lune-icon { color: var(--lune-accent); }
.lune-tools__link:hover { color: var(--lune-bronze); }
.lune-cart__count { color: var(--lune-muted); }

.lune-nav { border-top: 1px solid var(--lune-line); border-bottom: 1px solid var(--lune-line); }

.lune-nav__list {
	display: flex;
	gap: 26px;
	justify-content: flex-start;
	flex-wrap: wrap;
	padding: 12px 0;
}

.lune-nav__list > li > a {
	display: inline-block;
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--lune-ink-2);
	padding-bottom: 2px;
	border-bottom: 1px solid transparent;
}

.lune-nav__list > li > a:hover { color: var(--lune-ink); border-bottom-color: var(--lune-ink); }
.lune-nav__list .current-menu-item > a,
.lune-nav__list .current_page_item > a { border-bottom-color: var(--lune-ink); color: var(--lune-ink); }
.lune-nav__list .menu-item-has-children { position: relative; }

/* Sous-menu : liste discrète, pas de carte flottante */
.lune-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: -12px;
	z-index: 40;
	min-width: 210px;
	padding: 14px 0 6px;
	display: none;
}

.lune-nav__list .menu-item-has-children:hover > .sub-menu,
.lune-nav__list .menu-item-has-children:focus-within > .sub-menu { display: block; }

.lune-nav__list .sub-menu li { padding: 5px 12px; }
.lune-nav__list .sub-menu a {
	font-size: 13px;
	letter-spacing: 0;
	text-transform: none;
	border: 0;
	color: var(--lune-ink-2);
}
.lune-nav__list .sub-menu a:hover { color: var(--lune-bronze); }

/* --- Contenu ------------------------------------------------------------- */

.lune-content { padding-top: 34px; }

/* Storefront flotte #primary et la sidebar : sans clearfix, le pied de page
   remonte sous le contenu. */
.lune-content::after,
.lune-site .col-full::after {
	content: "";
	display: block;
	clear: both;
}

.lune-site #primary,
.lune-site .content-area {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

.lune-site .widget-area { display: none !important; }

/* Storefront impose .col-full : on l'aligne sur notre conteneur. */
.lune-site .col-full {
	max-width: var(--lune-wrap);
	margin-inline: auto;
	padding-inline: var(--lune-gutter);
}

.lune-site .content-area,
.lune-site .widget-area { width: 100%; }

/* --- Accueil : sections -------------------------------------------------- */

.lune-hero { padding: 44px 0 90px; }
.lune-hero__in {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 90px;
	align-items: start;
}
.lune-hero__text h1 { font-size: 62px; max-width: 16ch; margin: 0 0 24px; }
.lune-hero__intro { font-size: 18px; line-height: 1.72; max-width: 46ch; }
.lune-hero__acts { display: flex; gap: 34px; align-items: baseline; margin-top: 38px; }
.lune-site .lune-hero__meta {
	margin-top: 46px;
	font-size: 13px;
	color: var(--lune-muted);
	max-width: 44ch;
	line-height: 1.75;
}
.lune-hero__meta strong { color: var(--lune-ink); font-weight: 500; }

.lune-art {
	position: relative;
	margin: 0;
	background: var(--lune-panel);
	aspect-ratio: 4 / 5;
	overflow: hidden;
}
.lune-art img { width: 100%; height: 100%; object-fit: cover; }
.lune-art__empty { display: block; width: 100%; height: 100%; }

.lune-art figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -34px;
	font-family: var(--lune-serif);
	font-style: italic;
	font-size: 14px;
	color: var(--lune-muted);
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.lune-rayons { padding: 40px 0 90px; }
.lune-rayons__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px; }
.lune-rayon { display: block; }
.lune-rayon__no {
	display: block;
	font-family: var(--lune-serif);
	font-size: 13px;
	color: var(--lune-muted);
	margin-bottom: 18px;
}
.lune-rayon h3 { font-size: 24px; margin: 0 0 8px; }
.lune-site .lune-rayon p { font-size: 14px; color: var(--lune-muted); line-height: 1.65; margin: 0; }
.lune-rayon:hover h3 { color: var(--lune-bronze); }

.lune-section { padding-bottom: var(--lune-section); }
.lune-shead {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 44px;
	flex-wrap: wrap;
}
.lune-shead h2 { font-size: 34px; margin: 0; }
.lune-more {
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--lune-ink);
	padding-bottom: 4px;
}
.lune-more:hover { color: var(--lune-bronze); border-color: var(--lune-bronze); }

.lune-service { padding-bottom: var(--lune-section); }
.lune-service__in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.lune-service h4 { font-size: 18px; margin: 0 0 6px; }
.lune-site .lune-service p { font-size: 13.5px; color: var(--lune-muted); margin: 0; }

.lune-about { padding-bottom: 100px; }
.lune-about__in {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 90px;
	align-items: center;
}
.lune-site .lune-about p { font-size: 15px; max-width: 48ch; }
.lune-site .lune-about p + p { margin-top: 14px; }

/* --- Pied de page -------------------------------------------------------- */

.lune-foot { clear: both; background: var(--lune-black); color: rgba(255, 255, 255, .72); padding: 70px 0 34px; font-size: 13px; }
/* Flex plutôt que grid : le nombre de colonnes varie (la colonne « Sortiment »
   n'existe pas tant que le catalogue est vide) et grid laissait alors un trou. */
.lune-foot__cols {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	padding-bottom: 48px;
}

.lune-foot__cols > div { flex: 1 1 200px; min-width: 0; }
.lune-foot__cols > div:first-child { flex: 1.6 1 300px; }
.lune-foot h4 {
	font-family: var(--lune-sans);
	font-size: 10px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .45);
	margin: 0 0 14px;
}
.lune-foot a { color: rgba(255, 255, 255, .72); }
.lune-foot a:hover { color: var(--lune-white); }
.lune-foot__brand { display: inline-block; margin-bottom: 14px; line-height: 0; }
.lune-foot__brand img { height: 26px; width: auto; display: block; }
.lune-foot__brand i { color: rgba(255, 255, 255, .45); }
.lune-site .lune-foot__about { color: rgba(255, 255, 255, .6); font-size: 12.5px; max-width: 32ch; margin: 0; line-height: 1.7; }
.lune-foot__list li + li { margin-top: 8px; }
.lune-foot__list a { display: inline-flex; align-items: center; gap: 9px; }
.lune-site .lune-foot__list .lune-icon { width: 16px; height: 16px; opacity: .65; }
.lune-foot__list a:hover .lune-icon { opacity: 1; color: var(--lune-white); }
.lune-foot__contact { display: grid; gap: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.lune-foot__legal {
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding-top: 18px;
	display: flex;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	font-size: 11px;
	color: rgba(255, 255, 255, .45);
}
.lune-foot__legal-list { display: flex; gap: 18px; flex-wrap: wrap; }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1000px) {
	:root { --lune-gutter: 22px; --lune-section: 60px; }

	/* minmax(0, …) : sans ça, la marque (nowrap) empêche la colonne de rétrécir
	   et la grille déborde de l'écran. */
	.lune-head { padding-top: 16px; }
	.lune-head__row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; padding-bottom: 12px; }
	.lune-search { max-width: none; }
	.lune-logo img { height: 26px; }
	.lune-search { grid-column: 1 / -1; order: 3; }
	.lune-search input[type="search"] { font-size: 16px; }
	.lune-tools { grid-column: auto; justify-self: end; gap: 14px; }
	.lune-tools__link { font-size: 11.5px; }
	.lune-nav__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 20px;
		padding: 11px 0;
	}
	.lune-nav__list::-webkit-scrollbar { display: none; }

	.lune-hero { padding: 30px 0 60px; }
	.lune-hero__in,
	.lune-about__in { grid-template-columns: 1fr; gap: 44px; }
	.lune-hero__text h1 { font-size: 40px; }
	.lune-art { aspect-ratio: 4 / 3; }
	.lune-art figcaption { position: static; padding-top: 10px; }

	.lune-rayons__in { grid-template-columns: 1fr 1fr; gap: 34px; }
	.lune-service__in { grid-template-columns: 1fr; gap: 26px; }
	.lune-foot__cols { gap: 30px 28px; }
	.lune-foot__cols > div { flex: 1 1 44%; }
}

@media (max-width: 640px) {
	/* Une seule colonne dès qu'on est sur un téléphone : deux colonnes de 159 px
	   ne tiennent pas avec des adresses et des e-mails. */
	.lune-foot__cols { gap: 28px; padding-bottom: 34px; }
	.lune-foot__cols > div { flex: 1 1 100%; }
	.lune-foot__about,
	.lune-foot__contact,
	.lune-foot__company { overflow-wrap: anywhere; }
	.lune-site .lune-foot__company { gap: 10px; }
}

@media (max-width: 560px) {
	.lune-rayons__in { grid-template-columns: 1fr; }
	.lune-hero__text h1 { font-size: 32px; }
	.lune-shead h2 { font-size: 24px; }
	.lune-hero__acts { gap: 22px; flex-wrap: wrap; }
	.lune-tools { gap: 12px; }
}

/* Rangée des informations légales (société, registre, adresse) */
.lune-site .lune-foot__company {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding-top: 12px;
	margin-top: 12px;
	font-size: 10.5px;
	letter-spacing: .02em;
	color: rgba(255, 255, 255, .4);
}

.lune-site .lune-foot__company a {
	color: rgba(255, 255, 255, .6);
	border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.lune-site .lune-foot__company a:hover { color: var(--lune-white); border-color: var(--lune-white); }

/* --- Ligne société : lien « Cookie-Einstellungen » ------------------------ */

.lune-site .lune-foot__company {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}

.lune-site .lune-foot__company .lune-foot__cookie {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0 0 1px;
	min-height: 0;
	font-size: 11px;
	letter-spacing: .02em;
	color: rgba(255, 255, 255, .55);
	border-bottom: 1px solid rgba(255, 255, 255, .25);
	cursor: pointer;
}

.lune-site .lune-foot__company .lune-foot__cookie:hover {
	color: var(--lune-white);
	border-color: rgba(255, 255, 255, .6);
}

/* Header.php ouvre déjà `.lune-wrap .lune-page` : un `.lune-wrap` imbriqué dans un
   gabarit de page doublait la gouttière (96 px au lieu de 48). */
.lune-page .lune-wrap { padding-inline: 0; }

/* --- Pied de page à l'aplat de marque ------------------------------------
   Le fond passe à l'accent. Les blancs translucides d'origine (45 à 72 %)
   tombaient sous le seuil de lisibilité sur ce fond : on les remonte tous.
   ------------------------------------------------------------------------ */
.lune-site .lune-foot {
	background: var(--lune-accent);
	color: rgba(255, 255, 255, .92);
}
.lune-site .lune-foot h4 { color: rgba(255, 255, 255, .82); }
.lune-site .lune-foot a { color: rgba(255, 255, 255, .92); }
.lune-site .lune-foot a:hover { color: var(--lune-white); }
.lune-site .lune-foot__brand i { color: rgba(255, 255, 255, .8); }
.lune-site .lune-foot__about { color: rgba(255, 255, 255, .85); }
.lune-site .lune-foot__contact { color: rgba(255, 255, 255, .85); }
.lune-site .lune-foot__legal {
	border-top-color: rgba(255, 255, 255, .32);
	color: rgba(255, 255, 255, .82);
}
.lune-site .lune-foot__legal-list a { color: rgba(255, 255, 255, .82); }
.lune-site .lune-foot__list .lune-icon { opacity: .85; }
