* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #000;
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  background-image: url("");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

/* CONTENT */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 700px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 64px;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.hero-content h2 {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 25px;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 35px;
}

/* BUTTON */
.btn {
  display: inline-block;
  padding: 15px 35px;
  background: white;
  color: black;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #f2f2f2;
  transform: scale(1.05);
}

/* SIGNATURE */
.signature {
  display: block;
  margin-top: 30px;
  font-size: 14px;
  opacity: 0.7;
}

/* CONTENT PAGE */
.content {
  background: #ffffff;
  color: #000;
  padding: 60px 20px;
  max-width: 800px;
  margin: auto;
}

.content h3 {
  font-size: 32px;
  margin-bottom: 25px;
}

.content p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.content ul {
  margin: 20px 0 30px 20px;
}

.content li {
  font-size: 18px;
  margin-bottom: 10px;
}

.important {
  margin-top: 30px;
  padding: 20px;
  background: #f2f2f2;
  border-left: 4px solid #000;
}

/* SPLIT LAYOUT */
.split {
  display: flex;
  min-height: 100vh;
}

.split-text {
  flex: 1;
  padding: 80px 60px;
  background: #ebedf0;
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-text h1 {
  font-size: 56px;
  margin-bottom: 10px;
}

.split-text h2 {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 30px;
}

.split-text p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.split-image {
  flex: 1;
  background-image: url("LeQuisite.png");
  background-size: cover;
  background-position: center;
  background-color: rgb(247, 114, 6);
}

@media (max-width: 900px) {
  .split {
    flex-direction: column;
  }

  .split-image {
    min-height: 50vh;
  }

  .split-text {
    padding: 40px 20px;
  }
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: white;
  border-bottom: 1px solid #eee;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-left img {
  height: 42px;
}

.site-name {
  font-weight: 900;
  background: linear-gradient(90deg, var(--ms-blue), var(--ms-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.header-nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.header-nav a:hover {
  text-decoration: underline;
}

.header-nav .active {
  font-weight: bold;
}

.page {
  padding: 40px 20px;
  max-width: 980px;
  margin: 0 auto;
}

.page-head h1 {
  font-size: 34px;
  margin-bottom: 8px;
}

.page-head p {
  opacity: 0.8;
  margin-bottom: 22px;
  line-height: 1.6;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 22px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 16px;
}

.field small {
  display: block;
  opacity: 0.7;
  margin-top: 6px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.checkline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0 18px;
}

.checkline label {
  line-height: 1.4;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-dark {
  padding: 14px 20px;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-dark:hover {
  opacity: 0.92;
}

.btn-outline {
  padding: 14px 20px;
  border: 1px solid #111;
  border-radius: 14px;
  color: #111;
  text-decoration: none;
  font-weight: 700;
}

.msg {
  margin-top: 14px;
  font-weight: 600;
}

@media (max-width: 900px) {

  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.mini-card {
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.thumb {
  height: 150px;
  background-size: cover;
  background-position: center;
}

.thumb.noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #777;
  font-weight: 700;
}

.mini-body {
  padding: 14px;
}

.mini-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.mini-top h3 {
  font-size: 16px;
  line-height: 1.2;
}

.mini-price {
  font-weight: 800;
}

.mini-meta {
  opacity: 0.7;
  margin: 8px 0 10px;
  font-size: 14px;
}

.mini-desc {
  line-height: 1.4;
  opacity: 0.9;
}

@media (max-width: 950px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .grid-cards {
    grid-template-columns: 1fr;
  }
}

:root {
  --ms-blue: #008ed6;
  --ms-yellow: #fe8e29;
  --ms-dark: #0b0b0b;
  --ms-card: #111;
  --ms-text: #ffffff;
}

/* Fond Tempo (image personnalisée) */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--ms-dark);
  color: var(--ms-text);
  background-image: var(--ms-bg-url, none);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

* {
  box-sizing: border-box;
}

/* Dégradé Musi-Sports */
.ms-gradient {
  background: linear-gradient(90deg, var(--ms-blue), var(--ms-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 11, .92);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.nav-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  opacity: .9;
}

.nav-links a:hover {
  opacity: 1;
}

.user-badge {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 246, 249, .35);
  background: rgba(0, 246, 249, .08);
  font-weight: 800;
}

/* Buttons */
.btn-small,
.btn-flag,
.btn-primary {
  background: linear-gradient(90deg, var(--ms-blue), var(--ms-yellow));
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.btn-small {
  padding: 8px 12px;
  border-radius: 10px;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.link-btn {
  background: transparent;
  border: none;
  color: #fff;
  opacity: .9;
  cursor: pointer;
  font-weight: 800;
}

.link-btn:hover {
  text-decoration: underline;
  opacity: 1;
}

.muted {
  opacity: .85;
}

.small {
  font-size: 12px;
}

/* HOME */
.home-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 40px 16px 10px;
}

.home-logo {
  width: 180px;
  max-width: 70%;
  margin-bottom: 6px;
}

.home-hero p {
  opacity: .85;
  font-size: 1.1rem;
  margin: 0;
}

.home-buttons {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.home-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 30px 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.home-card {
  background: rgba(17, 17, 17, .92);
  border: 1px solid rgba(0, 246, 249, .25);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.home-card h2 {
  margin-top: 0;
}

.home-footer {
  text-align: center;
  padding: 20px;
  opacity: .6;
  font-size: .9rem;
}

/* GIFT */
.gift-card {
  width: min(980px, 100%);
  margin: 0 auto 24px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(17, 17, 17, .92);
  border: 1px solid rgba(0, 246, 249, .25);
  backdrop-filter: blur(6px);
}

.gift-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.gift-left {
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
}

/* CHAT */
.chat-hero {
  text-align: center;
  padding: 18px 16px;
}

.chat-hero h1 {
  margin: 10px 0 6px;
}

.chat-hero p {
  margin: 0;
  opacity: .85;
}

.chat-wrap {
  padding: 16px;
  display: flex;
  justify-content: center;
}

.chat-card {
  width: min(980px, 100%);
  border-radius: 16px;
  background: rgba(17, 17, 17, .92);
  border: 1px solid rgba(0, 246, 249, .25);
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.chat-inner {
  padding: 12px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Messages */
#messages {
  list-style: none;
  margin: 12px 0;
  padding: 10px;
  height: 360px;
  overflow: auto;
  background: #0b0b0b;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
}

.msg {
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg .bubble {
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 80%;
}

.msg.self .bubble {
  background: rgba(0, 246, 249, .14);
  align-self: flex-end;
}

.msg.other .bubble {
  background: rgba(255, 255, 255, .08);
  align-self: flex-start;
}

.msg.system .bubble {
  background: transparent;
  opacity: .8;
  align-self: center;
}

.meta {
  font-size: 12px;
  opacity: .65;
}

/* Composer */
.composer {
  display: flex;
  gap: 10px;
}

.composer input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: #0b0b0b;
  color: #fff;
}

.composer button:disabled,
.composer input:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* ✅ Bande pub défilante */
.ad-ticker {
  width: min(980px, 100%);
  margin: 0 auto 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.ticker-track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  will-change: transform;
  animation: tickerMove 18s linear infinite;
  padding: 10px 12px;
}

.ticker-content {
  font-weight: 900;
  letter-spacing: .2px;
}

@keyframes tickerMove {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ad-ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* CTA */
.cta-flag {
  padding: 10px 16px 18px;
  display: flex;
  justify-content: center;
}

.flag-silk {
  width: min(980px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 246, 249, .25);
  background: rgba(0, 246, 249, .08);
  backdrop-filter: blur(6px);
}

.flag-text {
  font-weight: 800;
}

/* MODALS */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .65);
  z-index: 50;
  padding: 16px;
}

.modal.open {
  display: flex;
}

.modal .box {
  width: min(520px, 100%);
  background: rgba(17, 17, 17, .95);
  border: 1px solid rgba(0, 246, 249, .25);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(8px);
}

.modal .box h3 {
  margin: 0 0 10px;
}

.modal .box input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: #0b0b0b;
  color: #fff;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.modal-list {
  margin: 10px 0 0;
  padding-left: 18px;
}

/* ✅ Fullscreen : chat prend TOUT l'écran */
body.is-fullscreen .chat-wrap {
  padding: 0 !important;
}

body.is-fullscreen .chat-card {
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
}

body.is-fullscreen .chat-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body.is-fullscreen #messages {
  height: auto !important;
  flex: 1;
  margin: 12px 0;
}

/* === TEMPO: image UNIQUEMENT dans le carré des messages (#messages) === */
#messages {
  position: relative;
  overflow: auto;

  /* variables */
  --ms-msg-bg-url: none;
  --ms-msg-bg-opacity: 0.35;
  --ms-msg-overlay: 0.35;

  background: rgba(11, 11, 11, 0.85);
}

/* image derrière */
#messages::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--ms-msg-bg-url);
  background-size: cover;
  background-position: center;
  opacity: var(--ms-msg-bg-opacity);
  pointer-events: none;
  z-index: 0;
}

/* overlay sombre */
#messages::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--ms-msg-overlay));
  pointer-events: none;
  z-index: 0;
}

/* messages au-dessus */
#messages .msg {
  position: relative;
  z-index: 1;
}

/* bulles semi-transparentes (pour voir l'image derrière) */
.msg.self .bubble {
  background: rgba(0, 246, 249, 0.22);
}

.msg.other .bubble {
  background: rgba(255, 255, 255, 0.12);
}

/* === Bouton RADIO : dégradé animé bleu/orange === */
.header-nav .radio-link {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .4px;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, .12);

  background: linear-gradient(90deg, var(--ms-blue), var(--ms-yellow), var(--ms-blue));
  background-size: 200% 100%;
  color: #000;

  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
  animation: radioPulse 1.6s ease-in-out infinite;
}

.header-nav .radio-link:hover {
  transform: scale(1.03);
}

@keyframes radioPulse {
  0% {
    background-position: 0% 50%;
    filter: brightness(1);
  }

  50% {
    background-position: 100% 50%;
    filter: brightness(1.15);
  }

  100% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
}

/* === Fullscreen: page immobile, seul #messages scroll === */
body.is-fullscreen {
  overflow: hidden !important;
}

body.is-fullscreen nav,
body.is-fullscreen .chat-hero,
body.is-fullscreen .ad-ticker,
body.is-fullscreen .cta-flag {
  display: none !important;
}

body.is-fullscreen .chat-wrap {
  padding: 0 !important;
}

body.is-fullscreen .chat-card {
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
}

body.is-fullscreen .chat-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* toolbar fixe en haut, composer fixe en bas, messages scroll au centre */
body.is-fullscreen .toolbar {
  flex: 0 0 auto;
}

body.is-fullscreen .composer {
  flex: 0 0 auto;
}

body.is-fullscreen #messages {
  flex: 1 1 auto;
  height: auto !important;
  overflow: auto !important;
  margin: 12px 0 !important;
}

#messages::before {
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center center;
}

/* === Fix: fond image + overlay DIRECTEMENT sur #messages (plus de couche noire qui "monte") === */
#messages::before,
#messages::after {
  content: none !important;
  display: none !important;
}

/* Fond en 2 couches: overlay + image */
#messages {
  background-color: transparent !important;

  /* 1) overlay noir  2) image */
  background-image:
    linear-gradient(rgba(0, 0, 0, var(--ms-msg-overlay, 0.35)), rgba(0, 0, 0, var(--ms-msg-overlay, 0.35))),
    var(--ms-msg-bg-url, none);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* en mode normal: tu peux laisser scroll */
  background-attachment: scroll;
}

/* En plein écran: image + overlay restent STABLES */
body.is-fullscreen #messages {
  background-attachment: fixed;
}

/* Bulles semi-transparentes pour voir l'image derrière */
.msg.self .bubble {
  background: rgba(0, 246, 249, 0.22) !important;
}

.msg.other .bubble {
  background: rgba(255, 255, 255, 0.12) !important;
}