/*
 * Webdesign Passion Coming Soon — feuille de base du front.
 *
 * Ce fichier ne contient AUCUNE valeur issue des réglages : uniquement de la
 * structure. Tout ce qui est personnalisable passe par des variables CSS
 * générées côté serveur (voir WDPCS_CSS).
 */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	overflow-x: hidden;
}

body.wdpcs-body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	background: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.wdpcs-page img { max-width: 100%; height: auto; }

.wdpcs-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------------ Page */

.wdpcs-page {
	position: relative;
	display: flex;
	flex-direction: column;
	/*
	 * 100svh = « small viewport height » : la hauteur quand les barres du
	 * navigateur sont déployées. C'est la seule unité qui ne provoque jamais de
	 * défilement parasite, ni sur mobile ni pendant un passage en plein écran.
	 */
	min-height: 100vh;
	min-height: 100svh;
	overflow-x: clip;
	isolation: isolate;
}

.wdpcs-page--preview {
	min-height: 100vh;
	min-height: 100svh;
}

/* Place réservée au bandeau épinglé : le contenu ne passe jamais dessous. */
.wdpcs-page[data-mq-pinned="1"][data-mq="bottom"] { padding-bottom: var(--wdpcs-mq-space, 0px); }
.wdpcs-page[data-mq-pinned="1"][data-mq="top"] { padding-top: var(--wdpcs-mq-space, 0px); }

/* ---------------------------------------------------------- Couches de fond */

.wdpcs-bg,
.wdpcs-bg-image,
.wdpcs-overlay {
	position: fixed;
	inset: 0;
	pointer-events: none;
}

.wdpcs-bg {
	z-index: 0;
	background: var(--wdpcs-bg, #f6f2eb);
}

/*
 * La couche image déborde de 3 × le rayon de flou : sans cela, un blur élevé
 * délave les bords de l'écran. Elle reste en position fixe, donc elle ne crée
 * jamais de défilement horizontal.
 */
.wdpcs-bg-image {
	z-index: 1;
	inset: calc(var(--wdpcs-bg-blur, 0px) * -3);
	background-image: var(--wdpcs-bg-img, none);
	background-size: var(--wdpcs-bg-size, cover);
	background-position: var(--wdpcs-bg-pos, 50% 50%);
	background-repeat: var(--wdpcs-bg-repeat, no-repeat);
	opacity: var(--wdpcs-bg-opacity, 1);
	filter: blur(var(--wdpcs-bg-blur, 0px));
}

/*
 * Diaporama d'arrière-plan.
 *
 * La couche conteneur porte la transparence et le flou communs ; chaque image
 * est une couche fille superposée. Seules les opacités sont animées : aucun
 * élément de la page ne bouge, donc aucun décalage de mise en page.
 */
.wdpcs-slideshow {
	position: fixed;
	z-index: 1;
	inset: calc(var(--wdpcs-bg-blur, 0px) * -3);
	pointer-events: none;
	opacity: var(--wdpcs-bg-opacity, 1);
	filter: blur(var(--wdpcs-bg-blur, 0px));
}

.wdpcs-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	background-size: var(--wdpcs-bg-size, cover);
	background-position: var(--wdpcs-bg-pos, 50% 50%);
	background-repeat: var(--wdpcs-bg-repeat, no-repeat);
	will-change: opacity;
}

/* La première image sert de fond permanent : elle réapparaît en fin de cycle. */
.wdpcs-slide--1 { opacity: 1; }

.wdpcs-overlay {
	z-index: 2;
	background: var(--wdpcs-overlay-bg, transparent);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
	.wdpcs-overlay {
		-webkit-backdrop-filter: blur(var(--wdpcs-overlay-blur, 0px));
		backdrop-filter: blur(var(--wdpcs-overlay-blur, 0px));
	}
}

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

.wdpcs-main {
	position: relative;
	z-index: 3;
	flex: 1 1 auto;
	display: flex;
	width: 100%;
	padding: var(--wdpcs-pad, 48px);
}

.wdpcs-page[data-position^="top"] .wdpcs-main { align-items: flex-start; }
.wdpcs-page[data-position^="center"] .wdpcs-main { align-items: center; }
.wdpcs-page[data-position^="bottom"] .wdpcs-main { align-items: flex-end; }
.wdpcs-page[data-position$="left"] .wdpcs-main { justify-content: flex-start; }
.wdpcs-page[data-position$="center"] .wdpcs-main { justify-content: center; }
.wdpcs-page[data-position$="right"] .wdpcs-main { justify-content: flex-end; }
.wdpcs-page[data-position="center"] .wdpcs-main { align-items: center; justify-content: center; }

.wdpcs-content {
	width: 100%;
	max-width: var(--wdpcs-content-max, 720px);
	text-align: var(--wdpcs-align, center);
}

/* Aucun blanc superflu au bas du bloc quand un élément est absent. */
.wdpcs-content > *:last-child { margin-bottom: 0; }

.wdpcs-content.is-glass {
	max-width: var(--wdpcs-glass-mw, 640px);
	padding: var(--wdpcs-glass-pad, 44px);
	background: var(--wdpcs-glass-bg, rgba(255, 255, 255, 0.4));
	border: var(--wdpcs-glass-bw, 1px) solid var(--wdpcs-glass-bc, rgba(255, 255, 255, 0.5));
	border-radius: var(--wdpcs-glass-radius, 22px);
	box-shadow: var(--wdpcs-glass-shadow, none);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
	.wdpcs-content.is-glass {
		-webkit-backdrop-filter: blur(var(--wdpcs-glass-blur, 0px));
		backdrop-filter: blur(var(--wdpcs-glass-blur, 0px));
	}
}

/* ------------------------------------------------------------------- Logo */

/*
 * Logo en en-tête : une bande en haut de la page, hors du bloc de contenu.
 * .wdpcs-page est une colonne flex et .wdpcs-main occupe le reste de la
 * hauteur : le contenu central garde donc exactement sa position.
 */
.wdpcs-header {
	position: relative;
	z-index: 3;
	flex: 0 0 auto;
	width: 100%;
	box-sizing: border-box;
	padding: var(--wdpcs-header-pad, 28px) var(--wdpcs-pad, 48px);
	text-align: var(--wdpcs-logo-align, center);
	line-height: 0;
}

.wdpcs-logo-wrap {
	text-align: var(--wdpcs-logo-align, center);
	margin-bottom: var(--wdpcs-logo-mb, 28px);
	line-height: 0;
}

.wdpcs-logo {
	display: inline-block;
	width: var(--wdpcs-logo-w, 150px);
	max-width: 100%;
	height: auto;
}

/* ------------------------------------------------------------------ Titre */

.wdpcs-title {
	margin: 0 var(--wdpcs-title-mr, auto) var(--wdpcs-title-mb, 18px) var(--wdpcs-title-ml, auto);
	max-width: var(--wdpcs-title-mw, none);
	font-family: var(--wdpcs-title-ff, inherit);
	font-size: var(--wdpcs-title-fs, 56px);
	font-weight: var(--wdpcs-title-fw, 400);
	line-height: var(--wdpcs-title-lh, 1.1);
	letter-spacing: var(--wdpcs-title-ls, 0);
	color: var(--wdpcs-title-color, #1a1712);
	text-align: var(--wdpcs-title-align, inherit);
	text-transform: var(--wdpcs-title-tt, none);
	text-wrap: balance;
	overflow-wrap: break-word;
}

/* ------------------------------------------------------------------ Texte */

.wdpcs-text {
	margin: 0 var(--wdpcs-text-mr, auto) var(--wdpcs-text-mb, 28px) var(--wdpcs-text-ml, auto);
	max-width: var(--wdpcs-text-mw, none);
	font-family: var(--wdpcs-text-ff, inherit);
	font-size: var(--wdpcs-text-fs, 18px);
	font-weight: var(--wdpcs-text-fw, 400);
	line-height: var(--wdpcs-text-lh, 1.6);
	color: var(--wdpcs-text-color, #4b453b);
	text-align: var(--wdpcs-text-align, inherit);
	text-wrap: pretty;
	overflow-wrap: break-word;
}

.wdpcs-text p { margin: 0 0 0.85em; }
.wdpcs-text p:last-child { margin-bottom: 0; }
.wdpcs-text a { color: inherit; text-underline-offset: 0.2em; }

/* -------------------------------------------------------- Bouton principal */

.wdpcs-actions {
	display: flex;
	justify-content: var(--wdpcs-btn-justify, center);
}

.wdpcs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	max-width: 100%;
	padding: var(--wdpcs-btn-py, 16px) var(--wdpcs-btn-px, 32px);
	border: var(--wdpcs-btn-bw, 0px) solid var(--wdpcs-btn-bc, transparent);
	border-radius: var(--wdpcs-btn-radius, 999px);
	background: var(--wdpcs-btn-bg, #1a1712);
	color: var(--wdpcs-btn-color, #ffffff);
	font-family: var(--wdpcs-btn-ff, inherit);
	font-size: var(--wdpcs-btn-fs, 15px);
	font-weight: var(--wdpcs-btn-fw, 500);
	letter-spacing: var(--wdpcs-btn-ls, 0);
	text-transform: var(--wdpcs-btn-tt, none);
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.wdpcs-btn:hover,
.wdpcs-btn:focus-visible {
	background: var(--wdpcs-btn-bg-hover, #3b342a);
	color: var(--wdpcs-btn-color-hover, #ffffff);
}

.wdpcs-btn:active { transform: translateY(1px); }

/* ------------------------------------------------- Boutons secondaires */

.wdpcs-secondary {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wdpcs-sec-gap, 10px);
	margin-top: var(--wdpcs-sec-mt, 22px);
	justify-content: var(--wdpcs-sec-justify, center);
}

.wdpcs-sec {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: var(--wdpcs-sec-py, 11px) var(--wdpcs-sec-px, 20px);
	border-radius: var(--wdpcs-sec-radius, 999px);
	border: 1px solid transparent;
	font-size: var(--wdpcs-sec-fs, 14px);
	line-height: 1.2;
	text-decoration: none;
	color: var(--wdpcs-sec-color, #1a1712);
	transition: background-color 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
}

.wdpcs-sec--solid {
	background: var(--wdpcs-sec-bg, #ffffff);
	border-color: var(--wdpcs-sec-bc, transparent);
}

.wdpcs-sec--outline {
	background: transparent;
	border-color: var(--wdpcs-sec-bc, rgba(0, 0, 0, 0.2));
}

.wdpcs-sec--text {
	background: transparent;
	border-color: transparent;
	padding-left: 0;
	padding-right: 0;
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.wdpcs-sec:hover,
.wdpcs-sec:focus-visible { opacity: 0.78; }

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

.wdpcs-footer {
	margin: 1.6em 0 0;
	font-size: var(--wdpcs-footer-fs, 13px);
	color: var(--wdpcs-footer-color, #6e675b);
	line-height: 1.5;
}

.wdpcs-footer p { margin: 0 0 0.4em; }
.wdpcs-footer p:last-child { margin-bottom: 0; }
.wdpcs-footer a { color: inherit; text-underline-offset: 0.2em; }

/* Pied de page ancré en bas de l'écran, hors du bloc de contenu. */
.wdpcs-footer--screen {
	position: relative;
	z-index: 5;
	flex: 0 0 auto;
	margin: 0;
	padding: 0 var(--wdpcs-pad, 48px) 20px;
	text-align: var(--wdpcs-footer-align, center);
}

.wdpcs-page[data-mq="top"] .wdpcs-footer--screen { padding-bottom: 24px; }

/* ---------------------------------------------------------------- Marquee */

.wdpcs-marquee {
	position: relative;
	z-index: 4;
	flex: 0 0 auto;
	overflow: hidden;
	padding: var(--wdpcs-mq-py, 11px) 0;
	background: var(--wdpcs-mq-bg, transparent);
	border-top: var(--wdpcs-mq-bt, 0px) solid var(--wdpcs-mq-bcolor, transparent);
	border-bottom: var(--wdpcs-mq-bb, 0px) solid var(--wdpcs-mq-bcolor, transparent);
	color: var(--wdpcs-mq-color, #1a1712);
	font-family: var(--wdpcs-mq-ff, inherit);
	font-size: var(--wdpcs-mq-fs, 12px);
	font-weight: var(--wdpcs-mq-fw, 500);
	letter-spacing: var(--wdpcs-mq-ls, 2px);
	text-transform: var(--wdpcs-mq-tt, uppercase);
	line-height: 1.4;
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
	.wdpcs-marquee {
		-webkit-backdrop-filter: blur(var(--wdpcs-mq-blur, 0px));
		backdrop-filter: blur(var(--wdpcs-mq-blur, 0px));
	}
}

/*
 * Mode épinglé : le bandeau est collé au bord de l'écran quelle que soit la
 * hauteur du contenu. La place correspondante est réservée sur .wdpcs-page.
 */
.wdpcs-page[data-mq-pinned="1"] .wdpcs-marquee {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 6;
}

.wdpcs-page[data-mq-pinned="1"][data-mq="top"] .wdpcs-marquee { top: 0; }
.wdpcs-page[data-mq-pinned="1"][data-mq="bottom"] .wdpcs-marquee { bottom: 0; }

.wdpcs-marquee-track {
	display: flex;
	width: max-content;
	animation-name: wdpcs-marquee-scroll;
	animation-duration: var(--wdpcs-mq-dur, 30s);
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	animation-direction: var(--wdpcs-mq-dir, normal);
	animation-play-state: var(--wdpcs-mq-play, running);
	will-change: transform;
}

.wdpcs-marquee-group {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: var(--wdpcs-mq-gap, 28px);
	padding-right: var(--wdpcs-mq-gap, 28px);
	white-space: nowrap;
}

.wdpcs-marquee:hover .wdpcs-marquee-track { animation-play-state: paused; }

@keyframes wdpcs-marquee-scroll {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-50%, 0, 0); }
}

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

.wdpcs-icon {
	flex: 0 0 auto;
	display: inline-block;
	vertical-align: middle;
}

/* ---------------------------------------------------------- Accessibilité */

.wdpcs-page a:focus-visible,
.wdpcs-page button:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

/* Repli pour les navigateurs sans :focus-visible. */
.wdpcs-page a:focus { outline: 3px solid currentColor; outline-offset: 3px; }
.wdpcs-page a:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
	.wdpcs-marquee-track {
		animation: none !important;
		transform: none !important;
		width: 100%;
		justify-content: center;
	}
	.wdpcs-marquee-group {
		width: 100%;
		justify-content: center;
		padding-right: 0;
	}
	.wdpcs-marquee-group > *:nth-child(n + 2) { display: none; }
	.wdpcs-marquee-group + .wdpcs-marquee-group { display: none; }
	.wdpcs-page *,
	.wdpcs-page *::before,
	.wdpcs-page *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	/* Diaporama : plus aucun fondu, seule la première image reste affichée. */
	.wdpcs-slide {
		animation: none !important;
		opacity: 0 !important;
	}
	.wdpcs-slide--1 { opacity: 1 !important; }
}
