/* ======================================================
   FONT FAMILY — TEKTUR
   Path: fonts/tektur/
   ====================================================== */

/* ---------- REGULAR ---------- */
@font-face {
  font-family: "Tektur";
  src: url("fonts/tektur/Tektur-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- MEDIUM ---------- */
@font-face {
  font-family: "Tektur";
  src: url("fonts/tektur/Tektur-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- SEMIBOLD ---------- */
@font-face {
  font-family: "Tektur";
  src: url("fonts/tektur/Tektur-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- BOLD ---------- */
@font-face {
  font-family: "Tektur";
  src: url("fonts/tektur/Tektur-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- EXTRABOLD ---------- */
@font-face {
  font-family: "Tektur";
  src: url("fonts/tektur/Tektur-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- BLACK ---------- */
@font-face {
  font-family: "Tektur";
  src: url("fonts/tektur/Tektur-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


:root {
  --bg: #0b0c12;
  --panel: #0f111c;
  --card: #17182a;
  --glass: rgba(255, 255, 255, 0.06);
  --txt: #fff;
  --muted: rgba(255, 255, 255, 0.7);
  --accent1: #a84cf8;
  --accent2: #ff3ec9;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}

body {
  position: relative;
  background-color: #000; /* couleur sous l’image */
  color: var(--txt);
  font-family: "Tektur", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  padding-bottom: 120px; /* laisse de la place pour la dock */
}




/* ======================================================
   HIERARCHIE DES LAYERS
   ======================================================
   z-index: -2 → bg-anime (nébuleuse / galaxie)
   z-index: -1 → bg-particle (étoiles / particules)
   z-index:  0 → bg-grid (grille futuriste)
   z-index:  1 → UI (contenu, cartes, filtres)
   z-index:  5 → hero (bannière logo)
   z-index: 20 → tgbar (barre sticky)
   z-index: 30 → dock (navigation)
   z-index: 99 → select-menu (dropdowns)
   z-index: 9999 → gate overlay (sécurité)
   z-index: 99999 → modale produit
   ====================================================== */

/* ======================================================
   BG ANIME — GALAXIE / NÉBULEUSE VIVANTE
   ====================================================== */

.bg-anime {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background:
    radial-gradient(circle at 20% 30%, rgba(18, 17, 18, 0.25), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(12, 12, 14, 0.22), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(13, 13, 15, 0.35), transparent 65%),
    linear-gradient(
      120deg,
      #101012,
      #0a0a0a,
      #141218,
      #0a0a0c
    );

  background-size:
    240% 240%,
    260% 260%,
    300% 300%,
    500% 500%;

  animation:
    galaxyDrift 15s ease-in-out infinite,
    galaxyPulse 6s ease-in-out infinite;
}

/* ======================================================
   BG PARTICLE — ÉTOILES & PARTICULES LUMINEUSES
   ====================================================== */

.bg-particle {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* Étoiles proches (plus brillantes) */
.bg-particle::before {
  content: "";
  position: absolute;
  inset: -30%;

  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 25% 80%, rgba(200,160,255,0.8), transparent 60%),
    radial-gradient(2px 2px at 40% 40%, rgba(255,255,255,0.85), transparent 60%),
    radial-gradient(1.5px 1.5px at 65% 15%, rgba(180,120,255,0.9), transparent 60%),
    radial-gradient(2px 2px at 85% 60%, rgba(255,255,255,0.8), transparent 60%);

  background-size: 160px 160px;
  opacity: 0.95;

  filter: drop-shadow(0 0 6px rgba(180,120,255,0.9));

  animation:
    starDriftFront 36s linear infinite,
    starTwinkle 6s ease-in-out infinite;
}

/* Étoiles lointaines (profondeur) */
.bg-particle::after {
  content: "";
  position: absolute;
  inset: -40%;

  background-image:
    radial-gradient(1px 1px at 15% 60%, rgba(255,255,255,0.5), transparent 70%),
    radial-gradient(1px 1px at 35% 30%, rgba(180,120,255,0.45), transparent 70%),
    radial-gradient(1px 1px at 55% 50%, rgba(255,255,255,0.4), transparent 70%),
    radial-gradient(1px 1px at 75% 40%, rgba(160,100,255,0.5), transparent 70%);

  background-size: 300px 300px;
  opacity: 0.65;

  animation: starDriftBack 30s linear infinite;
}

/* ======================================================
   KEYFRAMES — GALAXIE
   ====================================================== */

@keyframes galaxyDrift {
  0% {
    background-position:
      0% 0%,
      100% 100%,
      50% 50%,
      0% 50%;
  }
  50% {
    background-position:
      100% 50%,
      0% 50%,
      60% 40%,
      100% 50%;
  }
  100% {
    background-position:
      0% 0%,
      100% 100%,
      50% 50%,
      0% 50%;
  }
}

/* @keyframes galaxyPulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.15); }
} */

/* ======================================================
   KEYFRAMES — ÉTOILES
   ====================================================== */

@keyframes starDriftFront {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-220px, 260px, 0); }
}

@keyframes starDriftBack {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(180px, -240px, 0); }
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}


/* contenu au-dessus du calque */
main,
.page,
#app {
  position: relative;
  z-index: 1;
}

/* barre style Telegram */
.tgbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #0a0b12;
  border-bottom: 1px solid #1b1d2c;
  position: sticky;
  top: 0;
  z-index: 20;
}
.tgbar .close {
  color: #7aaaff;
  text-decoration: none;
}
.tgbar .title {
  font-weight: 800;
  letter-spacing: 0.28em;
  font-size: 13px;
}
.tgbar .subtitle {
  font-weight: 600;
  opacity: 0.7;
  letter-spacing: 0;
  font-size: 11px;
  margin-top: 2px;
}
.tgbar .actions {
  opacity: 0.6;
}

/* ticker défilant */
.ticker {
  text-transform: uppercase;
  background: linear-gradient(181deg, #38345429 0%, #2f2d7354 80%, #1b1e254f 100%);
  border-bottom: #dddddd79 1px solid;
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-weight: 600;
  padding: 6px 0;
  overflow: hidden;
}
.ticker span {
  display: inline-block;
  padding-left: 100%;
  white-space: nowrap;
  animation: scroll 14s linear infinite;
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* bannière */
.hero {
    display: flex;
    position: relative;
    z-index: 5;
    padding: 8px 6px;
    perspective: 1400px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ======================================================
   TITLE HERO — CINÉMATIQUE SOBRE
   ====================================================== */

.title-hero {
  margin: 0;
  white-space: nowrap;

  font-family: "Tektur Condensed", "Tektur", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #ffffff;

  /* stabilité totale */
  transform: translateZ(0);
  will-change: filter;

  /* 🎬 animation ciné */
  animation: titleCinePresence 10s ease-in-out infinite;
  animation: logoFloat3D 9s ease-in-out infinite;
}

/* ======================================================
   PRÉSENCE CINÉMATIQUE
   ====================================================== */

@keyframes titleCinePresence {
  0%, 100% {
    filter: contrast(1.02) brightness(0.98) blur(0);
  }

  50% {
    filter: contrast(1.08) brightness(1.04) blur(0.15px);
  }
}


/* ======================================================
   LOGO — BASE STABLE
   ====================================================== */

.hero img {
  width: 50%;
  max-width: 360px;
  margin: 0 auto;
  margin-top: 1.5rem;
  display: block;

  border-radius: 8px;

  transform-style: preserve-3d;
  backface-visibility: hidden;

  will-change: transform, filter;

  /* 🎬 animation cinéma */
  animation: logoFloat3D 9s ease-in-out infinite;
}

/* ======================================================
   ANIMATION 3D CINÉMATIQUE
   ====================================================== */

@keyframes logoFloat3D {
  0% {
    transform:
      translateZ(0)
      rotateX(0deg)
      rotateY(0deg);
    filter: brightness(1) drop-shadow(0 8px 18px rgba(0,0,0,0.55));
  }

  25% {
    transform:
      translateZ(26px)
      rotateX(6deg)
      rotateY(-5deg);
  }

  50% {
    transform:
      translateZ(38px)
      rotateX(-4deg)
      rotateY(6deg);
    filter: brightness(1.05) drop-shadow(0 14px 28px rgba(0,0,0,0.65));
  }

  75% {
    transform:
      translateZ(22px)
      rotateX(5deg)
      rotateY(4deg);
  }

  100% {
    transform:
      translateZ(0)
      rotateX(0deg)
      rotateY(0deg);
    filter: brightness(1) drop-shadow(0 8px 18px rgba(0,0,0,0.55));
  }
}

/* ======================================================
   BG-GRID — GRILLE FUTURISTE LUXUEUSE
   ====================================================== */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0; /* entre les bg (-2/-1) et le contenu UI (1+) */
  pointer-events: none;

  /* 🧩 grille fine et discrète */
  background-image:
    linear-gradient(
      rgba(180, 120, 255, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(180, 120, 255, 0.08) 1px,
      transparent 1px
    );

  background-size: 64px 64px;
  background-position: 0 0;

  opacity: 0.35;

  /* 🎬 mouvement lent + respiration */
  animation:
    gridDrift 90s linear infinite,
    gridPulse 24s ease-in-out infinite;
}

/* ======================================================
   DÉPLACEMENT CONTINU DE LA GRILLE
   ====================================================== */

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 64px 64px, 64px 64px;
  }
}

/* ======================================================
   VARIATION DE LUMINOSITÉ SUBTILE
   ====================================================== */

@keyframes gridPulse {
  0%, 100% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.42;
  }
}


/* ======================================================
   BADGE BIENVENUE UTILISATEUR
   ====================================================== */

.welcome-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 6px;
  padding: 8px 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.03em;
}

.welcome-badge:empty { display: none; }

.welcome-badge i {
  color: var(--accent1, #a84cf8);
  font-size: 0.9rem;
}

.welcome-badge strong {
  color: #fff;
  font-weight: 600;
}

/* boutons filtres */
.filters {
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 8px 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 18px;
  font-family: "Tektur", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  background: linear-gradient(181deg, #38345429 0%, #2f2d7354 80%, #1b1e254f 100%);
  border: #95959579 1px solid;
  backdrop-filter: blur(10px);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.45);
}

.pill:focus {
color: #a290ff;
    text-shadow: 0 0 10px #a290ff;
}

.pill.small {
  padding: 10px 14px;
}

.pill img.emoji {
  width: 1.4em; /* taille du drapeau */
  height: 1.4em;
  margin-right: 8px; /* espace entre emoji et texte */
  vertical-align: middle; /* centrage vertical */
  flex-shrink: 0;
  border-radius: 4px; /* coins doux */
}

.pill:hover {
color: #a290ff;
    text-shadow: 0 0 10px #a290ff;
}

/* Couleur et texte visibles dans la liste ouverte */
select.pill option {
  background-color: #1a1b2e !important; /* fond violet foncé */
  color: #ffffff !important; /* texte blanc */
}

/* Supprime le contour bleu/orange */
select.pill:focus {
  outline: none !important;
  border-color: #95959579 !important;
  box-shadow: none !important;
}

/* Menu déroulant personnalisé avec emojis visibles */
.custom-select {
  position: relative;
}

.select-menu {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  list-style: none;
  background: linear-gradient(
    180deg,
    #181818d5 0%,
    #09090a99 80%,
    #0a0a0ac7 100%
  );
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  z-index: 99;
  padding: 6px 0;
  margin: 0;
}

/* === ALIGNEMENT EMOJI + TEXTE DANS LE MENU PERSONNALISÉ === */

.select-menu li {
  display: flex; /* Permet l’alignement horizontal */
  align-items: center; /* Centre verticalement le texte et l’emoji */
  justify-content: flex-start; /* Le texte reste à gauche */
  gap: 10px; /* Espace entre drapeau et texte */
  padding: 8px 14px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
}

.select-menu li img.emoji {
  width: 1.4em; /* Taille du drapeau */
  height: 1.4em;
  flex-shrink: 0; /* Empêche le drapeau de se déformer */
  border-radius: 4px; /* Coins doux */
  vertical-align: middle;
}

.select-menu li:hover {
  color: #00aaff;
  text-shadow: 0 0 10px #00aaff;
  background: rgba(255, 255, 255, 0.12);
}

.select-menu li:focus {
  color: #00aaff;
  text-shadow: 0 0 10px #00aaff;
  background: rgba(255, 255, 255, 0.12);
}

/* grille cartes */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 10px 12px 90px;
}
.card {
  position: relative;
  background: linear-gradient(181deg, #38345429 0%, #2f2d7354 80%, #1b1e254f 100%);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  border: #95959579 1px solid;
  padding: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}
.card .thumb {
  border-radius: 12px;
  overflow: hidden;
}
.card .thumb img {
  width: 100%;
  display: block;
}
.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 20px;
  right: 16px;
  background: rgb(37 37 37 / 73%);
  backdrop-filter: blur(14px);
  color: #fff;
  border-radius: 14px;
  padding: 2px 6px;
  font-family: "Tektur", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  border: 1px solid rgb(255 255 255 / 46%);
  pointer-events: none;
}

.badge-modal {
  display: flex;
  align-items: center;
  position: absolute;
  top: 10px;
  right: 40px;
  background: rgb(37 37 37 / 73%);
  backdrop-filter: blur(14px);
  border: 1px solid rgb(255 255 255 / 46%);
  color: #fff;
  border-radius: 14px;
  padding: 2px 6px;
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
  pointer-events: none;
}

.meta {
  margin-top: 8px;
}

.meta h3 {
  color: #b1b1b1;
  margin: 1px 0 0 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.meta h4 {
  display: block;
  margin: 6px 0 0 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  flex-wrap: wrap;
  letter-spacing: 0.06em;
}

.meta h5 {
  margin: 4px 0 0 0;
  font-size: 12px;
  opacity: 0.8;
  letter-spacing: 0.08em;
}

/* Réduit uniquement le drapeau dans la section meta (farm + origine) */
.meta img.emoji {
  width: 0.9em; /* taille plus petite */
  height: 0.9em;
  vertical-align: middle;
  margin-right: 3px; /* espace entre le drapeau et le texte */
  opacity: 0.95; /* léger adoucissement pour l'intégrer mieux */
}

/* --- BARRE DE NAVIGATION BAS --- */
.dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 14px 28px;
  border-radius: 40px;
background: linear-gradient(181deg, #38345429 0%, #2f2d7354 80%, #1b1e254f 100%);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dockbtn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #d5ddff;
  font-size: 12px;
  font-weight: 600;
}

.dockbtn:hover {
    color: #b267ff;
    text-shadow: 0 0 10px #b567ff;
}

.dockbtn i {
  font-size: 25px;
  color: #ffffff;
  transition: transform 0.2s, color 0.2s;
}
.dockbtn span {
  font-size: 11px;
  color: #d0d8ff;
}

.dockbtn:hover span {
  transform: scale(1.15);
    color: #b267ff;
    text-shadow: 0 0 10px #b567ff;
}

.dockbtn:hover i {
  transform: scale(1.15);
    color: #b267ff;
    text-shadow: 0 0 10px #b567ff;
}

/* --- ÉTAT ACTIF BLEU POUR LA NAVIGATION --- */
.dockbtn.active i,
.dockbtn.active span {
    color: #b267ff;
    text-shadow: 0 0 10px #b567ff;
}

/* modale produit */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.hidden {
  display: none;
}
.modal-card {
  position: relative;
  width: min(500px, 92vw);
  max-height: 90%; /* limite la hauteur totale */
  overflow-y: auto; /* permet de défiler à l’intérieur */
  background: linear-gradient(181deg, #38345429 0%, #2f2d7354 80%, #1b1e254f 100%);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  scrollbar-width: none; /* masque la barre sur Firefox */
}
.modal-card::-webkit-scrollbar {
  display: none; /* masque la barre sur Chrome/Safari */
}

.modal-card img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

/* --- MEDIA DANS LA MODALE --- */
.modal-card .img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* carré parfait */
  overflow: hidden;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

/* force vidéo ou image à remplir uniformément */
.modal-card .img-wrap video,
.modal-card .img-wrap img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover; /* rogne sans déformer */
  top: 0;
  left: 0;
  border-radius: 18px;
}

/* Ajuste la taille des drapeaux Twemoji */
.badge img.emoji,
.badge-modal img.emoji {
  position: relative !important;
  width: 1em !important; /* adapte à la taille du texte */
  height: 1em !important;
  vertical-align: middle !important;
  margin-right: 4px !important; /* petit espace avant le texte */
  margin-left: 5px !important;
}

@supports (-webkit-touch-callout: none) {
  /* Spécifique iPhone / iPad : Safari iOS rend les emojis plus grands */
  .badge img.emoji,
  .badge-modal img.emoji {
    transform: scale(0.65) translateY(1px) !important;
  }
}

.modal-card .mtext {
  padding: 10px;
}
.modal-card h2 {
  display: flex;
  align-items: center;
  margin: 6px 0 0 0;
  gap: 0.5rem;
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 0.08em;
}
.modal-card h1 {
  display: flex;
  gap: 0.5rem;
  margin: 6px 0 10px 0;
  font-size: 12px;
  letter-spacing: 0.06rem;
  color: #b9b9b9;
  flex-wrap: nowrap;
}

.modal-card h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #b9b9b9;
}

.modal-card .emoji {
  width: 5%;
  border: none;
  position: relative;
  z-index: 1;
  border: none;
}

.modal-card .desc {
  font-size: 12px;
  color: #b9b9b9;
  letter-spacing: 0.06em;
  margin: 0 0 10px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prices div {
  background: linear-gradient(
    180deg,
    #000000d8 0%,
    #1d1d1ed2 80%,
    #4f4f4fc4 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  padding: 6px 10px;
  border-radius: 30px;
}

.order {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  margin: 20px auto 0; /* centre horizontalement et ajoute un espace en haut */
  padding: 12px 24px;
  border: none;
  border-radius: 40px;
  font-weight: 800;
  color: rgb(0, 0, 0) 000;
  width: 60%; /* largeur stable au centre */
  text-align: center;
  background: linear-gradient(180deg, #e5d324 0%, #d1911d 100%);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.fa-snapchat {
  font-size: 24px;
}

.order:hover {
  transform: scale(1.05);
  background: linear-gradient(
    180deg,
    #000000d8 0%,
    #1d1d1ed2 80%,
    #4f4f4fc4 100%
  );
  color: #fff;
}

.x {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 10px; /* visible à l’intérieur de la modale */
  right: 10px;
  border: none;
  background: linear-gradient(
    180deg,
    #1010106e 0%,
    #1a1a1a71 80%,
    #2929296a 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  z-index: 3;
  cursor: pointer;
  transition: background 0.2s;
}

/* sheet */
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #161628;
  padding: 16px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}
#sheetContent {
  white-space: pre-wrap;
  color: #dbe2ff;
  line-height: 1.55;
}

/* PAGE INFORMATION */

.page-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* ok si tu veux centrer tous les éléments */
  overflow-y: auto;
}

.modal-card {
  scroll-margin-bottom: 100px; /* assure que le dernier post soit visible */
}

.post {
  padding-bottom: 3rem;
}

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 2px 10px;
  font-size: 0.8rem;
}

.page-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2px 10px;
  padding: 10px;
  background: linear-gradient(
    181deg,
    #03254fb0 0%,
    #32165994 80%,
    #2a115485 100%
  );
  backdrop-filter: blur(14px);
  border-radius: 18px;
  border: #95959579 1px solid;
}

/* === STYLE DES POSTS INFOS (comme un canal Telegram) === */
/* === CENTRAGE PARFAIT DES POSTS SUR LA PAGE INFOS === */
.post-card {
  width: 90%;
  max-width: 420px;
  margin: 18px auto;
  margin-top: -0.4rem;
 background: linear-gradient(181deg, #38345429 0%, #2f2d7354 80%, #1b1e254f 100%);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.post-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 14px 0px 14px;
  text-align: center;
}

.post-media {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.post-text {
  display: flex;
  text-align: center;
  font-size: 0.9rem;
  color: #e6e6e6;
  line-height: 1.6;
  letter-spacing: 0.02em;
  margin-top: 10px;
  margin-bottom: 30px;
  word-break: break-word;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

/* Liens et emojis dans les posts */
.post-text a {
  color: #7aaaff;
  text-decoration: none;
}
.post-text a:hover {
  text-decoration: underline;
}
.post-text img.emoji {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  margin: 0 2px;
}

/* Responsive */
@media (max-width: 480px) {
  .post-text {
    font-size: 0.85rem;
  }
}

/* === RÉACTIONS EMOJIS SOUS CHAQUE POST === */
.reactions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.reaction {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 18px;
  user-select: none;
  transition: transform 0.1s;
}

.reaction.active {
  background: rgba(0, 170, 255, 0.25);
  box-shadow: 0 0 6px #00aaff;
}

.reaction span.count {
  font-size: 12px;
  color: #dbe2ff;
  font-weight: 500;
}

.reaction:hover {
  transform: scale(1.1);
}
.emoji-picker {
  position: absolute;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(20, 22, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  z-index: 10000;
}
.emoji-picker.hidden {
  display: none;
}
.emoji-picker .pick {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}
.emoji-picker .pick:active {
  transform: scale(0.92);
}

.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* force le carré */
  overflow: hidden;
  border-radius: 12px;
}

.media-thumb,
.thumb img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover; /* recadre proprement */
  top: 0;
  left: 0;
  border-radius: 12px;
}

/* 🔒 Vidéos non téléchargeables (aperçu uniquement) */
video.media-thumb {
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.dock {
  z-index: 9999 !important;
  pointer-events: auto !important;
}

.dock * {
  pointer-events: auto !important;
}

/* ======================================================
   AVIS (REVIEWS) V2 — DESIGN COHÉRENT
   ====================================================== */

/* --- Stats globales --- */
.avis-stats {
  display: flex;
  justify-content: center;
  margin: 0 auto 16px;
  padding: 0 12px;
  width: 100%;
  max-width: 440px;
}

.avis-stats-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(181deg, #38345429 0%, #2f2d7354 80%, #1b1e254f 100%);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.avis-avg {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffd700;
  line-height: 1;
}

.avis-stars { display: flex; gap: 2px; }
.avis-stars .star-filled { color: #ffd700; font-size: 14px; }
.avis-stars .star-empty  { color: rgba(255,255,255,0.15); font-size: 14px; }

.avis-count {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

/* --- Formulaire card --- */
.avis-form-card {
  width: calc(100% - 24px);
  max-width: 440px;
  margin: 0 auto 16px;
  padding: 18px 16px;
  background: linear-gradient(181deg, #38345429 0%, #2f2d7354 80%, #1b1e254f 100%);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.avis-form-title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: 0.04em;
}

.avis-form-title i {
  color: var(--accent1, #a84cf8);
  margin-right: 6px;
}

/* --- Étoiles interactives --- */
.star-rating-input {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.star-btn {
  font-size: 30px;
  color: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.star-btn.selected { color: #ffd700; }
.star-btn.hover    { color: #ffe566; transform: scale(1.1); }
.star-btn.selected:not(.hover) { transform: scale(1); }

/* --- Textarea --- */
.avis-form-card textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  padding: 12px 14px;
  resize: none;
  min-height: 70px;
  transition: border-color 0.2s;
}

.avis-form-card textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.avis-form-card textarea:focus {
  outline: none;
  border-color: var(--accent1, #a84cf8);
  box-shadow: 0 0 0 2px rgba(168, 76, 248, 0.15);
}

.char-count {
  text-align: right;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  margin: 4px 4px 12px 0;
}

/* --- Upload photo --- */
.photo-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 14px;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  font-size: 0.82rem;
  transition: border-color 0.2s, color 0.2s;
}

.photo-upload-btn:hover {
  border-color: var(--accent1, #a84cf8);
  color: var(--accent1, #a84cf8);
}

.photo-preview {
  position: relative;
  margin: 12px 0 0;
  text-align: center;
}

.photo-preview img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  object-fit: cover;
}

.remove-photo {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background 0.2s;
}

.remove-photo:hover { background: rgba(255,60,60,0.7); }

/* --- Bouton submit --- */
.submit-review {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  border: none;
  border-radius: 40px;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.9rem;
  color: #000;
  background: linear-gradient(180deg, #ffd700 0%, #e6a800 100%);
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  box-shadow: 0 4px 14px rgba(230, 168, 0, 0.25);
}

.submit-review:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.submit-review:not(:disabled):hover {
  transform: scale(1.03);
}

.submit-review:not(:disabled):active {
  transform: scale(0.98);
}

.spinner-inline {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

/* --- Messages --- */
.form-message {
  text-align: center;
  padding: 10px 14px;
  border-radius: 12px;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.form-message.success {
  background: rgba(0,200,80,0.12);
  color: #4cff88;
  border: 1px solid rgba(0,200,80,0.25);
}

.form-message.error {
  background: rgba(255,60,60,0.12);
  color: #ff6b6b;
  border: 1px solid rgba(255,60,60,0.25);
}

.form-message.info {
  background: rgba(168,76,248,0.1);
  color: #c9a0ff;
  border: 1px solid rgba(168,76,248,0.25);
}

/* --- Cards avis --- */
.avis-list {
  padding: 0 12px 100px;
  max-width: 440px;
  margin: 0 auto;
}

.avis-card {
  background: linear-gradient(181deg, #38345429 0%, #2f2d7354 80%, #1b1e254f 100%);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
  margin-bottom: 14px;
  overflow: hidden;
}

.avis-card-photo {
  width: 100%;
  max-height: 260px;
  overflow: hidden;
}

.avis-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avis-card-body {
  padding: 14px 16px;
}

.avis-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.avis-card-user {
  width: 100%;
  font-size: 0.82rem;
  font-weight: 600;
  color: #00d4aa;
  margin-bottom: 2px;
}
.avis-card-user i { margin-right: 4px; font-size: 0.75rem; }

.avis-card-stars { display: flex; gap: 2px; }
.avis-card-stars .star-filled { color: #ffd700; font-size: 13px; }
.avis-card-stars .star-empty  { color: rgba(255,255,255,0.12); font-size: 13px; }

.avis-card-date {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}

.avis-card-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  word-break: break-word;
}

/* --- Loading / Empty --- */
.avis-loading { text-align: center; padding: 30px; }

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: var(--accent1, #a84cf8);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

.avis-empty {
  text-align: center;
  color: rgba(255,255,255,0.35);
  padding: 40px 20px;
}

.avis-empty i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
  color: rgba(255,255,255,0.15);
}

.avis-empty p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 380px) {
  .avis-stats-inner { padding: 12px 16px; gap: 10px; }
  .avis-avg { font-size: 1.8rem; }
  .avis-form-card { padding: 14px 12px; }
  .star-btn { font-size: 26px; }
  .avis-card-body { padding: 12px 14px; }
}

@media (min-width: 480px) {
  .avis-card-text { font-size: 0.92rem; }
}

