:root{
  /* --- Palette LuminaCraft --- */
  --green-1: #eef8e6;      /* vert très clair, haut du dégradé */
  --green-2: #dcefc9;      /* vert clair, bas du dégradé */
  --green-glow: #cbe8b0;   /* halo lumineux discret */
  --brown-light: #d9c3a3;  /* footer */
  --brown-light-2: #cdb38e;/* dégradé footer */
  --brown-mid: #a97848;    /* bouton Jouer / accents */
  --brown-mid-hover: #92643a;
  --brown-dark: #503a25;   /* texte sur footer / titres */
  --text-main: #33422a;    /* texte principal sur fond vert */
  --text-soft: #5c6b4f;
  --navbar-bg: rgba(255,255,255,0.38);
  --navbar-border: rgba(255,255,255,0.55);
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{
  scroll-behavior: smooth;
}
html, body{
  min-height:100%;
  font-family:'Nunito Sans', sans-serif;
  color:var(--text-main);
  background: linear-gradient(160deg, var(--green-1) 0%, var(--green-2) 55%, var(--green-1) 100%);
  background-attachment: fixed;
}

h1,h2,h3, .brand, nav a, .btn-play{
  font-family:'Baloo 2', sans-serif;
}

a{ text-decoration:none; color:inherit; }

/* ---------- Halo lumineux d'ambiance (clin d'œil à "Lumina") ---------- */
.ambient{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}
.ambient span{
  position:absolute;
  border-radius:50%;
  filter: blur(60px);
  opacity:0.55;
}
.ambient span:nth-child(1){
  width:420px; height:420px; top:-120px; left:-100px;
  background: radial-gradient(circle, var(--green-glow), transparent 70%);
}
.ambient span:nth-child(2){
  width:340px; height:340px; top:20%; right:-120px;
  background: radial-gradient(circle, #fff7dd, transparent 70%);
  opacity:0.4;
}
.ambient span:nth-child(3){
  width:500px; height:500px; bottom:-180px; left:30%;
  background: radial-gradient(circle, var(--brown-light), transparent 70%);
  opacity:0.25;
}

/* ---------------- NAVBAR ---------------- */
header{
  position:fixed;
  top:18px;
  left:50%;
  transform:translateX(-50%);
  width:min(1180px, 92%);
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 22px;
  background:var(--navbar-bg);
  border:1px solid var(--navbar-border);
  border-radius:999px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 8px 32px rgba(80,58,37,0.10);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:1.25rem;
  font-weight:700;
  color:var(--brown-dark);
  white-space:nowrap;
}
.logo-img{
  height:36px;
  width:auto;
  max-width:120px;
  object-fit:contain;
  flex-shrink:0;
}
.footer-brand .logo-img{
  height:40px;
}

nav.links{
  display:flex;
  gap:28px;
  align-items:center;
}
nav.links a{
  font-size:0.98rem;
  font-weight:600;
  color:var(--text-main);
  position:relative;
  padding:4px 2px;
  transition: color .2s ease;
}
nav.links a::after{
  content:"";
  position:absolute;
  left:0; bottom:-3px;
  width:0%;
  height:2px;
  background:var(--brown-mid);
  transition:width .25s ease;
  border-radius:2px;
}
nav.links a:hover{ color:var(--brown-dark); }
nav.links a:hover::after{ width:100%; }
nav.links a.active{ color:var(--brown-dark); }
nav.links a.active::after{ width:100%; }

.btn-play{
  background: linear-gradient(135deg, var(--brown-mid), var(--brown-mid-hover));
  color:#fff8ec;
  font-weight:700;
  font-size:0.98rem;
  padding:10px 26px;
  border-radius:999px;
  box-shadow: 0 6px 16px rgba(169,120,72,0.35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-play:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(169,120,72,0.45);
}

/* burger pour mobile */
.burger{
  display:none;
  width:26px; height:20px;
  flex-direction:column;
  justify-content:space-between;
  cursor:pointer;
}
.burger span{
  height:3px; width:100%;
  background:var(--brown-dark);
  border-radius:3px;
}

/* ---------------- LAYOUT GENERAL DU CORPS ---------------- */
main{
  position:relative;
  z-index:1;
  padding-top:120px;
}
section{
  max-width:1180px;
  margin:0 auto;
  padding:80px 24px;
  scroll-margin-top:110px; /* évite que la navbar flottante ne cache le haut de la section ciblée */
}
.highlight{ color:var(--brown-mid); }

.section-head{
  text-align:center;
  max-width:640px;
  margin:0 auto 48px;
}
.section-head h2{
  font-size:clamp(1.8rem, 4vw, 2.4rem);
  color:var(--brown-dark);
  margin-bottom:12px;
}
.section-head p{
  color:var(--text-soft);
  font-size:1.05rem;
}

.btn-primary{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: linear-gradient(135deg, var(--brown-mid), var(--brown-mid-hover));
  color:#fff8ec;
  font-family:'Baloo 2', sans-serif;
  font-weight:700;
  font-size:1rem;
  padding:14px 32px;
  border-radius:999px;
  box-shadow: 0 8px 20px rgba(169,120,72,0.35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 12px 26px rgba(169,120,72,0.45); }

.btn-secondary{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: rgba(255,255,255,0.55);
  color:var(--brown-dark);
  font-family:'Baloo 2', sans-serif;
  font-weight:700;
  font-size:1rem;
  padding:14px 32px;
  border-radius:999px;
  border:1px solid rgba(80,58,37,0.15);
  transition: background .18s ease, transform .18s ease;
}
.btn-secondary:hover{ background:rgba(255,255,255,0.85); transform:translateY(-2px); }

.btn-center{ display:flex; width:fit-content; margin:0 auto; }

/* ---------------- HERO ---------------- */
.hero{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap:48px;
  align-items:center;
  padding-top:60px;
  padding-bottom:60px;
}
.eyebrow{
  display:inline-block;
  font-family:'Baloo 2', sans-serif;
  font-weight:700;
  font-size:0.85rem;
  letter-spacing:0.5px;
  color:var(--brown-mid);
  background: rgba(169,120,72,0.12);
  padding:6px 16px;
  border-radius:999px;
  margin-bottom:18px;
}
.hero-content h1{
  font-size:clamp(2.4rem, 5vw, 3.6rem);
  color:var(--brown-dark);
  line-height:1.1;
  margin-bottom:20px;
}
.hero-content p{
  font-size:1.08rem;
  color:var(--text-soft);
  max-width:480px;
  margin-bottom:32px;
  line-height:1.6;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }

.hero-visual{
  position:relative;
  height:420px;
  border-radius:32px;
  background: linear-gradient(160deg, rgba(255,255,255,0.5), rgba(255,255,255,0.15));
  border:1px solid rgba(255,255,255,0.5);
  overflow:hidden;
}
.glow-sun{
  position:absolute;
  top:36px; right:56px;
  width:90px; height:90px;
  border-radius:50%;
  background: radial-gradient(circle, #fff3cf, #ffe29a 60%, transparent 75%);
  filter: blur(2px);
}
.hill{
  position:absolute;
  left:-10%;
  width:120%;
  border-radius:50% 50% 0 0 / 100% 100% 0 0;
}
.hill-1{ height:220px; bottom:-40px; background:var(--green-2); opacity:0.9; }
.hill-2{ height:170px; bottom:-50px; background:#b7dd9c; opacity:0.85; }
.hill-3{ height:120px; bottom:-60px; background:var(--brown-light-2); opacity:0.65; }
.block{
  position:absolute;
  border-radius:10px;
  box-shadow: 0 10px 20px rgba(80,58,37,0.15);
}
.block-1{ width:46px; height:46px; bottom:130px; left:22%; background:var(--brown-mid); transform:rotate(-8deg); }
.block-2{ width:34px; height:34px; bottom:190px; left:32%; background:#e7a25c; transform:rotate(10deg); }
.block-3{ width:38px; height:38px; bottom:150px; right:26%; background:var(--green-1); border:1px solid var(--green-2); transform:rotate(6deg); }
.block-4{ width:26px; height:26px; bottom:230px; right:34%; background:#fff3cf; transform:rotate(-12deg); }

/* ---------------- COMMENT CA FONCTIONNE ---------------- */

/* Switcher "Avec le Launcher" / "Minecraft Vanilla" */
.steps-switcher{
  display:flex;
  gap:6px;
  background: rgba(255,255,255,0.5);
  border:1px solid rgba(255,255,255,0.6);
  padding:6px;
  border-radius:999px;
  width:fit-content;
  margin:0 auto 44px;
}
.switch-btn{
  font-family:'Baloo 2', sans-serif;
  font-weight:700;
  font-size:0.92rem;
  color:var(--text-soft);
  background:transparent;
  border:none;
  padding:11px 24px;
  border-radius:999px;
  cursor:pointer;
  transition: all .2s ease;
}
.switch-btn:hover{ color:var(--brown-dark); }
.switch-btn.active{
  background: linear-gradient(135deg, var(--brown-mid), var(--brown-mid-hover));
  color:#fff8ec;
  box-shadow: 0 6px 16px rgba(169,120,72,0.35);
}

.steps-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:28px;
  margin-bottom:32px;
}
.steps-grid[hidden],
.steps-cta[hidden]{
  display:none;
}

/* Etat "inactif" -> chaque bulle est en retrait tant que ce n'est pas son tour */
.step-card{
  background: rgba(255,255,255,0.4);
  border:2px solid transparent;
  border-radius:24px;
  padding:28px;
  opacity:0.55;
  transform: scale(0.97);
  cursor:pointer;
  transition: opacity .45s ease, transform .45s ease, border-color .45s ease, box-shadow .45s ease, background .45s ease;
}
/* Etat "actif" -> mis en avant, glow marron, comme sur Paladium */
.step-card.step-active{
  background: rgba(255,255,255,0.7);
  border-color: var(--brown-mid);
  box-shadow: 0 14px 34px rgba(169,120,72,0.25);
  opacity:1;
  transform: scale(1);
}
.step-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px; height:32px;
  border-radius:50%;
  background:var(--brown-mid);
  color:#fff8ec;
  font-family:'Baloo 2', sans-serif;
  font-weight:700;
  margin-bottom:16px;
  transition: box-shadow .4s ease;
}
.step-card.step-active .step-num{
  box-shadow: 0 0 0 6px rgba(169,120,72,0.18);
}
.step-card h3{
  font-size:1.15rem;
  color:var(--brown-dark);
  margin-bottom:10px;
}
.step-card p{
  color:var(--text-soft);
  font-size:0.95rem;
  line-height:1.6;
}

/* Zone pour vos images / gifs / vidéos */
.step-media{
  margin-top:20px;
  border-radius:14px;
  overflow:hidden;
  background:#2c261e;
  aspect-ratio: 16 / 10;
  position:relative;
}
.step-media img,
.step-media video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.media-fallback{ display:none; }
.step-media.media-missing{
  display:flex;
  align-items:center;
  justify-content:center;
  background: repeating-linear-gradient(135deg, #352c22, #352c22 10px, #2c2419 10px, #2c2419 20px);
  border:1px dashed rgba(255,248,236,0.25);
}
.step-media.media-missing .media-fallback{
  display:block;
  text-align:center;
  color:#c9bfae;
  font-size:0.78rem;
  line-height:1.6;
  padding:16px;
}
.step-media.media-missing .media-fallback code{
  display:inline-block;
  margin-top:4px;
  background:rgba(255,255,255,0.08);
  padding:2px 8px;
  border-radius:6px;
  font-size:0.72rem;
  color:#e7a25c;
}

/* Appels à l'action sous les étapes */
.steps-cta{ display:flex; justify-content:center; }
.ip-copy{
  display:flex;
  align-items:center;
  gap:14px;
  background: rgba(255,255,255,0.5);
  border:1px solid rgba(255,255,255,0.6);
  padding:8px 8px 8px 22px;
  border-radius:999px;
}
.ip-value{
  font-family:'Baloo 2', sans-serif;
  font-weight:700;
  color:var(--brown-dark);
  font-size:1rem;
}

/* ---------------- FEATURES BENTO ---------------- */
.features-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows:auto;
  gap:24px;
}
.feature-card{
  background: rgba(255,255,255,0.5);
  border:1px solid rgba(255,255,255,0.6);
  border-top:3px solid var(--brown-mid);
  border-radius:20px;
  padding:26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover{ transform:translateY(-4px); box-shadow:0 14px 28px rgba(80,58,37,0.12); }
.feature-big{
  grid-row: span 2;
  background: linear-gradient(160deg, rgba(255,255,255,0.6), rgba(255,255,255,0.25));
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.feature-icon{ font-size:1.6rem; margin-bottom:12px; }
.feature-card h3{ font-size:1.05rem; color:var(--brown-dark); margin-bottom:8px; }
.feature-card p{ font-size:0.92rem; color:var(--text-soft); line-height:1.6; }

/* ---------------- PAGE EN CONSTRUCTION ---------------- */
.construction-section{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding-top:80px;
  padding-bottom:100px;
}
.construction-visual{
  position:relative;
  width:min(560px, 100%);
  height:280px;
  border-radius:32px;
  background: linear-gradient(160deg, rgba(255,255,255,0.5), rgba(255,255,255,0.15));
  border:1px solid rgba(255,255,255,0.5);
  overflow:hidden;
  margin-bottom:36px;
}
.construction-icon{
  position:absolute;
  bottom:26px;
  left:50%;
  transform:translateX(-50%);
  font-size:2.6rem;
  filter:drop-shadow(0 8px 14px rgba(80,58,37,0.25));
}
.construction-section .eyebrow{ margin-bottom:14px; }
.construction-section h1{
  font-size:clamp(2rem, 4.5vw, 2.8rem);
  color:var(--brown-dark);
  margin-bottom:16px;
}
.construction-section p{
  color:var(--text-soft);
  font-size:1.05rem;
  max-width:480px;
  margin-bottom:32px;
  line-height:1.6;
}
.construction-actions{ justify-content:center; }

/* ---------------- PAGE SUPPORT ---------------- */
.support-hero{
  text-align:center;
  max-width:640px;
  margin:0 auto;
  padding-top:80px;
  padding-bottom:20px;
}
.support-hero h1{
  font-size:clamp(2.2rem, 4.5vw, 3rem);
  color:var(--brown-dark);
  margin:16px 0;
}
.support-hero p{
  color:var(--text-soft);
  font-size:1.05rem;
  line-height:1.6;
}

.support-primary{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:44px;
  align-items:center;
  background: rgba(255,255,255,0.45);
  border:1px solid rgba(255,255,255,0.6);
  border-radius:32px;
  padding:48px;
}
.support-badge{
  display:inline-block;
  font-family:'Baloo 2', sans-serif;
  font-weight:700;
  font-size:0.8rem;
  letter-spacing:0.4px;
  color:#4f6e3d;
  background: rgba(127,174,92,0.18);
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:16px;
}
.support-primary-text h2{
  font-size:1.6rem;
  color:var(--brown-dark);
  margin-bottom:14px;
}
.support-primary-text p{
  color:var(--text-soft);
  font-size:1rem;
  line-height:1.65;
  margin-bottom:26px;
}

.support-media{
  border-radius:22px;
  overflow:hidden;
  background:#2c261e;
  aspect-ratio: 4 / 3;
  position:relative;
}
.support-media img,
.support-media video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.support-media .media-fallback{ display:none; }
.support-media.media-missing{
  display:flex;
  align-items:center;
  justify-content:center;
  background: repeating-linear-gradient(135deg, #352c22, #352c22 10px, #2c2419 10px, #2c2419 20px);
  border:1px dashed rgba(255,248,236,0.25);
}
.support-media.media-missing .media-fallback{
  display:block;
  text-align:center;
  color:#c9bfae;
  font-size:0.8rem;
  line-height:1.6;
  padding:20px;
}
.support-media.media-missing .media-fallback code{
  display:inline-block;
  margin-top:4px;
  background:rgba(255,255,255,0.08);
  padding:2px 8px;
  border-radius:6px;
  font-size:0.72rem;
  color:#e7a25c;
}

.support-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:24px;
}
.support-card{
  background: rgba(255,255,255,0.5);
  border:1px solid rgba(255,255,255,0.6);
  border-top:3px solid var(--brown-mid);
  border-radius:20px;
  padding:30px;
  text-align:center;
}
.support-card .feature-icon{ font-size:1.8rem; margin-bottom:12px; }
.support-card h3{ font-size:1.1rem; color:var(--brown-dark); margin-bottom:10px; }
.support-card p{ font-size:0.92rem; color:var(--text-soft); line-height:1.6; margin-bottom:20px; }

.support-guide{
  background: rgba(255,255,255,0.35);
  border:1px solid rgba(255,255,255,0.55);
  border-radius:28px;
  padding:40px 48px;
  margin-bottom:64px;
}
.guide-grid{ display:flex; flex-direction:column; gap:0; }
.guide-row{
  display:flex;
  align-items:center;
  gap:24px;
  padding:18px 0;
  border-bottom:1px solid rgba(80,58,37,0.12);
}
.guide-row:last-child{ border-bottom:none; }
.guide-tag{
  flex-shrink:0;
  width:130px;
  text-align:center;
  font-family:'Baloo 2', sans-serif;
  font-weight:700;
  font-size:0.85rem;
  padding:7px 10px;
  border-radius:999px;
  color:#fff8ec;
}
.guide-tag.ts{ background: linear-gradient(135deg, var(--brown-mid), var(--brown-mid-hover)); }
.guide-tag.discord{ background: linear-gradient(135deg, #6c8f56, #4f6e3d); }
.guide-tag.mail{ background: linear-gradient(135deg, #7fae5c, #5c8a41); }
.guide-row p{ color:var(--text-soft); font-size:0.95rem; margin:0; }

/* ---------------- COMMUNAUTE ---------------- */
.community-section{
  background: rgba(255,255,255,0.4);
  border-radius:32px;
  border:1px solid rgba(255,255,255,0.6);
  margin-bottom:64px; /* espace avant le footer, pour ne pas y être collée */
}
.community-intro{
  text-align:center;
  max-width:600px;
  margin:0 auto 40px;
}
.community-intro h2{ color:var(--brown-dark); font-size:1.8rem; margin-bottom:12px; }
.community-intro p{ color:var(--text-soft); }
.community-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:32px;
}
.community-col h3{ color:var(--brown-dark); font-size:1.1rem; margin-bottom:10px; }
.community-col p{ color:var(--text-soft); font-size:0.95rem; line-height:1.6; margin-bottom:10px; }
.community-col a{ color:var(--brown-mid); font-weight:700; font-size:0.92rem; }
.community-col a:hover{ text-decoration:underline; }

/* ---------------- FOOTER ---------------- */
footer{
  position:relative;
  z-index:1;
  background: linear-gradient(160deg, var(--brown-light) 0%, var(--brown-light-2) 100%);
  color:var(--brown-dark);
  padding:64px 8vw 28px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap:40px;
  padding-bottom:36px;
}
.footer-col h3, .footer-brand .brand{
  font-size:1.05rem;
  font-weight:700;
  margin-bottom:16px;
  color:#3d2c1c;
}
.footer-brand .brand{
  font-size:1.3rem;
  margin-bottom:14px;
}
.footer-brand p{
  font-size:0.92rem;
  line-height:1.6;
  color:#5c4630;
  max-width:320px;
}
.footer-col ul{ list-style:none; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col ul li a{
  font-size:0.92rem;
  color:#4a3826;
  transition: color .2s ease;
}
.footer-col ul li a:hover{ color:#241a10; text-decoration:underline; }

.socials{
  display:flex;
  gap:12px;
  margin-top:16px;
}
.socials a{
  width:38px; height:38px;
  border-radius:50%;
  background: rgba(255,255,255,0.35);
  display:flex;
  align-items:center;
  justify-content:center;
  transition: background .2s ease, transform .2s ease;
}
.socials a:hover{
  background: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}
.socials svg{ width:18px; height:18px; fill:#4a3826; }

.footer-bottom{
  border-top:1px solid rgba(80,58,37,0.25);
  padding-top:20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  font-size:0.82rem;
  color:#5c4630;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 880px){
  nav.links{
    position:absolute;
    top:calc(100% + 12px);
    left:0;
    width:100%;
    flex-direction:column;
    background:var(--navbar-bg);
    backdrop-filter: blur(14px);
    border:1px solid var(--navbar-border);
    border-radius:22px;
    padding:18px;
    gap:16px;
    display:none;
    box-shadow: 0 8px 32px rgba(80,58,37,0.12);
  }
  nav.links.open{ display:flex; }
  .burger{ display:flex; }
  header{ padding:10px 16px; }
  .btn-play{ padding:9px 18px; font-size:0.9rem; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .footer-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 900px){
  .hero{ grid-template-columns:1fr; text-align:center; }
  .hero-content p{ margin-left:auto; margin-right:auto; }
  .hero-actions{ justify-content:center; }
  .hero-visual{ height:280px; order:-1; }

  .steps-grid{ grid-template-columns:1fr; }

  .features-grid{ grid-template-columns:1fr 1fr; }
  .feature-big{ grid-row:auto; }

  .community-grid{ grid-template-columns:1fr; }

  .steps-switcher{ width:100%; }
  .switch-btn{ flex:1; text-align:center; padding:11px 12px; }

  .support-primary{ grid-template-columns:1fr; padding:32px; }
  .support-media{ order:-1; aspect-ratio:16/9; }
  .support-grid{ grid-template-columns:1fr; }
  .support-guide{ padding:28px; }
  .guide-row{ flex-direction:column; align-items:flex-start; gap:8px; }
}

@media (max-width: 560px){
  .features-grid{ grid-template-columns:1fr; }
}