/* Réinitialisation de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base page */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #141414;
  color: #fff;
}

/* --------- CLEAN PERMANENT TOP NAV ------------- */
:root {
  --pink-soft: #ff94d9;
  --icon-menu-height: 110px;
  --account-bar-height: 64px;
  --account-icon-gap: 6px;
  --top-menu-height: var(--icon-menu-height);
  --chrome-shift: 0px;
}

body {
  padding-top: var(--top-menu-height);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.is-guest {
  --top-menu-height: calc(var(--account-bar-height) + var(--account-icon-gap) + var(--icon-menu-height));
}

body.is-member {
  --top-menu-height: var(--icon-menu-height);
}

.top-shell {
  position: relative;
  z-index: 5000;
}

.top-shell::before {
  content: "";
  position: fixed;
  z-index: 1;
  inset: 0 0 auto 0;
  height: var(--top-menu-height);
  background: rgba(25, 4, 16, .98);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .26);
  pointer-events: none;
}

.join-menu {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--account-bar-height);
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(14, 3, 10, .99);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .22);
  isolation: isolate;
  overflow: hidden;
}

body.is-member .join-menu {
  display: none !important;
}

.top-button,
.join-menu .top-button {
  min-width: 104px;
  min-height: 38px;
  padding: 8px 20px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
  transform: none !important;
  flex: 0 0 auto;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 999px;
  color: #111;
  background: #eae0e0;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  visibility: visible !important;
  opacity: 1 !important;
  transition: filter .16s ease;
}

.top-button:hover {
  filter: brightness(1.08);
}

.join-menu .login-button {
  color: #fff;
  border-color: #42c86b;
  background: linear-gradient(180deg, #42c86b, #258b45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.join-menu .join-button {
  color: #fff;
  border-color: #ff3b45;
  background: linear-gradient(180deg, #ff3b45, #c41520);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.top-icon-menu {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 10px;
  height: var(--icon-menu-height);
  display: flex;
  align-items: stretch;
  gap: 1px;
}

body.is-guest .top-icon-menu {
  top: calc(var(--account-bar-height) + var(--account-icon-gap));
}

.top-icon-link {
  width: 110px;
  height: 100%;
  padding: 6px 4px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: rgba(255, 255, 255, .68);
  text-decoration: none;
  border-radius: 16px;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}

.top-icon-link:hover {
  transform: translateY(-1px) scale(1.025);
  color: #fff;
  background: rgba(255, 255, 255, .045);
}

.top-icon-link img {
  width: 108px;
  height: auto;
  max-height: 81px;
  object-fit: contain;
  filter: brightness(.82) saturate(.9);
  transition: filter .18s ease, transform .18s ease;
}

.top-icon-label {
  display: block;
  margin-top: -1px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.top-icon-link:hover img {
  filter: brightness(1.04) saturate(1.05);
}

.top-icon-link.is-active {
  color: var(--pink-soft);
}

.top-icon-link.is-active img {
  filter:
    brightness(1.12)
    saturate(1.15)
    drop-shadow(0 0 5px rgba(255, 105, 210, .98))
    drop-shadow(0 0 12px rgba(255, 71, 190, .82))
    drop-shadow(0 0 24px rgba(255, 46, 174, .54));
}

.top-shell::before,
.top-icon-menu,
.join-menu {
  transform: translateY(var(--chrome-shift));
  transition: none !important;
  will-change: transform;
}

@media (max-width: 900px) {
  :root {
    --icon-menu-height: 102px;
    --account-bar-height: 46px;
    --account-icon-gap: 3px;
  }

  .join-menu,
  #menuJOIN.join-menu {
    padding: 0 10px !important;
    gap: 6px;
  }

  .top-button,
  .join-menu .top-button {
    min-width: 80px;
    min-height: 30px;
    padding: 6px 11px;
    font-size: 10px;
  }

  .top-icon-menu {
    left: 0;
    right: 0;
    width: 100%;
    justify-content: space-around;
    gap: 0;
  }

  .top-icon-link {
    width: 33.333%;
    min-width: 0;
    padding-right: 2px;
    padding-left: 2px;
  }

  .top-icon-link img {
    width: min(96px, 27vw);
    max-height: 72px;
  }

  .top-icon-label {
    font-size: 9px;
  }
}


/* Mobile: keep the new header at true device scale, but reproduce the old
   ~980px Quests canvas for the page content only. */
.quests-legacy-content {
  width: 100%;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

@media (max-width: 900px) {
  .quests-legacy-content {
    width: 980px;
    zoom: var(--quests-content-scale, .4);
  }
}

img {
  user-select: none;      /* Empêche la sélection de l'image */
  -webkit-user-drag: none; /* Empêche le glisser-déposer (Chrome/Safari) */
  pointer-events: auto;    /* Laisse les événements de clic fonctionner */
}

/* Pop-up SONDAGE centré en haut et en bas */
.popup-overlay {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    color: black;
    background-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Préfixe pour Safari */
    border-radius: 10px;
    box-shadow: 0px 5px 20px rgba(3, 3, 3, 0.75);
    text-align: center;
    padding: 20px;
    z-index: 10000;
    display: none;
}

.popup-content input[type="text"] {
  width: 70%;             /* plus large */
  padding: 10px 12px;     /* plus d’espace intérieur */
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-right: 10px;
  box-sizing: border-box;
}
.popup-content button {
  padding: 10px 16px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background-color: #e1306c;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}

.popup-content button:hover {
  background-color: #c72e63;
}

#instaForm, #XForm {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

#emailForm.form-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

#emailForm input {
  width: 90%;
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

#emailForm button {
  padding: 10px 30px;
  font-size: 16px;
  background-color: #28a745;
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#emailForm button:hover {
  background-color: #218838;
}


/* Style pour les sections du formulaire */
.survey-section {
    margin-bottom: 15px;
}

/* Espacement entre les boutons radio */
.survey-section label {
    display: block;
    margin: 5px 0;
    font-size: x-large;
}

/* Conteneur des options */
.survey-options {
    display: flex;
    width: 100%;
    margin-top: 5px;
    overflow: hidden; /* Assure que les bords restent bien nets */
    font-size: large;
}

/* Options stylisées */
.option {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.5); /* Pour éviter les espaces entre */
}


/* Effet de survol */
.option:hover {
    background-color: rgba(255, 255, 255, 0.63);
}

/* Option sélectionnée */
.option.selected {
     background: linear-gradient(to right, #f50b70 0%, #ef73a9 100%);
    color: white;
}


/* Contenu du Pop-up */
.popup-content {
    color: black;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

/* Bouton de fermeture */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: white;
}

/* Styles pour les boutons radio */
input[type="radio"] {
    margin: 5px;
}

/* Bouton de soumission */
button[type="submit"] {
    background: red;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
}

button[type="submit"]:hover {
    background: darkred;
}

.survey-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.progress-step {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 0px;
    background: rgba(255, 255, 255, 0.3);
    font-weight: bold;
    cursor: default;
}

.progress-step.active {
    background: blue;
    color: white;
}

/* Premier élément arrondi à gauche */
.option:first-child, .progress-step:first-child {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

/* Dernier élément arrondi à droite */
.option:last-child , .progress-step:last-child {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}


.survey-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

button {
    padding: 10px 40px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
}

#nextBtn {
    background: red;
    color: white;
}

#nextBtn:hover {
    background: darkred;
}

#submitBtn {
    background: green;
    color: white;
}

#submitBtn:hover {
    background: darkgreen;
}


/* POPUP REWARD */
.reward-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  display: none;
  z-index: 9999;
}

.reward-box {
  background: #111;
  border: 2px solid #ff9800;
  padding: 30px 50px;
  border-radius: 12px;
  text-align: center;
  color: white;
  box-shadow: 0 0 40px rgba(255, 152, 0, 0.6);
  animation: popIn 0.4s ease, glow 1.5s infinite alternate;
}

@keyframes popIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes glow {
  from { box-shadow: 0 0 10px rgba(255,152,0,0.4); }
  to   { box-shadow: 0 0 30px rgba(255,152,0,0.9); }
}

.reward-fire {
  font-size: 40px;
  margin-bottom: 10px;
  animation: flameBounce 0.8s ease infinite alternate;
}


.reward-flames {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

.reward-flames span {
  font-size: 30px;
  filter: grayscale(1);
  opacity: 0.25;
  transform: scale(0.9);
  transition: all 0.2s ease;
}

/* flammes déjà gagnées */
.reward-flames span.lit {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1);
}

/* VIDEOS et POSTER */

 /* Classe qui floute */
.blur-video {
  filter: blur(8px);
}

.tableModelBar{
  display: block;
  width: 100%;
   border-spacing: 0px; 
}

.tablePoster{
  width: 200px;
  height: 55px;
  vertical-align: top;
  padding: 0px;
}


.main-header h1 {
  font-size: 2rem;
  margin: 0;
}

/* Chaque bloc de rangée */
.movie-row {
  margin: 20px 0;
  padding: 0 20px;

  overflow: visible;
  position: relative;
}

.movie-row h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Conteneur horizontal défilant */
.row-container {
  margin-top: 5px;
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;              /* Espace horizontal entre posters */
  overflow-x: auto;       /* Scroll horizontal */
  overflow-y: hidden;     /* empêche le scroll vertical */
  -webkit-overflow-scrolling: touch; /* pour un scrolling fluide sur iOS */
  padding-bottom: 10px;   /* Un petit padding en bas */
  scrollbar-width: none;
}

/* Masquer la barre de défilement dans Chrome/Safari */
.row-container::-webkit-scrollbar {
  display: none;
}

/* Pour les écrans d'ordinateur (min-width: 1024px), afficher la scrollbar sur hero-row et mini-row */
@media (min-width: 1024px) {
  .hero-row .row-container,
  .normal-row .row-container,
  .mini-row .row-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.5) transparent;
  }
  .hero-row .row-container::-webkit-scrollbar,
  .normal-row .row-container::-webkit-scrollbar,
  .mini-row .row-container::-webkit-scrollbar {
    display: block;
    height: 8px; /* hauteur de la scrollbar horizontale */
  }
  .hero-row .row-container::-webkit-scrollbar-thumb,
  .normal-row .row-container::-webkit-scrollbar-thumb,
  .mini-row .row-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 5px;
  }
  .hero-row .row-container::-webkit-scrollbar-track,
  .normal-row .row-container::-webkit-scrollbar-track,
  .mini-row .row-container::-webkit-scrollbar-track {
    background: transparent;
  }
}

/* --------- POSTERS 3D  ------------- */
.poster3D-card, .poster3DHero-card {
  width: 250px;
  height: 500px;
  perspective: 2500px;
  cursor: pointer;
  display: inline-block;
  margin-top: 0px;
  margin-bottom: 0px;
}

.poster3DHero-card {
  width: 300px;
  height: 600px;
}


.poster3D-inner {
  position: relative;
  width: 250px;
  height: 500px;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1.2);
  transform-style: preserve-3d;
}

.poster3DHero-inner {
  position: relative;
  width: 300px;
  height: 600px;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1.2);
  transform-style: preserve-3d;
}	
  
  
  
.poster3D-card.flipped .poster3D-inner {
  transform: rotateY(180deg);
}

.poster3DHero-card.flipped .poster3DHero-inner {
  transform: rotateY(180deg);
}

.poster3D-front,
.poster3D-back {
  position: absolute;
  width: 250px;
  height: 500px;
  backface-visibility: hidden;
}


.poster3DHero-front,
.poster3DHero-back {
  position: absolute;
  width: 300px;
  height: 600px;
  backface-visibility: hidden;
}


.poster3D-back, .poster3DHero-back {
  transform: rotateY(180deg);
  background: #111;
  color: #fff;
  border-radius: 15px;
  padding: 0px;
  box-sizing: border-box;
}

.poster3D-back .back-link, .poster3DHero-back .back-link  {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
}


/* POSTERS BACK */
.bandeauTop{
  z-index: 20;
  position: absolute; 
  top: 10px; 
  left: 10px; 
  right: 10px; 
  height: auto; 
  background: rgba(255, 255, 255, 0.7); 
  backdrop-filter: blur(10px); 
  color: rgb(0, 0, 0); 
  text-align: center; 
  line-height: 35px; 
  font-size: 18px; 
  font-weight: bold; 
  border-radius: 5px;
}

.creditRed {
  color: red;
}


.backUnlockedOverlay,
.backLockedOverlay {
  z-index: 10;
  opacity: 1;
  padding: 5px;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  background-color: red;
  border-radius: 40px;
  border: 1px solid white;
}
  
  
    
/* --------- POSTERS  ------------- */

.bandeauAvailable{
  position: absolute;
  text-align: center;
  top:60%;
  left:0px;
  width: 100%;
  padding: 5px 0px;
  height: 50px;
  color: red;
  font-weight: 400;
  margin: 0px 0px 5px 3px;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 7;
}

.locked, 
.lockedOverlay, 
.unlockDot,
.unlockedOverlay {
  position: absolute;  /* Positionnement par rapport au .poster */
  z-index: 10;
  opacity: 1;
  width: 40px;
  height: 40px;
  top: 50%;    /* Centré verticalement dans le poster */
  left: 50%;   /* Centré horizontalement dans le poster */
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  background-color: red;
  border-radius: 40px;
  border: 1px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}


.unlockWrap {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.unlockedMini {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.85);
    box-shadow:
        0 8px 22px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.unlockedPic {
    width: 34px;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.35));
}


.rookieBox {
  min-width: 74px;
  margin-top: 100px;
  padding: 7px 8px 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(83,163,33,.96), rgba(50,110,18,.96));
  border: 1px solid rgba(255,255,255,.8);
  box-shadow:
    0 6px 16px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.16);
  text-align: center;
}

.miniProgress {
  width: 58px;
  height: 7px;
  margin: 0 auto 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0,0,0,.26);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.25);
}

.miniProgress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ecffe6, #ffffff);
  box-shadow: 0 0 8px rgba(255,255,255,.25);
}

.miniPercent {
  margin-top: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.unlockLabel {
  margin-top: 100px;
  display: inline-flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-width: 108px;
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow:
    0 4px 12px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.12);
}

.badge-finisher {
 background: linear-gradient(180deg, rgba(83,163,33,.96), rgba(50,110,18,.96));
  border: 1px solid rgba(255,255,255,.8);
  box-shadow:
    0 6px 16px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.16);
  color: white;
}

.badge-gentleman {
  background: linear-gradient(135deg, #aaaaaa 0%, #ffffff 100%);
  color: #515151;
  border-color: rgba(219, 219, 219, 1);
}

.badge-goodlover {
  background: linear-gradient(135deg, #ffe27a, #a85b00);
  color: #1c0d00;
  border-color: rgba(255,240,170,.6);
  text-shadow: 0 1px 1px rgba(255,255,255,.35);
}

.badge-sexgod {
  background: linear-gradient(135deg, #ffe27a, #1b1200 55%, #000);
  color: #ffeeb0;
  border-color: rgba(255,230,150,.75);
  box-shadow:
    0 0 10px rgba(255,210,90,.3),
    inset 0 1px 0 rgba(255,255,255,.15);
}

  
.btnLocked, .btnUnlocked {
  /* position:absolute intentionally disabled in legacy UI */
  z-index: 10;
  opacity: 1;
  width: 40px;
  height: 40px;
  top: 50%;    /* Centré verticalement dans le poster */
  left: 50%;   /* Centré horizontalement dans le poster */
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  background-color: red;
  border-radius: 40px;
  border: 1px solid white;
}


.unlockDot,
.unlockedOverlay {
  background: linear-gradient(180deg, rgba(83,163,33,.96), rgba(50,110,18,.96));
 }

.locked,
.lockedOverlay {
  background-color: red;
}

.lockedPic,
.unlockedPic,
.lockedPicOverlay,
.unlockedPicOverlay {
  height: 30px;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.backOverlay{
  z-index: 20;
    width: 130px;
    font-family: 'Montserrat', sans-serif;
    }
   
/* POSTERS */
.poster {
  position: relative;
  flex: 0 0 auto;         /* Empêche la compression en flex */
}

/* SEARCH ENGINE */
/* Compteur de quests */
.quest-count {
  margin-left: 10px;
  font-size: 20px;
  font-weight: 600;
  opacity: .7;
  transition: transform .15s ease;
}

.quest-count.bump{
  transform: scale(1.15);
}


.filter-chips { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:8px 0 6px; }
.filter-chips .group-title { font-weight:700; font-size:12px; letter-spacing:.6px; margin-right:6px; opacity:.85; }
.chip {
  appearance:none; border:none; cursor:pointer; user-select:none;
  padding:6px 18px; border-radius:999px;
  background:rgba(255,255,255,0.27);
  color:#fff; font:600 35px/1 Montserrat, sans-serif;
  border:1px solid rgba(255,255,255,1);
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

.chipUnlock{
  background:rgba(49, 162, 45, 0.3);
}
.chipLock{
  background:rgba(255, 46, 46, 0.3);
}

.chip:hover { transform: translateY(-1px); }
.chip.active {
  background:rgba(255,255,255,0.8);
  border-color:rgba(255,255,255,1);
  box-shadow:0 2px 12px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.25);
}

.chipUnlock.active{
  background:rgba(49, 162, 45, 1);
}

.chipLock.active{
  background:rgba(255, 46, 46, 1);
}


.chipLock4 {
  height: 30px;
  width: 30px;
}

#resetQuestFilters{
  color:#fff; font:400 20px/1 Montserrat, sans-serif;
}


.filterHeader { display:flex; align-items:center; gap:10px; margin-bottom:20px; }
.filterRow { display:flex; align-items:center; gap:10px; margin:12px 0; }
.filterRow label { width:100px; font-weight:700; font-size:17px; letter-spacing:.6px; opacity:1; }

.btnSort {
  width: 160px;
  margin: 3px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.06));
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition: background-color .2s;
}

.prettySelect {
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  width:150px; padding:8px 34px 8px 12px; border-radius:10px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.25); color:#fff;
  font:600 13px/1 Montserrat, sans-serif; cursor:pointer;
  position:relative;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.05)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23fff' d='M9.6.8a1 1 0 0 0-1.4 0L5 4 1.8.8A1 1 0 0 0 .4 2.2l4 4a1 1 0 0 0 1.4 0l4-4A1 1 0 0 0 9.6.8z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 10px center, 0 0;
}

.prettySelect:focus { outline: none; border-color: rgba(255,255,255,.45); }
.prettySelect option { color:#111; }

.questFilterWrapper{
  margin: 15px 0 25px;
  padding: 10px 15px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}


.posterHeroImg {
   content-visibility: auto;
  height: 600px;
  border-radius: 10px;
  border: 2px solid white;
  position: relative;
}

.unselected {
  opacity: 0.4;
}

/* Autres rangées (normal-row) : 250x500 */
.normal-row .poster {
  width: 250px;
  height: 500px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

/* Petites rangées (small-row) : 150x300 */
/* On ajoute position: relative pour permettre le positionnement du bandeau et la shake animation */
.small-row .poster {
  width: 150px;
  height: 300px;
  background-color: #555;
  flex: 0 0 auto;
  transition: transform 0.2s ease, left 0.1s ease;
  position: relative;
}

.top-row{
margin-top: 80px;
margin-bottom: 0px;
}


.promoBanner {
  position: absolute;
  bottom: 25%; /* décalage depuis le bas */
  left: 5px;
  right: 5px;
  height: 85px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: red;
  font-size: 25px;
  font-weight: bold;
  border-radius: 5px;
  
  display: flex;              /* active flexbox */
  align-items: center;        /* centre verticalement */
  justify-content: center;    /* centre horizontalement (si nécessaire) */
  text-align: center;
  padding: 5px;
}


.coming-date {
  position: absolute;
  z-index: 3;
  left: 7px;
  right: 7px;
  bottom: 112px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(38, 10, 31, .74), rgba(8, 5, 10, .90));
  backdrop-filter: blur(10px) saturate(1.25);
  -webkit-backdrop-filter: blur(10px) saturate(1.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 8px 20px rgba(0, 0, 0, .4),
    0 0 18px rgba(255, 73, 181, .18);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}

/* Compte à rebours de la toute prochaine quête */
.coming-next-poster.is-next-release::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 116, 210, .75),
    inset 0 -90px 60px rgba(5, 2, 8, .42),
    0 0 22px rgba(255, 73, 181, .25);
}

.coming-countdown {
  position: absolute;
  z-index: 3;
  left: 7px;
  right: 7px;
  bottom: 90px;
  min-height: 88px;
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(38, 10, 31, .74), rgba(8, 5, 10, .90));
  backdrop-filter: blur(10px) saturate(1.25);
  -webkit-backdrop-filter: blur(10px) saturate(1.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 8px 20px rgba(0, 0, 0, .4),
    0 0 18px rgba(255, 73, 181, .18);
}

.coming-countdown-topdate {
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
}

.coming-countdown-label {
  margin: 3px 0 4px;
  color: #ff9ce0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

.coming-countdown-value {
  white-space: nowrap;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}

.coming-countdown.is-live {
  border-color: rgba(126, 255, 171, .7);
  background: linear-gradient(180deg, rgba(24, 99, 54, .82), rgba(6, 42, 22, .92));
  box-shadow: 0 0 22px rgba(80, 255, 145, .3);
}

/* -favorite quests */
.questCardInner{
  position: relative;
}
.quest-fav-heart{
  position:absolute;
  top:60px;
  left:0px;
  width:90px;
  height:90px;
  background:url('/IMAGES/heart_empty1.png') center center / 55px 55px no-repeat;
  cursor:pointer;
  opacity:.9;
  transition:transform .15s, opacity .15s;
  z-index:50;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.is-hidden-on-flip {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.quest-fav-heart:hover{
  transform:scale(1.08);
  opacity:1;
}

.quest-fav-heart:active{
  transform:scale(.92);
}

.quest-fav-heart.active{
  background-image:url('/IMAGES/heart_full1.png');
}

.questFavCountBadge{
  position:absolute;
  top:30px;
  left:65px;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  background:rgba(0,0,0,.55);
  color:#fff;
  border:1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(6px);
  z-index:30;
  pointer-events:none;
}

/* -texte presentation models */
.overlay-text{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(169, 24, 52);
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
  overflow: hidden;          /* masque le contenu qui déborde */
  word-wrap: break-word;     /* permet de couper les mots trop longs */
  display: inline;
  font-size: x-large;
}

.overlayName{
  font-size: xx-large;
    font-weight: bold;
}


/* Pour les vignettes introductives */
.posterSmallIntro {
  height: 300px;
}

.posterIntro, .posterBirthday, .poster { 
margin-top: 0px;
margin-bottom: 10px;
}

.posterIntroSmallImg {
  height: 300px;
  border: 1px solid white;
  border-radius: 10px;
}

.todoList {
  height: 300px;
  border: 1px solid white;
  border-radius: 10px;
  padding: 15px;
  align-content: center;
}

.posterIntroImg {
   height: 500px;
  border-radius: 10px;
  border: 2px solid white;
}

/* Overlay vidéo */
.overlay-video {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  border: 2px solid white;
  border-radius: 10px;
width: 300px;
height: 600px;
}

/* Bouton PLAY */
.play-button {
  font-family: Arial, sans-serif;
}


/* DUEL */

#duelContainer{
  width: 350px;
}

.duelBox{
  background: rgba(0,0,0,0.35);
  border-radius: 14px;
  padding: 10px;
  border: 1px solid white;
}

.duelTitle{
  font-weight: 800;
  text-align:center;
  margin-bottom: 5px;
}

.duelChoices{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 5px;
}

.duelGirl{
  width: 65%;
  cursor:pointer;
  text-align:center;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.duelGirl img{
  width:100%;
  border-radius: 12px;
  display:block;
}

.duelName{
  margin-top: 8px;
  opacity:.9;
  font-weight:600;
  font-size: 14px;
}

.duelGirl:hover{
  transform: scale(1.04);
  box-shadow: 0 0 18px rgba(255,0,150,.35);
}

.vs{
  font-weight:900;
  opacity:.55;
  font-size: 18px;
}


.duelWinner{
  transform: scale(1.06);
  box-shadow: 0 0 24px rgba(0,255,150,.25);
}

.duelLoser{
  opacity: .35;
  transform: scale(.97);
}

/* --------- SWIPE & PLAY ------------- */

.swipeNplaySection {
  margin: 20px;
}

.swipeNplayLink {
  display: block;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
}

.swipeNplayVideo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* Mobile : prend réellement toute la largeur du canvas 980px */
@media (max-width: 900px) {
  .swipeNplayLink {
    width: 100%;
    max-width: none;
  }
}
/* --------- LAST REWARDS TICKER ------------- */
.rewardTickerSection {
  display: flex;
  align-items: stretch;
  width: calc(100% - 40px);
  min-height: 58px;
  margin: 8px 20px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 116, 210, .42);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 50%, rgba(255, 89, 201, .16), transparent 30%),
    linear-gradient(180deg, rgba(31, 20, 31, .97), rgba(10, 8, 12, .98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 10px 30px rgba(0,0,0,.24),
    0 0 20px rgba(255,73,181,.08);
}

.rewardTickerLabel {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  white-space: nowrap;
  color: #ff86d8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  border-right: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(180deg, rgba(255,73,181,.19), rgba(255,73,181,.07));
  box-shadow: 12px 0 24px rgba(0,0,0,.28);
}

.rewardTickerGift {
  font-size: 22px;
  filter: drop-shadow(0 0 8px rgba(255, 190, 90, .32));
}

.rewardTickerViewport {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35px, #000 calc(100% - 35px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 35px, #000 calc(100% - 35px), transparent 100%);
}

.rewardTickerTrack {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: rewardTickerMove 34s linear infinite;
}

.rewardTickerSection:hover .rewardTickerTrack {
  animation-play-state: paused;
}

.rewardTickerGroup {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  padding-right: 32px;
}

.rewardTickerItem,
.rewardTickerTotal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
}

.rewardTickerTime {
  color: rgba(255,255,255,.48);
  font-weight: 500;
}

.rewardTickerItem strong {
  color: #fff;
  font-weight: 800;
}

.rewardTickerItem b,
.rewardTickerTotal b {
  color: #ffd36d;
  font-weight: 900;
}

.rewardTickerArrow {
  color: #ff76d1;
  font-size: 19px;
  line-height: 1;
}

.rewardTickerSeparator {
  display: inline-flex;
  align-items: center;
  color: rgba(255,116,210,.42);
  font-size: 10px;
}

.rewardTickerTotal {
  color: rgba(255,255,255,.66);
}

@keyframes rewardTickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .rewardTickerTrack {
    animation: none;
  }

  .rewardTickerViewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* =========================================================
   QUEST CARDS — NO FLIP / VIDEO PREVIEW
   On garde visuellement les infos de l'ancienne face BACK.
   ========================================================= */
.poster3D-card.qwinkyPreviewCard,
.poster3DHero-card.qwinkyPreviewCard {
  perspective: none !important;
  transform: none !important;
  cursor: pointer;
}

.qwinkyPreviewCard .questCardInner,
.qwinkyPreviewCard .questPreviewPoster {
  position: relative;
}

.qwinkyPreviewCard .questPreviewPoster {
  overflow: hidden;
  border-radius: 10px;
}

.qwinkyPreviewCard .questPreviewFallback {
  display: block;
}

.qwinkyPreviewCard .questPreviewVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  border: 2px solid #fff;
  border-radius: 10px;
}

/* Infos normales de la face avant : lock, badge, progression, date, etc. */
.qwinkyPreviewCard .questPreviewStatic {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* Infos affichées uniquement pendant le teaser. */
.qwinkyPreviewCard .questPreviewInfo {
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

.qwinkyPreviewCard.is-previewing .questPreviewInfo {
  opacity: 1;
}

/* Quand le teaser joue, on retire les infos FRONT pour ne pas doubler. */
.qwinkyPreviewCard.is-previewing .questPreviewStatic,
.qwinkyPreviewCard.is-previewing .quest-fav-heart,
.qwinkyPreviewCard.is-previewing .questFavCountBadge {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Bandeau teaser = look exact de l'ancienne face BACK. */
.qwinkyPreviewCard .questPreviewInfo .bandeauTop {
  z-index: 25;
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: auto;
  margin: 0;
  padding: 0 8px;
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #000;
  text-align: center;
  line-height: 35px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 5px;
  text-shadow: none;
  pointer-events: none;
}

.qwinkyPreviewCard .questPreviewInfo .creditRed {
  color: red;
}

/* Bouton central = ancien lock/unlock PLAY de la face BACK. */
.qwinkyPreviewCard .questPreviewPlay.backOverlay {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  z-index: 30;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 40px;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  border: 1px solid #fff;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
  /* IMPORTANT : invisible sur la face avant = totalement non cliquable.
     Sinon le lien PLAY se superpose exactement au cadenas FRONT. */
  pointer-events: none;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
}

.qwinkyPreviewCard.is-previewing .questPreviewPlay.backOverlay {
  pointer-events: auto;
}

.qwinkyPreviewCard .questPreviewPlay.unlockedOverlay {
  background: linear-gradient(180deg, rgba(83,163,33,.96), rgba(50,110,18,.96));
}

.qwinkyPreviewCard .questPreviewPlay.lockedOverlay {
  background: red;
}

.qwinkyPreviewCard .questPreviewPlay .lockedPicOverlay,
.qwinkyPreviewCard .questPreviewPlay .unlockedPicOverlay {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 30px;
  width: auto;
  max-width: 112px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}

/* Les anciens wrappers 3D peuvent rester dans le CSS sans agir. */
.poster3D-card.qwinkyPreviewCard .poster3D-inner,
.poster3DHero-card.qwinkyPreviewCard .poster3DHero-inner,
.poster3D-card.qwinkyPreviewCard .poster3D-front,
.poster3D-card.qwinkyPreviewCard .poster3D-back,
.poster3DHero-card.qwinkyPreviewCard .poster3DHero-front,
.poster3DHero-card.qwinkyPreviewCard .poster3DHero-back {
  transform: none !important;
  backface-visibility: visible !important;
}



/* ==========================================================
   WEEKLY POLL — stable inside the 980px legacy canvas
   No resize-dependent font compensation here: the whole canvas
   is already scaled uniformly by --quests-content-scale.
   ========================================================== */

/* Keep the poll at one fixed intrinsic width in DESIGN pixels.
   max-content prevents flex/shrink-to-fit from recalculating its
   width when the browser viewport changes. */
.posterWrapper.pollWrapper {
  flex: 0 0 max-content;
  width: max-content;
  min-width: max-content;
}

.todoList.pollBox {
  display: block;
  width: max-content;
  min-width: max-content;
  max-width: none;
  box-sizing: border-box;
}

/* Question and result labels define the intrinsic width and never wrap. */
.pollBox .pollQuestion,
.pollBox .pollResultRow {
  white-space: nowrap;
}

/* Fixed DESIGN size. It scales with the rest of the 980px canvas,
   so the poll no longer changes geometry while resizing. */
.pollBox .pollResultRow {
  font-size: 12px;
  line-height: 1.2;
}

.pollBox .pollResultRow b,
.pollBox .pollResultRow span {
  font-size: inherit;
}
