/* ===== GOOGLE FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

/* ===== VARIABLES ===== */
:root{
  --bg0:#03050a;
  --bg1:#0b1120;
  --text:#ffffff;
  --muted:rgba(255,255,255,0.75);

  --accent:#4f8cff;
  --accent2:#7c4dff;

  --card:rgba(255,255,255,0.05);
  --border:rgba(255,255,255,0.12);

  --radius:18px;
  --shadow:0 20px 50px rgba(0,0,0,0.45);
}

/* ===== BASE ===== */
*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:'Inter', Arial, sans-serif;
  color:var(--text);
  min-height:100vh;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(79,140,255,0.20), transparent 60%),
    radial-gradient(800px 500px at 90% 10%, rgba(124,77,255,0.18), transparent 60%),
    linear-gradient(180deg,var(--bg0),var(--bg1) 60%,#020305);
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
}

.container{
  width:95%;
  max-width:1200px;
  margin:auto;
}

/* ===== TOP SOCIAL ===== */
.top{
  padding:18px 20px 0;
}

.social{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  text-align:center;
}

.social span{
  color:var(--muted);
  font-size:14px;
}

.social a{
  padding:10px 16px;
  border-radius:12px;
  text-decoration:none;
  color:white;
  font-weight:600;
  border:1px solid rgba(255,255,255,0.1);
  background:rgba(255,255,255,0.05);
  transition:0.25s;
}

.social a:hover{
  background:rgba(79,140,255,0.25);
  transform:translateY(-2px);
}

/* ===== HEADER SIMPLE ===== */
.header{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:70px;
  padding:40px 20px 10px;
  flex-wrap:wrap;
}

.text{
  font-size:18px;
  line-height:1.7;
  padding:18px;
  border-radius:var(--radius);
  background:linear-gradient(180deg,rgba(255,255,255,0.04),rgba(255,255,255,0.02));
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:var(--shadow);
  max-width:560px;
}

.text p{
  margin:0;
  color:var(--muted);
}

/* ===== HERO ===== */
.hero{
  padding:50px 20px 30px;
  display:flex;
  justify-content:center;
}

.hero-card{
  max-width:1100px;
  width:100%;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:24px;
  padding:38px;
  backdrop-filter:blur(10px);
  box-shadow:var(--shadow);
  text-align:center;
}

.brand{
  display:flex;
  justify-content:center;
  margin-bottom:18px;
}

.logo{
  width:120px;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}

.eyebrow{
  color:var(--muted);
  font-size:14px;
  font-weight:600;
  letter-spacing:0.3px;
  margin-bottom:10px;
  text-transform:uppercase;
}

h1{
  margin:0 0 16px;
  font-size:clamp(34px,5vw,60px);
  font-weight:900;
  line-height:1.08;
  letter-spacing:0.5px;
}

.gradient-text{
  background:linear-gradient(90deg,#ffffff,#8bb8ff,#c6b0ff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.intro{
  font-size:18px;
  color:var(--muted);
  max-width:760px;
  margin:0 auto;
  line-height:1.7;
}

/* ===== STATS ===== */
.stats{
  display:flex;
  justify-content:center;
  gap:18px;
  margin-top:30px;
  flex-wrap:wrap;
}

.stat{
  min-width:180px;
  background:rgba(255,255,255,0.035);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;
  padding:18px 16px;
  box-shadow:0 10px 25px rgba(0,0,0,0.20);
}

.stat strong{
  display:block;
  font-size:28px;
  font-weight:800;
  margin-bottom:6px;
}

.stat span{
  display:block;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}

/* ===== MENU ===== */
.menu-wrap{
  display:flex;
  justify-content:center;
  padding:10px 20px 0;
}

.menu{
  position:sticky;
  top:0;
  z-index:100;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  width:min(1100px, 100%);
  padding:14px;
  border-radius:18px;
  backdrop-filter:blur(12px);
  background:rgba(10,10,15,0.55);
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 12px 30px rgba(0,0,0,0.25);
  margin:18px auto 0;
}

.menu a{
  text-decoration:none;
  color:white;
  padding:10px 18px;
  border-radius:12px;
  font-weight:600;
  border:1px solid rgba(255,255,255,0.08);
  background:linear-gradient(
    135deg,
    rgba(79,140,255,0.15),
    rgba(124,77,255,0.12)
  );
  transition:0.25s;
}

.menu a:hover{
  background:linear-gradient(
    135deg,
    rgba(79,140,255,0.40),
    rgba(124,77,255,0.35)
  );
  transform:translateY(-2px);
}

/* ===== TITRES ===== */
.title{
  font-size:clamp(34px,5vw,60px);
  font-weight:900;
  letter-spacing:1px;
  margin:34px 10px 0;
  text-align:center;
  background:linear-gradient(90deg,#ffffff,#8bb8ff,#c6b0ff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.subtitle{
  color:var(--muted);
  font-size:18px;
  max-width:850px;
  margin:12px auto 0;
  line-height:1.6;
  text-align:center;
  padding:0 20px;
}

/* ===== SECTION ===== */
.section{
  margin-top:40px;
  padding:0 20px;
}

.section-title{
  font-size:28px;
  font-weight:800;
  margin-bottom:25px;
  text-align:center;
}

/* ===== VIDEO SECTIONS ===== */
.video-section{
  max-width:1100px;
  margin:70px auto 0;
  padding:0 20px;
}

.section-heading{
  text-align:center;
  margin-bottom:18px;
}

.section-kicker{
  color:var(--accent);
  font-weight:700;
  font-size:14px;
  margin-bottom:8px;
  text-transform:uppercase;
  letter-spacing:0.5px;
}

.video-title{
  font-size:clamp(22px, 3vw, 34px);
  font-weight:800;
  line-height:1.25;
  margin:0;
}

.video-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:24px;
  padding:22px;
  backdrop-filter:blur(10px);
  box-shadow:var(--shadow);
}

.video-meta{
  color:var(--muted);
  margin:0 0 14px;
  line-height:1.6;
  text-align:center;
}

.video{
  width:100%;
  overflow:hidden;
  border-radius:18px;
  background:#000;
  border:1px solid rgba(255,255,255,0.08);
}

.video video,
.video iframe{
  display:block;
  width:100%;
  height:auto;
  border:none;
}

/* ===== CARDS ===== */
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:26px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:26px;
  backdrop-filter:blur(10px);
  box-shadow:var(--shadow);
  transition:0.25s;
}

.card:hover{
  transform:translateY(-6px);
  border-color:rgba(79,140,255,0.35);
  box-shadow:0 24px 60px rgba(0,0,0,0.55);
}

.card h2,
.card h3{
  margin-top:0;
}

.game{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.game img{
  width:100%;
  border-radius:12px;
}

.game-title{
  font-size:18px;
  font-weight:700;
}

.game-desc{
  font-size:14px;
  color:var(--muted);
}

.game div{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}

/* ===== BUTTON ===== */
.btn{
  display:inline-block;
  padding:10px 18px;
  border-radius:12px;
  text-decoration:none;
  font-weight:600;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:white;
  box-shadow:0 10px 25px rgba(0,0,0,0.3);
  transition:0.25s;
}

.btn:hover{
  transform:translateY(-2px) scale(1.03);
}

/* ===== BADGES ===== */
.badges{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(79,140,255,0.20);
  border:1px solid rgba(255,255,255,0.10);
  font-size:14px;
  color:white;
  text-decoration:none;
  transition:transform .15s ease, background .15s ease, opacity .15s ease;
}

.badge:hover{
  opacity:0.96;
  transform:translateY(-1px);
  background:rgba(79,140,255,0.30);
}

/* ===== FOOTER ===== */
.footer{
  margin-top:70px;
  padding:20px 20px 40px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
}

.counter-box{
  display:inline-block;
  padding:12px 18px;
  border-radius:14px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
}

/* ===== STORY PAGE / MON HISTOIRE ===== */
.chapters-bar-wrap{
  position:sticky;
  top:0;
  z-index:90;
  margin-top:18px;
  backdrop-filter:blur(10px);
  background:rgba(0,0,0,0.55);
  border-top:1px solid rgba(255,255,255,0.06);
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.chapters-nav{
  max-width:1100px;
  margin:0 auto;
  padding:12px 20px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}

.chapter-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(79,140,255,0.14);
  border:1px solid rgba(255,255,255,0.10);
  color:white;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  transition:transform .2s ease, background .2s ease, border-color .2s ease;
}

.chapter-btn:hover{
  transform:translateY(-1px);
  background:rgba(79,140,255,0.26);
  border-color:rgba(255,255,255,0.18);
}

.chapter-btn.active{
  background:rgba(79,140,255,0.38);
  border-color:rgba(255,255,255,0.24);
  box-shadow:0 10px 22px rgba(0,0,0,0.35);
}

.section-card{
  position:relative;
  max-width:1100px;
  margin:0 auto;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:24px;
  padding:28px 26px 24px 26px;
  backdrop-filter:blur(10px);
  box-shadow:var(--shadow);
  line-height:1.8;
  overflow:hidden;
}

.section-card::before{
  content:"";
  position:absolute;
  left:18px;
  top:22px;
  bottom:22px;
  width:2px;
  background:linear-gradient(
    180deg,
    rgba(79,140,255,0),
    rgba(79,140,255,0.55),
    rgba(79,140,255,0)
  );
  opacity:0.75;
}

.section-inner{
  padding-left:18px;
}

.section-head{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  font-weight:800;
  margin:0 0 18px 0;
  gap:14px;
  text-align:center;
}

.subhead{
  margin:22px 0 10px;
  font-size:18px;
  font-weight:800;
  color:#cfe0ff;
}

.note{
  padding:14px 16px;
  border-radius:16px;
  background:rgba(79,140,255,0.10);
  border:1px solid rgba(79,140,255,0.18);
}

.quote{
  padding:16px 18px;
  border-left:3px solid rgba(124,77,255,0.7);
  background:rgba(255,255,255,0.04);
  border-radius:14px;
  font-style:italic;
}

.back-top{
  display:inline-flex;
  margin-top:20px;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  color:white;
  text-decoration:none;
  opacity:0.92;
  transition:0.2s ease;
}

.back-top:hover{
  opacity:1;
  transform:translateY(-1px);
  background:rgba(255,255,255,0.06);
}

.toTop{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:110;
  display:none;
  padding:12px 14px;
  border-radius:999px;
  background:rgba(79,140,255,0.85);
  border:1px solid rgba(255,255,255,0.14);
  color:white;
  text-decoration:none;
  box-shadow:0 14px 30px rgba(0,0,0,0.55);
}

.toTop.show{
  display:inline-flex;
}

.bottom-space{
  height:60px;
}

/* ===== RESPONSIVE ===== */
@media (max-width:768px){

  .top{
    padding-top:14px;
  }

  .header{
    gap:22px;
    padding:30px 14px 10px;
  }

  .text{
    font-size:16px;
    text-align:center;
  }

  .hero{
    padding:35px 14px 20px;
  }

  .hero-card{
    padding:24px 18px;
    border-radius:20px;
  }

  .logo{
    width:95px;
  }

  .intro{
    font-size:16px;
  }

  .stats{
    gap:12px;
  }

  .stat{
    width:100%;
    max-width:320px;
  }

  .menu-wrap{
    padding:10px 14px 0;
  }

  .menu{
    position:static !important;
    top:auto !important;
    gap:8px;
    padding:12px;
    border-radius:16px;
  }

  .menu a{
    width:100%;
    text-align:center;
  }

  .video-section{
    margin-top:45px;
    padding:0 14px;
  }

  .video-card{
    padding:16px;
    border-radius:20px;
  }

  .video-title{
    font-size:22px;
  }

  .section{
    padding:0 14px;
  }

  .section-card{
    padding:24px 18px 20px 18px;
    border-radius:20px;
  }

  .section-card::before{
    left:14px;
  }

  .section-inner{
    padding-left:14px;
  }

  .section-head{
    font-size:20px;
  }

  .subhead{
    font-size:16px;
  }

  .chapters-bar-wrap{
    position:static !important;
    top:auto !important;
  }

  .chapters-nav{
    padding:12px 14px;
    gap:8px;
  }

  .chapter-btn{
    font-size:13px;
    padding:9px 12px;
  }
}

/* ===== GAME ICONS ===== */
.game-img{
  width:120px;
  height:120px;
  object-fit:cover;
  border-radius:22px;
  display:block;
  margin:0 auto 6px;
  box-shadow:0 12px 26px rgba(0,0,0,0.28);
  background:rgba(255,255,255,0.04);
}

.card.game h3{
  margin-bottom:8px;
  text-align:center;
}

.card.game .game-desc{
  text-align:center;
  min-height:3.8em;
}

@media (max-width:768px){
  .game-img{
    width:104px;
    height:104px;
  }
}