/* style.css - version complète avec motif carbone en data-URI
   Remplace entièrement ton ancien style.css par celui-ci.
   Le motif carbone est inclus via SVG data-uri (tileable, léger, responsive).
*/

/* Reset / Import police */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;700&display=swap');

/* ------------------------
   Variables (ajuste l'intensité du motif ici)
   --carbon-opacity : opacité du motif carbone (0 = absent, 1 = plein)
   --carbon-scale : échelle du motif (1 = normal, 2 = motif plus petit)
   ------------------------ */
:root{
  --carbon-opacity: 0.14; /* ajuste l'intensité du carbone (0.05..0.35 recommandé) */
  --carbon-scale: 1; /* 1 = défaut, >1 pour motif plus dense/small */
}

/* ===========================
   BODY + motif carbone (SVG data-uri)
   =========================== */

/* SVG tileable "carbone" — data-uri intégrée.
   - léger (peu de poids)
   - tileable : se répète proprement sur mobile/desktop
   - on l'applique en overlay via background-image multiple
*/
body {
    margin: 0;
    padding: 0;
    font-family: 'Rubik', sans-serif;
    color: #f5f5f5;
    background-color: #181818; /* fallback */
    /* Background layering: gradient -> carbon SVG -> subtle linear */
    background-image:
      linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.25)),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><defs><pattern id='p' width='40' height='40' patternUnits='userSpaceOnUse' patternTransform='scale(1)'><rect width='40' height='40' fill='%23171717'/><g fill='%23202222' opacity='0.85'><rect x='0' y='0' width='40' height='20'/></g><g transform='rotate(45 20 20)' opacity='0.07'><rect x='0' y='0' width='2' height='40' fill='%23ffffff'/></g><g transform='rotate(-45 20 20)' opacity='0.05'><rect x='0' y='0' width='2' height='40' fill='%23ffffff'/></g></pattern></defs><rect width='100%' height='100%' fill='url(%23p)'/></svg>");
    background-blend-mode: overlay;
    /* scale the SVG tile: using background-size we can emulate --carbon-scale */
    background-size: calc(40px / var(--carbon-scale)) calc(40px / var(--carbon-scale)), cover;
    /* control overall opacity of the carbon layer by an overlay: we will use a pseudo overlay on body via box-shadow trick isn't possible; so we control via gradient & the svg's opacities above and the CSS var used below */
    /* to dampen effect we apply an extra overlay using linear-gradient with alpha */
    background-repeat: repeat, no-repeat;
}

/* If you want even lighter or darker carbon, adjust --carbon-opacity and modify the SVG opacities above.
   (I also added subtle lines inside the SVG for the weave effect). */

/* ===========================
   Header / Footer / Main (origine)
   =========================== */
header {
    background-color: rgba(24,24,24,0.92);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
}

header img {
    height: 80px;
    max-width: 100%;
    object-fit: contain;
    margin-right: 15px;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: inline-block;
}

footer {
    margin-top: 30px;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #333;
}
main {
    padding: 20px;
    text-align: center;
}

h1 {
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
}

.category {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.card h2 {
    font-size: 1.5rem;
    color: #fbf269;
}

.card .card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0px 0;
}

.card .toggle-btn {
    background-color: transparent;
    color: white;
    border: none;
    background-color: #333;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 1s ease, color 1s ease;
}

.card .details.expanded {
    max-height: 0;
    display: block;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 1s ease;
    text-align: left;
    margin-top: 10px;
}

.card .buy-now {
    display: inline-block;
    margin-top: 10px;
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 1s ease;
}

.card .buy-now:hover {
    background-color: #333;
}

/* Card Style */
.card {
    background-color: rgba(32,32,32,0.92);
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* Add subtle carbon overlay for each card (controlled by --carbon-opacity) */
.card::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><defs><pattern id='pc' width='40' height='40' patternUnits='userSpaceOnUse'><rect width='40' height='40' fill='%231b1b1b'/><g fill='%23222222' opacity='0.85'><rect x='0' y='0' width='40' height='20'/></g><g transform='rotate(45 20 20)' opacity='0.07'><rect x='0' y='0' width='2' height='40' fill='%23ffffff'/></g><g transform='rotate(-45 20 20)' opacity='0.04'><rect x='0' y='0' width='2' height='40' fill='%23ffffff'/></g></pattern></defs><rect width='100%' height='100%' fill='url(%23pc)'/></svg>");
  opacity: var(--carbon-opacity);
  mix-blend-mode: overlay;
  transition: opacity 0.2s ease;
  z-index: 1;
  border-radius: 10px;
}

/* ensure card content sits above overlay */
.card * { position: relative; z-index: 2; }

.card h2 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 1.4rem;
    color: white;
    margin-top: 20px;
}

.card p, .card ul {
    font-size: 1rem;
    line-height: 1.6;
}

.card ul {
    list-style: disc;
    margin-left: 0px;
}

.card .price {
    font-size: 1.2rem;
    color: #fbf269;
    font-weight: 700;
    margin-top: 10px;
}

b {
    color: #fbf269;
}
s {
    color: white;
}

/* FAQ */
.faq {
    margin-top: 40px;
}

.faq h2 {
    color: white;
    margin-bottom: 20px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    background-color: rgba(32,32,32,0.92);
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.accordion-btn {
    background-color: transparent;
    color: #888;
    border: none;
    padding: 15px;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    width: 100%;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.accordion-item.expanded .accordion-content {
    max-height: 100px;
    opacity: 1;
    padding: 10px 15px;
}

/* Conteneur pour la vidéo */
.video-container {
    text-align: center;
    margin: 20px auto;
    max-width: 100%;
}

/* Vidéo responsive */
.video-wrapper {
    position: relative;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #3a3a3a;
}

.video {
    width: 100%;
    border-radius: 4px;
    height: auto;
    display: block;
}

@media screen and (max-width: 768px) {
    .video-wrapper {
        width: 100%;
        max-width: none;
    }
}

/* ===========================
   Discord button (original)
   =========================== */

.discord-button-container {
    text-align: center;
    margin-top: 20px;
}

.discord-button {
    display: inline-block;
    background-color: #333;
    color: white;
    font-size: 16px;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.discord-button:hover {
    background-color: #333;
}

.discord-logo {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* ===========================
   Discord Hero - grande carte centrée & stickée
   =========================== */

.discord-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 36px 20px;
  position: relative;
  margin-top: 16px;
  z-index: 40;
}

.discord-hero-card {
  width: min(960px, 94%);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  gap: 20px;
  align-items: center;
  position: sticky;
  top: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: visible;
}

/* subtil motif carbone propre à la carte (contrôlé par --carbon-opacity) */
.discord-hero-card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  
  opacity: calc(var(--carbon-opacity) * 1.4); /* carte un peu + visible */
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

/* légère mise en avant au hover */
.discord-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
}

.hero-logo {
  height: 84px;
  width: 84px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
  margin-left: 6px;
  border: 1px solid rgba(255,255,255,0.03);
  padding: 6px;
  background: rgba(0,0,0,0.15);
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: left;
  flex: 1 1 auto;
}

#discord-hero-title {
  margin: 0;
  font-size: 1.35rem;
  color: #fbf269;
  letter-spacing: 0.2px;
}

.hero-sub {
  margin: 6px 0 14px 0;
  color: #dcdcdc;
  opacity: 0.95;
  font-size: 0.98rem;
}

/* Bouton Discord */
.discord-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(90deg, #5865F2 0%, #404eed 100%);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(64,78,237,0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  max-width: 280px;
  justify-content: center;
}

.cta-arrow {
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.18s ease;
  font-size: 1.1rem;
}

.discord-cta:hover { transform: translateY(-2px); }
.discord-cta:hover .cta-arrow { transform: translateX(6px); }

.cta-arrow {
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.18s ease;
  font-size: 1.15rem;
}



.hero-note {
  display: block;
  margin-top: 8px;
  color: #bdbdbd;
  font-size: 0.85rem;
}



@media (max-width: 720px) {
  .discord-cta {
    width: 60%;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 10px;
    gap: 8px;
    max-width: 260px; /* ✅ bouton plus compact sur mobile */
  }
}


@media (max-width: 720px) {
  .discord-hero-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px;
  }
  .hero-logo { height: 72px; width: 72px; margin: 0; }
  .hero-content { width: 100%; }
  .discord-cta { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }
  .cta-arrow { display: inline-block; }
}


.vip-slider {
  padding: 30px 0;
  text-align: center;
  background: #1b1b1b;
  position: relative;
}

.vip-slider h2 {
  color: #fbf269;
  margin-bottom: 20px;
}

.vip-track-wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}

.vip-track {
  display: flex;
  transition: transform 0.3s ease;
  gap: 20px;
  touch-action: pan-x;
}

.vip-card {
  flex: 0 0 30%;
  background: #202020;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  border: 1px solid #333;
}

.vip-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.vip-card span {
  display: block;
  padding: 10px 0;
  color: #fbf269;
  font-weight: 500;
}

/* Flèches */
.vip-prev, .vip-next {
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.vip-prev { margin-right: 10px; }
.vip-next { margin-left: 10px; }

@media(max-width: 720px){
  .vip-card { flex: 0 0 80%; }
  .vip-prev, .vip-next { display: none; }
}
