/* Nos projets (reprise du widget HTML d'origine, sans règles globales) */
.np {
	--np-primary: #01678f;
	--np-light: #f6fbfd;
	--np-dark: #1a2530;
	font-family: var(--font);
	color: var(--np-dark);
	background: #fff;
	padding: 0 10px;
}
:where(.np) h2, :where(.np) h3 { margin: 0; padding: 0; line-height: 1; }
:where(.np) h3 { line-height: 1.2; }
.np-container { width: 90%; max-width: 1100px; margin: auto; }

.np-intro { background: var(--np-light); text-align: center; padding: 100px 0; line-height: 1.7; }
.np-intro__title { font-size: 40px; color: var(--np-primary); font-weight: 700; margin-bottom: 24px; }
.np-intro p { font-size: 22px; color: #375067; max-width: 800px; margin: 0 auto; }

.np-timeline { background: var(--np-light); padding: 80px 0; }
.np-section-title { font-size: 30px; font-weight: 700; text-align: center; margin-bottom: 40px; color: var(--np-primary); }
.np-timeline__list { position: relative; width: 80%; max-width: 800px; margin: auto; }
.np-timeline__line {
	position: absolute; left: 50%; top: 0; width: 4px; height: 100%;
	background: rgba(1, 103, 143, 0.2); transform: translateX(-50%);
}
.np-event { position: relative; margin: 80px 0; }
.np-event__dot {
	position: absolute; left: 50%; top: 0; width: 16px; height: 16px;
	background: var(--np-primary); border-radius: 50%; transform: translate(-50%, -50%);
}
.np-event__content { width: 45%; position: relative; }
.np-event:nth-of-type(odd) .np-event__content { left: 0; text-align: right; }
.np-event:nth-of-type(even) .np-event__content { left: 55%; text-align: left; }
.np-event h3 { font-size: 24px; margin-bottom: 8px; color: var(--np-primary); }
.np-event p { font-size: 18px; line-height: 1.6; color: var(--np-dark); margin: 0 0 0.8em; }

.np-grid { background: var(--np-primary); padding: 100px 0; }
.np-grid .np-section-title { margin-bottom: 60px; color: var(--np-light); }
.np-grid__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.np-card { background: #eaf3fa14; border: 1px solid #fff; padding: 30px; border-radius: 10px; color: var(--np-light); }
.np-card h3 { font-size: 22px; margin-bottom: 12px; color: var(--np-light); }
.np-card p { font-size: 18px; line-height: 1.5; margin: 0 0 12px; color: var(--np-light); }
.np-card strong { color: var(--np-light); }

.np-quote { padding: 80px 0; }
.np-quote blockquote {
	max-width: 900px; margin: auto; background: var(--np-light); padding: 32px;
	border-left: 6px solid var(--np-primary); border-radius: 8px;
	font-style: italic; font-size: 24px; color: #0f3c5c; text-align: center;
}

/* Projets 2026 : même frise, textes longs (ferrés à gauche, colonnes plus larges) */
.np-timeline--detail { background: #fff; }
.np-timeline__intro { font-size: 20px; line-height: 1.7; color: #375067; max-width: 800px; margin: 0 auto; text-align: center; }
.np-timeline--detail .np-timeline__list { width: 100%; max-width: 1000px; }
.np-timeline--detail .np-event .np-event__content { text-align: left; }
.np-timeline__outro { max-width: 800px; margin: 0 auto; text-align: center; }
.np-timeline__outro h3 { font-size: 24px; margin-bottom: 12px; color: var(--np-primary); }
.np-timeline__outro p { font-size: 18px; line-height: 1.6; margin: 0; }

@media (max-width: 768px) {
	.np-timeline__line { left: 20px; transform: none; }
	.np-event__dot { left: 20px; }
	.np-event .np-event__content { width: calc(100% - 40px); left: 40px !important; text-align: left !important; }
}

/* Remplissage de la ligne au défilement (piloté par site.js) */
.np-timeline__fill {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: var(--np-primary, #01678f);
	transform: scaleY(var(--fill, 0));
	transform-origin: top;
	transition: transform .2s ease-out;
}
