/*
Theme Name: 1001 Beauté
Theme URI: https://1001beaute.fr
Author: NIOU
Author URI: https://www.niou.net
Description: Thème sur mesure de l'institut 1001 Beauté : ambiance orientale, sobre et chaleureuse. Sans Sage, Blade, Composer ni jQuery, compatible PHP 8. À utiliser avec l'extension « 1001 Beauté – Remise en état & administration ».
Version: 1.4.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: niou-1001-theme
*/

/* ==========================================================================
   Polices (auto-hébergées, pas d'appel à Google Fonts)
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Parisienne"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/parisienne-latin-400-normal.woff2") format("woff2"); }

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
	--brun: #2f261e;
	--brun-2: #3e3229;
	--creme: #f7f2ec;
	--sable: #ece2d7;
	--sable-fonce: #d9cbbb;
	--or: #b8925a;
	--or-clair: #d6b98a;
	--cuivre: #93634f;
	--cuivre-fonce: #7a503f;
	--texte: #3a3028;
	--texte-doux: #6f6257;

	--serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--script: "Parisienne", "Snell Roundhand", cursive;

	--max: 1160px;
	--gutter: clamp(20px, 4vw, 40px);
	--section: clamp(56px, 8vw, 104px);
	--radius: 4px;
	--shadow: 0 18px 40px -18px rgba(47, 38, 30, .35);
	--ease: cubic-bezier(.2, .7, .2, 1);

	--ornement: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='16' viewBox='0 0 132 16'%3E%3Cpath d='M0 8h52M80 8h52' stroke='%23b8925a' stroke-width='1'/%3E%3Cpath d='M66 1.5l6.5 6.5-6.5 6.5-6.5-6.5z' fill='none' stroke='%23b8925a' stroke-width='1'/%3E%3Ccircle cx='66' cy='8' r='1.8' fill='%23b8925a'/%3E%3Ccircle cx='56' cy='8' r='1' fill='%23b8925a'/%3E%3Ccircle cx='76' cy='8' r='1' fill='%23b8925a'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font: 300 1.0625rem/1.75 var(--sans);
	color: var(--texte);
	background: #fff;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: hidden;
}

.wrap { flex: 1 0 auto; }
main { display: block; }
#contenu { scroll-margin-top: 90px; }

img { display: block; max-width: 100%; height: auto; border: 0; }
figure { margin: 0; }
iframe, embed, object, video { max-width: 100%; }

a { color: var(--cuivre); text-decoration: none; transition: color .25s; }
a:hover { color: var(--brun); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
::selection { background: var(--or-clair); color: var(--brun); }

b, strong { font-weight: 500; }
small { font-size: 85%; }
sup, sub { font-size: 70%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -.5em; }
sub { bottom: -.25em; }

p, ul, ol, blockquote, pre { margin: 0 0 1.25em; }
ul ul, ol ol { margin-bottom: 0; }

hr {
	border: 0;
	height: 16px;
	width: 132px;
	margin: 1.5rem auto;
	background: var(--ornement) center / contain no-repeat;
}

/* ==========================================================================
   Titres
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--serif);
	font-weight: 500;
	color: var(--brun);
	text-align: center;
	line-height: 1.15;
	margin: 0 0 .6em;
	text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -.01em; }

h2 {
	font-size: clamp(2.1rem, 4vw, 3.1rem);
	margin: 0 0 1.4rem;
}
h2::after {
	content: "";
	display: block;
	width: 132px;
	height: 16px;
	margin: 1rem auto 0;
	background: var(--ornement) center / contain no-repeat;
}

h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 600; margin-top: 1.4em; }
h4 { font-size: 1.35rem; margin-top: 1.2em; }
h5, h6 {
	font-size: 1.3rem;
	font-style: italic;
	color: var(--cuivre);
	margin-top: 1em;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn,
.button-third-color,
.contact-form input[type="submit"] {
	--btn-bg: var(--cuivre);
	--btn-fg: #fff;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 50px;
	padding: 14px 30px;
	border: 1px solid var(--btn-bg);
	border-radius: var(--radius);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font: 500 .8125rem/1.3 var(--sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover, .btn:focus-visible,
.button-third-color:hover, .button-third-color:focus-within,
.contact-form input[type="submit"]:hover {
	--btn-bg: var(--cuivre-fonce);
	color: #fff;
	transform: translateY(-1px);
}
.btn--ghost {
	--btn-bg: transparent;
	border-color: rgba(255, 255, 255, .7);
}
.btn--ghost:hover, .btn--ghost:focus-visible { --btn-bg: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--small { min-height: 42px; padding: 10px 22px; }

/* Shortcode [btn] de l'ancien contenu : bloc centré, entièrement cliquable */
.button-third-color {
	display: flex;
	width: fit-content;
	max-width: 100%;
	margin: 1.5rem auto 0;
	flex-wrap: wrap;
}
.button-third-color p { margin: 0; padding: 0 !important; color: inherit; text-align: center !important; }
.button-third-color br { display: none; }
.button-third-color a { color: inherit; }
.button-third-color a:hover { color: inherit; }
.button-third-color a::after { content: ""; position: absolute; inset: 0; }

/* ==========================================================================
   Utilitaires WordPress
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: #fff;
	clip: auto !important;
	clip-path: none;
	color: var(--brun);
	display: block;
	height: auto;
	left: 8px;
	top: 8px;
	padding: 14px 22px;
	width: auto;
	z-index: 100000;
	font-weight: 500;
}

.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.wp-caption { max-width: 100%; margin-bottom: 1.5em; }
.wp-caption-text, .wp-element-caption { text-align: center; margin: .6em 0; font-size: .9rem; color: var(--texte-doux); }
.entry::after, .bandeau__inner::after { content: ""; display: table; clear: both; }

/* ==========================================================================
   En-tête
   ========================================================================== */

.banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: linear-gradient(to bottom, rgba(26, 20, 15, .55), rgba(26, 20, 15, 0));
	transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.admin-bar .banner { top: 32px; }
@media (max-width: 782px) { .admin-bar .banner { top: 46px; } }

.banner.is-scrolled {
	background-color: rgba(47, 38, 30, .97);
	box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .45);
}

.banner__inner {
	max-width: calc(var(--max) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 116px;
	transition: height .4s var(--ease);
}
.banner.is-scrolled .banner__inner { height: 76px; }

.brand { display: block; flex: 0 0 auto; width: 104px; transition: width .4s var(--ease); }
.brand__img { width: 100%; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }
.brand__text { font-family: var(--script); font-size: 2.2rem; line-height: 1; color: #fff; }
.banner.is-scrolled .brand { width: 64px; }
/* Logo d'origine (mandala + médaillon, format paysage) : un peu plus large */
.brand--origine { width: 160px; }
.banner.is-scrolled .brand--origine { width: 104px; }
.footer-col--brand .brand--origine { width: 150px; }

.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nav li { margin: 0; }
.nav-primary a {
	display: block;
	padding: 10px 14px;
	color: #fff;
	font: 400 .8125rem/1 var(--sans);
	letter-spacing: .16em;
	text-transform: uppercase;
	position: relative;
}
.nav-primary a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 2px;
	height: 1px;
	background: var(--or-clair);
	transform: scaleX(0);
	transition: transform .35s var(--ease);
}
.nav-primary a:hover, .nav-primary a:focus-visible { color: #fff; }
.nav-primary a:hover::after,
.nav-primary .current-menu-item > a::after,
.nav-primary .current_page_item > a::after { transform: scaleX(1); }

/* Bouton « Réserver » (classes conservées depuis l'ancien menu) */
.nav-primary .btn-reservation,
.nav-primary .button-third-color {
	display: block;
	min-height: 0;
	margin: 0 0 0 10px;
	padding: 0;
	border: 1px solid var(--or-clair);
	border-radius: var(--radius);
	background: transparent;
	transform: none;
}
.nav-primary .btn-reservation a,
.nav-primary .button-third-color a { padding: 13px 22px; color: #fff; }
.nav-primary .btn-reservation a::after,
.nav-primary .button-third-color a::after { content: none; }
.nav-primary .btn-reservation:hover,
.nav-primary .button-third-color:hover { background: var(--cuivre); border-color: var(--cuivre); }

/* Burger */
.nav-toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	position: absolute;
	left: 10px;
	width: 24px;
	height: 1.5px;
	background: currentColor;
	transition: transform .3s var(--ease), background-color .3s;
	content: "";
}
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before { left: 0; top: -7px; }
.nav-toggle__bars::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	.banner__inner { height: 84px; flex-wrap: wrap; }
	.banner.is-scrolled .banner__inner { height: 68px; }
	.brand { width: 72px; }
	.banner.is-scrolled .brand { width: 56px; }
	.brand--origine { width: 112px; }
	.banner.is-scrolled .brand--origine { width: 88px; }
	.nav-toggle { display: block; }
	.nav-primary {
		position: fixed;
		inset: 84px 0 auto 0;
		max-height: calc(100vh - 84px);
		overflow-y: auto;
		padding: 16px var(--gutter) 32px;
		background: var(--brun);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
	}
	.admin-bar .nav-primary { top: 130px; }
	.banner.is-scrolled .nav-primary { top: 68px; }
	.nav-primary.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav-primary .nav { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-primary a { padding: 18px 4px; font-size: .9rem; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: center; }
	.nav-primary a::after { content: none; }
	.nav-primary .btn-reservation,
	.nav-primary .button-third-color { margin: 20px 0 0; background: var(--cuivre); border-color: var(--cuivre); }
	.nav-primary .btn-reservation a { border: 0; }
	.banner.menu-open { background-color: var(--brun); }
}

/* ==========================================================================
   Grand visuel d'en-tête
   ========================================================================== */

.page-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64vh;
	padding: 150px var(--gutter) 90px;
	background-color: var(--brun);
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: cover;
	color: #fff;
	text-align: center;
	isolation: isolate;
}
.page-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 60% 50% at 50% 55%, rgba(26, 20, 15, .45), rgba(26, 20, 15, 0) 70%),
		linear-gradient(to bottom, rgba(26, 20, 15, .5) 0%, rgba(26, 20, 15, .3) 40%, rgba(26, 20, 15, .72) 100%);
}
.page-header--home { min-height: 100vh; min-height: 100svh; }

.page-header__inner { max-width: 820px; animation: n1001-rise 1s var(--ease) both; }
.page-header__kicker {
	margin: 0 0 .4rem;
	font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--script);
	color: #ecd3a6;
	text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
.page-header__title {
	margin: 0;
	color: #fff;
	text-shadow: 0 2px 30px rgba(0, 0, 0, .3);
}
.page-header__title::after {
	content: "";
	display: block;
	width: 132px;
	height: 16px;
	margin: 1.4rem auto 0;
	background: var(--ornement) center / contain no-repeat;
	filter: brightness(1.35);
}
.page-header__lead {
	max-width: 620px;
	margin: 1.4rem auto 0;
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	line-height: 1.7;
	color: rgba(255, 255, 255, .9);
}
.page-header__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-top: 2.2rem;
}

.page-header__down {
	position: absolute;
	left: 50%;
	bottom: 22px;
	width: 48px;
	height: 48px;
	margin-left: -24px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, .85);
	animation: n1001-bounce 2.6s ease-in-out infinite;
}
.page-header__down:hover { color: #fff; }

@keyframes n1001-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes n1001-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
	.page-header { min-height: 56vh; padding-top: 120px; }
	.page-header__actions .btn { width: 100%; }
}

/* ==========================================================================
   Mise en page du contenu
   ========================================================================== */

.container {
	width: 100%;
	max-width: calc(var(--max) + 2 * var(--gutter));
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}
.entry.container { padding-top: var(--section); padding-bottom: var(--section); }
.entry.container > :first-child { margin-top: 0; }
.entry.container > .bandeau-primary:first-child,
.entry.container > .bandeau-secondary:first-child { margin-top: calc(-1 * var(--section) + 24px); }

.content { position: relative; }

/* Bandeaux ([bandeau-primary], [bandeau-secondary], [bandeau-secondary-large]) */
.bandeau-primary,
.bandeau-secondary,
.bandeau-secondary-large {
	clear: both;
	padding: var(--section) var(--gutter);
}
.bandeau__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(28px, 5vw, 64px);
	max-width: var(--max);
	margin: 0 auto;
}
.bandeau__inner > * { width: 100%; margin-left: 0; margin-right: 0; }
.bandeau__inner > h2 { margin-bottom: 0; }
.bandeau__inner > p { max-width: 760px; margin: 0 auto; text-align: center; }

.bandeau-primary { background: var(--creme); }

.bandeau-secondary,
.bandeau-secondary-large { background: var(--brun); color: rgba(255, 255, 255, .86); }
.bandeau-secondary h2, .bandeau-secondary h3,
.bandeau-secondary-large h2, .bandeau-secondary-large h3 { color: #fff; }
.bandeau-secondary a:not(.btn), .bandeau-secondary-large a:not(.btn) { color: var(--or-clair); }
.bandeau-secondary .button-third-color a, .bandeau-secondary-large .button-third-color a { color: #fff; }

/* Bandeaux dans une page à conteneur : pleine largeur */
.entry.container > .bandeau-primary,
.entry.container > .bandeau-secondary {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: max(var(--gutter), calc(50vw - var(--max) / 2));
	padding-right: max(var(--gutter), calc(50vw - var(--max) / 2));
}
.entry.container > .bandeau-primary + .bandeau-primary,
.entry.container > .bandeau-secondary + .bandeau-primary { margin-top: 0; }

/* Demi-colonnes ([half]) */
.half { width: 100%; }
.half > :last-child { margin-bottom: 0; }
.half > ul, .half > ol { padding-left: 1.2em; }
.half > h2 { text-align: left; }
.half > h2::after { margin-left: 0; }
.half img { border-radius: var(--radius); box-shadow: var(--shadow); }
.half p img, .half > img { margin-left: auto; margin-right: auto; }
@media (min-width: 960px) {
	.bandeau__inner > .half { width: calc(50% - clamp(14px, 2.5vw, 32px)); }
}

/* Tableaux génériques */
table { width: 100%; border-collapse: collapse; border-spacing: 0; margin: 0 auto 1.5rem; }
td, th { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--sable); vertical-align: middle; }

/* ==========================================================================
   Accueil
   ========================================================================== */

.entry--home > h2 { margin-top: var(--section); padding: 0 var(--gutter); }

/* Vidéo et texte d'introduction */
.home .bandeau-primary .half:first-child { font-size: 1.125rem; line-height: 1.85; }

/* Section « Nos soins » */
.home .bandeau-secondary-large { position: relative; overflow: hidden; }
.home .bandeau-secondary-large::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--img-mandala-blanc) -260px 50% / 640px auto no-repeat;
	opacity: .08;
	pointer-events: none;
}
.home .bandeau-secondary-large .bandeau__inner { position: relative; align-items: stretch; }
.home .bandeau-secondary-large .half {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 0;
}
.home .bandeau-secondary-large .half:first-of-type img { width: 100%; height: auto; }
.home .bandeau-secondary-large .half p { margin: 0; }
.home .bandeau-secondary-large .half:last-of-type {
	padding: 40px;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(214, 185, 138, .35);
	border-radius: var(--radius);
}
.home .bandeau-secondary-large .half:last-of-type img { max-width: 260px; box-shadow: none; }

/* Bandeau photo défilant */
.home .gallery[data-gallery] {
	display: block;
	height: 320px;
	overflow: hidden;
	margin: 0;
	column-count: auto;
	background: var(--brun);
}
.home .gallery .gallery-track {
	display: flex;
	gap: 8px;
	width: max-content;
	height: 320px;
	animation: n1001-marquee var(--marquee-duration, 60s) linear infinite;
}
.home .gallery .gallery-track:hover { animation-play-state: paused; }
.home .gallery figure.gallery-item { width: auto; padding: 0; margin: 0; flex: 0 0 auto; break-inside: auto; }
.home .gallery .gallery-item .img-container { border-radius: 0; }
.home .gallery .gallery-item img { height: 320px; width: auto; max-width: none; border-radius: 0; }
@keyframes n1001-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 4px)); } }

@media (prefers-reduced-motion: reduce) {
	.home .gallery[data-gallery] { overflow-x: auto; }
	.home .gallery .gallery-track, .page-header__down, .page-header__inner { animation: none; }
}

/* ==========================================================================
   Galeries
   ========================================================================== */

.gallery {
	column-count: 3;
	column-gap: 14px;
	margin: 0;
}
.gallery-columns-1 { column-count: 1; }
.gallery-columns-2 { column-count: 2; }
.gallery-item {
	position: relative;
	display: block;
	width: 100%;
	margin: 0 0 14px;
	break-inside: avoid;
	cursor: zoom-in;
}
.gallery-item .img-container { overflow: hidden; border-radius: var(--radius); line-height: 0; }
.gallery-item img { width: 100%; transition: transform .8s var(--ease), filter .5s; }
.gallery-item:hover img { transform: scale(1.04); filter: brightness(1.05); }
.gallery figcaption {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	padding: 6px 10px;
	font-size: .875rem;
	line-height: 1.3;
	color: #fff;
	background: rgba(47, 38, 30, .75);
	border-radius: var(--radius);
}
@media (max-width: 760px) { .gallery { column-count: 2; column-gap: 10px; } .gallery-item { margin-bottom: 10px; } }

/* Visionneuse */
.n1001-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(22, 17, 13, .95);
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s var(--ease), visibility .35s;
}
.n1001-lightbox.is-open { opacity: 1; visibility: visible; }
.n1001-lightbox img {
	max-width: 92vw;
	max-height: 86vh;
	width: auto;
	height: auto;
	border-radius: var(--radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
	transition: opacity .25s;
}
.n1001-lightbox img.is-loading { opacity: 0; }
.n1001-lightbox button {
	position: absolute;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font: 300 26px/46px var(--sans);
	cursor: pointer;
	transition: background-color .2s, border-color .2s;
}
.n1001-lightbox button:hover { background: var(--cuivre); border-color: var(--cuivre); }
.n1001-lightbox .lb-close { top: 20px; right: 20px; }
.n1001-lightbox .lb-prev { left: 20px; top: 50%; margin-top: -24px; }
.n1001-lightbox .lb-next { right: 20px; top: 50%; margin-top: -24px; }
.n1001-lightbox .lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--sable-fonce); font-size: .8125rem; letter-spacing: .14em; }

/* ==========================================================================
   Carte des soins (accordéon)
   ========================================================================== */

.accordion { margin: 0 0 2rem; }
.accordion > p { margin: 0; }
.accordion > p img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: var(--radius) var(--radius) 0 0;
	margin-top: 18px;
}

.accordion .accordion-title {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 84px;
	margin: 0;
	padding: 16px 84px 16px 28px;
	background: #fff;
	border: 1px solid var(--sable);
	border-radius: var(--radius);
	font-size: clamp(1.7rem, 3vw, 2.3rem);
	text-align: left;
	color: var(--brun);
	cursor: pointer;
	user-select: none;
	transition: background-color .3s, color .3s, border-color .3s;
}
.accordion .accordion-title + .accordion-content + .accordion-title,
.accordion .accordion-title + .accordion-content + p { margin-top: 0; }
.accordion .accordion-title { margin-top: 14px; }
.accordion > p + .accordion-title {
	margin-top: -84px;
	border: 0;
	border-radius: 0;
	color: #fff;
	background: linear-gradient(to top, rgba(30, 23, 17, .82), rgba(30, 23, 17, 0));
}
.accordion .accordion-title:hover { border-color: var(--sable-fonce); }
.accordion > p + .accordion-title:hover { background: linear-gradient(to top, rgba(30, 23, 17, .9), rgba(30, 23, 17, .15)); }
.accordion .accordion-title::after {
	content: "+";
	position: absolute;
	right: 24px;
	top: 50%;
	width: 42px;
	height: 42px;
	margin: -21px 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: none;
	font: 300 24px/1 var(--sans);
	opacity: .85;
	transition: transform .35s var(--ease), background-color .3s;
}
.accordion .accordion-title.open::after,
.accordion .accordion-title[aria-expanded="true"]::after { content: "\2212"; transform: rotate(180deg); }
.accordion > p + .accordion-title[aria-expanded="true"] { border-radius: 0; }

.accordion .accordion-content {
	display: none;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0 clamp(24px, 4vw, 56px);
	padding: clamp(28px, 4vw, 48px);
	background: var(--creme);
	border: 1px solid var(--sable);
	border-top: 0;
	border-radius: 0 0 var(--radius) var(--radius);
}
.accordion.no-js .accordion-content,
.accordion .accordion-content.open,
.accordion .accordion-content.is-animating { display: flex; }
.accordion .accordion-content > * { width: 100%; }
@media (min-width: 900px) {
	.accordion .accordion-content > .half { width: calc(50% - clamp(12px, 2vw, 28px)); }
}
.accordion .accordion-content h3 { margin: 1.4rem 0 .4rem; text-align: left; font-size: 1.6rem; }
.accordion .accordion-content .half > h3:first-child { margin-top: 0; }
.accordion .accordion-content h5 { text-align: left; margin: 0 0 1rem; font-size: 1.15rem; }
.accordion .accordion-content p { margin: 0 0 .8rem; color: var(--texte-doux); }
.accordion .accordion-content .texte-intro { max-width: 820px; margin: 0 auto 1.2rem; text-align: center; color: var(--texte); }

/* Tableaux de prix façon carte de restaurant */
.accordion-content table { width: 100%; margin: .4rem 0 1.8rem; font-size: 1rem; }
.accordion-content td {
	padding: 11px 0;
	border-bottom: 1px dashed var(--sable-fonce);
	vertical-align: baseline;
}
.accordion-content td:first-child { padding-right: 18px; }
.accordion-content td strong { font-weight: 400; color: var(--brun); }
.accordion-content td + td {
	width: 1%;
	padding-left: 18px;
	text-align: right;
	white-space: nowrap;
	font-family: var(--serif);
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--cuivre);
}
.accordion-content .n1001-row-head td {
	border-bottom: 1px solid var(--or);
	font: 500 .75rem/1.4 var(--sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--texte-doux);
}
.accordion-content .n1001-row-head td strong { font-weight: 500; color: inherit; }
@media (max-width: 600px) {
	.accordion .accordion-title { padding: 14px 70px 14px 18px; min-height: 72px; }
	.accordion > p + .accordion-title { margin-top: -72px; }
	.accordion > p img { height: 130px; }
	.accordion .accordion-title::after { right: 16px; width: 36px; height: 36px; margin-top: -18px; }
	.accordion-content td + td { font-size: 1.05rem; }
}

/* Paragraphe d'introduction (anciens longs H5) */
.texte-intro {
	max-width: 820px;
	margin: 0 auto 1.5rem;
	text-align: center;
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.3rem;
	line-height: 1.6;
	color: var(--texte);
}

/* ==========================================================================
   Grille de cartes (« Nos marques »)
   ========================================================================== */

.grille-cartes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 28px;
	max-width: calc(var(--max) + 2 * var(--gutter));
	margin: 0 auto var(--section);
	padding: 0 var(--gutter);
}
.grille-cartes .carte {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--sable);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.grille-cartes .carte:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.grille-cartes .carte__visuel {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 220px;
	padding: 28px;
	background: #fff;
	border-bottom: 1px solid var(--sable);
}
.grille-cartes .carte__visuel p { margin: 0; }
.grille-cartes .carte__visuel img { max-height: 164px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; box-shadow: none; }
.grille-cartes .carte__texte {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 26px 28px 30px;
	text-align: center;
	background: var(--creme);
}
.grille-cartes .carte__texte h3 { margin: 0; font-size: 1.5rem; letter-spacing: .04em; }
.grille-cartes .carte__texte hr { margin: 14px auto 16px; }
.grille-cartes .carte__texte p { color: var(--texte-doux); }
.grille-cartes .carte__texte .button-third-color { margin-top: auto; }

/* Vidéo */
.video-embed,
.entry iframe[src*="youtube"] {
	display: block;
	width: 100%;
	height: auto !important;
	min-height: 0 !important;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* ==========================================================================
   Contact : carte + encadré + formulaire
   ========================================================================== */

.content--contact {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	padding: var(--section) var(--gutter);
	background: var(--creme);
}
.content--contact > * { grid-column: 1; }
.page-contact .content--contact, .content--contact:has(.contact-form) { padding-bottom: 0; }

iframe.maps {
	grid-row: 1;
	display: block;
	width: 100%;
	max-width: var(--max);
	height: 100%;
	min-height: 560px;
	margin: 0 auto;
	border: 0;
	border-radius: var(--radius);
	filter: saturate(.75);
}

.container-infos-contact {
	grid-row: 1;
	position: relative;
	z-index: 2;
	align-self: center;
	justify-self: start;
	width: min(420px, 100%);
	margin: 36px 0 36px max(36px, calc((100% - var(--max)) / 2 + 36px));
	padding: 36px 36px 32px;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.container-infos-contact h2 { font-size: 2.2rem; margin-bottom: 1.2rem; }
.container-infos-contact p { margin-bottom: .9rem; }
.container-infos-contact .beaute-telephone a { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--cuivre); }
.container-infos-contact .beaute-promo { padding: 12px 16px; background: var(--creme); border-left: 2px solid var(--or); }
.container-infos-contact .button-third-color { margin-top: 1.4rem; }

@media (max-width: 900px) {
	iframe.maps { min-height: 360px; height: 360px; }
	.container-infos-contact { grid-row: 2; justify-self: center; width: 100%; max-width: 560px; margin: 28px auto 0; text-align: center; }
	.container-infos-contact .beaute-promo { border-left: 0; border-top: 2px solid var(--or); }
}

.contact-form {
	grid-row: 3;
	margin: var(--section) calc(-1 * var(--gutter)) 0;
	padding: var(--section) var(--gutter);
	background: var(--brun);
	color: rgba(255, 255, 255, .85);
}
.contact-form form { max-width: 760px; margin: 0 auto; }
.contact-form form > p:first-of-type { font-family: var(--serif); font-style: italic; font-size: 1.35rem; text-align: center; color: #fff; margin-bottom: 2rem; }
.contact-form p { margin-bottom: 0; }
.contact-form label { display: block; margin-bottom: .4rem; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sable-fonce); }

.contact-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.contact-form select,
.contact-form textarea {
	width: 100%;
	margin-bottom: 22px;
	padding: 12px 2px;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .25);
	border-radius: 0;
	background: transparent;
	color: #fff;
	font: 300 1.0625rem/1.4 var(--sans);
	transition: border-color .3s;
	-webkit-appearance: none;
	appearance: none;
}
.contact-form textarea { height: 140px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255, 255, 255, .5); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 0; border-bottom-color: var(--or-clair); }
.contact-form input[type="submit"] { display: flex; margin: 12px auto 0; min-width: 200px; }
.contact-form .demi-gauche, .contact-form .demi-droite { display: inline-block; width: 50%; vertical-align: top; }
.contact-form .demi-gauche { padding-right: 14px; }
.contact-form .demi-droite { padding-left: 14px; }
@media (max-width: 700px) {
	.contact-form .demi-gauche, .contact-form .demi-droite { display: block; width: 100%; padding: 0; }
}
.champs-obligatoires { margin-top: 14px !important; font-size: .8125rem; text-align: center; opacity: .6; }
.wpcf7-form-control-wrap { position: relative; display: block; }
.wpcf7-not-valid-tip { color: #f0b3a3; font-size: .85rem; margin: -16px 0 14px; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 14px 18px; border: 1px solid var(--or-clair); border-radius: var(--radius); color: #fff; text-align: center; }
.wpcf7-spinner { display: block; margin: 12px auto 0; }

/* ==========================================================================
   Pied de page
   ========================================================================== */

.site-footer {
	position: relative;
	padding: var(--section) 0 0;
	background: var(--brun);
	color: rgba(255, 255, 255, .72);
	font-size: .9375rem;
}
.site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 14px;
	background: var(--img-carrelage) 0 0 / 56px auto repeat-x;
	opacity: .35;
}
.site-footer a { color: var(--sable); }
.site-footer a:hover { color: var(--or-clair); }

.site-footer__cols {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 56px;
}
.footer-col { text-align: left; }
.footer-col p { margin: 0 0 .5rem; }
.footer-col--brand .brand { width: 96px; margin-bottom: 18px; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.4; color: #fff; max-width: 240px; }
.footer-title {
	margin: 0 0 1.1rem;
	font: 500 .75rem/1.4 var(--sans);
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--or-clair);
	text-align: left;
}
.footer-title::after { content: none; }
.footer-phone a { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: #fff; }
.site-footer .beaute-horaires u { text-decoration: none; font-weight: 400; color: #fff; }

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 22px 0 28px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: .8125rem;
}
.site-footer .nav { gap: 4px 22px; }
.site-footer .nav a { color: rgba(255, 255, 255, .7); letter-spacing: .06em; }
.site-footer .nav a:hover { color: #fff; }
.site-footer .nav img { display: inline-block; height: 22px; width: auto; vertical-align: middle; border-radius: 3px; opacity: .85; }
.site-footer .credits { margin: 0; color: rgba(255, 255, 255, .5); }

@media (max-width: 960px) {
	.site-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.site-footer__cols { grid-template-columns: 1fr; text-align: center; }
	.footer-col, .footer-title { text-align: center; }
	.footer-col--brand .brand { margin: 0 auto 16px; }
	.footer-tagline { margin: 0 auto; }
	.site-footer__bottom { justify-content: center; text-align: center; }
}

/* ==========================================================================
   Pages : mentions légales, 404
   ========================================================================== */

.page-mentions-legales .entry h2,
body.mentions-legales .entry h2 { font-size: 1.9rem; text-align: left; margin-top: 2.4rem; }
body.mentions-legales .entry h2::after { margin-left: 0; width: 90px; }
body.mentions-legales .entry { max-width: 860px; }
body.mentions-legales .entry h3 { text-align: left; font-size: 1.35rem; }

.main--404 .entry { text-align: center; }

/* ==========================================================================
   Formulaire de contact natif (extension 1001 Beauté)
   ========================================================================== */

.contact-form__title { color: #fff; }
.contact-form__title::after { filter: brightness(1.3); }
.n1001-form { position: relative; max-width: 760px; margin: 0 auto; scroll-margin-top: 110px; }
.n1001-form__intro { margin: 0 0 2rem !important; font-family: var(--serif); font-style: italic; font-size: 1.35rem; text-align: center; color: #fff; }
.n1001-form__grid { display: flex; flex-wrap: wrap; gap: 0 28px; }
.n1001-form__field { position: relative; width: 100%; margin-bottom: 24px; }
.n1001-form__field.is-half { width: calc(50% - 14px); }
@media (max-width: 640px) { .n1001-form__field.is-half { width: 100%; } }
.n1001-form label { display: block; margin-bottom: 6px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sable-fonce); }
.n1001-form label small { text-transform: none; letter-spacing: 0; opacity: .7; }
.n1001-form label span { color: var(--or-clair); }

.n1001-form input[type="text"],
.n1001-form input[type="email"],
.n1001-form input[type="tel"],
.n1001-form select,
.n1001-form textarea {
	width: 100%;
	padding: 12px 2px;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .28);
	border-radius: 0;
	background: transparent;
	color: #fff;
	font: 300 1.0625rem/1.4 var(--sans);
	transition: border-color .3s;
	-webkit-appearance: none;
	appearance: none;
}
.n1001-form select {
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d6b98a' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 4px center;
	padding-right: 24px;
}
.n1001-form select option { color: var(--brun); }
.n1001-form textarea { min-height: 150px; resize: vertical; }
.n1001-form input:focus, .n1001-form select:focus, .n1001-form textarea:focus { outline: 0; border-bottom-color: var(--or-clair); }
.n1001-form .has-error input, .n1001-form .has-error select, .n1001-form .has-error textarea { border-bottom-color: #e8a493; }
.n1001-form__err { display: block; min-height: 0; margin-top: 6px; font-size: .8125rem; color: #f0b3a3; }
.n1001-form__err:empty { display: none; }

.n1001-form__consent label {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	text-transform: none;
	letter-spacing: 0;
	font-size: .9rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, .75);
	cursor: pointer;
}
.n1001-form__consent input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--cuivre);
}
.n1001-form__consent a { color: var(--or-clair); text-decoration: underline; }

.n1001-form__actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; }
.n1001-form__submit { min-width: 240px; }
.n1001-form__submit[disabled] { opacity: .6; cursor: wait; }
.n1001-form.is-sending .n1001-form__submit span::after { content: "…"; }
.n1001-form__note { margin: 0; font-size: .8125rem; color: rgba(255, 255, 255, .5); }

.n1001-form__status:empty { display: none; }
.n1001-form__ok,
.n1001-form__ko {
	margin: 0 0 24px !important;
	padding: 18px 22px;
	border-radius: var(--radius);
	text-align: center;
	font-size: 1.05rem;
}
.n1001-form__ok { border: 1px solid var(--or-clair); color: #fff; background: rgba(214, 185, 138, .12); font-family: var(--serif); font-size: 1.4rem; font-style: italic; }
.n1001-form__ko { border: 1px solid #e8a493; color: #f6d4cb; background: rgba(232, 164, 147, .1); }
.n1001-form.is-sent .n1001-form__ok { padding: 40px 24px; }
