/*
 * Custom CSS overrides for GeneratePress child theme.
 * Add project-specific styles here.
 */

.site-content {
	display: unset;
}

/*
 * Override GeneratePress parent theme input styles.
 * GP main.css targets input[type="text"] etc. with specificity (0,1,1),
 * which beats Tailwind's .input-block_input (0,1,0).
 * Using a two-class selector (0,2,0) wins without !important.
 */
.input-block .input-block_input {
	border: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	max-width: 100%;
}

/* Fix select input with floating label */
.input-block--select {
	position: relative;
}

.input-block--select .input-block_input {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 40px;
	padding-left: 0;
}

/* Move label out of the way for select - position at top (Disabled to match contact.html mockup)
.input-block--select .input-block_label {
	pointer-events: none;
	position: absolute;
	left: 0;
	top: -24px;
	font-size: 14px;
	color: rgb(var(--color-primary));
	transform: none;
}
*/

/* When select is focused, keep label at top (Disabled to match contact.html mockup)
.input-block--select:focus-within .input-block_label {
	top: -24px;
}
*/

/* Reset global button component styles for package tabs */
.package-tab {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    height: auto;
    border-radius: 0;
    border-width: 0 0 1px 0;
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

/* Style the chevron span */
.input-block__chevron {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

/* Premium AJAX Form Toast Notifications */
.manotel-toast {
	margin-top: 8px;
	transform: translateX(120%);
	opacity: 0;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
	max-width: 380px;
	width: 100%;
}

.manotel-toast--show {
	transform: translateX(0);
	opacity: 1;
}

.manotel-toast__content {
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(26, 26, 26, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #FAF8F6;
	padding: 14px 20px;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	border-left: 4px solid #934A0C;
	font-family: Plus Jakarta Sans, sans-serif;
	font-size: 14px;
	line-height: 1.4;
}

.manotel-toast--success .manotel-toast__content {
	border-left-color: #2ecc71;
}

.manotel-toast--error .manotel-toast__content {
	border-left-color: #e74c3c;
}

.manotel-toast--sending .manotel-toast__content {
	border-left-color: #3498db;
}

.manotel-toast__icon {
	flex-shrink: 0;
	display: block;
}

/* Spinner for loading state */
.manotel-toast__spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.25);
	border-top-color: #FAF8F6;
	border-radius: 50%;
	display: inline-block;
	animation: manotel-spin 0.8s linear infinite;
	flex-shrink: 0;
}

@keyframes manotel-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ── Textarea: fix floating label overlap ────────────────────────────────────
 * Base .input-block has a fixed height (3.5rem). The textarea with
 * position:absolute + height:auto overflows it, causing the label (top:50%)
 * to land inside the text content area. Fix: make the container height:auto
 * and switch the textarea to position:relative so it expands the container.
 */
.input-block--textarea {
	height: auto;
	min-height: 3.5rem;
	padding-top: 1.375rem; /* 22px — reserve space for the floating label */
}

.input-block--textarea .input-block_input {
	position: relative;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
	width: 100%;
	padding-top: 0;
}

/* Empty state: label sits at the top of the text area, not vertically centred */
.input-block--textarea .input-block_label {
	top: 1.25rem; /* aligns with where typing starts */
	transform: none;
}

/* Filled/focused: float label up into the padding area */
.input-block--textarea.input-block--filled .input-block_label,
.input-block--textarea:focus-within .input-block_label {
	top: 0.25rem;
	transform: none;
}

/* ── Spinner logic on submit button */
.button--loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

.button--loading::after {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	top: 50%;
	left: 50%;
	margin-top: -9px;
	margin-left: -9px;
	border: 2px solid rgba(255, 255, 255, 0.25);
	border-top-color: currentColor;
	border-radius: 50%;
	animation: manotel-spin 0.8s linear infinite;
}
/* Restore padding-left for date picker icon (overridden by the .input-block reset above) */
.input-block--date .input-block_input {
	padding-left: 30px;
}

/* ── Legal pages (page-legal.php) ────────────────────────────────────────────
 * Styles the WYSIWYG content pasted into the editor so headings, paragraphs,
 * lists and links pick up the theme typography while staying centred.
 */
.legal-page__content > *:first-child {
	margin-top: 0;
}

.legal-page__content h2 {
	font-family: Literata, serif;
	font-size: 28px;
	font-weight: 300;
	line-height: 1.2;
	color: rgb(var(--color-primary));
	margin-top: 48px;
	margin-bottom: 16px;
}

.legal-page__content h3 {
	font-family: Literata, serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
	color: rgb(var(--color-primary));
	margin-top: 32px;
	margin-bottom: 12px;
}

.legal-page__content p {
	margin-top: 0;
	margin-bottom: 20px;
}

.legal-page__content ul,
.legal-page__content ol {
	padding-left: 24px;
	margin-top: 0;
	margin-bottom: 20px;
}

.legal-page__content ul {
	list-style: disc;
}

.legal-page__content ol {
	list-style: decimal;
}

.legal-page__content li {
	margin-bottom: 8px;
}

.legal-page__content a {
	color: rgb(var(--color-primary));
	text-decoration: underline;
	text-underline-offset: 3px;
}

.legal-page__content strong {
	font-weight: 600;
}

/*
 * File-attachment confirmation.
 * The native file input is visually hidden (.sr-only); this region is the only
 * on-screen proof that a file was picked. Revealed by form-ajax.js on change.
 * .request-form__actions is a nowrap flex row (attach label + submit button in
 * proposal mode); it needs flex-wrap so the 100%-wide status can drop to its
 * own line below, and `order` keeps it after the button rather than between.
 */
.request-form__actions {
	flex-wrap: wrap;
}

.request-form__file-status {
	display: flex;
	align-items: center;
	gap: 8px;
	order: 1;
	flex-basis: 100%;
	margin-top: 8px;
	padding: 8px 12px;
	border-radius: 6px;
	background: rgb(var(--color-primary) / 0.08);
	color: rgb(var(--color-primary));
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

.request-form__file-status[hidden] {
	display: none;
}

.request-form__file-status-icon {
	flex-shrink: 0;
}

.request-form__file-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.request-form__file-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-left: auto;
	padding: 4px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: color 0.3s, background-color 0.3s;
}

.request-form__file-remove:hover {
	color: rgb(var(--color-secondary));
	background: rgb(var(--color-primary) / 0.12);
}
/*
 * Typed content blocks — shared vertical rhythm (.content-flow).
 *
 * The same partials (template-parts/news/blocks/) are rendered on offers
 * (single-offer.php), news articles (template-parts/news/content-blocks.php)
 * and the "Contenu libre" block (blocks/free-content/). A single uniform gap
 * made a heading sit as far from its own image as from the previous group, so
 * groups (heading → image → text → button) no longer read as groups.
 *
 * Spacing is therefore driven by what follows what, using the modifiers set by
 * manotel_content_flow_item_classes():
 *   --tight   heading → its content (matches the titled-list mb-6 2xl:mb-8)
 *   --base    between blocks of the same group (text, image, list, link…)
 *   --section before a new heading, titled list or FAQ
 *
 * Tune the rhythm here only: the media queries redefine the three variables.
 * Tailwind is compiled outside this repo, hence hand-written rules.
 */
.content-flow {
	--content-flow-tight: 24px;
	--content-flow-base: 24px;
	--content-flow-section: 56px;
	display: flex;
	flex-direction: column;
	gap: 0;
}

@media (min-width: 1024px) {
	.content-flow {
		--content-flow-base: 32px;
		--content-flow-section: 72px;
	}
}

@media (min-width: 1536px) {
	.content-flow {
		--content-flow-tight: 32px;
		--content-flow-base: 40px;
		--content-flow-section: 96px;
	}
}

.content-flow__item + .content-flow__item {
	margin-top: var(--content-flow-base);
}

.content-flow__item + .content-flow__item--heading,
.content-flow__item + .content-flow__item--titled,
.content-flow__item + .content-flow__item--faq {
	margin-top: var(--content-flow-section);
}

/* Declared last on purpose: a heading always hugs what follows it. */
.content-flow__item--heading + .content-flow__item {
	margin-top: var(--content-flow-tight);
}

/*
 * .news-post__image carries a 10px nudge that optically seats it against a
 * section edge. Inside the flow it only breaks the rhythm.
 */
.content-flow .news-post__image {
	margin-top: 0;
}

/* .default-button is display:flex, so it would span the full 900px column. */
.news-post__link .default-button {
	width: -webkit-fit-content;
	width: fit-content;
}

/* Tailwind purged the `underline` utility; match .legal-page__content links. */
.news-post__link--text a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Aspect ratio for the video block (previously an inline <style> in the body). */
.news-post__video {
	aspect-ratio: 16 / 9;
}

.news-post__video iframe,
.news-post__video embed,
.news-post__video object {
	width: 100%;
	height: 100%;
	border: 0;
}

/*
 * Rich text (WYSIWYG) in news articles.
 *
 * Tailwind preflight resets ul/ol to `list-style: none; margin: 0; padding: 0`
 * and p to `margin: 0`, so lists and paragraph spacing authored in the editor
 * were flattened on the front end. Restore them, scoped to the two WYSIWYG
 * outputs (section content + paragraph block); same values as .legal-page__content.
 */
.news-post__section > .p > * + *,
.news-post__block > .p > * + * {
	margin-top: 1em;
}

.news-post__section > .p ul,
.news-post__section > .p ol,
.news-post__block > .p ul,
.news-post__block > .p ol {
	padding-left: 24px;
}

.news-post__section > .p ul,
.news-post__block > .p ul {
	list-style: disc;
}

.news-post__section > .p ol,
.news-post__block > .p ol {
	list-style: decimal;
}

.news-post__section > .p li + li,
.news-post__block > .p li + li {
	margin-top: 8px;
}

/*
 * Seam between the two content zones of a news article.
 *
 * sections.php and content-blocks.php each render their own <section>, and both
 * wrappers carry zero vertical padding — so when an article uses both repeaters
 * the last section's content sits flush against the first content block (0px).
 *
 * The adjacent-sibling selector is deliberate: the padding must apply only when
 * the sections zone actually precedes the blocks zone. An article made of blocks
 * alone already gets its breathing room from the hero's bottom padding, and an
 * unconditional rule would leave a gap there.
 *
 * Values mirror the .news-post__sections gap (80 / 96 / 108px) so the seam reads
 * as one more step in the inter-section rhythm rather than a special case.
 */
.news-post__sections-wrap + .news-post__blocks-wrap {
	padding-top: 80px;
}

@media (min-width: 768px) {
	.news-post__sections-wrap + .news-post__blocks-wrap {
		padding-top: 96px;
	}
}

@media (min-width: 1280px) {
	.news-post__sections-wrap + .news-post__blocks-wrap {
		padding-top: 108px;
	}
}

/* ── Bloc « Contenu libre » (blocks/free-content) ─────────────────────────────
 *
 * Ces règles sont écrites à la main plutôt que composées en classes Tailwind :
 * le bundle Tailwind est compilé hors de ce dépôt et ne contient que les
 * utilitaires effectivement utilisés par l'équipe front. Générer des noms de
 * classes à l'exécution est donc peu fiable — `md:pt-16` est dans le bundle,
 * `lg:pt-16` et `xl:pt-20` ne le sont pas.
 *
 * Le rythme interne entre blocs est celui de .content-flow (voir plus haut),
 * partagé avec les offres et les actualités.
 */

/* Largeurs de colonne. `wide` occupe toute la grille : aucune contrainte. */
.free-content--width-narrow .free-content__blocks {
	max-width: 900px;
}

.free-content--width-standard .free-content__blocks {
	max-width: 1200px;
}

/*
 * Échelle d'espacement vertical.
 *
 * ⚙️ C'EST ICI QUE SE RÈGLE L'INTÉGRATION VISUELLE DU BLOC.
 * Les valeurs « large » reprennent volontairement le rythme inter-sections des
 * actualités (80 / 96 / 108px, cf. .news-post__sections-wrap ci-dessus) ;
 * « small » et « medium » en sont dérivés. Les points de rupture (768 / 1280px)
 * sont ceux utilisés par ce même rythme.
 * Ajustez librement ces trois paliers : c'est le seul endroit à modifier.
 */
.free-content--space-top-none {
	padding-top: 0;
}
.free-content--space-top-small {
	padding-top: 40px;
}
.free-content--space-top-medium {
	padding-top: 60px;
}
.free-content--space-top-large {
	padding-top: 80px;
}

.free-content--space-bottom-none {
	padding-bottom: 0;
}
.free-content--space-bottom-small {
	padding-bottom: 40px;
}
.free-content--space-bottom-medium {
	padding-bottom: 60px;
}
.free-content--space-bottom-large {
	padding-bottom: 80px;
}

@media (min-width: 768px) {
	.free-content--space-top-small {
		padding-top: 48px;
	}
	.free-content--space-top-medium {
		padding-top: 72px;
	}
	.free-content--space-top-large {
		padding-top: 96px;
	}

	.free-content--space-bottom-small {
		padding-bottom: 48px;
	}
	.free-content--space-bottom-medium {
		padding-bottom: 72px;
	}
	.free-content--space-bottom-large {
		padding-bottom: 96px;
	}
}

@media (min-width: 1280px) {
	.free-content--space-top-small {
		padding-top: 56px;
	}
	.free-content--space-top-medium {
		padding-top: 80px;
	}
	.free-content--space-top-large {
		padding-top: 108px;
	}

	.free-content--space-bottom-small {
		padding-bottom: 56px;
	}
	.free-content--space-bottom-medium {
		padding-bottom: 80px;
	}
	.free-content--space-bottom-large {
		padding-bottom: 108px;
	}
}

/*
 * Deux blocs « Contenu libre » empilés sur le même fond : leurs paddings
 * s'additionneraient (≈ 160px à 1280px) et le vide paraîtrait accidentel. Seul
 * le padding bas du premier bloc est conservé : il devient l'écart entre les
 * deux. Avec des fonds différents, chaque bande garde son propre padding.
 * Les quatre classes l'emportent sur les modificateurs --space-top-* choisis
 * dans l'éditeur, à toutes les largeurs.
 */
.free-content.bg-brandWhite + .free-content.bg-brandWhite,
.free-content.bg-brandTertiary + .free-content.bg-brandTertiary {
	padding-top: 0;
}

/* Anchor targets (#contact-form, offer CTAs) land below the fixed header. */
#contact-form {
	scroll-margin-top: 120px;
}

/* ── Bloc « Carrousel de photos » (template-parts/news/blocks/gallery.php) ────
 *
 * Sur desktop, les flèches n'apparaissent qu'au survol (comme le slider des
 * offres). Sans cette règle, un utilisateur clavier tabulerait sur des boutons
 * invisibles.
 */
.news-post__gallery:focus-within .news-post__gallery-nav {
	opacity: 1;
	-webkit-transform: none;
	transform: none;
}

/*
 * Stay section highlights: shared rows (image / title / description) via subgrid
 * so descriptions line up across columns whatever the title length.
 */
@media (min-width: 768px) {
	.stay-block__mobile-cards-inner {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		grid-template-rows: auto auto 1fr;
	}

	.stay-block__mobile-card {
		display: grid;
		grid-row: span 3;
		grid-template-rows: subgrid;
		row-gap: 1rem;
	}

	.stay-block__mobile-card-title {
		margin-top: 0.25rem;
	}
}

@media (min-width: 1024px) {
	.stay-block__hover {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		grid-template-rows: auto auto 1fr;
		column-gap: 1.5rem;
	}

	.stay-block__highlight {
		display: grid;
		grid-row: span 3;
		grid-template-rows: subgrid;
		row-gap: 1rem;
	}

	.stay-block__highlight-image {
		margin-bottom: 0.25rem;
	}
}

@media (min-width: 1536px) {
	.stay-block__hover {
		column-gap: 3rem;
	}

	.stay-block__highlight-image {
		margin-bottom: 1rem;
	}
}

.stay-block__highlight-title,
.stay-block__mobile-card-title {
	grid-row: 2;
}

.stay-block__highlight-desc,
.stay-block__mobile-card-desc {
	grid-row: 3;
}

/*
 * Cards sharing rows through .aligned-cards (see style.css): spacing between
 * the rows lives on margins because subgrids inherit the parent row-gap.
 */
.about-family__icon--filled {
	margin-bottom: 1.5rem;
}

.about-family__title {
	margin-bottom: 1.5rem;
}

.about-dining__image {
	margin-bottom: 1.5rem;
}

.team-section__grid {
	--ac-gap: 2.75rem;
}

@media (min-width: 768px) {
	.team-section__grid {
		--ac-gap: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.about-family__icon--filled {
		margin-bottom: 2.5rem;
	}
}

@media (min-width: 1280px) {
	.about-family__title,
	.about-dining__image {
		margin-bottom: 2.25rem;
	}
}

@media (min-width: 1440px) {
	.about-family__icon--filled {
		margin-bottom: 3.5rem;
	}
}

/* Mobile menu: reset browser/GP default button borders — only keep border-top */
.submenu-toggle {
	border-left: 0;
	border-right: 0;
	border-bottom: 0;
	background: transparent;
}

/*
 * Grille de tableau adaptative (bloc "Forfaits apéritifs et cocktails").
 * Le nombre de colonnes est fourni par render.php via les variables
 * --mg-cols-md / --mg-cols-lg / --mg-cols-xl, calculées depuis le nombre
 * d'entrées ACF : la grille se répartit sur toute la largeur, sans colonne vide.
 */
.manotel-auto-grid {
	display: grid;
	grid-template-columns: repeat(var(--mg-cols-sm, 1), minmax(0, 1fr));
}

@media (min-width: 768px) {
	.manotel-auto-grid {
		grid-template-columns: repeat(var(--mg-cols-md, 1), minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.manotel-auto-grid {
		grid-template-columns: repeat(var(--mg-cols-lg, 1), minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.manotel-auto-grid {
		grid-template-columns: repeat(var(--mg-cols-xl, 1), minmax(0, 1fr));
	}
}

/*
 * Signe "+" dans les titres (ex. « Rousseau A+B Lounge »).
 *
 * Les titres utilisent Literata, une police variable dont l'axe `opsz`
 * augmente le contraste des traits quand la taille de rendu grandit. À la
 * graisse des titres (200), la barre horizontale du "+" devient un filet :
 * les navigateurs qui appliquent l'axe optique et lissent en niveaux de gris
 * (Chrome/Edge sous Windows, écrans non HiDPI) l'effacent presque entièrement
 * et il ne reste qu'un trait vertical mal placé, alors que ceux qui ignorent
 * `opsz` l'affichent correctement — d'où un rendu correct chez les uns et
 * cassé chez les autres.
 *
 * On sort donc le caractère de Literata : la sans-serif a des traits
 * d'épaisseur uniforme qui survivent à tous les moteurs de rendu, et le
 * centrage + l'espacement sont ici explicites plutôt que laissés aux
 * métriques de la police.
 */
.sym-plus {
	font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
	font-weight: 300;
	font-size: 0.8em;
	line-height: 1;
	/* Centre le signe sur la hauteur d'x au lieu de la ligne de base. */
	vertical-align: 0.06em;
	margin: 0 0.14em;
	font-optical-sizing: none;
	font-synthesis: none;
}

/*
 * Libellés des fiches chambre (Gäste / Wohnfläche / Bettkonfiguration…).
 *
 * La colonne de libellé avait une largeur fixe (128 px, 172 px selon le
 * breakpoint). GeneratePress applique `word-wrap: break-word` sur
 * `.site-content` : dès qu'un libellé dépasse cette largeur — c'est le cas de
 * l'allemand « Bettkonfiguration: », 139 px — le mot est coupé en plein milieu
 * et le « n: » tombe à la ligne.
 *
 * On remplace donc la largeur fixe par une largeur minimale : l'alignement des
 * valeurs reste identique tant que le libellé rentre, et la colonne s'élargit
 * juste ce qu'il faut pour les libellés plus longs. `overflow-wrap: normal`
 * neutralise la coupure de GeneratePress, quelle que soit la langue.
 */
.room-detail-label,
.room-detail__label,
.room-card-label {
	width: auto;
	overflow-wrap: normal;
	word-break: normal;
	-webkit-hyphens: none;
	hyphens: none;
}

/*
 * Largeur de colonne : assez large pour le plus long libellé traduit
 * (« Bettkonfiguration: » = 140 px à 16 px, 131 px à 15 px, 122 px à 14 px),
 * pour que toutes les valeurs restent alignées sur la même verticale d'une
 * ligne à l'autre.
 */
.room-detail-label {
	min-width: 150px;
}

@media (min-width: 768px) {
	.room-detail-label {
		min-width: 172px;
	}
}

@media (min-width: 1024px) {
	.room-detail-label {
		min-width: 150px;
	}
}

.room-card-label {
	min-width: 128px;
}

/* Bloc rooms-section (liste des chambres). */
.room-detail__label {
	min-width: 126px;
}

@media (min-width: 640px) {
	.room-detail__label {
		min-width: 172px;
	}
}

@media (min-width: 1024px) {
	.room-detail__label {
		min-width: 134px;
	}
}

@media (min-width: 1280px) {
	.room-detail__label {
		min-width: 172px;
	}
}

/*
 * Titres sur mobile : coupure en plein mot, sans trait d'union.
 *
 * Deux règles se combinaient pour produire « Conféren / ces » ou
 * « Datensch / utzrichtli / nie » :
 *
 * 1. Le bundle Tailwind compilé fixe `.h1.h1--sp-title` à 72 px pour TOUS les
 *    écrans sous 1024 px, sans palier supplémentaire pour les téléphones. Sur un
 *    écran de 375 px, le `.container` (padding de 1.25rem de chaque côté) ne
 *    laisse que ~335 px : « Datenschutzrichtlinie » à 72 px est très loin de
 *    tenir.
 * 2. GeneratePress applique `word-wrap: break-word` sur `.site-content`
 *    (assets/css/main.css). Comme `hyphens` vaut `manual` par défaut, aucun
 *    dictionnaire de césure n'est actif : la seule coupure possible pour le
 *    navigateur est une coupure à un caractère arbitraire, SANS trait d'union.
 *
 * On corrige les deux, uniquement sur mobile : le rendu à partir de 768 px reste
 * strictement identique.
 */

/*
 * 1. Taille fluide pour le titre héros (pages séminaires, hôtel, offres,
 *    actualités, contact et pages légales).
 *
 * 320-400 px → 40 px · 480 px → 48 px · 640 px → 64 px · ≥ 720 px → 72 px.
 * Le palier tablette d'origine est donc préservé.
 *
 * Le sélecteur répète volontairement les deux classes : la règle à surcharger
 * est `.h1.h1--sp-title` (spécificité 0,2,0) et un simple `.h1--sp-title`
 * (0,1,0) perdrait quel que soit l'ordre de chargement des fichiers.
 */
@media (max-width: 1023.98px) {
	.h1.h1--sp-title {
		font-size: clamp(2.5rem, 10vw, 72px);
	}
}

/*
 * 2. Césure automatique en filet de sécurité.
 *
 * Nécessaire au-delà du seul titre héros : l'accueil (`.h1`, 48 px) et les
 * fiches chambre (`.h1--rooms`, 32 px) passent de justesse à 375 px mais
 * cassaient dès 320 px (« Wohlbefinden », « Einzimmerwohnung »).
 *
 * `overflow-wrap: break-word` est volontairement laissé hérité de GeneratePress
 * comme dernier recours : avec `hyphens: auto` le navigateur privilégie une
 * césure propre avec trait d'union, et un mot réellement insécable ne peut
 * toujours pas déborder du conteneur. On ne reprend donc PAS le
 * `overflow-wrap: normal` utilisé plus haut pour les libellés de chambres, qui
 * sur un titre provoquerait un débordement horizontal.
 *
 * `hyphenate-limit-chars: 12 5 4` réserve la césure aux mots de 12 caractères
 * ou plus (5 avant / 4 après le trait d'union) : « Konferenzen » et
 * « Conférences » (11) ne sont jamais coupés et tiennent sur une ligne une fois
 * la taille réduite, tandis que « Sonderangebote » (14) ou
 * « Datenschutzrichtlinie » (21) se coupent proprement si nécessaire.
 *
 * Polylang émet bien `<html lang="de-DE">` / `fr-FR` / `en-GB`, ce qui est la
 * condition pour que le bon dictionnaire de césure soit chargé.
 * `-webkit-hyphens` est requis par Safari / iOS.
 */
@media (max-width: 1023.98px) {
	.h1,
	.h2,
	.h3,
	.h4,
	.wp-block-heading,
	.legal-page__content h2,
	.legal-page__content h3 {
		-webkit-hyphens: auto;
		hyphens: auto;
		-webkit-hyphenate-limit-before: 5;
		-webkit-hyphenate-limit-after: 4;
		hyphenate-limit-chars: 12 5 4;
	}
}
