/* Scoped to the shared cover: partner detail panels keep their own layout. */
#leftSide.duo-cover {
  --cover-pink: #ffa5d1;
  position: fixed;
  width: calc(50% - 2rem);
  height: 100vh;
  height: 100svh;
  color: #fff;
  background: #172746;
  /* Brand pink (#e3007e) and blue (#32b5fc) glows keep the dark cover lively. */
  background-image: radial-gradient(ellipse 75% 55% at 0% 0%, rgb(227 0 126 / 45%), transparent 72%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgb(50 181 252 / 32%), transparent 72%),
    linear-gradient(155deg, #5a1660, #3a2470 35%, #1d3f7d 70%, #175a92);
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: auto;
}

#leftSide.duo-cover::after {
  content: "";
  position: absolute;
  display: block;
  inset: 0 0 0 auto;
  width: 24px;
  height: auto;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(7 17 36 / 30%));
  border-right: 1px solid rgb(255 255 255 / 12%);
}

.duo-cover__ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.duo-cover__ambient::before,
.duo-cover__ambient::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.duo-cover__ambient::before {
  width: 560px;
  height: 560px;
  top: -270px;
  left: -240px;
  border: 1px solid rgb(255 196 226 / 10%);
  background: radial-gradient(circle, rgb(227 0 126 / 22%), transparent 70%);
  box-shadow: 0 0 0 55px rgb(255 196 226 / 2.5%), 0 0 0 110px rgb(255 196 226 / 2%);
  animation: duo-cover-drift 18s ease-in-out infinite alternate;
}

.duo-cover__ambient::after {
  width: 430px;
  height: 430px;
  right: -300px;
  bottom: -110px;
  border: 1px solid rgb(164 220 255 / 12%);
  background: radial-gradient(circle, rgb(50 181 252 / 20%), transparent 70%);
  box-shadow: 0 0 0 48px rgb(164 220 255 / 3%), 0 0 0 96px rgb(164 220 255 / 2%);
  animation: duo-cover-drift 22s ease-in-out infinite alternate-reverse;
}

#homeCenter.duo-cover__content {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.2vh, 24px);
  width: 100%;
  height: auto;
  min-height: 100%;
  padding: clamp(24px, 4vh, 48px) clamp(24px, 4vw, 64px);
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
}

.duo-cover__logo-stage {
  position: relative;
  flex-shrink: 0;
  width: clamp(160px, 28vh, 310px);
  max-width: 70%;
  perspective: 850px;
  animation: duo-cover-arrive 700ms ease-out both;
}

.duo-cover__logo-stage::before {
  content: "";
  position: absolute;
  inset: -12% -45%;
  background: radial-gradient(ellipse, rgb(50 181 252 / 26%), rgb(227 0 126 / 9%) 45%, transparent 70%);
  pointer-events: none;
  animation: duo-cover-breathe 5s ease-in-out infinite;
}

.duo-cover__logo-motion picture { display: block; }

.duo-cover__logo-motion {
  transform: rotateX(var(--cover-rotate-x, 0deg)) rotateY(var(--cover-rotate-y, 0deg));
  transition: transform 300ms ease-out;
  transform-style: preserve-3d;
}

.duo-cover__logo {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  filter: drop-shadow(0 1px 0 #cad6e8) drop-shadow(0 2px 0 #8b9eb9)
    drop-shadow(0 3px 0 #425676) drop-shadow(0 14px 12px rgb(5 13 30 / 40%));
  animation: duo-cover-float 6s ease-in-out infinite;
  will-change: transform;
}

.duo-cover__intro { width: 100%; }

/* Arrivée en cascade (annulée d'une page à l'autre : css/transitions.css) */
.duo-cover__logo-stage { animation-delay: 80ms; }

.duo-cover__intro > *,
.duo-cover__previous,
.duo-cover__footer {
  animation: duo-cover-arrive 600ms ease-out both;
}

.duo-cover__intro > .duo-cover__title { animation-delay: 180ms; }
.duo-cover__intro > .duo-cover__description { animation-delay: 260ms; }
.duo-cover__intro > .duo-cover__categories { animation-delay: 320ms; }
.duo-cover__intro > .duo-cover__actions { animation-delay: 380ms; }
.duo-cover__previous { animation-delay: 460ms; }
.duo-cover__footer { animation-delay: 520ms; }

.duo-cover .duo-cover__title {
  margin: 0;
  font-size: clamp(25px, 2.5vw, 39px);
  line-height: 1.22;
  font-weight: 300;
  letter-spacing: -.035em;
  color: #e8f3ff;
}

.duo-cover__title span,
.duo-cover__title strong {
  display: block;
}

.duo-cover__title strong {
  margin-top: 4px;
  font-size: 1.12em;
  font-weight: 600;
  color: var(--cover-pink);
}

.duo-cover .duo-cover__description {
  margin: 16px 0 8px;
  font-size: 16px;
  line-height: 1.6;
  color: #d6e4f3;
}

.duo-cover__description strong { color: #fff; font-weight: 600; }

/* Le nombre compte de 0 à sa valeur à l'arrivée (js/cover.js) : largeur fixe pour que rien ne bouge */
.duo-cover__count {
  display: inline-block;
  min-width: 2ch;
  text-align: right;
  font-variant-numeric: lining-nums tabular-nums;
}

/* Catégories : un mot à la fois ; la liste entière reste lue par les lecteurs d'écran */
.duo-cover .duo-cover__categories {
  margin: 0 0 18px;
  color: #d6e4f3;
  font-size: 14px;
  line-height: 1.5;
}

.duo-cover__categories-list {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.duo-cover__rotator {
  display: inline-block;
  min-width: 8.5em;
  padding: 3px 14px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  font-weight: 600;
  transition: opacity 240ms ease, transform 240ms ease;
}

.duo-cover__rotator.is-out { opacity: 0; transform: translateY(-6px); }

.duo-cover__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.duo-cover .duo-cover__cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  max-width: 100%;
  padding: 8px 20px 8px 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e3007e, #c2006b);
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 5px 0 rgb(98 0 54 / 55%), 0 14px 30px rgb(227 0 126 / 26%);
  transition: transform 180ms ease, box-shadow 180ms ease;
  position: relative;
  overflow: hidden;
}

/* Reflet qui traverse le bouton de temps en temps */
.duo-cover__cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 36%) 50%, transparent);
  transform: translateX(-140%) skewX(-18deg);
  pointer-events: none;
  animation: duo-cover-shine 6s ease-in-out 1.6s infinite;
}

.duo-cover__cta svg { transition: transform 180ms ease; }

.duo-cover__price {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(80 0 44 / 32%);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.duo-cover .duo-cover__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  color: #e6f0fc;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(230 240 252 / 35%);
  text-underline-offset: 5px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.duo-cover__anniversary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 240px;
  max-width: 100%;
}

.duo-cover__anniversary figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.duo-cover__anniversary img { width: 76px; height: 76px; object-fit: contain; }
.duo-cover__anniversary span { flex: 1; height: 1px; background: rgb(213 228 244 / 20%); }

.duo-cover__anniversary figcaption {
  color: #c9d8ea;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.duo-cover__anniversary sup { font-size: .75em; text-transform: none; }

/* Rappel discret pour les détenteurs du coffret précédent */
.duo-cover .duo-cover__previous {
  margin: 0;
  color: #c9d8ea;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

#socialButtons.duo-cover__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.duo-cover .duo-cover__socials { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }

.duo-cover__socials a,
.duo-cover__video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgb(220 234 255 / 22%);
  border-radius: 999px;
  background: rgb(255 255 255 / 5%);
  color: #e6f0fc;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.duo-cover__video { padding: 0 16px; }

.duo-cover a:focus-visible,
.duo-cover button:focus-visible {
  /* The legacy theme removes outlines with !important. */
  outline: 3px solid #fff !important;
  outline-offset: 5px;
}

#scrollIndicator.duo-cover__discover {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  color: #d6e4f3;
  font-size: 12px;
  text-decoration: none;
}

/* Next-edition announcement (toggled in leftSide.php) */
.duo-cover .duo-cover__news {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 16px 7px 12px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  animation: duo-cover-arrive 700ms ease-out both;
}

.duo-cover__news sup { font-size: .7em; }

/* Sortie d'une nouvelle édition : pastille blanche bien visible sur la couverture sombre */
.duo-cover .duo-cover__news--launch {
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border: 0;
  background: #fff;
  color: #1f2d4f;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgb(5 13 30 / 35%);
}

.duo-cover__news-tag {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e3007e;
  color: #fff;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: duo-cover-pulse 2s ease-out infinite;
}

.duo-cover__news-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5fae;
  animation: duo-cover-pulse 2s ease-out infinite;
}

@keyframes duo-cover-pulse {
  0% { box-shadow: 0 0 0 0 rgb(255 95 174 / 60%); }
  70%, 100% { box-shadow: 0 0 0 8px rgb(255 95 174 / 0%); }
}

/* Petites lumières qui montent en fond */
.duo-cover__light {
  position: absolute;
  left: var(--x);
  bottom: -40px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgb(255 140 200 / 85%);
  filter: blur(2px);
  opacity: 0;
  animation: duo-cover-rise var(--time) linear var(--delay) infinite;
  will-change: transform, opacity;
}

.duo-cover__light:nth-child(even) { background: rgb(130 205 255 / 85%); }

@keyframes duo-cover-rise {
  0% { transform: translate3d(0, 0, 0) scale(.8); opacity: 0; }
  12%, 82% { opacity: .5; }
  100% { transform: translate3d(28px, -112vh, 0) scale(1.2); opacity: 0; }
}

@keyframes duo-cover-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes duo-cover-breathe {
  0%, 100% { opacity: .75; transform: scale(.95); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes duo-cover-shine {
  0%, 80% { transform: translateX(-140%) skewX(-18deg); }
  100% { transform: translateX(340%) skewX(-18deg); }
}

@keyframes duo-cover-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes duo-cover-drift {
  to { transform: translate(36px, 28px) scale(1.08); }
}

@media (hover: hover) and (pointer: fine) {
  .duo-cover__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 rgb(98 0 54 / 55%), 0 18px 34px rgb(227 0 126 / 34%);
  }
  .duo-cover__cta:hover svg { transform: translateX(4px); }
  .duo-cover .duo-cover__link:hover {
    color: #fff;
    text-decoration-color: currentColor;
  }
  .duo-cover__socials a:hover,
  .duo-cover__video:hover {
    color: #fff;
    border-color: rgb(220 234 255 / 45%);
    background: rgb(255 255 255 / 12%);
  }
}

@media (min-width: 1024px) {
  #homeCenter.duo-cover__content {
    padding-bottom: calc(clamp(24px, 4vh, 48px) + var(--cover-cookie-inset, 0px));
  }
  /* Centre the main block and keep socials/video anchored at the bottom. */
  .duo-cover .duo-cover__news,
  .duo-cover__logo-stage,
  #socialButtons.duo-cover__footer { margin-top: auto; }
  .duo-cover .duo-cover__news + .duo-cover__logo-stage { margin-top: 0; }
}

@media (max-width: 1023px) {
  #leftSide.duo-cover {
    position: relative !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
  }
  #leftSide.duo-cover::after {
    inset: auto 0 0;
    width: auto;
    height: 14px;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
    background: linear-gradient(transparent, rgb(7 17 36 / 20%));
  }
  #homeCenter.duo-cover__content {
    gap: 16px;
    min-height: 0;
    padding: max(28px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  }
  .duo-cover__logo-stage { width: clamp(150px, 46vw, 220px); animation-duration: 350ms; }
  .duo-cover__intro { animation-duration: 350ms; animation-delay: 50ms; }
  .duo-cover .duo-cover__title { font-size: clamp(26px, 5.5vw, 34px); }
  .duo-cover .duo-cover__description { margin: 12px 0 8px; font-size: 15px; }
  .duo-cover .duo-cover__categories { margin-bottom: 16px; }
  .duo-cover__light:nth-child(n + 7) { display: none; }
  .duo-cover__anniversary img { width: 64px; height: 64px; }
  #scrollIndicator.duo-cover__discover { display: inline-flex; }
}

@media (max-height: 800px) and (min-width: 1024px) {
  .duo-cover__logo-stage { width: clamp(130px, 23vh, 200px); }
  /* The announcement takes some height: slightly smaller logo so the cover still fits */
  .duo-cover .duo-cover__news + .duo-cover__logo-stage { width: clamp(124px, 21vh, 190px); }
  .duo-cover .duo-cover__description { margin: 10px 0 6px; }
  .duo-cover .duo-cover__categories { margin-bottom: 14px; }
  .duo-cover__anniversary img { width: 58px; height: 58px; }
}

@media (max-height: 650px) and (min-width: 1024px) {
  #homeCenter.duo-cover__content { gap: 10px; padding-top: 20px; }
  .duo-cover__logo-stage { width: 124px; }
  .duo-cover .duo-cover__title { font-size: 26px; }
  .duo-cover__anniversary img { width: 46px; height: 46px; }
}

@media (hover: none), (pointer: coarse) {
  .duo-cover__logo-stage { animation-duration: 350ms; }
  .duo-cover__intro { animation-duration: 350ms; animation-delay: 50ms; }
}

@media (prefers-reduced-motion: reduce) {
  .duo-cover *, .duo-cover *::before, .duo-cover *::after {
    animation: none !important;
    transition: none !important;
  }
  .duo-cover__logo-motion { transform: none; }
  .duo-cover__light, .duo-cover__cta::after, .duo-cover__rotator { display: none; }
  .duo-cover__categories-list { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
}
