/* ===== Base ===== */
:root{
  --bg: #05070b;
  --text: #eaf2ff;
  --muted: rgba(255,255,255,.75);
  --card: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.10);
  --shadow: rgba(0,0,0,.35);
}

*{ box-sizing: border-box; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(circle at 30% 10%, rgba(31,199,199,.18), transparent 45%),
              radial-gradient(circle at 70% 0%, rgba(46,123,212,.18), transparent 40%),
              var(--bg);
  color: var(--text);
}

a{ color: inherit; }

/* Container */
.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ===== Buttons ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-weight: 700;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0,0,0,.25);
}

.btn-primary{
  background: rgba(31,199,199,.20);
  border-color: rgba(31,199,199,.35);
}

.btn-ghost{
  background: transparent;
}

.btn-login{
  background: #52d000;
  border-color: rgba(0,0,0,.15);
  color: #0c1a0c;
  font-weight: 900;
}

/* ===== TOPBAR (style 4Download) ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(90deg, #2e7bd4, #1fc7c7);
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.topbar-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar, .topbar * {
  box-sizing: border-box;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand-logo{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.20);
}

.brand-text{
  line-height: 1.05;
}
.brand-text strong{
  display: block;
  font-size: 14px;
  opacity: .95;
}
.brand-text span{
  display: block;
  font-size: 18px;
  font-weight: 900;
}

/* Search */
.search{
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  overflow: hidden;
  min-height: 44px;
}

.search input{
  flex: 1;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-size: 14px;
}

.search input::placeholder{
  color: rgba(255,255,255,0.75);
}

.search button{
  border: 0;
  background: rgba(255,255,255,0.18);
  color: #fff;
  padding: 0 14px;
  height: 44px;
  cursor: pointer;
}

/* Right actions */
.top-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn{
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  cursor: pointer;
}

/* Categories nav */
.catnav{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 18px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  align-items: center;
}

.catnav a{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
}

.catnav a:hover{
  background: rgba(255,255,255,0.14);
}

.catnav a.active{
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.18);
}

/* ===== HERO wide ===== */
.hero-wide{
  background: linear-gradient(180deg, rgba(32,170,215,0.22), rgba(0,0,0,0));
  padding: 38px 18px 18px;
}

.hero-wide-inner{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 22px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(14px);
}

.hero-copy h1{
  margin: 0 0 10px;
  font-size: 44px;
  letter-spacing: -0.03em;
}

.hero-copy h1 span{
  background: rgba(255,255,255,0.12);
  padding: 0 10px;
  border-radius: 10px;
}

.hero-copy p{
  margin: 0 0 14px;
  opacity: .92;
  max-width: 58ch;
  line-height: 1.6;
}

.hero-ctas{
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Simple illustration */
.hero-illu{
  display: grid;
  place-items: center;
  min-height: 180px;
}
.folder{
  width: 260px;
  height: 170px;
  border-radius: 26px;
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,0.35), transparent 45%),
              linear-gradient(135deg, #ffcd2e, #ff9f22);
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.35);
}
.folder::before{
  content: "";
  position: absolute;
  top: -18px;
  left: 26px;
  width: 110px;
  height: 44px;
  border-radius: 16px 16px 10px 10px;
  background: linear-gradient(135deg, #ffd95b, #ffb33b);
}

/* ===== Simple hero (about / plugins) ===== */
.hero{
  padding: 26px 0 8px;
}
.hero-simple{
  padding-top: 26px;
}
.hero p{
  margin: 8px 0 0;
  opacity: .9;
}

/* ===== Sections / Grid / Cards ===== */
.section{
  padding: 70px 0;
}
.section-title{
  text-align: center;
  margin: 0;
  font-size: 2rem;
}
.section-subtitle{
  text-align: center;
  margin: 12px auto 0;
  max-width: 70ch;
  opacity: .80;
  line-height: 1.7;
}

.grid{
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,.20);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover{
  transform: translateY(-4px);
  border-color: rgba(31,199,199,.28);
  box-shadow: 0 30px 80px rgba(0,0,0,.30);
}
.card h2, .card h3{
  margin: 0 0 8px;
}
.card p{
  margin: 0 0 12px;
  opacity: .9;
  line-height: 1.6;
}

/* muted section */
.section-muted{
  padding-top: 20px;
}
.small-text{
  text-align: center;
  opacity: .72;
  max-width: 90ch;
  margin: 0 auto;
}

/* No results */
.no-results{
  margin-top: 18px;
  text-align: center;
  opacity: .85;
}

/* Footer */
.footer{
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 24px 0;
}
.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-links{
  display: flex;
  gap: 14px;
}
.footer a{
  text-decoration: none;
  opacity: .9;
}
.footer a:hover{
  opacity: 1;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px){
  .hero-wide-inner{ grid-template-columns: 1fr; }
  .hero-copy h1{ font-size: 34px; }
  .hero-illu{ display: none; }
  .grid{ grid-template-columns: 1fr; }
}

/* ✅ FIX scroll (si la page “semble vide”) */
html, body{
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* ✅ Le hero ne doit pas bloquer toute la page */
.hero, .hero-wide{
  height: auto !important;
  min-height: 0 !important;
}

/* (optionnel) si tu avais mis un wrapper en overflow hidden */
.container, main{
  overflow: visible !important;
}

/* ===== LANG SWITCH (FR / EN) ===== */
.lang-btn {
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);

  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;

  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.22);
}

/* FORCE ALIGN TOPBAR */
.topbar .topbar-inner{
  display:flex;
  align-items:center;
  gap:16px;
}

.topbar .top-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

/* LANG BUTTON (FORCED) */
.topbar .lang-btn{
  height:42px !important;
  padding:0 14px !important;
  border-radius:12px !important;
  border:1px solid rgba(255,255,255,.25) !important;
  background:rgba(255,255,255,.12) !important;
  color:#fff !important;
  font-weight:700 !important;
  font-size:14px !important;
  line-height:42px !important;
  cursor:pointer !important;
}
.topbar .lang-btn:hover{
  background:rgba(255,255,255,.22) !important;
}


