/*
 * AquaNubia — page « Le projet ».
 * Même direction que l'accueil : mur blanc, orange du plateau, bleu-vert de l'eau.
 * Une seule animation liée au défilement : la frise qui se remplit et ses étapes qui apparaissent.
 */

main.projet { background: #fff; color: var(--encre); color-scheme: light; --orange-texte: #a85400; }
.projet h1, .projet h2, .projet h3 { color: var(--encre); }
.pj-section { padding-block: clamp(80px, 10vw, 140px); }
.pj-lead { font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); line-height: 1.45; letter-spacing: -.01em; color: var(--encre); }
.pj-prose > * + * { margin-top: 1.1em; }
.pj-prose p:not(.pj-lead) { color: var(--texte-clair-doux); }
.pj-accent { font-weight: 600; font-size: 1.15rem; line-height: 1.45; color: var(--encre); }

/* ---------- Ouverture ---------- */
.pj-hero { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 110px); }
.pj-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.pj-hero h1 { font-size: clamp(2.5rem, 1.2rem + 4vw, 5rem); line-height: .98; letter-spacing: -.04em; font-weight: 650; }
.pj-hero-text > p { margin-top: 22px; max-width: 36em; }
.pj-hero-text > p:not(.pj-lead) { color: var(--texte-clair-doux); }
.pj-sommaire { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 32px; }
.pj-sommaire a {
	padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ligne-claire);
	font-size: .92rem; color: var(--encre); text-decoration: none;
	transition: background-color .2s, border-color .2s;
}
.pj-sommaire a:hover { border-color: var(--sable); background: #fff3df; }
.pj-hero-photo img { width: 100%; height: auto; border-radius: 28px; }

/* ---------- L'histoire ---------- */
.pj-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.pj-split > h2 { position: sticky; top: 32px; }

/* ---------- La frise ---------- */
.pj-frise {
	position: relative; isolation: isolate; overflow: hidden;
	background: var(--eau); color: var(--texte); color-scheme: dark;
	padding-block: clamp(88px, 11vw, 150px);
}
.pj-frise::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: url("caustiques.png") 0 0 / 1100px repeat; opacity: .07;
	mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.pj-frise h2, .pj-frise h3 { color: var(--texte); }
.pj-frise-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(48px, 6vw, 72px); }
.pj-frise-head p { margin-top: 14px; color: var(--texte-doux); font-size: 1.1rem; }

.timeline { position: relative; list-style: none; max-width: 1000px; margin: 0 auto; --spine: 50%; }
.timeline::before, .timeline::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: var(--spine); width: 2px;
	transform: translateX(-50%);
}
.timeline::before { background: var(--ligne); }
.timeline::after { background: linear-gradient(180deg, var(--texte-doux) 0%, var(--sable) 45%, var(--sable) 60%, transparent 100%); transform-origin: top; }

.tl-step {
	position: relative; width: calc(50% - 48px);
	padding: 24px 28px; border-radius: 20px;
	background: rgb(255 255 255 / .04); border: 1px solid var(--ligne);
}
.tl-step + .tl-step { margin-top: 28px; }
.tl-step:nth-child(even) { margin-left: auto; }
.tl-step::before {
	content: ""; position: absolute; top: 30px; width: 16px; height: 16px; border-radius: 50%;
	background: var(--eau); border: 2px solid var(--texte-doux); z-index: 1;
}
.tl-step:nth-child(odd)::before { right: -57px; }
.tl-step:nth-child(even)::before { left: -57px; }
.tl-done::before { background: var(--texte-doux); }
.tl-now { border-color: rgb(247 137 12 / .6); background: rgb(247 137 12 / .08); }
.tl-now::before { background: var(--sable); border-color: var(--sable); box-shadow: 0 0 0 6px rgb(247 137 12 / .22); }
.tl-when { font-size: .88rem; color: var(--texte-doux); }
.tl-now .tl-when { color: var(--sable); font-weight: 600; }
.tl-step h3 { margin-top: 4px; font-size: 1.3rem; }
.tl-step p:not(.tl-when) { margin-top: 10px; color: var(--texte-doux); }
.tl-step .button { margin-top: 18px; }

@media (prefers-reduced-motion: no-preference) {
	.pj-frise::before { animation: pj-reflets 60s linear infinite; }
	@supports (animation-timeline: view()) {
		.timeline::after {
			animation: pj-remplissage linear both;
			animation-timeline: view();
			animation-range: entry 30% cover 75%;
		}
		.tl-step {
			animation: pj-etape linear both;
			animation-timeline: view();
			animation-range: entry 5% entry 70%;
		}
	}
}
@keyframes pj-reflets { to { background-position: 1100px 550px; } }
@keyframes pj-remplissage { from { transform: translateX(-50%) scaleY(0); } to { transform: translateX(-50%) scaleY(1); } }
@keyframes pj-etape { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ---------- Rémy et Teddy ---------- */
.pj-regards { background: #fff6ea; }
.pj-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); margin-top: 48px; }
.pj-person { border-top: 2px solid var(--sable); padding-top: 24px; }
.pj-name { font-size: clamp(3rem, 1.5rem + 4vw, 5.5rem); font-weight: 650; letter-spacing: -.045em; line-height: .95; color: var(--encre); }
.pj-person p:not(.pj-name) { margin-top: 18px; color: #5a4a33; font-size: 1.08rem; max-width: 32em; }
.pj-regards-fin { margin-top: 56px; max-width: 46rem; }
.pj-regards-fin p { color: #5a4a33; }
.pj-regards-fin .pj-accent { margin-top: 14px; color: var(--encre); }

/* ---------- La sélection envisagée ---------- */
.pj-section-head { max-width: 40rem; margin-bottom: 40px; }
.pj-section-head p { margin-top: 14px; color: var(--texte-clair-doux); font-size: 1.1rem; }
.pj-famille {
	display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: clamp(32px, 5vw, 80px); align-items: center;
	padding-block: 40px; border-top: 1px solid var(--ligne-claire);
}
.pj-famille--inverse .pj-famille-visuel { order: 2; }
.pj-famille-visuel { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; margin: 0; }
.pj-visuel-photo { display: grid; place-items: center; background: #fff; border: 1px solid #e4e9e5; }
.pj-visuel-photo img { width: 62%; height: auto; }
.pj-visuel-cover { border: 0; }
.pj-visuel-cover img { width: 100%; height: 100%; object-fit: cover; }
.pj-visuel-liste { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 48px); background: #fff3df; }
.pj-visuel-liste span {
	padding: 8px 0; border-top: 1px solid rgb(168 84 0 / .22);
	font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.2;
}
.pj-visuel-liste span:first-child { border-top: 0; }
.pj-famille-texte h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); }
.pj-famille-texte p { margin-top: 14px; color: var(--texte-clair-doux); max-width: 34em; }
.pj-selection-notes { margin-top: 40px; padding: 28px 32px; border-radius: 20px; background: #eef3ef; }
.pj-selection-notes p { color: var(--texte-clair-doux); }
.pj-selection-notes .pj-accent { margin-top: 12px; color: var(--encre); }

/* ---------- L'étude de marché ---------- */
.pj-etude { background: #eef3ef; }
.pj-etude h2 + .pj-prose { margin-top: 24px; }
.pj-questions-intro { color: var(--texte-clair-doux); }
.pj-questions { list-style: none; margin-top: 16px; }
.pj-questions li {
	position: relative; padding: 16px 0 16px 38px; border-top: 1px solid var(--ligne-claire);
	font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 550; line-height: 1.35;
}
.pj-questions li:last-child { border-bottom: 1px solid var(--ligne-claire); }
.pj-questions li::before {
	content: "?"; position: absolute; left: 0; top: 17px;
	display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
	background: var(--sable); color: var(--encre); font-size: .85rem; font-weight: 700;
}
.pj-etude-fin { margin-top: 28px; }

/* ---------- En ligne et autour de Perpignan ---------- */
.pj-boutique-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 5vw, 72px); margin-top: 40px; }
.pj-boutique-grid > div { border-top: 2px solid var(--encre); padding-top: 22px; }
.pj-boutique-grid h3 { font-size: 1.4rem; }
.pj-boutique-grid p { margin-top: 12px; color: var(--texte-clair-doux); max-width: 34em; }
.pj-boutique-grid .pj-note { padding: 14px 16px; border-radius: 12px; background: #fff3df; color: #5a4a33; font-size: .97rem; }

/* ---------- Participer : le plateau orange ---------- */
.pj-participer {
	background: linear-gradient(180deg, #f3b21c 0, #f0a401 6px, #f0a401 100%);
	color: var(--encre); padding-block: clamp(80px, 9vw, 130px);
}
.pj-participer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.pj-participer-grid > div:first-child > * + * { margin-top: 1em; }
.pj-participer-grid > div:first-child p:not(.pj-lead) { color: rgb(16 41 43 / .85); }
.pj-participer a:not(.button) { color: var(--encre); }
.pj-participer-action { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: #fff; }
.pj-participer :focus-visible { outline-color: var(--encre); }

/* ---------- Soliweb ---------- */
.pj-soliweb { background: #fff; padding-block: 56px; }
.pj-soliweb-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px 40px; padding-left: 28px; border-left: 3px solid var(--sable); }
.pj-soliweb h2 { font-size: 1.4rem; }
.pj-soliweb p { color: var(--texte-clair-doux); }
.pj-soliweb p + p { margin-top: .8em; }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
	.pj-hero-grid, .pj-split, .pj-duo, .pj-famille, .pj-boutique-grid, .pj-participer-grid, .pj-soliweb-inner { grid-template-columns: 1fr; }
	.pj-split > h2 { position: static; }
	.pj-famille--inverse .pj-famille-visuel { order: 0; }
	.pj-hero-photo { max-width: 420px; }
	.timeline { --spine: 12px; }
	.tl-step, .tl-step:nth-child(even) { width: auto; margin-left: 40px; }
	.tl-step:nth-child(odd)::before, .tl-step:nth-child(even)::before { left: -37px; right: auto; }
	.pj-frise-head { text-align: left; }
}
.pj-person .pj-depuis { margin-top: 10px; font-weight: 600; color: var(--orange-texte); font-size: 1rem; }
.pj-person .pj-depuis + p { margin-top: 14px; }
