/* Evolving Wear — page d'attente
   Fond noir + motif de points (canvas fixe). Titre en Inter ; « Restez connecté » et
   le champ e-mail sur une même ligne, en mono ; pied de page sur le modèle fourni,
   grand mot-symbole coupé par le bas. */

:root {
	--ew-bg: #000000;
	--ew-fg: #ffffff;
	--ew-fg-2: rgba(255, 255, 255, 0.62);
	--ew-fg-3: rgba(255, 255, 255, 0.40);
	--ew-line: rgba(255, 255, 255, 0.16);
	--ew-fill: rgba(255, 255, 255, 0.07);
	--ew-ok: #30d158;
	--ew-err: #ff453a;
	--ew-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ew-mono: ui-monospace, "SF Mono", Menlo, "Roboto Mono", "DejaVu Sans Mono", Consolas, monospace;
	--ew-pad: clamp(24px, 5vw, 72px);
	--ew-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; background: var(--ew-bg); color: var(--ew-fg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body.ew-landing { font-family: var(--ew-sans); font-size: 16px; line-height: 1.45; overflow-x: hidden; }
a { color: inherit; }

/* Motif de points — fixe, derrière tout, y compris le pied de page */
.ew-dots { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 1.4s var(--ew-ease); }
.ew-dots.is-ready { opacity: 1; }

.ew-page { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* ---------------- Haut ---------------- */
.ew-stage {
	padding: clamp(40px, 9vh, 120px) max(var(--ew-pad), env(safe-area-inset-right)) 0 max(var(--ew-pad), env(safe-area-inset-left));
}
.ew-headline {
	margin: 0;
	font-family: var(--ew-sans);
	font-weight: 600;
	font-size: clamp(52px, 8.6vw, 136px);
	line-height: 0.96;
	letter-spacing: -0.04em;
	max-width: 12ch;
	color: var(--ew-fg);
	text-wrap: balance;
}
.ew-line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }

/* « Restez connecté » + champ, sur une ligne */
.ew-connect { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: clamp(28px, 4vh, 48px); }
.ew-subtitle { margin: 0; font-family: var(--ew-mono); font-size: clamp(12px, 1vw, 14px); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ew-fg); white-space: nowrap; }

.ew-form { margin: 0; flex: 0 1 460px; min-width: 260px; }
.ew-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ew-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.ew-field {
	display: flex; align-items: stretch; gap: 4px; padding: 3px;
	border-radius: 999px; background: var(--ew-fill); border: 1px solid var(--ew-line);
	backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
	transition: border-color 0.2s var(--ew-ease), box-shadow 0.2s var(--ew-ease);
}
.ew-field:focus-within { border-color: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.10); }
.ew-input {
	flex: 1 1 auto; min-width: 0; height: 34px; padding: 0 14px;
	border: 0; background: transparent; color: var(--ew-fg); outline: none; border-radius: 999px;
	font: 400 12.5px/1 var(--ew-mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.ew-input::placeholder { color: var(--ew-fg-3); text-transform: uppercase; letter-spacing: 0.06em; }
.ew-input:-webkit-autofill, .ew-input:-webkit-autofill:focus { -webkit-text-fill-color: var(--ew-fg); -webkit-box-shadow: 0 0 0 1000px #1a1a1a inset; caret-color: var(--ew-fg); }
.ew-button {
	flex: 0 0 auto; height: 34px; padding: 0 16px; border: 0; border-radius: 999px;
	background: var(--ew-fg); color: #000; cursor: pointer;
	font: 600 11.5px/1 var(--ew-mono); letter-spacing: 0.08em; text-transform: uppercase;
	transition: transform 0.18s var(--ew-ease), background-color 0.18s var(--ew-ease), opacity 0.18s var(--ew-ease);
}
.ew-button:hover { background: #e9e9ea; }
.ew-button:active { transform: scale(0.97); }
.ew-button:focus-visible { outline: 2px solid var(--ew-fg); outline-offset: 3px; }
.ew-button[disabled] { opacity: 0.55; cursor: default; transform: none; }

.ew-status { min-height: 0; margin: 8px 6px 0; font: 400 12px/1.4 var(--ew-mono); letter-spacing: 0.04em; color: var(--ew-fg-2); }
.ew-status.is-ok { color: var(--ew-ok); }
.ew-status.is-err { color: var(--ew-err); }
.ew-status:empty { margin: 0; }
.ew-form.is-done .ew-field { display: none; }
.ew-note { margin: 10px 0 0; font-size: 12.5px; color: var(--ew-fg-3); }
.ew-form.is-done + .ew-note { display: none; }

/* ---------------- Pied de page ---------------- */
.ew-foot { margin-top: auto; padding: clamp(64px, 12vh, 140px) max(var(--ew-pad), env(safe-area-inset-right)) 0 max(var(--ew-pad), env(safe-area-inset-left)); overflow: hidden; }
.ew-foot__grid { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 40px clamp(24px, 4vw, 72px); align-items: start; }
.ew-foot__brand { max-width: 320px; }
.ew-foot__logo { display: block; height: 34px; width: auto; max-width: 220px; object-fit: contain; }
.ew-foot__tagline { margin: 18px 0 0; font-size: 15px; line-height: 1.55; color: var(--ew-fg-2); }
.ew-foot__social { display: flex; gap: 14px; margin-top: 26px; }
.ew-foot__social a { color: var(--ew-fg-2); transition: color 0.15s; display: inline-flex; }
.ew-foot__social a:hover { color: var(--ew-fg); }
.ew-foot__social svg { width: 18px; height: 18px; }
.ew-foot__title { display: block; margin-bottom: 18px; font: 500 11px/1 var(--ew-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ew-fg-3); }
.ew-foot__menu { list-style: none; margin: 0; padding: 0; }
.ew-foot__menu li { margin: 0 0 14px; }
.ew-foot__menu a { font-size: 17px; color: var(--ew-fg); text-decoration: none; opacity: 0.92; transition: opacity 0.15s; }
.ew-foot__menu a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.ew-foot__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin-top: clamp(40px, 8vh, 80px); font-size: 14.5px; color: var(--ew-fg-2); }
.ew-foot__credit { display: inline-flex; align-items: center; gap: 6px; }
.ew-foot__credit a { color: var(--ew-fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ew-fg-3); }
.ew-heart { width: 15px; height: 15px; color: #fff; display: inline-block; vertical-align: -2px; }

/* Grand mot-symbole, coupé par le bord inférieur comme sur le modèle.
   La taille exacte est calculée en JS pour occuper toute la largeur (voir landing.js) ;
   les valeurs ci-dessous ne servent que de repli si JavaScript est indisponible. */
.ew-wordmark {
	margin: clamp(16px, 4vh, 40px) calc(-1 * var(--ew-pad)) 0;
	padding: 0 4px;
	font: 600 clamp(88px, 21vw, 340px)/0.78 var(--ew-sans);
	letter-spacing: -0.045em;
	color: var(--ew-fg);
	white-space: nowrap;
	transform: translateY(0.14em);
	user-select: none;
	pointer-events: none;
}
.ew-wordmark__text { display: inline-block; white-space: nowrap; }

/* ---------------- Apparition ---------------- */
.ew-headline .ew-line { transform: translateY(110%); animation: ew-rise 0.9s var(--ew-ease) forwards; }
.ew-headline .ew-line:nth-child(2) { animation-delay: 0.08s; }
.ew-headline .ew-line:nth-child(3) { animation-delay: 0.16s; }
.ew-connect, .ew-foot { opacity: 0; transform: translateY(10px); animation: ew-fade 0.8s var(--ew-ease) forwards; }
.ew-connect { animation-delay: 0.45s; }
.ew-foot { animation-delay: 0.6s; }
@keyframes ew-rise { to { transform: translateY(0); } }
@keyframes ew-fade { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.ew-headline .ew-line, .ew-connect, .ew-foot { animation: none; opacity: 1; transform: none; }
	.ew-dots { transition: none; }
}

/* ---------------- Mobile ---------------- */
@media (max-width: 720px) {
	.ew-headline { font-size: clamp(44px, 13vw, 72px); max-width: none; }
	.ew-connect { flex-direction: column; align-items: flex-start; gap: 12px; }
	.ew-form { flex: 1 1 auto; width: 100%; }
	.ew-foot__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
	.ew-foot__brand { grid-column: 1 / -1; }
	.ew-foot__bottom { flex-direction: column; align-items: flex-start; }
	.ew-wordmark { font-size: clamp(64px, 24vw, 120px); }
}
@media (min-width: 1800px) { .ew-headline { font-size: 148px; } }
