/* Composants partagés : titres de section, liens, boutons secondaires, apparitions,
   horaires, fenêtre de réservation, barre mobile, annonce, visionneuse. */

/* ---------- Rythme des sections ---------- */
.section {
	padding-block: var(--section-pad);
}

/* ---------- Titres de section ---------- */
.section-heading {
	max-width: 42rem;
}

.section-heading--center {
	margin-inline: auto;
	text-align: center;
}

.section-heading__title {
	margin-top: 1rem;
}

.section-heading__intro {
	margin-top: 1.5rem;
	font-size: var(--fs-body);
	line-height: 1.55;
	color: rgb(17 19 24 / 0.72);
}

.section-heading__intro p {
	margin: 0;
}

.section-heading__intro p + p {
	margin-top: 1em;
}

.section-heading--dark .eyebrow,
.eyebrow--light {
	color: var(--c-amber-light);
}

.section-heading--dark .section-heading__intro {
	color: rgb(243 238 228 / 0.85);
}

/* ---------- Liens texte ---------- */
.text-link {
	display: inline-block;
	padding-block: 0.5rem;
	font-size: 0.88rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.5rem;
	transition: color var(--dur) var(--ease-soft);
}

.text-link:hover {
	color: var(--c-amber-ink);
}

.text-link--light:hover {
	color: var(--c-amber-light);
}

/* ---------- Boutons secondaires ---------- */
.btn--dark {
	background: var(--c-night);
	color: var(--c-cream);
}

.btn--dark:hover {
	background: var(--c-ink);
}

.btn--line {
	border-color: var(--c-night);
	color: var(--c-night);
}

.btn--line:hover {
	background: var(--c-night);
	color: var(--c-cream);
}

.round-btn {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 2.9rem;
	height: 2.9rem;
	border: 1px solid rgb(17 19 24 / 0.18);
	border-radius: 50%;
	background: none;
	color: rgb(17 19 24 / 0.75);
	cursor: pointer;
	transition:
		border-color var(--dur) var(--ease-soft),
		color var(--dur) var(--ease-soft);
}

.round-btn:hover {
	border-color: var(--c-ink);
	color: var(--c-ink);
}

/* Variante pour fonds sombres */
.round-btn--light {
	border-color: rgb(243 238 228 / 0.25);
	color: rgb(243 238 228 / 0.8);
}

.round-btn--light:hover {
	border-color: var(--c-cream);
	color: var(--c-cream);
}

/* ---------- Apparition douce au défilement (main.js) ---------- */
.js .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.9s var(--ease-soft) var(--reveal-delay, 0ms),
		transform 0.9s var(--ease-soft) var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.js .reveal {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Horaires (7 jours) ---------- */
.hours__summary {
	margin: 0 0 0.75rem;
	font-family: var(--f-serif);
	font-size: 1.25rem;
	font-style: italic;
	color: rgb(17 19 24 / 0.72);
}

.hours__list {
	margin: 0;
	border-top: 1px solid rgb(17 19 24 / 0.1);
}

.hours__row {
	display: grid;
	grid-template-columns: 6.75rem 1fr;
	align-items: baseline;
	gap: 1rem;
	padding-block: 0.6rem;
	border-bottom: 1px solid rgb(17 19 24 / 0.1);
}

.hours__day {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hours__row.is-today .hours__day {
	font-weight: 600;
}

.hours__row.is-today .hours__today {
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 50%;
	background: var(--c-amber);
}

.hours__slots {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0 0.6rem;
	margin: 0;
	text-align: right;
	font-variant-numeric: tabular-nums;
	font-size: 1.05rem;
}

.hours__slot {
	white-space: nowrap;
}

.hours__sep {
	margin-right: 0.6rem;
	opacity: 0.35;
}

.hours__row.is-closed .hours__day,
.hours__closed {
	color: rgb(17 19 24 / 0.6);
}

.hours__closed {
	font-family: var(--f-serif);
	font-size: 1.05rem;
	font-style: italic;
}

/* Variante sombre (footer) */
.hours--dark .hours__summary {
	color: rgb(243 238 228 / 0.8);
}

.hours--dark .hours__list,
.hours--dark .hours__row {
	border-color: rgb(243 238 228 / 0.1);
}

.hours--dark .hours__slots {
	color: rgb(243 238 228 / 0.85);
}

.hours--dark .hours__row.is-closed .hours__day,
.hours--dark .hours__closed {
	color: rgb(243 238 228 / 0.55);
}

/* Colonne étroite (footer, écrans de moins de 360 px) : créneaux empilés, sans séparateur */
.site-footer .hours__slots {
	flex-direction: column;
	align-items: flex-end;
}

.site-footer .hours__sep {
	display: none;
}

@media (max-width: 22.49rem) {
	.hours__slots {
		flex-direction: column;
		align-items: flex-end;
	}

	.hours__sep {
		display: none;
	}
}

/* ---------- Fenêtre de réservation ---------- */
.reservation {
	width: min(32rem, calc(100% - 2rem));
	max-height: calc(100dvh - 2rem);
	padding: 0;
	border: 0;
	background: var(--c-night);
	color: var(--c-cream);
}

.reservation::backdrop {
	background: rgb(22 27 46 / 0.7);
	backdrop-filter: blur(4px);
}

.reservation--embed {
	width: min(44rem, calc(100% - 2rem));
	height: min(52rem, calc(100dvh - 2rem));
}

.reservation[open] {
	display: flex;
}

.reservation__inner {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

.reservation__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
}

.reservation__title {
	margin-top: 0.75rem;
	font-size: 1.5rem;
}

.reservation__close {
	margin: -0.5rem -0.5rem 0 0;
	padding: 0.5rem;
	border: 0;
	background: none;
	color: rgb(243 238 228 / 0.7);
	cursor: pointer;
}

.reservation__close:hover {
	color: var(--c-cream);
}

.reservation__soon {
	display: grid;
	gap: 0.75rem;
	margin-top: 2rem;
	padding: 2.5rem 1.5rem;
	border: 1px dashed rgb(184 134 75 / 0.6);
	text-align: center;
	font-size: 0.95rem;
	color: rgb(243 238 228 / 0.8);
}

.reservation__soon p {
	margin: 0;
}

.reservation__contact {
	margin-top: 2rem;
	font-size: 0.95rem;
	color: rgb(243 238 228 / 0.8);
}

.reservation__contact p {
	margin: 0.4rem 0 0;
}

.reservation__contact a {
	color: var(--c-cream);
	text-underline-offset: 0.25rem;
}

.reservation__frame {
	flex: 1;
	width: 100%;
	min-height: 0;
	margin-top: 1.5rem;
	border: 0;
	background: var(--c-cream);
}

.reservation__newtab {
	align-self: center;
	margin-top: 1rem;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgb(243 238 228 / 0.75);
}

.reservation__note {
	margin: 1.5rem 0 0;
	font-size: 0.9rem;
	color: rgb(243 238 228 / 0.75);
}

@media (max-width: 39.99rem) {
	.reservation,
	.reservation--embed {
		width: 100%;
		max-width: none;
		height: 100dvh;
		max-height: none;
		margin: 0;
	}
}

/* ---------- Barre RÉSERVER mobile ---------- */
.sticky-bar {
	position: fixed;
	inset: auto 0 0;
	z-index: 30;
	display: flex;
	gap: 0.75rem;
	padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
	border-top: 1px solid rgb(243 238 228 / 0.1);
	background: rgb(22 27 46 / 0.95);
	backdrop-filter: blur(8px);
	transform: translateY(100%);
	transition: transform 0.5s var(--ease-soft);
}

.sticky-bar.is-visible {
	transform: none;
}

.sticky-bar .btn {
	flex: 1;
}

.sticky-bar__map {
	display: grid;
	place-items: center;
	padding-inline: 1rem;
	aspect-ratio: 1;
	border: 1px solid rgb(243 238 228 / 0.55);
	border-radius: 50%; /* assorti au bouton RÉSERVER en pilule */
	color: var(--c-cream);
}

@media (min-width: 64rem) {
	.sticky-bar {
		display: none;
	}
}

/* ---------- Annonce temporaire ---------- */
.announcement {
	position: absolute;
	inset: 100% 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 0.6rem 3rem;
	background: var(--c-sand);
	color: var(--c-night);
	text-align: center;
	font-size: 0.875rem;
}

.announcement[hidden] {
	display: none;
}

.announcement__text {
	margin: 0;
}

.announcement__close {
	position: absolute;
	right: 0.75rem;
	padding: 0.4rem;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

/* ---------- Visionneuse photo ---------- */
.lightbox {
	width: 100%;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgb(22 27 46 / 0.97);
	color: var(--c-cream);
}

.lightbox[open] {
	display: flex;
	flex-direction: column;
}

.lightbox::backdrop {
	background: rgb(22 27 46 / 0.8);
}

.lightbox__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem var(--gutter);
}

.lightbox__count {
	color: rgb(243 238 228 / 0.6);
}

.lightbox__close {
	padding: 0.5rem;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.lightbox__figure {
	flex: 1;
	min-height: 0;
	margin: 0 clamp(1rem, 6vw, 5rem) 2rem;
}

.lightbox__figure img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.lightbox__nav {
	position: absolute;
	top: 50%;
	padding: 0.75rem;
	border: 0;
	background: none;
	color: rgb(243 238 228 / 0.7);
	font-size: 2rem;
	cursor: pointer;
	transform: translateY(-50%);
}

.lightbox__nav:hover {
	color: var(--c-cream);
}

.lightbox__nav--prev {
	left: 0.5rem;
}

.lightbox__nav--next {
	right: 0.5rem;
}

body.dialog-open {
	overflow: hidden;
}

/* Téléphone : liens texte plus faciles à toucher, horaires plus compacts (les deux services sur une ligne si possible). */
@media (max-width: 39.99rem) {
	.text-link {
		padding-block: 0.75rem;
	}

	.hours__row {
		grid-template-columns: 5.25rem 1fr;
		gap: 0.5rem;
		padding-block: 0.5rem;
	}

	.hours__slots {
		gap: 0 0.4rem;
		font-size: 0.875rem;
	}

	.hours__sep {
		margin-right: 0.4rem;
	}
}
