/* ============================================================================
 * ITOUKEI Builder — Styles front de TOUS les templates de section.
 * Design system : ink #16150f · paper #f4f2ea · blanc · jaune #F5C900 (ACCENT only)
 * Space Grotesk (titres/UI) + JetBrains Mono (eyebrow/labels) · Anton (gros titres bento).
 * Coins NETS (radius 0) · hairlines 1px · uppercase + letter-spacing sur eyebrows/boutons.
 * Inerte sans markup .itk-sec / .itk-hero / .itk-look / .itk-looks / .itk-secvid.
 * ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

/* ── Variables de scope ──────────────────────────────────────────────────── */
.itk-sec,
.itk-hero,
.itk-look,
.itk-looks,
.itk-secvid {
	--itk-ink: #16150f;
	--itk-paper: #f4f2ea;
	--itk-dim: #5e5b54;
	--itk-accent: #F5C900;
	--itk-accent-deep: #e3ba00;
	--itk-ph: #e4e2dc;
	--itk-line: #d8d5cd;
	--itk-sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
	--itk-mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
	--itk-display: 'Anton', 'Space Grotesk', system-ui, sans-serif;
	box-sizing: border-box;
}
.itk-sec *,
.itk-hero *,
.itk-look *,
.itk-looks *,
.itk-secvid * { box-sizing: border-box; }

/* ============================================================================
 * 1. WRAPPER GÉNÉRIQUE (.itk-sec) — bento / communaute / custom
 * ========================================================================== */
.itk-sec {
	background: #fff;
	color: var(--itk-ink);
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: clamp(48px, 7vw, 104px) clamp(22px, 5vw, 80px);
}
.itk-sec + .itk-sec { border-top: 1px solid var(--itk-line); }

/* — Texte commun — */
.itk-sec__eyebrow,
.itk-sec__qattr {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font: 500 12px/1 var(--itk-mono);
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--itk-ink);
}
.itk-sec__eyebrow::before,
.itk-sec__qattr::before {
	content: "";
	width: 26px;
	height: 3px;
	background: var(--itk-accent);
	flex: none;
}
.itk-sec__dash {
	display: block;
	width: 26px;
	height: 3px;
	background: var(--itk-accent);
	margin-bottom: 24px;
}
.itk-sec .itk-sec__title {
	margin: .3em 0 0;
	text-transform: uppercase;
	font-family: var(--itk-display);
	font-weight: 400;
	font-size: clamp(46px, 7vw, 112px);
	line-height: .9;
	letter-spacing: .012em;
	color: var(--itk-ink);
}
.itk-sec__dot { color: var(--itk-accent); }
.itk-sec__body {
	margin: 24px 0 0;
	max-width: 42ch;
	font: 400 16px/1.62 var(--itk-sans);
	color: #36332d;
}
.itk-sec__body p { margin: 0 0 .9em; }
.itk-sec__body p:last-child { margin-bottom: 0; }

/* — Bouton (coins nets, hairline 2px) — */
.itk-sec__btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: 28px;
	padding: 15px 26px;
	border: 2px solid var(--itk-ink);
	border-radius: 0;
	font: 500 13px/1 var(--itk-sans);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--itk-ink);
	text-decoration: none;
	transition: background .2s, color .2s;
}
.itk-sec__btn span { color: var(--itk-accent); }
.itk-sec__btn:hover { background: var(--itk-ink); color: #fff; }
.itk-sec__btn:hover span { color: var(--itk-accent); }

/* — Tampon SVG rotatif — */
.itk-sec__stamp {
	display: block;
	width: 92px;
	height: 92px;
	margin-top: 44px;
	animation: itkb-spin 26s linear infinite;
}
.itk-sec--noanim .itk-sec__stamp { animation: none; }
@keyframes itkb-spin { to { transform: rotate(360deg); } }
.itk-sec__stamp svg { width: 100%; height: 100%; overflow: visible; }
.itk-sec__stamp-t { font: 500 8.4px var(--itk-mono); letter-spacing: 2.4px; fill: var(--itk-ink); }
.itk-sec__stamp-c { font: 400 26px var(--itk-display); fill: var(--itk-ink); }

/* — Placeholders image (parallélogramme) — */
.itk-sec__ph {
	position: relative;
	overflow: hidden;
	background: var(--itk-ph);
	clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
}
.itk-sec__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.itk-sec__ph--empty { display: flex; align-items: center; justify-content: center; }
.itk-sec__ph--empty svg { width: clamp(38px, 5vw, 60px); fill: #bdbab2; }

/* ── Bento : 2 colonnes (texte | grille 5) ───────────────────────────────── */
.itk-sec--bento {
	display: grid;
	grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
}
.itk-sec__bento {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 14px;
	aspect-ratio: 16/11;
}
.itk-sec__bento .itk-sec__ph:nth-child(3) { grid-row: 1 / 3; }

/* ── Communauté : 3 colonnes (texte | image | citation) ──────────────────── */
.itk-sec--communaute {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 60px);
	align-items: center;
}
.itk-sec__solo--mid .itk-sec__ph { aspect-ratio: 4/3; }
.itk-sec__qmark { display: block; font: 400 92px/.6 Georgia, serif; color: var(--itk-accent); }
.itk-sec__qtext { margin: 14px 0 0; font: 500 clamp(19px, 1.7vw, 26px)/1.32 var(--itk-sans); }
.itk-sec__qattr { margin-top: 28px; }

/* ── Custom : centré, simple ─────────────────────────────────────────────── */
.itk-sec--custom { text-align: center; }
.itk-sec--custom .itk-sec__custom {
	max-width: 760px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.itk-sec--custom .itk-sec__eyebrow::before { display: none; }
.itk-sec--custom .itk-sec__body { max-width: 60ch; }

/* ============================================================================
 * 2. HERO (.itk-hero) — full-bleed, fond image/vidéo + voile + surimpression
 * ========================================================================== */
.itk-hero {
	position: relative;
	width: 100%;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow: hidden;
	background: #0d0d0d;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.itk-hero--full { min-height: 100vh; }
.itk-hero--tall { min-height: 82vh; }
.itk-hero--mid  { min-height: 62vh; }
.itk-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 42%;
	z-index: 0;
}
.itk-hero__bg--solid { background: #161616; }
.itk-hero--parallax .itk-hero__bg { height: 122%; top: -11%; }
.itk-hero__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.itk-hero--veil-soft   .itk-hero__veil { background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.34)); }
.itk-hero--veil-med    .itk-hero__veil { background: linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.55)); }
.itk-hero--veil-strong .itk-hero__veil { background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.72)); }
.itk-hero__inner { position: relative; z-index: 2; max-width: 900px; padding: 9vh 26px; color: #fff; }
.itk-hero__icon { display: block; margin: 0 auto 22px; max-width: 84px; height: auto; }
.itk-hero__eyebrow {
	display: block;
	font-family: var(--itk-mono);
	text-transform: uppercase;
	letter-spacing: .32em;
	font-size: 13px;
	font-weight: 500;
	opacity: .92;
	margin-bottom: 16px;
	color: #fff;
}
.itk-hero__title {
	margin: 0;
	font-family: var(--itk-display);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .03em;
	line-height: .95;
	font-size: clamp(44px, 9vw, 128px);
	color: #fff;
}
.itk-hero__body {
	margin: 20px auto 0;
	max-width: 560px;
	font: 400 clamp(15px, 1.6vw, 19px)/1.6 var(--itk-sans);
	opacity: .95;
	color: #fff;
}
.itk-hero__btn {
	display: inline-block;
	margin-top: 30px;
	padding: 15px 32px;
	background: var(--itk-accent);
	color: var(--itk-ink);
	font: 500 13px/1 var(--itk-sans);
	text-transform: uppercase;
	letter-spacing: .1em;
	text-decoration: none;
	border-radius: 0;
	transition: transform .2s ease;
}
.itk-hero__btn:hover { transform: translateY(-2px); }
.itk-hero__btn--nolink { cursor: default; }
.itk-hero__btn--nolink:hover { transform: none; }
/* anim d'entrée (révélée via .itk-in posé par le JS d'effets / IntersectionObserver) */
.itk-hero--anim .itk-hero__inner > * { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.itk-hero--anim.itk-in .itk-hero__inner > * { opacity: 1; transform: none; }
.itk-hero--anim.itk-in .itk-hero__inner > *:nth-child(2) { transition-delay: .12s; }
.itk-hero--anim.itk-in .itk-hero__inner > *:nth-child(3) { transition-delay: .24s; }
.itk-hero--anim.itk-in .itk-hero__inner > *:nth-child(4) { transition-delay: .36s; }
.itk-hero--anim.itk-in .itk-hero__inner > *:nth-child(5) { transition-delay: .48s; }
.itk-hero--zoom .itk-hero__bg { transform: scale(1); transition: transform 7s ease; }
.itk-hero--zoom.itk-in .itk-hero__bg { transform: scale(1.08); }

/* ============================================================================
 * 3. LOOKBOOK (.itk-look) — filmstrip horizontal drag-to-scroll
 * ========================================================================== */
.itk-look {
	position: relative;
	overflow: hidden;
	background: #fff;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: clamp(32px, 5vw, 64px) 0;
}
.itk-look__head { padding: 0 clamp(20px, 5vw, 60px); margin: 0 0 clamp(18px, 3vw, 32px); }
.itk-look__eyebrow {
	display: inline-block;
	font: 500 12px/1 var(--itk-mono);
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--itk-accent-deep);
}
.itk-look__title {
	margin: 8px 0 0;
	font: 400 clamp(34px, 5vw, 64px)/.95 var(--itk-display);
	text-transform: uppercase;
	letter-spacing: .012em;
	color: var(--itk-ink);
}
.itk-look__track {
	display: flex;
	gap: clamp(10px, 2vw, 20px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	cursor: grab;
	padding: 0 clamp(20px, 5vw, 60px) 16px;
	scrollbar-width: thin;
	scrollbar-color: var(--itk-accent) var(--itk-ink);
}
.itk-look__track::-webkit-scrollbar { height: 3px; }
.itk-look__track::-webkit-scrollbar-track { background: var(--itk-ink); }
.itk-look__track::-webkit-scrollbar-thumb { background: var(--itk-accent); }
.itk-look__track.is-grab { cursor: grabbing; }
.itk-look__item {
	flex: 0 0 auto;
	width: clamp(220px, 30vw, 380px);
	aspect-ratio: 3/4;
	scroll-snap-align: start;
	overflow: hidden;
	border-radius: 0;
	background: var(--itk-ph);
}
.itk-look__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.itk-look__item:hover .itk-look__img { transform: scale(1.04); }

/* ============================================================================
 * 4. LOOKS (.itk-looks) — grille 3 vidéos en boucle (LOOK 01/02/03)
 * ========================================================================== */
.itk-looks {
	padding: clamp(34px, 4vw, 58px) max(4vw, 20px);
	max-width: 1680px;
	margin: 0 auto;
	font-family: var(--itk-sans);
	background: #fff;
}
.itk-looks__head { margin: 0 0 clamp(20px, 3vw, 34px); }
.itk-looks__eyebrow {
	display: inline-block;
	font: 500 12px/1 var(--itk-mono);
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--itk-accent-deep);
}
.itk-looks__title {
	margin: 8px 0 0;
	font: 400 clamp(34px, 5vw, 64px)/.95 var(--itk-display);
	text-transform: uppercase;
	letter-spacing: .012em;
	color: var(--itk-ink);
}
.itk-looks__grid { display: grid; grid-template-columns: repeat(var(--itk-looks-cols, 3), 1fr); gap: clamp(14px, 2vw, 30px); }
.itk-looks__card { background: #fff; padding: 10px 10px 0; box-shadow: 0 10px 30px rgba(0,0,0,.10); }
.itk-looks__media {
	position: relative;
	aspect-ratio: 3/4;
	background: var(--itk-ink);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.itk-looks__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.itk-looks__ph { font-size: 42px; color: rgba(255,255,255,.5); }
.itk-looks__phlabel {
	position: absolute;
	bottom: 14px;
	left: 0;
	right: 0;
	text-align: center;
	font: 500 11px/1 var(--itk-mono);
	letter-spacing: .18em;
	text-transform: uppercase;
	color: rgba(255,255,255,.45);
}
.itk-looks__cap {
	display: flex;
	justify-content: space-between;
	padding: 12px 4px;
	font: 500 13px/1 var(--itk-sans);
	text-transform: uppercase;
	letter-spacing: .04em;
}
.itk-looks__cap span:last-child { color: var(--itk-accent-deep); }

/* ============================================================================
 * 5. VIDEO (.itk-secvid) — fond plein-largeur OU bloc contenu
 * ========================================================================== */
.itk-secvid { position: relative; background: #111; overflow: hidden; }
.itk-secvid--bg {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: clamp(360px, 72vh, 820px);
	display: flex;
	align-items: center;
	justify-content: center;
}
.itk-secvid--bg .itk-secvid__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.itk-secvid--bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.55)); z-index: 1; }
.itk-secvid__overlay { position: relative; z-index: 2; max-width: 680px; padding: 6vw 30px; text-align: center; color: #fff; }
.itk-secvid__overlay .itk-sec__title,
.itk-secvid__overlay .itk-sec__body,
.itk-secvid__overlay .itk-sec__eyebrow { color: #fff; }
.itk-secvid__overlay .itk-sec__eyebrow { justify-content: center; }
.itk-secvid--block { background: transparent; max-width: 1180px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) 20px; }
.itk-secvid--block .itk-secvid__frame { position: relative; border-radius: 0; overflow: hidden; background: #111; }
.itk-secvid--block .itk-secvid__v { width: 100%; height: auto; display: block; }
.itk-secvid--block .itk-secvid__hd { margin-bottom: 20px; }

/* ============================================================================
 * 6. RESPONSIVE
 * ========================================================================== */
@media (max-width: 900px) {
	.itk-sec--bento,
	.itk-sec--communaute {
		grid-template-columns: 1fr;
		gap: 34px;
	}
	.itk-sec__bento { aspect-ratio: 16/12; }
	.itk-looks__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 600px) {
	.itk-look__item { width: 74vw; }
	.itk-looks__grid { grid-template-columns: 1fr; }
}

/* ============================================================================
 * 7. PREFERS-REDUCED-MOTION
 * ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.itk-sec__stamp { animation: none; }
	.itk-look__img,
	.itk-looks__card,
	.itk-sec__btn,
	.itk-hero__btn { transition: none; }
	.itk-look__item:hover .itk-look__img { transform: none; }
	.itk-hero--anim .itk-hero__inner > * { opacity: 1; transform: none; }
	.itk-hero--parallax .itk-hero__bg { height: 100%; top: 0; }
	.itk-hero--zoom .itk-hero__bg { transition: none; transform: none; }
}

/* ==========================================================================
 * SECTION STUDIO — visibilité, effets d'entrée, éléments dynamiques
 * (câblage des réglages du Studio : _itk_vis_*, _itk_fx*, _itk_elements)
 * ========================================================================== */

/* — Visibilité responsive — */
@media (min-width: 761px) { .itkb-hide-desktop { display: none !important; } }
@media (max-width: 760px)  { .itkb-hide-mobile  { display: none !important; } }

/* — Effets d'entrée (révélés par .is-in via le moteur frontend.js) —
   Vitesse/délai pilotés par les variables posées en inline style sur la section. */
.itkb-fx {
	opacity: 0;
	transition:
		opacity   var(--itkb-fx-speed, .7s) ease           var(--itkb-fx-delay, 0s),
		transform var(--itkb-fx-speed, .7s) cubic-bezier(.2,.85,.25,1) var(--itkb-fx-delay, 0s);
	will-change: opacity, transform;
}
.itkb-fx--up   { transform: translateY(32px); }
.itkb-fx--zoom { transform: scale(.94); }
.itkb-fx--fade { transform: none; }
.itkb-fx--left  { transform: translateX(-40px); }
.itkb-fx--right { transform: translateX(40px); }
.itkb-fx--wipe  { transform: none; clip-path: inset(0 100% 0 0); transition: opacity .7s ease, clip-path .9s cubic-bezier(.2,.6,.1,1); }
.itkb-fx.is-in { opacity: 1; transform: none; }
.itkb-fx--wipe.is-in { clip-path: inset(0 0 0 0); }
/* Vidéo dans la case média (parallélogramme) : même emprise que l'image. */
.itk-sec__ph video, .itk-secmedia__v { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Désactivation sur mobile : la section reste visible, sans animation. */
@media (max-width: 760px) {
	.itkb-fx-mobile-off {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* — Éléments dynamiques — */
.itk-sec__els { display: flex; flex-direction: column; gap: clamp(16px, 3vw, 32px); margin-top: clamp(20px, 4vw, 44px); }
.itk-el--count { font-family: var(--itk-display, 'Anton', sans-serif); }
.itk-el--count .itkb-count { font-size: clamp(40px, 7vw, 88px); line-height: 1; color: var(--itk-ink, #16150f); }
.itk-el--count .itk-el__lab { display: block; font-family: var(--itk-mono, monospace); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--itk-dim, #5e5b54); margin-top: 8px; }
.itk-el--gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.itk-el--gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.itk-el--quote { border-left: 3px solid var(--itk-accent, #F5C900); padding-left: 20px; margin: 0; }
.itk-el--quote p { font-size: clamp(18px, 2.4vw, 28px); line-height: 1.4; color: var(--itk-ink, #16150f); margin: 0 0 8px; }
.itk-el--quote cite { font-family: var(--itk-mono, monospace); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--itk-dim, #5e5b54); font-style: normal; }
.itk-el--sep { border: 0; border-top: 1px solid var(--itk-line, #d8d5cd); margin: 0; }
.itk-el--marquee { overflow: hidden; white-space: nowrap; }
.itk-el--icon img { max-height: 72px; width: auto; display: block; }

/* prefers-reduced-motion : neutralise les fx d'entrée du Studio. */
@media (prefers-reduced-motion: reduce) {
	.itkb-fx { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================================
 * 8. FRAMES PLEIN ÉCRAN + CARD-STACK AUTO-CONTENU (accueil, desktop).
 *    Full-vh sur le HERO + les grilles produit + Instagram (qui REMPLISSENT le
 *    cadre). Mantra + Réassurance = bandes naturelles (sinon vides). Duo+Looks
 *    empilés dans un wrapper .itk-cardstack (créé en JS) : ils se figent, se
 *    recouvrent, PUIS se libèrent → pas de section vide forcée après. Réversible.
 * ========================================================================== */
@media (min-width: 900px) {
	/* Full-vh = HERO (intro) uniquement. Les grilles produit sont dimensionnées à leur CONTENU
	 * (les grilles pleines — 435, Pièces — remplissent l'écran naturellement ; Basics = rangée nette
	 * sans blanc forcé). Le card-stack (Duo/Looks) est le seul autre cadre plein écran. */
	.itk-home .itk-hero { min-height: 100vh; }
	/* Card-stack : Duo puis Looks se figent et se recouvrent dans le wrapper, puis se libèrent. */
	.itk-cardstack { position: relative; }
	.itk-cardstack .itk-duo,
	.itk-cardstack .itk-looks {
		min-height: 100vh;
		display: flex;
		flex-direction: column;
		justify-content: center;
		position: sticky;
		top: 0;
		background: #fff;
	}
	.itk-cardstack .itk-duo   { z-index: 1; }
	.itk-cardstack .itk-looks { z-index: 2; }
}
/* Accessibilité : pas d'empilement/plein écran en « animations réduites » (flux normal). */
@media (prefers-reduced-motion: reduce) {
	.itk-cardstack .itk-duo,
	.itk-cardstack .itk-looks { position: static; min-height: 0; }
	.itk-home .itk-hero,
	.itk-home .itk-pg,
	.itk-home .itk-wf { min-height: 0; }
}
