/* WF Slideshow ++ — styles communs. Le gabarit ne pose que des variables (--ssp-*). */
@keyframes wf-ssp-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wf-ssp-kb { from { transform: scale(1); } to { transform: scale(1.08); } }

.wf-ssp { --ssp-h: 88; --ssp-min: 520px; --ssp-h-m: 78; --ssp-min-m: 460px; --ssp-radius: 0px; --ssp-speed: 800ms; --ssp-interval: 6000ms; --ssp-accent: #e30613; --ssp-text: #ffffff; --ssp-nav: #ffffff; --ssp-kicker: var(--ssp-text); --ssp-scrim: #000000; --ssp-scrim-o: 0.7; --ssp-panel: #0b1f3f; --ssp-panel-w: 42%; --ssp-title: 52px; --ssp-title-m: 30px; --ssp-weight: 800; --ssp-tmax: 640px; --ssp-btn-bg: var(--ssp-accent); --ssp-btn-c: #ffffff; --ssp-btn-r: 999px; --ssp-thumb-r: 10px; --ssp-dir: 1; --ssp-bottom: 40px; --ssp-pt: 96px; --ssp-pb: 40px; position: relative; overflow: hidden; isolation: isolate; height: calc(var(--ssp-h) * 1vh); height: max(calc(var(--ssp-h) * 1svh), var(--ssp-fill, 0px)); min-height: var(--ssp-min); border-radius: var(--ssp-radius); background: #0b0b0b; color: var(--ssp-text); -webkit-tap-highlight-color: transparent; }
.wf-ssp *, .wf-ssp *::before, .wf-ssp *::after { box-sizing: border-box; }
.wf-ssp button { -webkit-appearance: none; appearance: none; background: none; border: 0; margin: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.wf-ssp button:focus-visible, .wf-ssp .wf-ssp__btn:focus-visible { outline: 2px solid var(--ssp-text); outline-offset: 3px; }

/* Slides empilées : la transition vient des classes posées par wf-slideshow.js */
.wf-ssp__slides { position: absolute; inset: 0; touch-action: pan-y; }
.wf-ssp__slide { position: absolute; inset: 0; overflow: hidden; visibility: hidden; z-index: 0; }
.wf-ssp__slide.is-active { visibility: visible; z-index: 2; transition: opacity var(--ssp-speed) ease, transform var(--ssp-speed) cubic-bezier(.65, 0, .35, 1), clip-path var(--ssp-speed) cubic-bezier(.65, 0, .35, 1); }
.wf-ssp__slide.is-leaving { visibility: visible; z-index: 1; transition: transform var(--ssp-speed) cubic-bezier(.65, 0, .35, 1); }
.wf-ssp .wf-ssp__slide.is-prep { transition: none !important; }
.wf-ssp--tr-fade .wf-ssp__slide.is-prep { opacity: 0; }
.wf-ssp--tr-slide .wf-ssp__slide.is-prep { transform: translate3d(calc(var(--ssp-dir) * 100%), 0, 0); }
.wf-ssp--tr-slide .wf-ssp__slide.is-leaving { transform: translate3d(calc(var(--ssp-dir) * -30%), 0, 0); }
.wf-ssp--tr-zoom .wf-ssp__slide.is-prep { opacity: 0; transform: scale(1.12); }
.wf-ssp--tr-wipe .wf-ssp__slide.is-active { clip-path: inset(0 0 0 0); }
.wf-ssp--tr-wipe .wf-ssp__slide.is-prep { clip-path: inset(0 0 0 100%); }
.wf-ssp--tr-wipe[data-dir="-1"] .wf-ssp__slide.is-prep { clip-path: inset(0 100% 0 0); }

.wf-ssp__media, .wf-ssp__media picture { position: absolute; inset: 0; display: block; }
.wf-ssp .wf-ssp__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.wf-ssp.is-kb .wf-ssp__slide.is-active .wf-ssp__img, .wf-ssp.is-kb .wf-ssp__slide.is-leaving .wf-ssp__img { animation: wf-ssp-kb calc(var(--ssp-interval) + var(--ssp-speed) * 2) linear forwards; }

/* Voile de lisibilité : couleur libre, forme par masque (pas de color-mix) */
.wf-ssp__scrim { position: absolute; inset: 0; pointer-events: none; background: var(--ssp-scrim); opacity: var(--ssp-scrim-o); -webkit-mask-image: var(--ssp-mask); mask-image: var(--ssp-mask); }
.wf-ssp--scrim-bottom .wf-ssp__scrim { --ssp-mask: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .62) 32%, rgba(0, 0, 0, 0) 72%); }
.wf-ssp--scrim-left .wf-ssp__scrim { --ssp-mask: linear-gradient(to right, #000 0%, rgba(0, 0, 0, .55) 42%, rgba(0, 0, 0, 0) 78%); }
.wf-ssp--scrim-full .wf-ssp__scrim { --ssp-mask: none; }
.wf-ssp--scrim-none .wf-ssp__scrim { display: none; }

/* Texte */
.wf-ssp .wf-ssp__wrap { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; }
:where(.wf-ssp__wrap) { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.wf-ssp--pos-bottom-left .wf-ssp__slide .wf-ssp__wrap { justify-content: flex-end; align-items: flex-start; }
.wf-ssp--pos-center-left .wf-ssp__slide .wf-ssp__wrap { justify-content: center; align-items: flex-start; }
.wf-ssp--pos-bottom-center .wf-ssp__slide .wf-ssp__wrap { justify-content: flex-end; align-items: center; text-align: center; }
.wf-ssp--pos-center .wf-ssp__slide .wf-ssp__wrap { justify-content: center; align-items: center; text-align: center; }
.wf-ssp__content { width: 100%; max-width: var(--ssp-tmax); padding: var(--ssp-pt) 0 var(--ssp-pb); }
.wf-ssp .wf-ssp__kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--ssp-kicker); font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; }
.wf-ssp .wf-ssp__kicker::before { content: ""; flex: none; width: 28px; height: 3px; border-radius: 2px; background: var(--ssp-accent); }
.wf-ssp .wf-ssp__title { margin: 0; color: var(--ssp-text); font-size: var(--ssp-title); font-weight: var(--ssp-weight); line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.wf-ssp.is-upper .wf-ssp__title { text-transform: uppercase; letter-spacing: .005em; }
.wf-ssp .wf-ssp__text { display: -webkit-box; margin: 16px 0 0; max-width: 52ch; overflow: hidden; color: var(--ssp-text); font-size: 17px; line-height: 1.5; opacity: .9; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.wf-ssp--pos-bottom-center .wf-ssp__text, .wf-ssp--pos-center .wf-ssp__text { margin-left: auto; margin-right: auto; }
.wf-ssp__actions { margin-top: 26px; }
.wf-ssp .wf-ssp__btn, .wf-ssp .wf-ssp__btn:hover { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 2px solid transparent; border-radius: var(--ssp-btn-r); background: var(--ssp-btn-bg); color: var(--ssp-btn-c); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; transition: background-color .25s, color .25s, border-color .25s, filter .25s; }
.wf-ssp .wf-ssp__btn:hover { filter: brightness(1.1); }
.wf-ssp .wf-ssp__btn svg { flex: none; transition: transform .25s; }
.wf-ssp .wf-ssp__btn:hover svg { transform: translateX(4px); }
.wf-ssp--btn-outline .wf-ssp__btn, .wf-ssp--btn-outline .wf-ssp__btn:hover { background: transparent; border-color: currentColor; }
.wf-ssp--btn-outline .wf-ssp__btn:hover { background: rgba(255, 255, 255, .12); filter: none; }
.wf-ssp--btn-light .wf-ssp__btn { background: #fff; color: #111; }
.wf-ssp--btn-light .wf-ssp__btn:hover { background: var(--ssp-accent); color: #fff; filter: none; }

/* Entrée du texte : seulement quand le JS tourne, la 1re slide reste visible sans lui */
.wf-ssp.is-anim.is-ready .wf-ssp__slide:not(.is-active) .wf-ssp__content > * { opacity: 0; transform: translateY(22px); transition: opacity .25s ease; }
.wf-ssp.is-anim .wf-ssp__slide.is-active .wf-ssp__content > * { transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--ssp-speed) * .3); }
.wf-ssp.is-anim .wf-ssp__slide.is-active .wf-ssp__content > :nth-child(2) { transition-delay: calc(var(--ssp-speed) * .3 + 90ms); }
.wf-ssp.is-anim .wf-ssp__slide.is-active .wf-ssp__content > :nth-child(3) { transition-delay: calc(var(--ssp-speed) * .3 + 180ms); }
.wf-ssp.is-anim .wf-ssp__slide.is-active .wf-ssp__content > :nth-child(4) { transition-delay: calc(var(--ssp-speed) * .3 + 270ms); }

/* Navigation commune */
.wf-ssp__nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding-bottom: var(--ssp-bottom); pointer-events: none; }
.wf-ssp .wf-ssp__nav .wf-ssp__wrap { height: auto; }
.wf-ssp__navin { display: flex; align-items: center; gap: 16px; pointer-events: auto; }
.wf-ssp__track { position: relative; display: block; width: 100%; height: 3px; border-radius: 3px; overflow: hidden; }
.wf-ssp__track::before { content: ""; position: absolute; inset: 0; background: var(--ssp-nav); opacity: .35; }
.wf-ssp__fill { position: absolute; inset: 0; background: var(--ssp-accent); transform: scaleX(0); transform-origin: left center; }
.wf-ssp.is-autoplay .wf-ssp__dot.is-active .wf-ssp__fill, .wf-ssp.is-autoplay .wf-ssp__progress.is-run .wf-ssp__fill { animation: wf-ssp-fill var(--ssp-interval) linear forwards; }
.wf-ssp.is-paused .wf-ssp__fill, .wf-ssp.is-paused .wf-ssp__img { animation-play-state: paused; }
.wf-ssp:not(.is-autoplay) .wf-ssp__dot.is-active .wf-ssp__fill, .wf-ssp--bars .wf-ssp__dot.is-past .wf-ssp__fill { transform: scaleX(1); }
.wf-ssp:not(.is-autoplay) .wf-ssp__progress .wf-ssp__fill { transform: scaleX(var(--ssp-frac, 0)); transition: transform var(--ssp-speed) ease; }

.wf-ssp__pause { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ssp-nav); }
.wf-ssp__pause::before { content: ""; position: absolute; inset: 7px; border: 1.5px solid currentColor; border-radius: 50%; opacity: .7; transition: opacity .25s; }
.wf-ssp__pause:hover::before { opacity: 1; }
.wf-ssp__pause svg { display: block; }
.wf-ssp .wf-ssp__ico-play, .wf-ssp.is-stopped .wf-ssp__ico-pause { display: none; }
.wf-ssp.is-stopped .wf-ssp__ico-play { display: block; }

.wf-ssp__arrow { position: absolute; top: 50%; z-index: 5; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: rgba(0, 0, 0, .3); color: var(--ssp-nav); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s, background-color .25s, color .25s; }
.wf-ssp .wf-ssp__arrow--prev { left: 20px; }
.wf-ssp .wf-ssp__arrow--next { right: 20px; }
.wf-ssp:hover .wf-ssp__arrow, .wf-ssp .wf-ssp__arrow:focus-visible { opacity: 1; }
.wf-ssp .wf-ssp__arrow:hover { background: var(--ssp-accent); color: #fff; }
@media (hover: none) { .wf-ssp__arrow { opacity: 1; } }

/* 1. Barres (façon Reims, cibles 44 px au lieu de traits de 3 px) */
.wf-ssp--bars .wf-ssp__navin { justify-content: flex-end; }
.wf-ssp__bars { display: flex; gap: 6px; }
.wf-ssp--bars .wf-ssp__dot { display: flex; align-items: center; width: 46px; height: 44px; }
.wf-ssp--bars .wf-ssp__dot:hover .wf-ssp__track::before { opacity: .75; }
.wf-ssp--bars.wf-ssp--pos-bottom-center { --ssp-pb: 108px; }
.wf-ssp--bars.wf-ssp--pos-bottom-center .wf-ssp__navin { justify-content: center; }

/* 2. Onglets numérotés (façon ESTAC, mais toutes les slides, colonnes égales) */
.wf-ssp--tabs { --ssp-pb: 170px; }
.wf-ssp__tabs { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 24px; }
.wf-ssp .wf-ssp__tab { display: flex; flex-direction: column; gap: 10px; min-height: 44px; padding: 8px 0; color: var(--ssp-nav); text-align: left; opacity: .7; transition: opacity .25s; }
.wf-ssp .wf-ssp__tab:hover, .wf-ssp .wf-ssp__tab.is-active { opacity: 1; }
.wf-ssp__num { font-size: 13px; font-weight: 800; line-height: 1; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.wf-ssp__tab .wf-ssp__track { height: 2px; }
.wf-ssp__lbl { display: -webkit-box; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* 3. Vignettes à suivre */
.wf-ssp--thumbs .wf-ssp__navin { justify-content: flex-end; align-items: flex-end; }
.wf-ssp--thumbs .wf-ssp__content { max-width: min(var(--ssp-tmax), calc(100% - 380px)); }
.wf-ssp__thumbs { display: flex; flex-direction: column; gap: 8px; width: 340px; max-height: 380px; overflow-y: auto; scrollbar-width: none; }
.wf-ssp .wf-ssp__thumb { position: relative; flex: none; display: flex; align-items: center; gap: 14px; padding: 10px 14px 13px 10px; overflow: hidden; border-radius: var(--ssp-thumb-r); background: rgba(10, 10, 10, .4); color: var(--ssp-nav); text-align: left; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .25s; }
.wf-ssp .wf-ssp__thumb:hover { background: rgba(10, 10, 10, .58); }
.wf-ssp .wf-ssp__thumb.is-active { background: rgba(255, 255, 255, .16); }
.wf-ssp__timg { flex: none; display: block; width: 64px; height: 64px; overflow: hidden; border-radius: calc(var(--ssp-thumb-r) * .7); }
.wf-ssp .wf-ssp__timg img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.wf-ssp__ttxt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wf-ssp__tkick { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.wf-ssp__thumb .wf-ssp__track { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 0; }
.wf-ssp__thumb .wf-ssp__track::before { opacity: .15; }

/* 4. Compteur géant */
.wf-ssp--counter { --ssp-pb: 136px; }
.wf-ssp__bignum { position: absolute; right: 4%; top: 50%; z-index: 3; transform: translateY(-50%); color: transparent; font-size: clamp(160px, 28vw, 440px); font-weight: 900; line-height: .8; letter-spacing: -.04em; font-variant-numeric: tabular-nums; -webkit-text-stroke: 2px var(--ssp-text); opacity: .28; pointer-events: none; user-select: none; }
.wf-ssp__count { flex: none; display: flex; align-items: center; gap: 12px; color: var(--ssp-nav); font-size: 15px; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.wf-ssp__cur { font-size: 28px; line-height: 1; }
.wf-ssp__sep { width: 28px; height: 2px; background: currentColor; opacity: .5; }
.wf-ssp__tot { opacity: .65; }
.wf-ssp__progress { flex: 1; display: flex; align-items: center; min-width: 48px; height: 44px; }
.wf-ssp__progress .wf-ssp__track { height: 2px; }
.wf-ssp__ctrl { flex: none; display: flex; align-items: center; gap: 10px; }
.wf-ssp .wf-ssp__btnav { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; color: var(--ssp-nav); transition: background-color .25s, color .25s; }
.wf-ssp .wf-ssp__btnav::before { content: ""; position: absolute; inset: 0; border: 1.5px solid currentColor; border-radius: 50%; opacity: .5; transition: opacity .25s; }
.wf-ssp .wf-ssp__btnav:hover { background: var(--ssp-accent); color: #fff; }
.wf-ssp .wf-ssp__btnav:hover::before { opacity: 0; }

/* 5. Panneau latéral : aplat en biais, image à droite */
.wf-ssp--split { --ssp-pb: 132px; --ssp-cut: 80px; background: var(--ssp-panel); }
.wf-ssp--split .wf-ssp__media { left: calc(var(--ssp-panel-w) - var(--ssp-cut)); }
.wf-ssp--split .wf-ssp__scrim { display: none; }
.wf-ssp--split .wf-ssp__slide .wf-ssp__wrap { position: absolute; top: 0; left: 0; bottom: 0; width: var(--ssp-panel-w); height: auto; justify-content: center; align-items: flex-start; padding: 0 calc(var(--ssp-cut) + 16px) 0 clamp(24px, 5vw, 80px); background: var(--ssp-panel); clip-path: polygon(0 0, calc(100% - var(--ssp-cut)) 0, 100% 100%, 0 100%); }
.wf-ssp--split .wf-ssp__title { font-size: min(var(--ssp-title), 2.9vw); }
.wf-ssp--split .wf-ssp__nav { right: auto; width: var(--ssp-panel-w); }
.wf-ssp--split .wf-ssp__nav .wf-ssp__wrap { padding: 0 32px 0 clamp(24px, 5vw, 80px); }

@media (max-width: 1199px) {
	.wf-ssp--split .wf-ssp__progress { display: none; }
	.wf-ssp--split .wf-ssp__navin { justify-content: space-between; }
}

/* Tablette : vignettes -> barres, textes resserrés */
@media (max-width: 959px) {
	.wf-ssp--tabs { --ssp-pb: 150px; }
	.wf-ssp__tabs { gap: 16px; }
	.wf-ssp__lbl { font-size: 13px; }
	.wf-ssp--thumbs { --ssp-pb: 100px; }
	.wf-ssp--thumbs .wf-ssp__content { max-width: var(--ssp-tmax); }
	.wf-ssp--thumbs .wf-ssp__navin { align-items: center; }
	.wf-ssp__thumbs { flex: 1; flex-direction: row; gap: 6px; width: auto; max-height: none; overflow: visible; }
	.wf-ssp .wf-ssp__thumb, .wf-ssp .wf-ssp__thumb:hover, .wf-ssp .wf-ssp__thumb.is-active { flex: 1; height: 44px; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.wf-ssp__thumb .wf-ssp__timg, .wf-ssp__thumb .wf-ssp__ttxt { display: none; }
	.wf-ssp__thumb .wf-ssp__track { position: relative; border-radius: 3px; }
	.wf-ssp__thumb .wf-ssp__track::before { opacity: .35; }

	/* Panneau posé en bas, hauteur = son contenu : jamais de texte sous la navigation */
	.wf-ssp.wf-ssp--split { --ssp-pb: 0px; --ssp-pt: 0px; }
	.wf-ssp--split .wf-ssp__media { left: 0; }
	.wf-ssp--split .wf-ssp__title { font-size: var(--ssp-title); }
	.wf-ssp--split .wf-ssp__slide .wf-ssp__wrap { top: auto; width: 100%; padding: 56px 24px 96px; clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%); }
	.wf-ssp--split .wf-ssp__nav { width: auto; right: 0; }
	.wf-ssp--split .wf-ssp__nav .wf-ssp__wrap { padding: 0 24px; }
}

/* Mobile */
@media (max-width: 639px) {
	.wf-ssp { --ssp-bottom: 16px; --ssp-pt: 72px; --ssp-pb: 76px; height: calc(var(--ssp-h-m) * 1vh); height: max(calc(var(--ssp-h-m) * 1svh), var(--ssp-fill, 0px)); min-height: var(--ssp-min-m); }
	.wf-ssp :where(.wf-ssp__wrap) { padding: 0 20px; }
	.wf-ssp .wf-ssp__title { font-size: var(--ssp-title-m); line-height: 1.08; }
	.wf-ssp .wf-ssp__kicker { margin-bottom: 10px; font-size: 12px; }
	.wf-ssp .wf-ssp__text { font-size: 15px; -webkit-line-clamp: 2; }
	.wf-ssp__actions { margin-top: 18px; }
	.wf-ssp .wf-ssp__btn, .wf-ssp .wf-ssp__btn:hover { min-height: 46px; padding: 0 20px; font-size: 13px; }
	.wf-ssp__arrow { display: none; }
	.wf-ssp__bars { flex: 1; }
	.wf-ssp--bars .wf-ssp__dot { flex: 1; width: auto; }
	.wf-ssp--bars.wf-ssp--pos-bottom-center { --ssp-pb: 76px; }
	.wf-ssp--tabs { --ssp-pb: 84px; }
	.wf-ssp__tabs { gap: 8px; }
	.wf-ssp .wf-ssp__tab { gap: 8px; }
	.wf-ssp__tab .wf-ssp__lbl { display: none; }
	.wf-ssp--thumbs { --ssp-pb: 76px; }
	.wf-ssp--counter { --ssp-pb: 92px; }
	.wf-ssp__bignum { top: 17%; right: -2%; font-size: 46vw; }
	.wf-ssp__cur { font-size: 22px; }
	.wf-ssp .wf-ssp__btnav { width: 44px; height: 44px; }
	.wf-ssp__ctrl { gap: 6px; }
	.wf-ssp--split .wf-ssp__title { font-size: var(--ssp-title-m); }
	.wf-ssp--split .wf-ssp__text { display: none; }
	.wf-ssp--split .wf-ssp__slide .wf-ssp__wrap { padding: 48px 20px 80px; }
	.wf-ssp--split .wf-ssp__nav .wf-ssp__wrap { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.wf-ssp .wf-ssp__slide, .wf-ssp .wf-ssp__img, .wf-ssp .wf-ssp__content > * { transition: none !important; animation: none !important; }
}
