:root{
  --bg1:#0E1020; --bg2:#2d0e5a; --bg3:#1b0e6b;
  --accent:#6C49FF; --text:#E9E9F0; --muted:#C9C7E6;
  --card:rgba(255,255,255,.06); --line:rgba(255,255,255,.12);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  background:
    radial-gradient(1200px 800px at 10% 10%, #301360 0%, transparent 60%),
    radial-gradient(1000px 700px at 90% 20%, #2e0d76 0%, transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg3));
  display:flex; flex-direction:column; min-height:100vh;
}
main{flex:1}
.container{max-width:1200px; margin:0 auto; padding:0 16px}
a{color:inherit}

/* NAV & alignement droit (desktop) */
.nav{position:sticky; top:0; z-index:50; backdrop-filter:saturate(140%) blur(8px);
  background:rgba(14,16,32,.60); border-bottom:1px solid rgba(255,255,255,.10)}
.nav .bar{display:flex; align-items:center; gap:16px; padding:12px 8px}
.brand{font-weight:800; letter-spacing:.4px}
.menu{display:flex; gap:18px; align-items:center; margin-left:auto}
.menu a{text-decoration:none; opacity:.95; padding:8px 10px; border-radius:10px}
.menu a:hover{background:rgba(255,255,255,.08); opacity:1}

/* Burger : HORS flux en haut-droite */
.hamb{
  display:none; /* desktop */
  position:fixed; top:12px; right:12px; z-index:100;
  background:var(--accent); color:#fff; border:0; border-radius:10px;
  width:42px; height:42px; font-size:20px; font-weight:800; cursor:pointer;
  box-shadow:0 8px 22px rgba(108,73,255,.35)
}

/* Drawer caché par défaut sur desktop */
.drawer{display:none}

/* --- MOBILE --- */
@media (max-width: 860px){
  .menu{display:none}
  .hamb{display:inline-flex; align-items:center; justify-content:center}

  /* Fond OPAQUE + plein écran */
  .drawer{
    display:block; position:fixed; inset:0; z-index:90;
    background:#0b0d1a;              /* opaque */
    opacity:0; pointer-events:none; transition:opacity .18s ease;
  }
  .drawer.open{opacity:1; pointer-events:auto}

  /* Panneau = tout l’écran (lisible) */
  .drawer .panel{
    position:absolute; inset:0; padding:24px;
    display:flex; flex-direction:column; gap:8px;
  }

  /* Bouton de fermeture dans le coin */
  .drawer .close{
    position:absolute; top:16px; right:16px;
    background:transparent; color:#fff; border:1px solid rgba(255,255,255,.25);
    border-radius:10px; width:42px; height:42px; font-size:18px; cursor:pointer;
  }

  /* Liens très lisibles */
  .drawer .panel a{
    display:block; text-decoration:none; color:#fff;
    font-size:20px; font-weight:800; letter-spacing:.2px;
    padding:14px 10px; border-radius:10px;
    border-bottom:1px solid rgba(255,255,255,.12);
  }
  .drawer .panel a:hover{background:rgba(255,255,255,.08)}
}

/* HERO */
.hero{display:grid; place-items:center; text-align:center; padding:56px 0}
.hero h1{font-size: clamp(28px, 5.6vw, 54px); margin:0 0 12px}
.hero p{opacity:.92; margin:0 0 22px; font-size:clamp(15px,2.8vw,18px)}
.cta{display:inline-flex; align-items:center; gap:10px; padding:12px 18px; border-radius:12px;
  background:var(--accent); color:white; border:0; font-weight:700; cursor:pointer;
  box-shadow:0 8px 24px rgba(108,73,255,.35)}
.cta:focus{outline:2px solid #fff4}
.secondary{background:transparent; border:1px solid var(--line); color:var(--text)}

/* SECTIONS */
.section{padding:34px 0}
.section .title{font-size:clamp(22px,3.2vw,30px); margin:0 0 14px; text-align:center}
.grid{
  display:grid; gap:14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card{background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px}
.muted{color:var(--muted)}

/* PRICING */
.pricing{display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.price{font-size:28px; font-weight:800; margin:8px 0}

/* FOOTER fixé bas */
.footer{border-top:1px solid var(--line); padding:22px 0; background:rgba(0,0,0,.2); margin-top:auto}
.footer .container{display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; align-items:center}

/* UTIL */
.row{display:flex; gap:10px; flex-wrap:wrap; justify-content:center}
.badge{border:1px solid var(--line); border-radius:999px; padding:6px 10px; font-size:13px; opacity:.9}

/* ===== MENU MOBILE OPAQUE MAGENTA ===== */
@media (max-width: 860px){
  /* Fond plein écran 100% opaque magenta */
  .drawer{
    background: #FF00FF !important;   /* magenta opaque */
  }
  /* Le panneau couvre l'écran : même couleur pour éviter tout liseré */
  .drawer .panel{
    background: #FF00FF !important;
  }
  /* Liens bien visibles sur magenta */
  .drawer .panel a{
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255,255,255,0.25);
  }
  .drawer .panel a:hover{
    background: rgba(0,0,0,0.12); /* léger assombrissement au survol (le fond reste opaque) */
  }
  /* Bouton de fermeture lisible */
  .drawer .close{
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.8);
    background: transparent;
  }
}
/* === Cartes modernes & boutons arrondis (Journal / Profil) === */
.cards{
  display:grid; gap:16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items:stretch;
}
.card{
  background: #14162A;                 /* fond plein, élégant */
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 18px rgba(0,0,0,.18); /* ombre grise légère */
}
.card:hover{ box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.card h2{ margin:0 0 10px; font-size: clamp(18px, 2.6vw, 22px); }
.card p.muted{ margin:6px 0 12px; }

.input, .select{
  width:100%; background:#0f1122; color:#fff;
  border:1px solid rgba(255,255,255,.16);
  border-radius:12px; padding:12px 12px; outline:none;
}
.input:focus, .select:focus{
  border-color:#8f7bff; box-shadow: 0 0 0 3px rgba(140,120,255,.2);
}

.btn{
  appearance:none; border:0; cursor:pointer; font-weight:700;
  padding:12px 16px; border-radius:14px;
  box-shadow: 0 6px 14px rgba(0,0,0,.16); /* ombre grise subtile */
  transition: transform .06s ease, filter .12s ease, box-shadow .12s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--accent); color:#fff; }
.btn-primary:hover{ filter:brightness(1.05); box-shadow: 0 8px 20px rgba(108,73,255,.35); }
.btn-ghost{ background: transparent; color:#fff; border:1px solid rgba(255,255,255,.18); }
.btn-ghost:hover{ background: rgba(255,255,255,.06); }

.row-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.list{
  margin:0; padding:0; list-style:none;
  display:flex; flex-direction:column; gap:10px;
}
.list li{
  background:#0f1122; border:1px solid rgba(255,255,255,.12);
  border-radius:12px; padding:10px 12px;
}

/* Petites aides de mise en page */
.field{ margin:10px 0; }
.label{ display:block; font-size:14px; opacity:.9; margin-bottom:6px; }
.help{ font-size:12px; opacity:.7; margin-top:6px; }
