body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
}

a{
  text-decoration: none;
  color: black;
}

header {
    background: #333;
    color: #fff;
    padding: 20px;
}

main {
    padding: 30px;
    background: #fff;
    margin: 0 auto;
    max-width: 1100px;
}

footer {
    text-align: center;
    padding: 15px;
    background: #eee;
}

/* HERO image */
.hero {
    width: 100%;
    height: 380px;               /* <-- ta hauteur */
    margin: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
    display: flex;
    align-items: center;
}

/* assombrit l’image */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

/* contenu */
.hero-inner {
    position: relative;
    color: #fff;
    padding: 30px;
    max-width: 1100px;
    margin: 0 auto;
}


.hero{
  position: relative;
  overflow: visible;
}

:root{
  --page-bg: #f4f4f4;
}

body{
  background: var(--page-bg);
}

.hero-wave{
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 120px;
  z-index: 3;
  display: block;
}

.hero-wave path{
  fill: var(--page-bg); /* ✅ pas de “blanc” parasite */
}







/* Bouton stylisé */
.play-btn{
  position: relative;
  min-width: 280px;
  height: 56px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.55);
  color: #fff;

  cursor: pointer;
  overflow: hidden;

  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
}

/* On centre parfaitement les 2 textes dans le bouton */
.play-btn .play-text,
.play-btn .play-ip-text{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center; /* ✅ centrage parfait */
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .2px;
  transition: opacity .2s ease, transform .2s ease;
}

/* Etat initial */
.play-btn .play-text{
  opacity: 1;
  transform: translateY(0);
}

.play-btn .play-ip-text{
  opacity: 0;
  transform: translateY(10px);
}

/* Quand on clique : on joue l'animation "Jouer rebondit et sort" */
.play-btn.swap .play-text{
  animation: playBounceOut .55s ease forwards;
}

/* Puis l'IP apparaît (centrée) */
.play-btn.swap .play-ip-text{
  animation: ipIn .25s ease forwards;
  animation-delay: .38s;
}

/* Rebonds sur "Jouer" + disparition */
@keyframes playBounceOut{
  0%   { transform: translateY(0) scale(1);    opacity: 1; }
  35%  { transform: translateY(0) scale(1.12); opacity: 1; }
  60%  { transform: translateY(0) scale(0.98); opacity: 1; }
  100% { transform: translateY(-10px) scale(0.98); opacity: 0; }
}

/* Apparition IP */
@keyframes ipIn{
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Hover/active (optionnel) */
.play-btn:hover{
  background: rgba(0,0,0,.68);
}
.play-btn:active{
  transform: translateY(1px);
}



/* ✅ Le hero doit être relatif */
.hero{
  position: relative;
}

/* ✅ Overlay : on lui donne un z-index bas */
.hero::before{
  z-index: 1;
}

/* ✅ Le contenu texte au-dessus de l'overlay */
.hero-inner{
  position: relative;
  z-index: 2;
}

/* ✅ Conteneur du bouton flottant : au-dessus de tout */
.play-float{
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translate(-50%, 50%); /* déborde 50% en bas */
  z-index: 9999;

  /* IMPORTANT : forcer le layout en colonne */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* espace entre badge et bouton */
}

/* ✅ Badge joueurs en ligne : au-dessus, centré */
.online-pill{
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;

  font-weight: 800;
  font-size: 13px;
  color: #fff;

  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);

  white-space: nowrap;
}

/* ✅ Toast Copié : au-dessus du bouton */
.copy-toast{
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);

  padding: 8px 12px;
  border-radius: 10px;

  font-weight: 800;
  font-size: 13px;
  color: #fff;

  background: rgba(0,0,0,.88);
  border: 1px solid rgba(255,255,255,.25);

  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;

  z-index: 10000;
  white-space: nowrap;
}

.copy-toast.show{
  opacity: 1;
  transform: translate(-50%, -175%);
}





.news-wrap{
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
}

.news-item{
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.news-item h2{
  margin: 0 0 6px 0;
}

.news-content{
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.7;
}

.news-content h2, .news-content h3, .news-content h4{
  margin: 18px 0 10px;
}

.news-content ul, .news-content ol{
  padding-left: 22px;
}

/* --- Home news --- */
.card_news{
  margin-top: 24px;
}

.news-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
}

.news-all{
  text-decoration:none;
  font-weight:700;
  opacity:.8;
}
.news-all:hover{ opacity:1; }

.news-grid-home{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px){
  .news-grid-home{ grid-template-columns: 1fr; }
}

.news-card{
  background:#fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.news-card h3{
  margin: 0 0 6px 0;
}

.news-preview{
  margin: 10px 0 12px 0;
  line-height: 1.6;
  color: #333;
}

.news-read{
  display:inline-block;
  margin-top: 6px;
}
.news-preview{
  white-space: pre-line;
}



/*    ----  CSS PAGE SHOP.PHP  ----    */

.shop-wrap{ max-width:1100px; margin:20px auto; padding:0 16px; }
.shop-layout{ display:grid; grid-template-columns:260px 1fr; gap:16px; }
@media (max-width: 900px){ .shop-layout{ grid-template-columns:1fr; } }

.shop-cats{
  background:#fff;
  border-radius:14px;
  padding:14px;
  box-shadow:0 10px 25px rgba(0,0,0,.06);
  position: sticky;
  top: 14px;
  height: fit-content;
}
.shop-cats-title{ font-weight:800; margin-bottom:10px; }
.shop-cat{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  text-decoration:none;
  color:#111;
  margin-bottom:8px;
  background:#f3f4f6;
}
.shop-cat.active{
  background:#111827;
  color:#fff;
}

.shop-products{ }
.shop-head{ display:flex; justify-content:space-between; align-items:end; margin-bottom:12px; }

.shop-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:14px;
}
@media (max-width: 900px){ .shop-grid{ grid-template-columns:1fr; } }

.shop-card{
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,.06);
  display:flex;
  flex-direction:column;
}
.shop-img{
  height:170px;
  background-size:cover;
  background-position:center;
}
.shop-card-body{ padding:14px; display:flex; flex-direction:column; gap:10px; }
.shop-desc{ color:#444; margin:0; }
.shop-bottom{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:auto; }
.shop-price{ font-weight:900; }

/*    ----  CSS Message Erreur/Achat SHOP.PHP  ----    */
/* Toast popup (shop) */
.toast-wrap{
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
}

.toast{
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: min(560px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(15,23,42,.85);
  color: #fff;

  opacity: 0;
  transform: translateY(-10px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show{
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-text{
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
}

.toast-close{
  margin-left: auto;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  cursor: pointer;
}

.toast-success{ border-color: rgba(34,197,94,.35); }
.toast-error{ border-color: rgba(239,68,68,.35); }
.toast-info{ border-color: rgba(59,130,246,.35); }

/*   --------POPUP ACHAT-------   */

.modal-backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:99999;
}
.modal-backdrop.open{ display:flex; }

.modal-card{
  width:min(720px, 100%);
  background:#0b1220;
  color:#fff;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.45);
  position:relative;
}

.modal-close{
  position:absolute; top:10px; right:12px;
  width:34px; height:34px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
  font-size:20px;
  line-height:28px;
}

.modal-head{
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin-bottom:12px;
}

.modal-img{
  width:110px; height:76px;
  border-radius:12px;
  background-size:cover;
  background-position:center;
  border:1px solid rgba(255,255,255,.10);
  flex:0 0 auto;
}

.modal-title{ font-size:18px; font-weight:800; }
.modal-sub{ margin-top:4px; opacity:.85; }

.modal-body{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:12px;
}

.modal-desc{
  white-space:pre-wrap;
  line-height:1.4;
}

.modal-row{
  margin-top:12px;
  display:flex;
  gap:12px;
  justify-content:space-between;
  flex-wrap:wrap;
}

.modal-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:12px;
}

/*   --------PAGE-------   */

.page-content p, .page-content li { line-height: 1.7; }

.text-left { text-align:left; }
.text-center { text-align:center; }
.text-right { text-align:right; }

.text-sm { font-size: 14px; }
.text-md { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 22px; }

.font-sans { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.font-serif { font-family: Georgia, "Times New Roman", serif; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }