/* Only the “Quelques exemples” section. No site-wide overrides. */
#resultats.tn-examples {
  --tn-card-width: clamp(260px, 26vw, 320px);
  --tn-slot-width: calc(var(--tn-card-width) * .8);
  --tn-ink: #0b1820;
  --tn-lime: #bdf45c;
  padding: 26px 0 40px;
  color: var(--tn-ink);
  overflow: hidden;
  isolation: isolate;
}
#resultats .tn-carousel { position: relative; width: 100%; margin: auto; }
#resultats .tn-stage { position: relative; width: min(100%, 1120px); margin: auto; }
#resultats .tn-stage::before {
  content: ""; position: absolute; inset: 0 14% 0;
  background: radial-gradient(ellipse at center, #bdf45c12, transparent 68%);
  pointer-events: none;
}
#resultats .tn-viewport {
  position: relative;
  display: flex;
  width: 100%;
  height: calc(var(--tn-card-width) * 1.77734375 + 34px);
  margin: 0;
  padding: 10px calc((100% - var(--tn-slot-width)) / 2) 24px;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
  overscroll-behavior-x: contain;
  -webkit-user-select: none;
  user-select: none;
}
#resultats .tn-viewport::-webkit-scrollbar { display: none; }
#resultats .tn-slide {
  position: relative;
  flex: 0 0 var(--tn-slot-width);
  width: var(--tn-slot-width);
  height: calc(var(--tn-card-width) * 1.77734375);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
#resultats .tn-card {
  --tn-scale: .8;
  --tn-angle: 0deg;
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--tn-card-width);
  aspect-ratio: 512 / 910;
  margin: 0;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 20px;
  background: #e4e1d9;
  box-shadow: 0 16px 24px -12px #0b18202e;
  transform: translateX(-50%) perspective(1000px) scale(var(--tn-scale)) rotateY(var(--tn-angle));
  transform-origin: center;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  will-change: transform;
  z-index: 1;
}
#resultats .tn-card[data-position="previous"] { --tn-angle: 11deg; }
#resultats .tn-card[data-position="next"] { --tn-angle: -11deg; }
#resultats .tn-card[data-position="active"] {
  --tn-scale: 1;
  --tn-angle: 0deg;
  border-color: var(--tn-lime);
  box-shadow: 0 0 0 1px var(--tn-lime), 0 18px 29px -13px #0b182038;
  z-index: 3;
}
#resultats .tn-card video,
#resultats .tn-poster {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}
#resultats .tn-poster { z-index: 0; pointer-events: none; -webkit-user-drag: none; }
#resultats .tn-card video { z-index: 1; opacity: 0; background: #e4e1d9; pointer-events: none; }
#resultats .tn-card[data-ready="true"] video { opacity: 1; }
#resultats .tn-select {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: linear-gradient(transparent 69%, #0b182082);
  cursor: pointer;
  color: white;
  -webkit-tap-highlight-color: transparent;
}
#resultats .tn-play {
  display: grid;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid #ffffff35;
  border-radius: 50%;
  background: #0b182075;
  transition: opacity 160ms ease;
}
#resultats .tn-play svg { width: 22px; height: 22px; margin-left: 3px; }
#resultats .tn-card[data-playing="true"] .tn-play { opacity: 0; }
#resultats .tn-caption {
  position: absolute;
  bottom: 27px;
  left: 16px;
  right: 16px;
  text-align: center;
  font: 750 23px/1.2 "Manrope", system-ui, sans-serif;
  text-shadow: 0 1px 8px #0b182030;
}
#resultats .tn-progress {
  position: absolute;
  z-index: 3;
  bottom: 12px;
  left: 16px;
  right: 16px;
  height: 4px;
  border-radius: 8px;
  background: #ffffff50;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}
#resultats .tn-card[data-position="active"] .tn-progress { opacity: 1; }
#resultats .tn-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--tn-lime);
  transform: scaleX(0);
  transform-origin: left;
}
#resultats .tn-open {
  position: absolute;
  inset: auto 16px 67px;
  z-index: 5;
  padding: 12px 16px;
  border-radius: 12px;
  background: white;
  color: var(--tn-ink);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}
#resultats .tn-open[hidden] { display: none !important; }
#resultats .tn-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: min(calc(100% - 32px), 390px);
  min-height: 48px;
  margin: 0 auto;
}
#resultats .tn-arrow {
  display: grid;
  position: absolute;
  top: calc(var(--tn-card-width) * .888671875 - 15px);
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--tn-ink);
  border-radius: 50%;
  padding: 0;
  color: var(--tn-ink);
  background: #f7f8f5;
  cursor: pointer;
  z-index: 5;
  transition: background 160ms ease, transform 160ms ease;
}
#resultats .tn-arrow-prev { left: max(18px, calc(50% - 520px)); }
#resultats .tn-arrow-next { right: max(18px, calc(50% - 520px)); background: var(--tn-lime); border-color: var(--tn-lime); }
#resultats .tn-arrow svg { width: 24px; height: 24px; }
#resultats .tn-counter { font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
#resultats .tn-dots { display: flex; }
#resultats .tn-dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
#resultats .tn-dot::before { content: ""; width: 9px; height: 9px; border-radius: 10px; background: #ccd2cf; transition: width 200ms ease, background 200ms ease; }
#resultats .tn-dot[aria-current="true"]::before { width: 26px; background: var(--tn-lime); }
#resultats .tn-footer { width: min(calc(100% - 32px), 760px); margin: 10px auto 0; text-align: center; }
#resultats .tn-quote {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  max-width: 100%;
  min-height: 52px;
  border-radius: 999px;
  padding: 13px 28px;
  background: var(--tn-lime);
  color: var(--tn-ink);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 800;
  text-decoration: none;
}
#resultats .tn-quote svg { width: 23px; height: 23px; flex-shrink: 0; }
#resultats .tn-note { max-width: 650px; margin: 21px auto 0; color: #59676c; font-size: 13px; line-height: 1.7; }
#resultats .tn-select:focus-visible { outline: 3px solid white; outline-offset: -8px; }
#resultats .tn-arrow:focus-visible,
#resultats .tn-dot:focus-visible,
#resultats .tn-quote:focus-visible { outline: 3px solid #0b1820; outline-offset: 4px; }
#resultats .tn-viewport.is-dragging { scroll-snap-type: none; cursor: grabbing; }
#resultats .tn-viewport.is-dragging .tn-select { cursor: grabbing; }
#resultats .tn-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (hover: hover) {
  #resultats .tn-arrow:hover { transform: scale(1.06); }
  #resultats .tn-quote:hover { background: #b2ed4e; }
}
@media (max-width: 700px) {
  #resultats.tn-examples { --tn-card-width: min(76vw, 340px); --tn-slot-width: calc(var(--tn-card-width) * .8); padding: 12px 0 28px; }
  #resultats .tn-viewport { height: calc(var(--tn-card-width) * 1.77734375 + 26px); padding-top: 6px; padding-bottom: 20px; }
  #resultats .tn-card { top: 0; border-radius: 18px; }
  #resultats .tn-card[data-position="active"] { --tn-scale: 1; }
  #resultats .tn-card[data-position="previous"] { --tn-angle: 7deg; }
  #resultats .tn-card[data-position="next"] { --tn-angle: -7deg; }
  
  #resultats .tn-card:not([data-position="active"]) .tn-caption,
  #resultats .tn-card:not([data-position="active"]) .tn-play { opacity: 0; }
  #resultats .tn-card[data-position="active"] .tn-select { background: none; }
  #resultats .tn-card[data-position="active"] .tn-caption { top: 15px; bottom: auto; right: auto; left: 14px; padding: 8px 13px; border-radius: 24px; background: #0b182095; font-size: 16px; text-shadow: none; }
  #resultats .tn-card[data-position="active"] .tn-caption::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--tn-lime); }
  #resultats .tn-navigation { justify-content: space-between; gap: 8px; }
  #resultats .tn-arrow { position: static; width: 48px; height: 48px; flex-shrink: 0; }
  #resultats .tn-counter { font-size: 14px; }
  #resultats .tn-dot { width: 34px; }
  #resultats .tn-footer { margin-top: 10px; }
  #resultats .tn-quote { width: min(100%, 390px); min-height: 50px; padding: 12px 17px; gap: 12px; font-size: 15px; }
  #resultats .tn-note { margin-top: 18px; }
}
@media (max-width: 359px) {
  #resultats .tn-dot { width: 28px; }
  #resultats .tn-quote { font-size: 14px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #resultats .tn-card, #resultats .tn-arrow, #resultats .tn-dot::before { transition: none; }
}

@supports (height: 100svh) {
  @media (max-width: 700px) and (orientation: portrait) {
    #resultats.tn-examples { --tn-card-width: min(76vw, 340px, calc(72svh * .5626373626)); }
  }
}
