/* ═══════════════════════════════════════════════════════
   MINARK — LANDING PAGE
   Style : Gris foncé chaud, type Figma
   Fond de base : #0f1117  Surface : #161b27  Accent : #6398ff
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:       #0f1117;
  --bg2:      #161b27;
  --bg3:      #1b2236;
  --bg4:      #1e2640;
  --border:   #1e2640;
  --border2:  #2a3660;
  --text:     #b0b8cc;
  --text2:    #5a6a8a;
  --text3:    #2e3a52;
  --white:    #e8eaf0;
  --accent:   #6398ff;
  --accent2:  #7aadff;
  --accentbg: rgba(99,152,255,.1);
  --blue:     #7aadff;
  --green:    #3ecf8e;
  --red:      #e06060;
  --max:      1300px;
  --r:        10px;
}
html { scroll-behavior: smooth; }

/* Conteneur centré utilisé par toutes les sections */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 36px;
}
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.6; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; }


/* ── Nav override landing : transparente au départ ── */
.mnav {
  background: rgba(15,17,23,0) !important;
  backdrop-filter: blur(0px) !important;
  border-color: transparent !important;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.mnav.scrolled {
  background: rgba(15,17,23,.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-color: var(--border) !important;
}


/* ═══════════════════════════
   1. HERO
   ═══════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 32px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .07; z-index: 0;
}
.hero-glow {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 65% at 50% -10%, rgba(99,152,255,.16) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 70%,  rgba(162,125,255,.08) 0%, transparent 55%),
    linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 680px; margin: 0 auto; text-align: center;
  width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accentbg); border: 1px solid rgba(99,152,255,.22);
  border-radius: 100px; padding: 5px 16px;
  font-size: 12px; font-weight: 600; color: var(--accent2);
  letter-spacing: .3px; margin-bottom: 28px;
  animation: fadeUp .7s ease both;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(.65)} }
.hero-title {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  color: var(--white); line-height: 1.05; letter-spacing: -.5px;
  margin-bottom: 22px;
  animation: fadeUp .7s ease .07s both;
}
.hero-title em {
  font-style: normal; color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 18px; font-weight: 300; color: var(--text2);
  line-height: 1.75; max-width: 560px; margin: 0 auto 44px;
  animation: fadeUp .7s ease .14s both;
}
.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 72px;
  animation: fadeUp .7s ease .21s both;
}
.btn-hero {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #0a0e1a;
  padding: 13px 28px; border-radius: 9px;
  font-size: 14px; font-weight: 700;
  transition: all .2s; box-shadow: 0 4px 22px rgba(99,152,255,.28);
}
.btn-hero:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,152,255,.38); color: #0a0e1a; }
.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg3); color: var(--text);
  padding: 13px 28px; border-radius: 9px;
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--border2);
  transition: all .2s;
}
.btn-hero-ghost:hover { border-color: var(--accent); background: var(--accentbg); color: var(--white); }
/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text3); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  animation: fadeUp .7s ease .6s both;
}
.scroll-mouse {
  width: 22px; height: 34px; border-radius: 11px;
  border: 1.5px solid var(--border2); position: relative;
}
.scroll-mouse::after {
  content: ''; position: absolute;
  width: 3px; height: 7px; background: var(--accent);
  border-radius: 2px; top: 5px; left: 50%; transform: translateX(-50%);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot { 0%,100%{opacity:1;top:5px} 60%{opacity:0;top:18px} }
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }

/* ═══════════════════════════
   2. STATS
   ═══════════════════════════ */
.stats-section {
  padding: 0;
  position: relative; z-index: 2;
  margin-top: -2px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.stat-cell {
  padding: 40px 48px;
  border-right: 1px solid var(--border);
  display: flex; align-items: center; gap: 20px;
  transition: background .2s;
}
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: var(--bg3); }
.stat-ico {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.ico-amber  { background: rgba(99,152,255,.12); color: var(--accent); }
.ico-blue   { background: rgba(99,152,255,.12); color: var(--blue); }
.ico-green  { background: rgba(62,207,142,.12);  color: var(--green); }
.stat-val {
  font-family: 'Manrope', sans-serif; font-size: 34px; font-weight: 800;
  color: var(--white); letter-spacing: -1px; line-height: 1; margin-bottom: 4px;
}
.stat-lbl { font-size: 13px; color: var(--text2); font-weight: 400; }

/* ═══════════════════════════
   3. FEATURES
   ═══════════════════════════ */
.features-section { padding: 100px 0; background: var(--bg); }
.features-header { max-width: 560px; margin-bottom: 60px; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.feat-card {
  background: var(--bg2); padding: 36px 32px;
  transition: background .25s;
  position: relative; overflow: hidden;
}
.feat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.feat-card:hover { background: var(--bg3); }
.feat-card:hover::before { transform: scaleX(1); }
.feat-num {
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 700;
  color: var(--text3); letter-spacing: 2px; margin-bottom: 22px;
}
.feat-icon {
  width: 46px; height: 46px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; margin-bottom: 18px; flex-shrink: 0;
}
.feat-card h3 {
  font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 700;
  color: var(--white); margin-bottom: 9px; letter-spacing: -.3px;
}
.feat-card p { font-size: 13px; color: var(--text2); line-height: 1.7; }

/* ═══════════════════════════
   4. ACTUALITÉS
   ═══════════════════════════ */
.news-section { padding: 100px 0; background: var(--bg2); }
.news-top {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 48px;
  flex-wrap: wrap; gap: 16px;
}
.news-all {
  font-size: 13px; font-weight: 600; color: var(--accent);
  display: flex; align-items: center; gap: 6px; transition: gap .2s;
}
.news-all:hover { gap: 10px; color: var(--accent2); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.news-card:hover {
  border-color: var(--border2); transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,.4); color: inherit;
}
.news-card-img { width: 100%; height: 148px; object-fit: cover; }
.news-placeholder {
  height: 148px; background: var(--bg4);
  display: flex; align-items: center; justify-content: center;
  color: var(--text3); font-size: 26px;
}
.news-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.news-card h3 {
  font-size: 15px; font-weight: 600; color: var(--white);
  line-height: 1.35; margin-bottom: 8px;
}
.news-card p {
  font-size: 12.5px; color: var(--text2); line-height: 1.6; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 14px;
}
.news-meta { font-size: 11px; color: var(--text3); display: flex; gap: 12px; }

/* ═══════════════════════════
   5. TÉLÉCHARGEMENT
   ═══════════════════════════ */
.download-section { padding: 100px 0; background: var(--bg); }
.download-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.dl-visual {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px; position: relative; overflow: hidden;
}
.dl-visual::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(99,152,255,.12), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.dl-icon-big {
  width: 72px; height: 72px; border-radius: 18px;
  background: var(--accentbg); border: 1px solid rgba(99,152,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--accent); margin-bottom: 24px;
}
.dl-version-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 6px; padding: 4px 10px;
  font-size: 11px; font-family: monospace; color: var(--text2);
  margin-bottom: 20px;
}
.dl-visual h3 {
  font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 800;
  color: var(--white); letter-spacing: -.5px; margin-bottom: 8px;
}
.dl-visual p { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 28px; }
.dl-checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.dl-checklist li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text);
}
.dl-checklist li i { color: var(--green); font-size: 12px; flex-shrink: 0; }
.btn-download {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #0a0e1a;
  padding: 14px 30px; border-radius: 10px;
  font-size: 15px; font-weight: 700;
  transition: all .2s; box-shadow: 0 4px 20px rgba(99,152,255,.25);
  width: 100%; justify-content: center;
}
.btn-download:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,152,255,.35); color: #0a0e1a; }
.dl-note { font-size: 11px; color: var(--text3); text-align: center; margin-top: 10px; }
.dl-text-side .section-lead { max-width: 420px; }
.dl-features { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.dl-feat {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); transition: border-color .2s;
}
.dl-feat:hover { border-color: var(--border2); }
.dl-feat-ico {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.dl-feat h4 { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.dl-feat p  { font-size: 12px; color: var(--text2); line-height: 1.6; }

/* ═══════════════════════════
   6. NEWSLETTER
   ═══════════════════════════ */
.newsletter-section {
  padding: 100px 0; background: var(--bg2);
  position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,152,255,.4), transparent);
}
.newsletter-inner {
  max-width: 560px; margin: 0 auto; text-align: center;
}
.newsletter-inner .section-eyebrow { justify-content: center; }
.newsletter-inner .section-eyebrow::before { display: none; }
.nl-form {
  display: flex; gap: 10px; margin-top: 36px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 11px; padding: 6px 6px 6px 18px;
  transition: border-color .2s;
}
.nl-form:focus-within { border-color: var(--accent); }
.nl-input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 14px; color: var(--white); font-family: 'DM Sans', sans-serif;
}
.nl-input::placeholder { color: var(--text3); }
.nl-btn {
  background: var(--accent); color: #0a0e1a;
  padding: 10px 22px; border-radius: 7px;
  font-size: 13px; font-weight: 700; border: none; cursor: pointer;
  transition: background .18s; white-space: nowrap; font-family: 'DM Sans', sans-serif;
}
.nl-btn:hover { background: var(--accent2); }
.nl-note { font-size: 12px; color: var(--text3); margin-top: 12px; }
.nl-alert {
  padding: 10px 16px; border-radius: 8px; font-size: 13px; margin-top: 16px; text-align: left;
}
.nl-success { background: rgba(92,200,138,.1); border: 1px solid rgba(92,200,138,.25); color: var(--green); }
.nl-error   { background: rgba(224,96,96,.1);  border: 1px solid rgba(224,96,96,.25);  color: var(--red);  }

/* ═══════════════════════════
   FOOTER
   ═══════════════════════════ */
.footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 17px;
  color: var(--white); display: flex; align-items: center; gap: 8px;
}
.footer-logo i { color: var(--accent); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13px; color: var(--text2); transition: color .18s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; color: var(--text3); }

/* ═══ Haut de page illustré : écran de chargement du jeu, texte en bas ═══ */
.hero.has-art { align-items: flex-end; padding-bottom: 96px; }
.hero.has-art .hero-bg { opacity: 1; background-position: center top; transform: scale(1.02); animation: heroZoom 18s ease-out both; }
.hero.has-art .hero-glow {
  background:
    linear-gradient(180deg, rgba(15,17,23,.35) 0%, rgba(15,17,23,0) 18%, rgba(15,17,23,0) 42%, rgba(15,17,23,.72) 72%, var(--bg) 100%);
}
.hero.has-art .hero-title { font-size: clamp(30px, 4.2vw, 54px); text-shadow: 0 3px 24px rgba(0,0,0,.6); margin-bottom: 14px; }
.hero.has-art .hero-sub { color: #dfe5f2; font-weight: 400; text-shadow: 0 2px 12px rgba(0,0,0,.7); margin-bottom: 30px; }
.hero.has-art .hero-actions { margin-bottom: 0; }
.hero.has-art .scroll-cue { display: none; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1.02); } }
.hero.has-art .hero-badge {
  background: rgba(10,14,26,.62); border-color: rgba(255,255,255,.14); color: #e8eeff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin-bottom: 18px;
}
/* Mobile : l'image est affichée en entier en largeur (logo visible), le texte passe dessous. */
@media (max-width: 760px) {
  .hero.has-art { min-height: 0; padding: calc(100vw / 1.777) 20px 52px; }
  .hero.has-art .hero-bg {
    inset: 0 0 auto 0; height: calc(170vw / 1.777);
    background-size: 170% auto; background-position: 54% 0; animation: none; transform: none;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .hero.has-art .hero-glow { background: linear-gradient(180deg, rgba(15,17,23,.35) 0%, transparent 15%); }
  .hero.has-art .hero-title { font-size: 30px; }
  .hero.has-art .hero-sub { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .hero.has-art .hero-bg { animation: none; } }

.stats-bar.stats-2 { grid-template-columns: repeat(2, 1fr); }

/* ═══ Page d'accueil sur tablette et téléphone ═══ */
.hero.has-art .hero-bg { background-repeat: no-repeat; }
@media (max-width: 960px) {
  .features-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .download-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .stats-bar, .stats-bar.stats-2 { grid-template-columns: 1fr; }
  .stat-cell { padding: 18px 20px; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-cell:last-child { border-bottom: none; }
  .features-grid, .news-grid { grid-template-columns: 1fr; }
  .features-section, .news-section, .download-section { padding: 60px 0; }
  .features-header { margin-bottom: 32px; }
  .news-top { flex-direction: column; align-items: flex-start; gap: 12px; }
}
