/*
Theme Name: Ô Pure Spa
Theme URI: https://opurespa.com
Author: Ô Pure Spa
Description: Thème sur mesure pour Ô Pure Spa. Palette « Écume » : crème en haut, bleu nuit en dessous, transitions de page en vague.
Version: 1.1.1
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: opurespa
*/

/* ---------- Couleurs et mesures ---------- */
:root {
	--cream: #FAF6EE;
	--cream-deep: #F1EADC;
	--navy: #0A1A3F;
	--navy-card: #16264D;
	--navy-line: #2A3A63;
	--ink: #0A1A3F;
	--ink-soft: #4D5A78;
	--link: #1E6FB8;
	--on-navy: #FAF6EE;
	--on-navy-soft: #BCCBE0;
	--foam: #BFE3FB;
	--sky: #5BB6F9;
	--royal: #233DFF;

	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Nunito', system-ui, sans-serif;

	--step-0: 1.125rem;
	--step-1: 1.35rem;
	--step-2: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);
	--step-3: clamp(2.4rem, 1.6rem + 3.6vw, 4.25rem);

	--container: 72rem;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--radius: 18px;
	--section-y: clamp(3.5rem, 7vw, 6.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.7;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
	font-family: var(--font-display);
	font-variation-settings: 'SOFT' 100, 'opsz' 96;
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0 0 0.6em;
	text-wrap: balance;
}
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); line-height: 1.25; font-variation-settings: 'SOFT' 100, 'opsz' 24; }
p { margin: 0 0 1.1em; text-wrap: pretty; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 4px; }
.section--navy :focus-visible, .site-footer :focus-visible { outline-color: var(--sky); }

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

.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--navy); color: var(--on-navy); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.button {
	display: inline-flex; align-items: center; gap: 0.5rem;
	background: var(--navy); color: var(--cream);
	font-weight: 600; text-decoration: none;
	padding: 0.85rem 1.6rem; border-radius: 999px;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.button:hover { background: var(--royal); }
.button:active { transform: scale(0.98); }
.section--navy .button { background: var(--sky); color: var(--navy); }
.section--navy .button:hover { background: var(--foam); }

/* ---------- En-tête ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--cream) 92%, transparent);
	backdrop-filter: saturate(1.2) blur(8px);
	border-bottom: 1px solid color-mix(in srgb, var(--navy) 8%, transparent);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 7.5rem; padding-block: 0.5rem; }
.brand img { height: 6.75rem; width: auto; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; }
.nav-list a {
	color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 600;
	padding: 0.4rem 0; background: linear-gradient(var(--sky), var(--sky)) left bottom / 0 2px no-repeat;
	transition: background-size 0.25s ease;
}
.nav-list a:hover, .nav-list a[aria-current="page"], .nav-list .current-menu-item > a { background-size: 100% 2px; }

.nav-toggle { display: none; }

@media (max-width: 960px) {
	.nav-toggle {
		display: inline-flex; align-items: center; gap: 0.6rem;
		background: none; border: 1px solid color-mix(in srgb, var(--navy) 20%, transparent); border-radius: 999px;
		color: var(--ink); font: 600 1rem var(--font-body); padding: 0.5rem 1rem; cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
		transition: transform 0.25s ease, opacity 0.2s ease;
	}
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -6px; }
	.nav-toggle__bars::after { top: 6px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--cream); border-bottom: 1px solid color-mix(in srgb, var(--navy) 10%, transparent);
		padding: 0.5rem var(--gutter) 1.5rem;
		display: none;
	}
	.site-nav.is-open { display: block; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { display: block; padding: 0.85rem 0; font-size: 1.15rem; border-bottom: 1px solid color-mix(in srgb, var(--navy) 8%, transparent); background: none; }
	.nav-list a[aria-current="page"] { color: var(--link); }
	.brand img { height: 5rem; }
	.site-header__inner { min-height: 6rem; }
}

/* ---------- Vagues ---------- */
.wave { --wave-h: clamp(36px, 5.5vw, 76px); display: block; width: 100%; height: var(--wave-h); position: absolute; left: 0; pointer-events: none; }
.wave--into-navy, .wave--footer { fill: var(--navy); top: 1px; transform: translateY(-100%); }
.wave--out-of-navy { fill: var(--navy); bottom: 1px; transform: translateY(100%) scaleY(-1) scaleX(-1); z-index: 2; }
.wave--cover { fill: var(--cream); bottom: -1px; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--cream { background: var(--cream); color: var(--ink); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy p { color: var(--on-navy-soft); }
.section--navy h2, .section--navy h3 { color: var(--on-navy); }
.section--navy a { color: var(--foam); }
.section--navy { z-index: 1; }
.section--navy + .section--cream { padding-top: calc(var(--section-y) + 3rem); }

.prose > * { max-width: 42rem; }
.prose p, .prose li { color: inherit; }
.section--cream .prose p { color: var(--ink-soft); }
.section--cream .prose strong { color: var(--ink); }
.prose h3 { margin-top: 2.2rem; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.9rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--ink-soft); }
.ticks li::before {
	content: ''; position: absolute; left: 0; top: 0.45em;
	width: 0.85rem; height: 1.05rem; background: var(--sky);
	border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
	transform: rotate(180deg);
}

.closing { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.45; color: var(--ink) !important; margin-top: 2rem; font-variation-settings: 'SOFT' 100, 'opsz' 24; }

.section__note { max-width: 42rem; margin-top: 2.5rem; }

/* ---------- Accueil ---------- */
/*
 * Vidéo pleine largeur de l'accueil. --p (0 à 1) suit le défilement, réglé par site.js :
 * l'eau descend plus lentement que la page et grossit, le titre monte et s'efface.
 */
.hero {
	--p: 0;
	position: relative; isolation: isolate; overflow: hidden;
	min-height: clamp(30rem, 84vh, 56rem);
	display: grid; align-items: end;
	padding-block: 6rem clamp(6rem, 11vw, 9rem);
	background: var(--navy); color: var(--cream);
}
.hero__bg {
	position: absolute; inset: 0; z-index: -1;
	transform: translate3d(0, calc(var(--p) * 22%), 0) scale(calc(1.06 + var(--p) * 0.12));
	will-change: transform;
}
.hero__bg::after {
	content: ''; position: absolute; inset: 0;
	background:
		linear-gradient(to top, rgb(10 26 63 / 0.8) 0%, rgb(10 26 63 / 0.35) 45%, rgb(10 26 63 / 0.1) 75%, rgb(10 26 63 / 0.3) 100%),
		linear-gradient(to right, rgb(10 26 63 / 0.55), transparent 70%);
}
.hero__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__content {
	transform: translate3d(0, calc(var(--p) * -90px), 0);
	opacity: calc(1 - var(--p) * 1.5);
}
.hero__title {
	color: var(--cream);
	font-size: clamp(2.6rem, 1.5rem + 4.8vw, 5.75rem);
	font-variation-settings: 'SOFT' 100, 'opsz' 144;
	line-height: 1; letter-spacing: -0.02em;
	max-width: 13ch; margin-bottom: 2.25rem;
	text-shadow: 0 2px 28px rgb(10 26 63 / 0.4);
}
.hero :focus-visible { outline-color: var(--foam); }
.button--light { background: var(--cream); color: var(--navy); }
.button--light:hover { background: var(--foam); }
.wave--hero { fill: var(--cream); bottom: -1px; }

.cards { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.card { background: var(--navy-card); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.25rem; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card p { font-size: 1rem; margin: 0; }
.card--feature { grid-column: span 2; background: var(--sky); border-color: var(--sky); }
.card--feature h3 { color: var(--navy); font-size: var(--step-2); }
.card--feature p { color: var(--navy); font-size: 1.125rem; max-width: 34rem; }
@media (max-width: 640px) { .card--feature { grid-column: auto; } }
.card--fence { border-color: var(--sky); }
.card__link { display: inline-block; margin-top: 0.75rem; font-weight: 700; color: var(--foam); }

.partners { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.partners li { flex: 1 1 10rem; max-width: 13rem; }
.partners a {
	display: grid; place-items: center; height: 7.5rem; padding: 1rem 1.25rem;
	background: #fff; border-radius: var(--radius);
	border: 1px solid color-mix(in srgb, var(--navy) 8%, transparent);
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.partners a:hover { border-color: var(--sky); transform: translateY(-2px); }
.partners img { max-height: 5rem; width: auto; object-fit: contain; }

/* ---------- Pages intérieures ---------- */
.page-head { background: var(--cream); padding-top: clamp(2rem, 5vw, 3.5rem); }
.page-title { font-size: var(--step-3); font-variation-settings: 'SOFT' 100, 'opsz' 144; letter-spacing: -0.02em; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); max-width: 18ch; }
.page-head--plain { padding-bottom: 0.5rem; }
.page-cover { margin: 0; position: relative; }
.page-cover img { width: 100%; height: clamp(14rem, 34vw, 26rem); object-fit: cover; }
.page-cover--tall img { height: clamp(17rem, 46vw, 36rem); }

.figure-wide { margin-top: 3rem; }
.figure-wide img { border-radius: var(--radius); width: 100%; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.steps li { counter-increment: step; background: var(--navy-card); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 1.5rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: 1rem; border-radius: 50%; background: var(--sky); color: var(--navy); font-weight: 700; }
.steps h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.steps p { font-size: 1rem; margin: 0; }

.products { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.product { background: #fff; border: 1px solid color-mix(in srgb, var(--navy) 8%, transparent); border-radius: var(--radius); padding: 1rem 1rem 1.25rem; }
.product__media { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; overflow: hidden; margin-bottom: 1rem; background: #fff; }
.product__media img { max-height: 100%; width: auto; object-fit: contain; transition: transform 0.3s ease; }
.product__media:hover img { transform: scale(1.04); }
.product__name { font-size: 1.15rem; margin-bottom: 0.25rem; }
.product__price { margin: 0; font-weight: 700; color: var(--link); }
.products__group { font-size: var(--step-1); margin: 3rem 0 0; }
.products__group + .products { margin-top: 1.25rem; }
.product__media img { width: 100%; height: 100%; object-fit: contain; }
.product__placeholder {
	display: grid; place-items: center; width: 100%; height: 100%;
	background: var(--cream-deep); color: var(--ink-soft); font-size: 0.95rem;
	border: 1px dashed color-mix(in srgb, var(--navy) 18%, transparent); border-radius: 12px;
}
.products__note { margin-top: 2.5rem; color: var(--ink-soft); }

.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-card { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 1.75rem; }
.contact-card__logo {
	margin: -1.75rem -1.75rem 1.25rem; padding: 1.75rem 1.75rem 2.25rem;
	background: #fff; border-radius: var(--radius) var(--radius) 0 0;
	border: 1px solid color-mix(in srgb, var(--navy) 12%, transparent); border-bottom: 0;
	display: grid; place-items: center; position: relative;
}
.contact-card__logo img { width: min(9.5rem, 50%); height: auto; }
.contact-card__logo::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 18px;
	background: var(--navy);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 18' preserveAspectRatio='none'%3E%3Cpath d='M0 9 C 70 0 130 0 200 9 S 330 18 400 8 V18 H0 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 18' preserveAspectRatio='none'%3E%3Cpath d='M0 9 C 70 0 130 0 200 9 S 330 18 400 8 V18 H0 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.contact-card dl { margin: 0; display: grid; gap: 0.2rem; }
.contact-card dt { font-size: 0.9rem; color: var(--on-navy-soft); margin-top: 0.8rem; }
.contact-card dd { margin: 0; font-weight: 600; }
.contact-card a { color: var(--foam); }
@media (max-width: 860px) {
	.contact { grid-template-columns: 1fr; }
	.contact-card { max-width: 30rem; }
}

/* ---------- Clôture obligatoire autour des spas (page Services) ---------- */
.fence { padding-top: 1rem; }
.fence__panel { background: var(--cream-deep); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); }
.fence__top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 2rem; align-items: start; }
.fence__deadline { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.5rem; }
.fence__date { font-family: var(--font-display); font-variation-settings: 'SOFT' 100, 'opsz' 96; font-size: var(--step-2); line-height: 1.05; }
.fence__date-label { font-size: 0.95rem; line-height: 1.5; color: var(--on-navy-soft); }
.fence__rules { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.fence__rules li { background: #fff; border-radius: 14px; padding: 1.25rem; display: grid; gap: 0.35rem; border: 1px solid color-mix(in srgb, var(--navy) 8%, transparent); }
.fence__rules strong { font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-weight: 500; font-size: 1.2rem; color: var(--ink); }
.fence__rules span { font-size: 0.98rem; color: var(--ink-soft); line-height: 1.55; }
.fence__note { font-size: 0.9rem; color: var(--ink-soft) !important; margin-top: 1.5rem; }
@media (max-width: 760px) { .fence__top { grid-template-columns: 1fr; } }

/* ---------- Formulaire de demande de service ---------- */
.request { padding-top: 1rem; }
.request__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.request__intro { position: sticky; top: 9.5rem; }
.request__form, .request__done {
	background: #fff; border: 1px solid color-mix(in srgb, var(--navy) 10%, transparent);
	border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem);
}
.request__done h2 { font-size: var(--step-2); }
.request__alert {
	background: #FFF4E5; border: 1px solid #F0C27B; color: #6B4510;
	border-radius: 12px; padding: 0.85rem 1.1rem; margin: 0 0 1.25rem; font-size: 1rem;
}
.request__error { color: #A3261B; font-weight: 600; margin: 0 0 1rem; }
.request__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { margin: 0 0 1.5rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: 0.25rem; padding: 0; }
.field__req { font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); margin-left: 0.35rem; }
.field__hint { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 0.5rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
	background: var(--cream); border: 1px solid color-mix(in srgb, var(--navy) 18%, transparent);
	border-radius: 12px; padding: 0.75rem 0.9rem; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky) 35%, transparent); }
.field textarea { resize: vertical; min-height: 8rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.5rem; }
.choice { display: flex !important; align-items: flex-start; gap: 0.6rem; font-weight: 400 !important; cursor: pointer;
	background: var(--cream); border: 1px solid color-mix(in srgb, var(--navy) 12%, transparent); border-radius: 12px; padding: 0.65rem 0.8rem; }
.choice:hover { border-color: var(--sky); }
.choice input { margin-top: 0.3rem; accent-color: var(--navy); width: 1.05rem; height: 1.05rem; flex: none; }
.choice:has(input:checked) { border-color: var(--navy); background: color-mix(in srgb, var(--foam) 45%, var(--cream)); }

.dropzone { display: grid !important; place-items: center; position: relative; cursor: pointer;
	border: 2px dashed color-mix(in srgb, var(--navy) 22%, transparent); border-radius: 14px; padding: 1.5rem; background: var(--cream); text-align: center; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--link); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__text { font-weight: 600; color: var(--link); }
.dropzone__list { list-style: none; padding: 0; margin: 0.6rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.request__submit { font-size: 1.05rem; padding: 0.95rem 2rem; border: 0; cursor: pointer; font-family: inherit; }
.request__submit:disabled { opacity: 0.7; cursor: progress; }

@media (max-width: 860px) {
	.request__inner { grid-template-columns: 1fr; }
	.request__intro { position: static; }
	.field-row { grid-template-columns: 1fr; }
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-soft); position: relative; margin-top: clamp(36px, 5.5vw, 76px); }
.site-footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem 3rem; align-items: center; padding-block: 2rem 2.5rem; }
.site-footer__badge { width: 7rem; border-radius: 50%; background: #fff; }
.site-footer__name { font-family: var(--font-display); font-size: 1.6rem; color: var(--on-navy); margin-bottom: 0.4rem; font-variation-settings: 'SOFT' 100; }
.site-footer__info p { margin-bottom: 0.4rem; }
.site-footer a { color: var(--foam); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer__legal {
	font-size: 0.9rem; padding-block: 1.25rem 2rem; border-top: 1px solid var(--navy-line);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
}
.site-footer__legal p { margin: 0; }
.site-footer__credit { font-size: 0.8rem; opacity: 0.75; }
.site-footer__credit a { color: inherit; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Transition d'eau entre les pages ---------- */
.water-veil {
	position: fixed; left: 0; right: 0; top: 0; height: calc(100vh + 90px); height: calc(100dvh + 90px); z-index: 9999; pointer-events: none;
	display: flex; flex-direction: column;
	transform: translateY(110%);
	visibility: hidden;
}
.water-veil__waves { display: block; width: 200%; height: 90px; flex: none; margin-bottom: -1px; animation: swell 1.6s linear infinite; }
/* Bleus foncés de l'eau (mêmes teintes que l'eau WebGL). */
.water-veil__wave--back { fill: #4A6A9A; opacity: 0.6; }
.water-veil__wave--mid { fill: #1C3A6E; opacity: 0.9; }
.water-veil__wave--front { fill: #0E1C3A; }
.water-veil__body { flex: 1; background: #0E1C3A; position: relative; overflow: hidden; }
.bubble {
	position: absolute; left: var(--x); bottom: -2rem; width: var(--s); height: var(--s);
	border-radius: 50%; border: 2px solid var(--foam); opacity: 0;
	animation: rise 1.1s ease-in var(--d) infinite;
}
@keyframes swell { to { transform: translateX(-50%); } }
@keyframes rise {
	0% { transform: translateY(0); opacity: 0; }
	20% { opacity: 0.8; }
	100% { transform: translateY(-70vh); opacity: 0; }
}

/* Eau réaliste (WebGL). Le voile ci-dessus ne sert plus que de secours et de couverture à l'arrivée. */
.water-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 10000; pointer-events: none; display: none; }

/* Départ : l'eau monte et couvre la page. */
.water-leaving .water-veil { visibility: visible; animation: fill-up 0.65s cubic-bezier(0.55, 0, 0.35, 1) forwards; }
@keyframes fill-up { from { transform: translateY(110%); } to { transform: translateY(-90px); } }

/* Arrivée : la page est couverte, puis l'eau redescend. */
.water-arriving .water-veil { visibility: visible; transform: translateY(-90px); }
.water-draining .water-veil { visibility: visible; animation: drain 0.85s cubic-bezier(0.45, 0, 0.25, 1) forwards; }
@keyframes drain { from { transform: translateY(-90px); } to { transform: translateY(110%); } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.water-veil { display: none; }
	.hero__bg, .hero__content { transform: none; opacity: 1; }
	*, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Impression et PDF ---------- */
@media print {
	@page { size: letter; margin: 0; }
	html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	html { scroll-behavior: auto; }
	.site-header { position: static; backdrop-filter: none; background: var(--cream); }
	.nav-toggle, .skip-link, .water-veil, .water-canvas, .font-preview, .apercu-badge { display: none !important; }
	.site-nav { display: block !important; position: static; padding: 0; border: 0; background: none; }
	.nav-list { flex-direction: row; gap: 0.25rem 1.6rem; }
	.nav-list a { display: inline; padding: 0; border: 0; font-size: 0.95rem; }
	/* La vidéo ne s'imprime pas : on montre l'image fixe de l'eau à sa place. */
	.hero__video { display: none; }
	.hero__bg { background: var(--navy) url(assets/video/accueil-eau-affiche.webp) center / cover no-repeat; transform: none !important; }
	.hero { min-height: 0; padding-block: 7rem 8rem; }
	.hero__content { transform: none !important; opacity: 1 !important; }
	.card, .product, .steps li, .partners li, .contact-card { break-inside: avoid; }
	h2, h3 { break-after: avoid; }
}

/* ---------- Sélecteur de polices (site de test seulement) ---------- */
.font-preview {
	position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
	background: #fff; color: var(--ink); border: 1px solid color-mix(in srgb, var(--navy) 15%, transparent);
	border-radius: 14px; padding: 0.75rem 0.9rem; font: 600 0.9rem/1.4 system-ui, sans-serif;
	box-shadow: 0 8px 24px rgb(10 26 63 / 0.15);
	display: grid; gap: 0.4rem; max-width: calc(100vw - 2rem);
}
.font-preview label { font-weight: 600; }
.font-preview select { font: 400 0.95rem system-ui, sans-serif; padding: 0.35rem; border-radius: 8px; border: 1px solid #c8cfdc; max-width: 100%; }
.font-preview small { font-weight: 400; color: var(--ink-soft); }
