/* ==========================================================================
   PROD. DE OUF — Page d'attente (coming soon)
   Tokens : noir #000, rose/rouge #ff0043, blanc #fff.
   Polices : Komu A (titres, auto-hébergée), Poppins (texte).
   ========================================================================== */

@font-face {
	font-family: "Komu A";
	src: url("../fonts/komu-a.woff2") format("woff2"),
	     url("../fonts/komu-a.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--c-black: #000000;
	--c-pink: #ff0043;
	--c-white: #ffffff;
	--font-display: "Komu A", "Arial Narrow", sans-serif;
	--font-text: "Poppins", system-ui, sans-serif;
	--gutter: clamp(20px, 4.2vw, 73px);
}

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

html,
body {
	margin: 0;
	padding: 0;
}

.cs {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--c-black);
	color: var(--c-white);
	font-family: var(--font-text);
	overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Bandeau titre défilant
   -------------------------------------------------------------------------- */
.cs-marquee {
	display: flex;
	align-items: center;
	/* Même espacement en haut et en bas du texte (avant la ligne de nav). */
	padding-block: clamp(10px, 2vw, 28px);
	/* Komu A laisse de l'espace sous les capitales → on remonte la ligne pour
	   équilibrer optiquement le haut et le bas (valeur proportionnelle à la police). */
	margin-bottom: clamp(-44px, -2.8vw, -18px);
	overflow: hidden; /* masque le débordement horizontal du texte défilant */
}

.cs-marquee__track {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	will-change: transform;
	animation: cs-scroll 40s linear infinite;
}

.cs-marquee__item {
	font-family: var(--font-display);
	font-size: clamp(64px, 14vw, 250px);
	line-height: 1; /* texte non rogné en haut/bas */
	color: var(--c-pink);
	text-transform: uppercase;
	padding-right: 0.25em;
}

@keyframes cs-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); } /* 8 items identiques → boucle sans couture */
}

@media (prefers-reduced-motion: reduce) {
	.cs-marquee__track { animation: none; }
}

/* --------------------------------------------------------------------------
   Navigation (desktop)
   -------------------------------------------------------------------------- */
.cs-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 24px var(--gutter);
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.cs-nav__item {
	color: var(--c-pink);
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Bloc central : logo + pop-corn
   -------------------------------------------------------------------------- */
.cs-hero {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
}

.cs-hero__logo {
	position: relative;
	z-index: 1;
	width: min(556px, 56vw);
	height: auto;
}

.cs-hero__popcorn {
	position: relative;
	z-index: 2;
	width: min(308px, 32vw);
	height: auto;
	/* Chevauche le bas du logo (le pop-corn remonte sur « DE OUF »). */
	margin-top: clamp(-120px, -11vw, -70px);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.cs-footer {
	display: flex;
	align-items: flex-end;
	gap: clamp(40px, 6vw, 96px);
	padding: 40px var(--gutter) 56px;
	font-size: 15px;
	line-height: 1.55;
}

.cs-footer p {
	margin: 0;
}

.cs-footer__label {
	margin-bottom: 1.2em;
}

.cs-footer a {
	color: var(--c-white);
	text-decoration: none;
}

.cs-footer__link {
	text-decoration: underline;
}

/* Spécificité renforcée pour battre « .cs-footer p { margin:0 } » et pousser le copyright à droite. */
.cs-footer .cs-footer__copy {
	margin: 0 0 0 auto;
}

/* --------------------------------------------------------------------------
   Responsive — mobile (cf. maquette iPhone)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.cs-nav { display: none; }

	/* Répercute le ratio de chevauchement (le clamp était plafonné à -70px sur petit écran). */
	.cs-hero__popcorn { margin-top: -11vw; }

	.cs-footer {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 32px;
		padding: 40px 24px 56px;
	}

	/* Ordre maquette mobile : Suivre → Contacter → Copyright */
	.cs-footer__social { order: 1; }
	.cs-footer__contact { order: 2; }
	.cs-footer .cs-footer__copy { order: 3; margin: 0; }
}
