.screen.history{--history-red:#df1428;position:relative;isolation:isolate;max-width:none;padding:28px 0 18px;min-height:100%;gap:0;justify-content:space-between;background:#f6f5f1;overflow:hidden}
.history-backdrops{position:absolute;inset:0;z-index:-1;pointer-events:none}.history-backdrops img{position:absolute;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 850ms ease}.history-backdrops img.is-visible{opacity:.3}.history-backdrops:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#f6f5f1d9, #f6f5f16b 50%,#f6f5f1bb),linear-gradient(#f6f5f1e8,transparent 45%,#f6f5f1e8)}
.history-heading{padding:0 var(--space);pointer-events:none}.history-heading h2{font-size:clamp(30px,3.5vw,64px)}.history-heading .eyebrow{margin-bottom:12px}.history-heading>p:last-child{font-size:14px;color:#626763;margin-top:12px}
.history-viewport{width:100%;overflow-x:auto;overflow-y:hidden;position:relative;scrollbar-width:thin;scrollbar-color:var(--history-red) #0001;overscroll-behavior:contain;touch-action:pan-x pan-y;min-height:360px;margin:10px 0;scroll-padding-inline:calc(50vw - 210px)}
.history-track{display:flex;align-items:stretch;position:relative;width:max-content;list-style:none;margin:0;padding:15px calc(50vw - 210px) 25px;gap:0;min-height:360px}
.history-track:before{content:'';position:absolute;left:0;right:0;top:175px;height:2px;background:#a3a39b}
.history-event{width:420px;flex:none;position:relative;padding:0 32px;opacity:.52;transition:opacity 400ms}.history-event.is-current{opacity:1}.history-event article{position:relative;display:grid;grid-template-rows:70px 88px 22px auto;text-align:center}.history-year{font-size:clamp(32px,3vw,54px);line-height:1.1;font-weight:600;letter-spacing:-2px;color:#2c302e;align-self:center}.history-event h3{font-size:24px;max-width:360px;align-self:center;line-height:1.15}.history-dot{border:5px solid #f6f5f1!important;box-shadow:0 0 0 1px var(--history-red);background:var(--history-red)!important;border-radius:50%;width:22px;height:22px;min-height:0;padding:0;justify-self:center;z-index:1;transform:translateY(-9px)}.history-event.is-current .history-dot{box-shadow:0 0 0 5px #df14281a,0 0 0 1px var(--history-red)}.history-description{padding-top:14px;font-size:16px;line-height:1.5}.history-description p{line-height:1.5}.history-logo{max-width:140px;height:42px;object-fit:contain;display:block;margin:0 auto 14px}.history-years{display:flex;gap:24px;align-items:flex-start;padding:139px 16px 0;flex:none;font-size:11px;color:#666}.history-years span{position:relative}.history-years span:before{content:'';position:absolute;top:16px;left:50%;height:12px;width:1px;background:#a3a39b}
.history-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 var(--space);margin-top:12px}.history-controls>div{display:flex;align-items:center;gap:18px}.history-controls button{background:#f6f5f1b8;font-size:12px}.history-controls>div button{color:var(--history-red);font-size:24px;padding:3px 16px}.history-position{font-size:12px;font-variant-numeric:tabular-nums;min-width:45px;text-align:center}.history-hint{text-align:center;font-size:11px;color:#626763;padding:14px 20px 0}
@media(max-width:600px){.screen.history{padding-top:24px}.history-heading h2{font-size:32px}.history-heading>p:last-child{font-size:12px}.history-viewport{min-height:410px}.history-track{padding-inline:calc(50vw - 155px);min-height:410px}.history-event{width:310px;padding-inline:22px}.history-event h3{font-size:21px}.history-description{font-size:15px}.history-year{font-size:36px}.history-controls{flex-wrap:wrap;justify-content:center;padding:0 14px}.history-controls>div{order:-1;width:100%;justify-content:center}.history-controls>button{font-size:11px;padding:8px 10px}.history-hint{font-size:10px}}
@media(prefers-reduced-motion:reduce){.history-backdrops img,.history-event{transition:none}}
@media print{.screen.history{display:block!important;overflow:visible}.history-backdrops,.history-controls,.history-hint{display:none}.history-viewport{overflow:visible;height:auto}.history-track{display:grid;width:auto;grid-template-columns:1fr 1fr;padding:20px 0;gap:24px}.history-track:before,.history-years,.history-dot{display:none}.history-event{width:auto;padding:14px;opacity:1;break-inside:avoid;border-top:2px solid #df1428}.history-event article{display:block}.history-year{font-size:24px}.history-event h3{font-size:18px;margin:10px auto}.history-description{font-size:12px}.history-logo{height:28px}}

/* Historique immersif : image sur toute la fenêtre, commandes compactes. */
@media screen{
.history-active{--header:64px;--footer:38px}.history-active .reveal{top:0;bottom:0}.history-active .topbar{position:relative;z-index:5;border:0;background:linear-gradient(#f6f5f1e8,#f6f5f180)}.history-active .wordmark img{width:100px!important}.history-active .wordmark span{display:none}.history-active .tools button{padding:6px 10px;min-height:36px;font-size:11px}.history-active .bottom-bar{height:38px;background:#f6f5f1c9;border:0;z-index:5;padding-inline:22px}.history-active .bottom-bar .arrows button{min-height:30px;height:30px;width:36px;padding:0;font-size:18px}.history-active .bottom-bar .location{font-size:10px}.history-active .bottom-bar .keyboard-hint{display:none}.history-active .bottom-bar progress{height:2px}
.screen.history{min-height:100%;padding:78px 0 48px;justify-content:flex-start;gap:10px;display:flex}.history-backdrops{position:absolute;inset:0}.history-backdrops img.is-visible{opacity:.86}.history-backdrops:after{background:linear-gradient(180deg,#f6f5f1c9 0%,#f6f5f159 22%,#f6f5f138 70%,#f6f5f1a8 100%)}.history-heading{padding-inline:28px}.history-heading .eyebrow{font-size:10px;margin-bottom:4px}.history-heading h2{font-size:clamp(24px,2.2vw,38px);text-shadow:0 1px 8px white}.history-heading>p:last-child{display:none}.history-viewport{margin:0;flex:1 0 auto;min-height:310px;scrollbar-width:none}.history-viewport::-webkit-scrollbar{display:none}.history-track{min-height:310px;padding-top:12px;padding-bottom:12px}.history-track:before{top:133px;background:#41433c88}.history-event{opacity:.35}.history-event.is-current{opacity:1}.history-event article{grid-template-rows:56px 64px 22px auto}.history-event.is-current article{background:linear-gradient(transparent,#f6f5f1e6 20%,#f6f5f1f0 75%,transparent);border-radius:8px}.history-year{font-size:42px}.history-event h3{font-size:22px}.history-logo{height:30px;margin-bottom:9px}.history-description{font-size:15px;padding:6px 10px 12px}.history-years{padding-top:100px}.history-controls{margin:0;padding:0 22px;gap:8px;flex-wrap:nowrap;flex:none}.history-controls>div{width:auto;order:0;gap:9px}.history-controls button{border:0;min-height:36px;padding:4px 10px;background:#f6f5f1bd;font-size:11px}.history-controls>div button{font-size:21px;padding:0 12px}.history-position{font-size:10px;min-width:36px}.history-hint{display:none}
.history-docs{align-self:center;flex:none;width:min(680px,calc(100% - 44px));padding:8px 12px;background:#f6f5f1e6;border-radius:5px}.history-docs[hidden]{display:none}.history-docs>p{font-size:10px;font-weight:700;line-height:1.3;margin-bottom:6px}.history-docs>p span{font-size:9px;font-weight:400;color:#555;margin-left:8px}.history-photo-strip{display:flex;gap:12px;justify-content:center}.history-photo-strip figure{margin:0;flex:1;min-width:0;max-width:215px}.history-photo-strip button{display:block;padding:0;border:0;width:100%;height:82px;overflow:hidden;min-height:44px;background:#e2e2dd}.history-photo-strip img{width:100%;height:100%;object-fit:cover;display:block}.history-photo-strip figcaption{font-size:9px;line-height:1.35;margin-top:4px}.history-photo-strip a{display:block;color:#5a5e5a;font-size:8px}.history-photo-strip button:hover img{filter:brightness(1.06)}
#history-photo-dialog{width:min(1000px,94vw);max-height:92vh;padding:20px}#history-photo-dialog h2{font-size:22px;letter-spacing:-.5px}#history-photo-dialog figure{margin:16px 0 0}#history-photo-dialog figure>img{display:block;width:100%;height:auto;max-height:68vh;object-fit:contain}#history-photo-dialog figcaption{font-size:13px;margin-top:12px;line-height:1.5}#history-photo-dialog figcaption a{font-size:11px;color:#626763}
}
@media screen and (max-width:600px){.history-active .tools button{font-size:10px;padding-inline:7px}.history-active .topbar{padding-inline:16px}.history-active .tools span{margin-left:5px}.screen.history{padding-top:76px;gap:8px}.history-heading{padding-inline:18px}.history-heading h2{font-size:25px}.history-viewport,.history-track{min-height:340px}.history-event{padding-inline:16px}.history-year{font-size:36px}.history-event h3{font-size:20px}.history-description{font-size:14px}.history-controls{padding:0 12px}.history-docs{width:calc(100% - 24px);padding:8px}.history-docs>p span{display:none}.history-photo-strip{gap:7px}.history-photo-strip button{height:70px}.history-photo-strip figcaption{font-size:8px}.history-photo-strip a{font-size:8px}}
@media print{.history-docs{display:none}#history-photo-dialog{display:none!important}}

@media screen{.history-heading h2{font-size:clamp(22px,1.8vw,30px)}.history-heading>p:last-child{display:block;font-size:13px;margin-top:5px;color:#424640;text-shadow:0 1px 6px #fff}}

/* Fond optimisé : fondu bref, sans défilement animé concurrent. */
.history-backdrops img{transition:opacity 220ms ease;contain:paint}.history-event{transition:opacity 160ms ease}
