/* Page « Nouvelle collection » : direction artistique Terrain V3 du thème Prohibe Knives. */

@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-stretch: 75% 100%;
	font-display: swap;
	src: url("fonts/instrument-sans.woff2") format("woff2");
}
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/ibm-plex-mono.woff2") format("woff2");
}

:root {
	--base: #121f28;
	--surface: #192a35;
	--contrast: #eef1ed;
	--muted: #8fa1a8;
	--line: #2a3f4b;
	--accent: #f26b21;
	--on-accent: #140f0b;
	--mono: "IBM Plex Mono", ui-monospace, monospace;
	--wide: 80rem;
	--pad: clamp(1.25rem, 4vw, 3rem);
	--ease: cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

body {
	background: var(--base);
	color: var(--contrast);
	font: 400 1.0625rem/1.55 "Instrument Sans", system-ui, sans-serif;
	letter-spacing: -0.01em;
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { margin-inline: auto; max-width: calc(var(--wide) + 2 * var(--pad)); padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0; }
.label { color: var(--accent); }

/* Bandeau défilant */
.ticker { background: var(--accent); color: var(--on-accent); overflow: hidden; position: relative; }
.ticker-track { display: flex; width: max-content; }
.ticker-track p {
	align-items: center;
	display: flex;
	font-family: var(--mono);
	font-size: 0.8125rem;
	gap: 1.5rem;
	letter-spacing: 0;
	padding: 0.5rem 0 0.5rem 1.5rem;
	white-space: nowrap;
}
.ticker-track p::after { background: currentColor; content: ""; height: 5px; opacity: 0.7; transform: rotate(45deg); width: 5px; }
.ticker-track.is-running { animation: ticker var(--duree, 40s) linear infinite; }
.ticker:hover .ticker-track,
.ticker-track.is-paused { animation-play-state: paused; }
.ticker-toggle {
	align-items: center;
	background: var(--accent);
	border: 1px solid currentColor;
	border-radius: 999px;
	box-shadow: -12px 0 12px var(--accent);
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	height: 26px;
	justify-content: center;
	padding: 0;
	position: absolute;
	right: 0.6rem;
	top: 50%;
	transform: translateY(-50%);
	width: 26px;
}
.ticker-toggle svg { height: 12px; width: 12px; }
.ticker-toggle:focus-visible { outline-color: var(--on-accent); outline-offset: 2px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* En-tête : le logo, sans menu */
.bar { border-bottom: 1px solid var(--line); }
.bar .wrap { align-items: center; display: flex; gap: 1rem 2rem; justify-content: space-between; padding-block: 0.85rem; }
.logo img { display: block; height: 52px; width: auto; }
.status { align-items: center; color: var(--muted); display: inline-flex; gap: 0.6rem; }
.status::before { background: var(--accent); border-radius: 50%; content: ""; flex: none; height: 7px; width: 7px; }

/* Ouverture : texte, inscription et planche technique sur fond de courbes de niveau */
.hero {
	background: url("topo.svg") 50% 50% / cover no-repeat, var(--base);
	overflow: hidden;
	padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 7vw, 6rem);
}
.hero .wrap {
	align-items: center;
	display: grid;
	gap: clamp(2.5rem, 5vw, 4.5rem);
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}
.display {
	font-size: clamp(3rem, 6.4vw, 6.25rem);
	font-stretch: 80%;
	letter-spacing: -0.05em;
	line-height: 0.9;
	margin: 0.9rem 0 1.25rem;
}
.display span { color: var(--accent); }
.lead { color: var(--muted); font-size: clamp(1.125rem, 1.5vw, 1.3125rem); max-width: 34rem; }

/* Inscription */
.signup { margin-top: clamp(1.75rem, 3vw, 2.5rem); max-width: 34rem; }
.signup h2 { font-size: 1.375rem; margin-bottom: 0.9rem; }
.signup label.mono { color: var(--muted); display: block; margin-bottom: 0.45rem; }
.signup-row { display: flex; gap: 0.5rem; }
.signup input[type="email"] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 4px;
	color: var(--contrast);
	flex: 1;
	font: inherit;
	min-width: 0;
	padding: 0.85rem 1rem;
}
.signup input[type="email"]::placeholder { color: var(--muted); opacity: 0.7; }
.signup input[type="email"]:focus { border-color: var(--accent); }
.honeypot { height: 1px; left: -9999px; overflow: hidden; position: absolute; width: 1px; }
.consent { color: var(--muted); font-size: 0.875rem; margin-top: 0.75rem; }
.consent a { color: var(--contrast); }
.signup-msg:empty { display: none; }
.signup-msg { border-left: 2px solid var(--accent); font-size: 0.9375rem; margin-top: 1rem; padding: 0.15rem 0 0.15rem 0.8rem; }
.signup-msg.is-error { color: var(--accent); }

.follow { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; margin-top: 1.75rem; }
.follow a { align-items: center; color: var(--contrast); display: inline-flex; gap: 0.4rem; font-weight: 500; }
.follow a:hover { color: var(--accent); }
.follow svg { height: 18px; width: 18px; }

/* Boutons : le libellé glisse au survol, comme sur le thème */
.button {
	align-items: center;
	background: var(--accent);
	border: 1px solid var(--accent);
	border-radius: 4px;
	clip-path: inset(-12px round 6px);
	color: var(--on-accent);
	cursor: pointer;
	display: inline-flex;
	font: 600 1rem/1.2 "Instrument Sans", system-ui, sans-serif;
	justify-content: center;
	letter-spacing: -0.01em;
	padding: 0.85rem 1.35rem;
	text-decoration: none;
	transition: clip-path 0.5s var(--ease), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
	white-space: nowrap;
}
.button:hover { background: var(--contrast); border-color: var(--contrast); clip-path: inset(1.5% 1.5% round 6px); color: var(--base); }
.button:active { scale: 0.98; }
.button[disabled] { cursor: progress; opacity: 0.7; }
.button.is-outline { background: transparent; border-color: currentColor; color: var(--contrast); }
.button.is-outline:hover { border-color: var(--accent); color: var(--accent); }
.slide-wrap { display: inline-block; overflow: hidden; vertical-align: top; }
.slide-text { display: inline-block; position: relative; text-shadow: 0 2em 0 currentColor; transition: transform 0.5s var(--ease); }
.button:hover .slide-text { transform: translateY(-2em); }

/* Planche technique : les étiquettes se placent en fractions du dessin (viewBox 1000 × 340),
   leur trait de rappel est dessiné dans le SVG et s'arrête à 72/340 de la hauteur. */
.bp { --t: 0.2118; margin-bottom: 2.5rem; position: relative; }
.bp svg { display: block; height: auto; overflow: visible; width: 100%; }
.bp .knife { fill: rgb(238 241 237 / 0.04); stroke: var(--contrast); stroke-linejoin: round; stroke-width: 1.6; }
.bp .detail { fill: none; stroke: var(--muted); stroke-width: 1.2; }
.bp .axis { stroke: var(--accent); stroke-dasharray: 16 6 3 6; stroke-opacity: 0.5; stroke-width: 1; }
.bp .cote { fill: none; stroke: var(--muted); stroke-width: 1; }
.bp .leader { stroke: var(--accent); stroke-width: 1; }
.bp .dot { fill: var(--base); stroke: var(--accent); stroke-width: 1.5; }
.bp-label,
.bp-cote,
.bp-cartouche { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0; line-height: 1.35; position: absolute; }
.bp-label {
	bottom: calc((1 - var(--t)) * 100% + 0.4rem);
	color: var(--muted);
	left: calc(var(--x) * 100%);
	text-align: center;
	transform: translateX(-50%);
	white-space: nowrap;
}
.bp-label strong { color: var(--contrast); display: block; font-weight: 400; }
.bp-label em { display: block; font-style: normal; }
.bp-cote {
	background: var(--base);
	color: var(--contrast);
	left: 50.9%;
	padding: 0 0.6rem;
	top: calc(306 / 340 * 100%);
	transform: translate(-50%, -50%);
	white-space: nowrap;
}
.bp-cartouche { border: 1px solid var(--line); bottom: -2.75rem; color: var(--muted); padding: 0.5rem 0.8rem; right: 0; }
.bp-cartouche strong { color: var(--accent); font-weight: 400; margin-right: 0.6rem; }

/* Ce qui se prépare */
.prep { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem); }
.prep h2,
.wait h2 { font-stretch: 85%; }
.prep h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
.prep-grid {
	counter-reset: prep;
	display: grid;
	gap: 1.5rem clamp(1.5rem, 3vw, 2.5rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.prep-item { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.prep-item::before {
	color: var(--accent);
	content: counter(prep, decimal-leading-zero);
	counter-increment: prep;
	display: block;
	font-family: var(--mono);
	font-size: 0.8125rem;
	margin-bottom: 0.9rem;
}
.prep-item h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }
.prep-item p { color: var(--muted); }

/* En attendant */
.wait { background: var(--surface); padding-block: clamp(3rem, 6vw, 4.5rem); }
.wait .wrap { display: grid; gap: 2rem clamp(1.5rem, 4vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.wait h2 { font-size: 1.625rem; margin-bottom: 0.75rem; }
.wait p { color: var(--muted); max-width: 32rem; }
.wait p a { color: var(--contrast); }
.wait .button { margin-top: 1.25rem; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; padding-block: 1.75rem 2.5rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }
/* Signature DASE Agency, juste après le © : l'écusson (28 px) déborde de la ligne pour que le texte
   reste aligné sur celui du © ; sur grand écran, « Vos données » reste à droite. */
.foot .wrap > a { margin-block: calc(0.775em - 14px); }
@media (min-width: 900px) {
	.foot .wrap > :last-child { margin-left: auto; }
}
/* « Se connecter » : affiché par le JavaScript, sur les appareils de l'équipe seulement ; à droite, avant « Vos données ». */
.foot .wrap > a.foot-connexion {
	align-self: center;
	border: 1px solid var(--line);
	border-radius: 4px;
	color: var(--muted);
	margin-block: 0;
	padding: 0.2rem 0.75rem;
	text-decoration: none;
}
.foot .wrap > a.foot-connexion:hover { border-color: var(--accent); color: var(--accent); }
.foot-connexion[hidden] { display: none; }
@media (min-width: 900px) {
	.foot .wrap > .foot-connexion { margin-left: auto; }
	.foot .wrap > .foot-connexion:not([hidden]) + details { margin-left: 0; }
}
.foot details { max-width: 40rem; }
.foot summary { cursor: pointer; }
.foot summary:hover { color: var(--contrast); }
.foot details p { margin-top: 0.75rem; }
.foot details a { color: var(--contrast); }

@media (max-width: 900px) {
	.hero .wrap { grid-template-columns: minmax(0, 1fr); }
	.bp { margin-top: 2.5rem; }
}

@media (max-width: 600px) {
	.logo img { height: 44px; }
	.status { font-size: 0.6875rem; }
	.signup-row { flex-direction: column; }
	.signup .button { width: 100%; }
	.bp-label,
	.bp-cote,
	.bp-cartouche { font-size: 0.625rem; }
	/* Sur mobile, seules les pièces sont nommées. */
	.bp-label em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.button,
	.slide-text { transition: none; }
	.button:hover .slide-text { transform: none; }
	.button:hover { clip-path: inset(-12px round 6px); }
	.ticker-track { flex-wrap: wrap; justify-content: center; width: auto; }
}
