/* ==========================================================
   JTEK Agence 360 — styles
   Blanc, noir, photos. Orange uniquement au survol.
   ========================================================== */

:root {
	--noir: #000;
	--blanc: #fff;
	--gris: #6b6b6b;
	--filet: #e5e5e5;
	--pierre: #edecea;
	--orange: #ff4f12;
	--rail: 96px;
	--gouttiere: 24px;
	--f-body: 'Inter', system-ui, sans-serif;
	--f-label: 'Outfit', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--blanc);
	color: var(--noir);
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 28px;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--noir); }
a:hover, a:focus-visible { color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; color: #fff; }

/* ---------- Typographies ---------- */
.titre-bungee {
	font-family: 'Bungee', sans-serif;
	font-weight: 400;
	font-size: clamp(44px, 5vw, 69px);
	line-height: .83;
	letter-spacing: -0.072em;
	text-transform: uppercase;
}
.espace {
	font-family: 'Playfair Display', serif;
	font-size: 22px;
	line-height: 26px;
	letter-spacing: 9.1px;
}
.label {
	display: block;
	font-family: var(--f-label);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: 1.1px;
	text-transform: uppercase;
}
.label.petit { font-size: 13px; color: var(--gris); }
.fin {
	font-weight: 100;
	font-size: clamp(30px, 3.4vw, 49px);
	line-height: 1.06;
	text-transform: uppercase;
}
.lien, .petit-lien {
	display: inline-block;
	align-self: flex-start;
	font-family: var(--f-label);
	font-weight: 300;
	font-size: 16px;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 6px;
	line-height: 1.4;
}
.petit-lien { font-size: 13px; color: var(--gris); }
.geant {
	display: block;
	font-family: 'Anton', sans-serif;
	font-size: clamp(36px, 6.2vw, 90px);
	line-height: 1;
	letter-spacing: -0.026em;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.geant--wa { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.geant--wa .lien { font-size: 16px; }
.f-times { font-family: 'Times New Roman', Times, serif; }
.f-orbitron { font-family: 'Orbitron', sans-serif; }
.f-khand { font-family: 'Khand', sans-serif; }
.f-poiret { font-family: 'Poiret One', sans-serif; }
.f-comfortaa { font-family: 'Comfortaa', sans-serif; }
.f-indie { font-family: 'Indie Flower', cursive; }

/* ---------- Navigation ---------- */
.rail {
	position: fixed;
	z-index: 20;
	top: 0; left: 0; bottom: 0;
	width: var(--rail);
	background: var(--blanc);
	border-right: 1px solid var(--filet);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 40px;
	gap: 60px;
}
.rail__logo img { width: 52px; height: auto; }
.rail__links { display: flex; flex-direction: column; align-items: center; gap: 34px; }
.rail__links a {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	text-decoration: none;
	font-size: 12px;
	font-weight: 200;
	letter-spacing: 2.9px;
	text-transform: uppercase;
	padding: 6px 0;
}
.rail__links a[aria-current="page"] { font-weight: 600; }

.topbar { display: none; }

/* ---------- Pages intérieures ---------- */
.contenu {
	margin-left: calc(var(--rail) + max(0px, (100vw - var(--rail) - 1440px) / 2));
	max-width: 1440px;
	padding: 140px 120px 120px;
	display: flex;
	flex-direction: column;
	gap: 120px;
}
.bloc { display: flex; flex-direction: column; gap: 28px; }
.tete { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 80px; flex-wrap: wrap; }
.tete > div { display: flex; flex-direction: column; gap: 28px; }
.texte { display: flex; flex-direction: column; gap: 18px; max-width: 620px; }
.texte--long { max-width: 760px; }
.texte--long h2 { font-family: var(--f-label); font-weight: 300; font-size: 16px; letter-spacing: 1.1px; text-transform: uppercase; margin-top: 24px; }
.retour { font-family: var(--f-label); font-weight: 300; font-size: 14px; letter-spacing: 1.1px; text-transform: uppercase; text-decoration: none; }

.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gouttiere); }
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 48px; }

.fondateur { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 96px; align-items: start; }
.fondateur__photo { width: 100%; aspect-ratio: 460 / 600; object-fit: cover; }
.fondateur__texte { display: flex; flex-direction: column; gap: 28px; }

.engagements {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
	border-top: 1px solid #000; border-bottom: 1px solid #000; padding: 36px 0;
}
.engagements span { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; font-size: clamp(28px, 3vw, 40px); line-height: 1; }

.expertise { border-top: 1px solid var(--filet); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.service__titre { font-weight: 700; font-size: 32px; line-height: 48px; }
.service__accroche { font-size: 13px; color: var(--gris); }

.methode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; }
.methode > div { display: flex; flex-direction: column; gap: 40px; }
.etapes { gap: 32px; }
.etapes > div { display: flex; flex-direction: column; gap: 12px; }
.etape__num { font-weight: 100; font-size: 49px; line-height: 1; }
.formules { display: flex; flex-direction: column; gap: 20px; }
.formules > div { border-top: 1px solid var(--filet); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }

.ligne { flex-direction: row; justify-content: space-between; align-items: center; border-top: 1px solid var(--filet); padding-top: 40px; flex-wrap: wrap; }
.cta { flex-direction: row; justify-content: space-between; align-items: flex-end; border-top: 1px solid #000; padding-top: 56px; flex-wrap: wrap; }

/* Cartes projets */
.carte { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.carte img, .carte .placeholder { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .3s; }
.carte:hover img { opacity: .85; }
.carte .placeholder { display: flex; align-items: center; justify-content: center; background: #f2f2f2; color: var(--gris); font-size: 13px; }
.carte__nom { font-weight: 600; font-size: 24px; letter-spacing: -0.4px; line-height: 1.2; }
.carte__mission { font-family: var(--f-label); font-weight: 300; font-size: 13px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--gris); line-height: 1.5; }
.grille-projets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px var(--gouttiere); }
.carte--une { grid-column: 1 / -1; }
.carte--une img { aspect-ratio: 2 / 1; object-position: 50% 25%; }

.clients { font-weight: 100; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.45; border-top: 1px solid #000; padding-top: 28px; }
.clients .sep { color: #bdbdbd; padding: 0 18px; }

/* Étude de cas */
.cas__visuel img { width: 100%; height: auto; max-height: 680px; object-fit: cover; object-position: 50% 30%; }
.infos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gouttiere); border-top: 1px solid #000; padding-top: 28px; }
.infos > div { display: flex; flex-direction: column; gap: 8px; }
.cas__texte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 96px; }
.cas__galerie img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.suivant { border-top: 1px solid #000; padding-top: 56px; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 120px; align-items: start; border-top: 1px solid #000; padding-top: 56px; }
.formulaire { display: flex; flex-direction: column; gap: 36px; }
.champs { gap: 36px 40px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font-family: var(--f-label); font-weight: 300; font-size: 13px; letter-spacing: 1.1px; text-transform: uppercase; }
.champ input, .champ select, .champ textarea {
	font: inherit; color: #000; background: transparent;
	border: 0; border-bottom: 1px solid #000; border-radius: 0;
	padding: 12px 0; width: 100%;
}
.champ textarea { resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-bottom-color: var(--orange); }
.piege { position: absolute; left: -9999px; }
.rgpd { font-size: 13px; color: var(--gris); line-height: 1.5; }
.bouton { background: none; border: 0; border-bottom: 1px solid #000; cursor: pointer; color: #000; padding: 0 0 6px; }
.bouton:hover { color: var(--orange); border-color: var(--orange); }
.message { font-size: 15px; padding: 14px 0; border-top: 1px solid; border-bottom: 1px solid; }
.message--erreur { color: #b3261e; }
.contact__infos { display: flex; flex-direction: column; gap: 48px; }
.contact__infos > div { display: flex; flex-direction: column; gap: 16px; }
.adresse { display: block; font-weight: 600; font-size: 32px; line-height: 36px; letter-spacing: -0.6px; }
.socials { display: flex; gap: 26px; }
.socials a { display: inline-flex; padding: 4px; margin: -4px; }

.pied {
	margin-left: calc(var(--rail) + max(0px, (100vw - var(--rail) - 1440px) / 2));
	max-width: 1440px;
	padding: 40px 120px;
	display: flex; justify-content: space-between; gap: 20px;
	font-family: var(--f-label); font-weight: 300; font-size: 13px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--gris);
}
.pied a { color: var(--gris); }

/* ==========================================================
   Accueil — parcours horizontal (ordinateur)
   ========================================================== */
.track { margin-left: var(--rail); }

@keyframes jtekcol { to { transform: translateY(-50%); } }
@keyframes jtekcaret { 50% { opacity: 0; } }

.hero__logo { width: 96px; height: auto; }
.caret { display: inline-block; width: 5px; height: .78em; background: #000; margin-left: 8px; vertical-align: -0.05em; animation: jtekcaret .9s steps(1) infinite; }
.col { flex: 1; overflow: hidden; }
.col__inner { display: flex; flex-direction: column; gap: var(--gouttiere); animation: jtekcol 80s linear infinite; }
.c2 .col__inner { animation-direction: reverse; }
.col img, .stack img { width: 100%; object-fit: cover; }
.h-p { height: 320px; }
.h-l { height: 220px; }

.citation p { font-weight: 100; font-size: clamp(32px, 3.4vw, 49px); line-height: 1; text-transform: uppercase; max-width: 1120px; }
.citation { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.citation cite { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; font-size: 16px; letter-spacing: 1.7px; text-transform: uppercase; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; max-width: 1120px; }
.service { display: flex; flex-direction: column; gap: 8px; }

.carte__nom-petit { font-family: var(--f-label); }
.projets-home .carte__nom { font-family: var(--f-label); font-weight: 300; font-size: 13px; letter-spacing: 1.1px; text-transform: uppercase; }

.contact-home .filet { display: block; width: min(700px, 100%); height: 1px; background: #000; margin: 40px 0 0; }
.contact-home__bas { display: flex; gap: clamp(40px, 8vw, 150px); flex-wrap: wrap; }
.contact-home__bas > div { display: flex; flex-direction: column; gap: 20px; }

@media (min-width: 1024px) and (min-height: 600px) {
	body.jtek-home { overflow-x: hidden; }
	.jtek-home .track {
		position: fixed;
		top: 0; left: var(--rail);
		height: 100vh;
		margin: 0;
		display: flex;
		will-change: transform;
	}
	.jtek-home .panel { flex: none; height: 100vh; display: flex; }

	.hero { width: 1344px; align-items: center; }
	.hero__text { width: 620px; flex: none; padding-left: 150px; display: flex; flex-direction: column; gap: 22px; }
	.hero__cols { width: 724px; flex: none; height: 100vh; display: flex; gap: var(--gouttiere); overflow: hidden; }
	.hero__cols .c2 { padding-top: 120px; }
	.hero__cols .c3 { padding-top: 60px; }

	.intro { width: 880px; align-items: center; gap: 100px; padding-left: 60px; }
	.intro__imgs { display: flex; gap: var(--gouttiere); height: 100vh; overflow: hidden; }
	.intro .stack { width: 180px; display: flex; flex-direction: column; gap: var(--gouttiere); }
	.intro .s1 { margin-top: -40px; }
	.intro .s2 { margin-top: 80px; }

	.agence { width: 1360px; flex-direction: column; justify-content: center; gap: 44px; padding: 0 80px; }

	.projets-home { width: 800px; flex-direction: column; justify-content: center; gap: 28px; padding-left: 40px; }
	.projets-home .grille-2 { grid-template-columns: 330px 330px; }
	.projets-home .carte img { aspect-ratio: auto; height: min(300px, 36vh); }

	.galerie { width: 560px; gap: var(--gouttiere); padding-left: 20px; overflow: hidden; }
	.galerie .stack { width: 160px; display: flex; flex-direction: column; gap: var(--gouttiere); }
	.galerie .g1 { margin-top: -60px; }
	.galerie .g2 { margin-top: 40px; }
	.galerie .g3 { margin-top: -20px; }

	.contact-home { width: 1320px; flex-direction: column; justify-content: center; gap: 24px; padding: 0 120px; }
	.contact-home .geant { white-space: nowrap; }
}

/* ==========================================================
   Tablette et mobile
   ========================================================== */
@media (max-width: 1023px), (max-height: 599px) {
	.rail { display: none; }
	.topbar {
		display: flex; justify-content: space-between; align-items: center;
		position: sticky; top: 0; z-index: 30;
		background: var(--blanc); padding: 14px 24px; border-bottom: 1px solid var(--filet);
		flex-wrap: wrap;
	}
	.topbar__logo img { width: 78px; height: auto; }
	.topbar__toggle {
		background: none; border: 0; padding: 14px 0 14px 14px; cursor: pointer;
		font-family: var(--f-body); font-weight: 200; font-size: 12px; letter-spacing: 2.9px; text-transform: uppercase; color: #000;
	}
	.topbar__menu { width: 100%; display: flex; flex-direction: column; padding: 16px 0 8px; }
	.topbar__menu[hidden] { display: none; }
	.topbar__menu a { font-family: 'Bungee', sans-serif; font-size: 32px; line-height: 1.3; letter-spacing: -2px; text-decoration: none; text-transform: uppercase; padding: 6px 0; }

	.contenu, .track { margin-left: 0; }
	.contenu { padding: 64px 24px 80px; gap: 80px; }
	.pied { margin-left: 0; padding: 32px 24px; flex-direction: column; }

	.grille-3, .methode, .fondateur, .cas__texte, .contact, .services { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.infos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.adresse { font-size: 24px; line-height: 30px; }

	/* Accueil vertical */
	.track { display: flex; flex-direction: column; }
	.panel { padding: 0 24px; }
	.hero { padding-top: 56px; display: flex; flex-direction: column; gap: 40px; }
	.hero__text { display: flex; flex-direction: column; gap: 22px; }
	.hero__cols { display: flex; gap: 16px; height: 420px; overflow: hidden; margin: 0 -24px; }
	.hero__cols .c3 { display: none; }
	.h-p { height: 240px; }
	.h-l { height: 160px; }
	.intro { padding-top: 64px; }
	.intro__imgs { display: none; }
	.agence { padding-top: 72px; display: flex; flex-direction: column; gap: 40px; }
	.projets-home { padding-top: 72px; display: flex; flex-direction: column; gap: 24px; }
	.projets-home .grille-2 { gap: 16px; }
	.galerie { display: none; }
	.contact-home { padding-top: 72px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 16px; }
	.grille-projets { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.carte--une img { aspect-ratio: 3 / 2; }
}

@media (max-width: 599px) {
	.grille-2.champs { grid-template-columns: minmax(0, 1fr); }
	.clients .sep { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.col__inner, .caret { animation: none; }
}

/* Toutes les colonnes d'images défilent (accueil, ordinateur) */
@media (min-width: 1024px) and (min-height: 600px) {
	.intro__imgs .col { width: 180px; flex: none; height: 100vh; }
	.intro__imgs .s2 { padding-top: 120px; }
	.galerie .col { width: 160px; flex: none; height: 100vh; }
	.galerie .g2 { padding-top: 100px; }
	.galerie .g3 { padding-top: 40px; }
	.s1 .col__inner { animation-duration: 90s; }
	.s2 .col__inner { animation-duration: 75s; }
	.g1 .col__inner { animation-duration: 85s; }
	.g2 .col__inner { animation-duration: 70s; }
	.g3 .col__inner { animation-duration: 95s; }
}
