/* Page « Notre histoire » (gabarit page-histoire.php). Même ligne que l'accueil : crème, cartes blanches, noir, jaune UCS. */
.hi {
	--hi-pad: clamp(16px, 4vw, 56px);
	--hi-max: 1440px;
	--hi-anod: linear-gradient(180deg, #c8121c, #f27c0c 14%, #c9c41f 28%, #6a9a12 42%, #2a9a8e 56%, #14a3b8 66%, #1d5d9c 78%, #7c1166 90%, #b8607a);
	display: flex;
	flex-direction: column;
	gap: clamp(56px, 8vw, 120px);
	padding: clamp(8px, 2vw, 24px) 0 clamp(56px, 8vw, 120px);
	color: var(--ucs-ink);
	font-family: var(--ucs-font-text);
}
.hi > * { box-sizing: border-box; width: calc(100% - 2 * var(--hi-pad)); max-width: var(--hi-max); margin: 0 auto; }
.hi h1, .hi h2, .hi h3, .hi p, .hi dl, .hi dd, .hi figure { margin: 0; }
.hi-title { font-family: var(--ucs-font-head); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1; letter-spacing: -.012em; text-wrap: balance; }
.hi-title--xl { font-size: clamp(3rem, 7.4vw, 6.6rem); line-height: .92; letter-spacing: -.02em; }
.hi-lead { max-width: 54ch; font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.6; color: var(--ucs-muted); }
.hi a.hi-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.hi a.hi-btn--ink { background: var(--ucs-ink); color: #fff; }
.hi a.hi-btn--ink:hover { background: var(--ucs-yellow); color: var(--ucs-ink); }
.hi a.hi-btn--ghost { box-shadow: inset 0 0 0 1.5px var(--ucs-ink); color: var(--ucs-ink); }
.hi a.hi-btn--ghost:hover { background: var(--ucs-ink); color: #fff; }
.hi a.hi-btn:focus-visible { outline: 3px solid var(--ucs-yellow); outline-offset: 3px; }

/* 1. Ouverture */
.hi-intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; gap: clamp(24px, 4vw, 72px); }
.hi-intro__text { display: flex; flex-direction: column; gap: 26px; padding-bottom: 8px; }
.hi-intro__photo { position: relative; }
.hi-intro__photo img { display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 32px; }
.hi-intro__photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: .85rem; font-weight: 500; }

/* 2. Faits */
.hi .hi-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-left: auto; margin-right: auto; margin-top: calc(-1 * clamp(24px, 4vw, 64px)) !important; padding: 0; border-radius: 28px; background: #fff; }
.hi-facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: clamp(20px, 2.4vw, 32px) clamp(18px, 2.2vw, 32px); }
.hi-facts div + div { box-shadow: inset 1px 0 0 var(--ucs-line); }
.hi-facts dt { font-size: .9rem; line-height: 1.35; color: var(--ucs-muted); }
.hi-facts dd { font-family: var(--ucs-font-head); font-weight: 700; font-size: clamp(1.35rem, 2.2vw, 2.2rem); letter-spacing: -.01em; white-space: nowrap; }

/* 3. Fait ici */
.hi-made { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(24px, 4vw, 72px); }
.hi-made__text { display: flex; flex-direction: column; gap: 18px; }
.hi-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.hi-steps li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #fff; font-weight: 700; }
.hi-steps li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hi-steps span { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--ucs-yellow); font-family: var(--ucs-font-head); font-weight: 700; }
.hi-made__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 32px; }

/* 4. Matériaux */
.hi-materials { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.hi-mat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin: 0; padding: 0; list-style: none; }
.hi-mat__item { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.4vw, 32px); border-radius: 28px; background: #fff; }
.hi-mat__item h3 { font-family: var(--ucs-font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: -.01em; }
.hi-mat__item p { color: var(--ucs-muted); line-height: 1.55; }
.hi-mat__visual { position: relative; display: block; height: 96px; margin-bottom: 10px; }
.hi-mat__visual--alu i { position: absolute; top: 18px; left: calc(var(--i) * 9%); width: 60px; height: 60px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -6px 10px rgba(0,0,0,.18), inset 0 6px 10px rgba(255,255,255,.25), 0 0 0 3px #fff; transition: transform .3s cubic-bezier(.3,1.5,.5,1); }
.hi-mat__item:hover .hi-mat__visual--alu i { transform: translateY(calc(var(--i) * -1px - 4px)); }
.hi-mat__visual--glass i { position: absolute; top: 6px; left: 0; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 12%, transparent 13%), linear-gradient(135deg, #e7f3f6, #b9d7de); box-shadow: inset 0 0 0 6px #1d1d1b; }
.hi-mat__visual--strap i { position: absolute; top: 10px; width: 26px; height: 76px; border-radius: 13px; }
.hi-mat__visual--strap i:nth-child(1) { left: 0; background: #ffd21f; }
.hi-mat__visual--strap i:nth-child(2) { left: 34px; background: #14a3b8; }
.hi-mat__visual--strap i:nth-child(3) { left: 68px; background: #f084c8; }

/* 5. Mouvements : fiche technique sur fond noir */
.hi > section.hi-move { display: flex; flex-direction: column; gap: 14px; padding: clamp(36px, 5vw, 72px) clamp(22px, 4vw, 64px); border-radius: 36px; background: var(--ucs-ink); color: #fff; }
.hi-move .hi-title { color: #fff; }
.hi-move .hi-lead { color: rgba(255,255,255,.72); }
.hi-move__grid { display: grid; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(14px, 2vw, 26px); }
.hi-move__notes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } /* technologies ETA, sous les fiches */
.hi-spec { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 24px; background: #262624; }
.hi-spec h3 { font-family: var(--ucs-font-head); font-weight: 700; font-size: 1.25rem; color: #fff; }
.hi-spec dl { display: flex; flex-direction: column; gap: 10px; }
.hi-spec dl div { display: flex; justify-content: space-between; gap: 14px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }
.hi-spec dt { color: rgba(255,255,255,.6); font-size: .92rem; }
.hi-spec dd { font-weight: 700; text-align: right; }
.hi-spec__docs { display: flex; gap: 6px; }
.hi-spec__docs a { padding: 3px 10px; border-radius: 99px; background: var(--ucs-yellow); color: var(--ucs-ink); font-size: .85rem; text-decoration: none; }
.hi-spec__docs a:hover, .hi-spec__docs a:focus-visible { background: #fff; }
.hi-spec--note { background: var(--ucs-yellow); }
.hi-spec--note h3, .hi-spec--note p { color: var(--ucs-ink); }
.hi-spec--note p { line-height: 1.5; }

/* 6. Historique : la frise se remplit aux couleurs d'anodisation en défilant */
.hi-story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; gap: clamp(24px, 4vw, 72px); }
.hi-story__head { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 16px; }
.hi-line { position: relative; padding-left: 44px; }
.hi-line__track { position: absolute; left: 13px; top: 10px; bottom: 10px; width: 6px; border-radius: 3px; background: var(--ucs-line); overflow: hidden; }
.hi-line__fill { position: absolute; inset: 0; background: var(--hi-anod); border-radius: 3px; clip-path: inset(0 0 calc(100% - var(--hi-progress, 0%)) 0); }
.hi-line__list { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 28px); margin: 0; padding: 0; list-style: none; }
.hi-line__item { position: relative; display: grid; grid-template-columns: minmax(130px, 2fr) minmax(0, 5fr); align-items: baseline; gap: 6px 24px; padding: 20px 24px; border-radius: 24px; background: #fff; }
.hi-line__dot { position: absolute; left: -37px; top: 26px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--ucs-line); transition: background .3s, box-shadow .3s, transform .3s; }
.hi-line__item.is-on .hi-line__dot { background: var(--c); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); transform: scale(1.1); }
.hi-line__date { font-family: var(--ucs-font-head); font-weight: 700; font-size: clamp(1.2rem, 1.8vw, 1.6rem); letter-spacing: -.01em; }
.hi-line__text { line-height: 1.55; color: var(--ucs-muted); }

/* 7. Fin */
.hi-end { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(24px, 4vw, 72px); }
.hi-end__photo img { display: block; width: 100%; aspect-ratio: 745 / 540; object-fit: cover; border-radius: 32px; }
.hi-end__text { display: flex; flex-direction: column; gap: 24px; }
.hi-end__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Tablette */
@media (max-width: 1100px) {
	.hi-intro, .hi-made, .hi-story, .hi-end { grid-template-columns: 1fr; }
	.hi .hi-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0 !important; }
	.hi-facts div:nth-child(3) { box-shadow: inset 0 1px 0 var(--ucs-line); }
	.hi-facts div:nth-child(3) { grid-column: 1 / -1; }
	.hi-move__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hi-mat { grid-template-columns: 1fr; }
	.hi-story__head { position: static; }
}
/* Téléphone */
@media (max-width: 640px) {
	.hi-steps { grid-template-columns: 1fr; }
	.hi-move__grid { grid-template-columns: 1fr; }
	.hi-move__notes { grid-template-columns: 1fr; }
	.hi-line { padding-left: 34px; }
	.hi-line__track { left: 8px; }
	.hi-line__dot { left: -32px; }
	.hi-line__item { grid-template-columns: 1fr; padding: 16px 18px; }
	.hi-intro__photo figcaption { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
	.hi *, .hi *::before { transition: none !important; }
}
