/* ═══════════════════════════════════════════════
   MINARK — CSS PUBLIC
   DM Sans (corps) · Manrope (titres) · Bleu nuit
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=Manrope:wght@600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0f1117;
  --bg2:     #161b27;
  --bg3:     #1b2236;
  --border:  #1e2640;
  --border2: #2a3660;
  --text:    #b0b8cc;
  --text2:   #5a6a8a;
  --text3:   #2e3a52;
  --white:   #e8eaf0;
  --accent:  #6398ff;
  --accent2: #7aadff;
  --abg:     rgba(99,152,255,.1);
  --green:   #3ecf8e;
  --red:     #e06060;
  --orange:  #f59e42;
  --max:     1300px;
  --r:       10px;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }
a { text-decoration: none; color: var(--accent); }
a:hover { color: var(--accent2); }

/* ════════════════════════════════
   NAV — barre pleine largeur
   contenu centré via .mnav-inner
   ════════════════════════════════ */
.mnav {
  position: sticky; top: 0; z-index: 200;
  width: 100%;
  background: rgba(15,17,23,.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.mnav-inner {
  width: 100%; height: 56px;
  display: flex; align-items: center;
  padding: 0 36px; gap: 20px;
}
.mnav-logo {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 17px; color: var(--white);
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0; letter-spacing: -.2px;
}
.mnav-logo i { color: var(--accent); font-size: 14px; }
.mnav-sp { flex: 1; }
.mnav-inner a {
  font-size: 13px; font-weight: 500; color: var(--text2);
  text-decoration: none; transition: color .15s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.mnav-inner a:hover, .mnav-inner a.cur { color: var(--white); }
.mnav-cta {
  background: var(--accent) !important; color: #0a0e1a !important;
  padding: 6px 14px; border-radius: 7px; font-weight: 700 !important;
  flex-shrink: 0; transition: background .15s !important;
}
.mnav-cta:hover { background: var(--accent2) !important; color: #0a0e1a !important; }
.mnav-user { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mnav-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--abg); border: 1px solid rgba(99,152,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--accent);
}
.mnav-username { font-size: 13px; font-weight: 600; color: var(--white); }

/* ════════════════════════════════
   CONTENU — centré, pas le body
   ════════════════════════════════ */
.pub-wrap {
  max-width: var(--max); margin: 0 auto;
  padding: 44px 28px 80px;
}

/* ════════════════════════════════
   FOOTER — barre pleine largeur
   contenu centré via .pub-footer-inner
   ════════════════════════════════ */
.pub-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.pub-footer-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 24px 28px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.pub-footer-logo {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 15px; color: var(--text2);
  display: flex; align-items: center; gap: 6px; text-decoration: none;
}
.pub-footer-logo i { color: var(--accent); }
.pub-footer-links { display: flex; gap: 18px; }
.pub-footer-links a { font-size: 13px; color: var(--text3); text-decoration: none; transition: color .15s; }
.pub-footer-links a:hover { color: var(--text); }
.pub-footer-copy { font-size: 12px; color: var(--text3); }

/* ════════════════════════════════
   ALERTES
   ════════════════════════════════ */
.alert { padding: 10px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.alert-success { background: rgba(62,207,142,.1); border: 1px solid rgba(62,207,142,.25); color: var(--green); }
.alert-error   { background: rgba(224,96,96,.1);  border: 1px solid rgba(224,96,96,.25);  color: var(--red); }
.alert-error ul { margin: 6px 0 0 16px; }
.alert-error li { margin-bottom: 3px; }

/* ════════════════════════════════
   PAGE HEADER
   ════════════════════════════════ */
.page-header { margin-bottom: 36px; }
.page-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.page-eyebrow::before { content:''; width: 16px; height: 1.5px; background: var(--accent); border-radius: 1px; }
.page-title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(22px,3vw,30px); color: var(--white); letter-spacing: -.4px; line-height: 1.2; }
.page-sub { font-size: 14px; color: var(--text2); margin-top: 6px; }

/* ════════════════════════════════
   BADGES
   ════════════════════════════════ */
.badge { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.badge-accent  { background: var(--abg); color: var(--accent); border: 1px solid rgba(99,152,255,.2); }
.badge-success { background: rgba(62,207,142,.1); color: var(--green); }
.badge-muted   { background: var(--bg3); color: var(--text2); }

/* ════════════════════════════════
   LISTE D'ARTICLES
   ════════════════════════════════ */
.article-card {
  display: grid; grid-template-columns: 1fr auto; gap: 20px;
  padding: 20px; margin-bottom: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .18s, transform .18s;
}
.article-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.article-card:first-of-type { }
.article-card:last-of-type  { margin-bottom: 0; }
.article-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.article-meta .date { font-size: 12px; color: var(--text2); }
.article-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 17px; color: var(--white); line-height: 1.3; margin-bottom: 8px; letter-spacing: -.2px; }
.article-title a { color: var(--white); text-decoration: none; transition: color .15s; }
.article-title a:hover { color: var(--accent2); }
.article-excerpt { font-size: 13px; color: var(--text2); line-height: 1.7; margin-bottom: 12px; }
.article-footer { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--text2); }
.article-footer i { margin-right: 3px; }
.article-footer a { color: var(--accent); font-size: 12px; font-weight: 500; }
.article-thumb { width: 150px; height: 100px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); flex-shrink: 0; align-self: start; }

/* ════════════════════════════════
   PAGINATION
   ════════════════════════════════ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--text2); transition: all .15s; text-decoration: none; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: #0a0e1a; border-color: var(--accent); font-weight: 700; }

/* ════════════════════════════════
   ARTICLE DÉTAIL
   ════════════════════════════════ */
.back { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text2); margin-bottom: 28px; text-decoration: none; transition: color .15s; }
.back:hover { color: var(--white); }
.article-header { margin-bottom: 28px; }
.article-header .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12px; color: var(--text2); }
.article-header h1 { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(20px,3vw,32px); color: var(--white); line-height: 1.2; margin-bottom: 10px; letter-spacing: -.4px; }
.article-header .author { font-size: 13px; color: var(--text2); }
.carousel { position: relative; background: #0a0d14; border-radius: 10px; overflow: hidden; margin-bottom: 28px; border: 1px solid var(--border); }
.carousel-track { display: flex; transition: transform .35s ease; }
.carousel-slide { flex-shrink: 0; width: 100%; }
.carousel-slide img, .carousel-slide video { width: 100%; max-height: 400px; object-fit: contain; display: block; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.5); color: #fff; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.carousel-btn:hover { background: var(--accent); }
.carousel-prev { left: 10px; } .carousel-next { right: 10px; }
.carousel-dots { text-align: center; padding: 8px; background: #0a0d14; }
.carousel-dots span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text3); margin: 0 3px; cursor: pointer; transition: background .15s; }
.carousel-dots span.active { background: var(--accent); }
.hero-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 10px; margin-bottom: 28px; border: 1px solid var(--border); display: block; }
.article-detail-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 24px;
}
.article-body { font-size: 15px; line-height: 1.85; color: var(--text); margin-bottom: 32px; }
.article-body h1,.article-body h2,.article-body h3 { font-family: 'Manrope', sans-serif; color: var(--white); margin: 24px 0 10px; font-weight: 700; letter-spacing: -.3px; }
.article-body h2 { font-size: 19px; } .article-body h3 { font-size: 15px; }
.article-body p { margin-bottom: 14px; }
.article-body strong { color: var(--white); font-weight: 600; }
.article-body blockquote { border-left: 3px solid var(--accent); padding-left: 16px; color: var(--text2); font-style: italic; margin: 18px 0; }
.article-body ul,.article-body ol { margin: 10px 0 10px 22px; }
.article-body li { margin-bottom: 5px; }
.article-body code { background: var(--bg3); padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 13px; color: var(--accent2); }
.article-body pre { background: var(--bg2); border: 1px solid var(--border); padding: 14px; border-radius: 8px; overflow-x: auto; margin: 16px 0; }
.article-body img { max-width: 100%; border-radius: 8px; margin: 10px 0; display: block; }
.article-body a { color: var(--accent); }
.reactions { display: flex; align-items: center; gap: 10px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.reaction-btn { display: flex; align-items: center; gap: 7px; padding: 7px 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; color: var(--text2); cursor: pointer; font-size: 13px; font-family: inherit; transition: all .15s; }
.reaction-btn:hover { border-color: var(--accent); color: var(--accent); }
.reaction-btn.active-like    { border-color: var(--green); color: var(--green); background: rgba(62,207,142,.08); }
.reaction-btn.active-dislike { border-color: var(--red);   color: var(--red);   background: rgba(224,96,96,.08); }
.reactions-count { font-size: 13px; color: var(--text2); margin-left: auto; }
.comments-section { margin-top: 8px; }
.comments-title { font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 18px; letter-spacing: -.3px; }
.comment { display: flex; gap: 10px; margin-bottom: 12px; }
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--abg); border: 1px solid rgba(99,152,255,.25); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.comment-body { background: var(--bg2); border: 1px solid var(--border); border-radius: 0 8px 8px 8px; padding: 10px 13px; flex: 1; }
.comment-meta { display: flex; gap: 10px; margin-bottom: 4px; font-size: 11px; color: var(--text2); }
.comment-meta strong { color: var(--accent); }
.comment-text { font-size: 13px; line-height: 1.6; }
.comment-actions { margin-top: 6px; }
.comment-action-btn { background: none; border: none; color: var(--text3); font-size: 11px; cursor: pointer; padding: 2px 5px; border-radius: 4px; font-family: inherit; transition: color .15s; }
.comment-action-btn:hover { color: var(--red); }
.empty-comments { text-align: center; padding: 28px; color: var(--text2); font-size: 13px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); }
.comment-form-wrap { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; margin-top: 18px; }
.comment-form-wrap h4 { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 12px; }
.comment-login-prompt { text-align: center; padding: 18px; font-size: 13px; color: var(--text2); background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); margin-top: 18px; }

/* ════════════════════════════════
   FORMULAIRES
   ════════════════════════════════ */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 11px; font-weight: 600; color: var(--text2); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .5px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 9px 12px; background: var(--bg3); border: 1px solid var(--border2); border-radius: 7px; color: var(--white); font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text3); }
.form-hint { font-size: 11px; color: var(--text2); margin-top: 4px; }
.btn-submit { width: 100%; padding: 11px; background: var(--accent); color: #0a0e1a; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: 'Manrope', sans-serif; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s; box-shadow: 0 4px 14px rgba(99,152,255,.2); }
.btn-submit:hover { background: var(--accent2); }
.btn-outline-pub { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; background: var(--bg2); border: 1px solid var(--border2); border-radius: 8px; color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; transition: all .15s; text-decoration: none; }
.btn-outline-pub:hover { border-color: var(--accent); color: var(--accent); }

/* ════════════════════════════════
   AUTH
   ════════════════════════════════ */
.auth-outer { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 80px 24px; background: var(--bg); background-image: radial-gradient(ellipse 60% 50% at 50% -10%, rgba(99,152,255,.1), transparent); }
.auth-card { width: 100%; max-width: 400px; background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 36px 32px; }
.auth-logo { text-align: center; margin-bottom: 26px; }
.auth-logo-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--abg); border: 1px solid rgba(99,152,255,.2); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--accent); margin: 0 auto 12px; }
.auth-logo h1 { font-family: 'Manrope', sans-serif; font-size: 19px; font-weight: 800; color: var(--white); letter-spacing: -.3px; margin-bottom: 4px; }
.auth-logo p { font-size: 13px; color: var(--text2); }
.auth-links { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text2); }
.auth-links a { color: var(--accent); font-weight: 500; }
.recaptcha-wrap { display: flex; justify-content: center; margin-bottom: 14px; }

/* ════════════════════════════════
   RETOUR EN HAUT
   ════════════════════════════════ */
.back-top { position: fixed; bottom: 24px; right: 24px; z-index: 500; width: 40px; height: 40px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--border2); color: var(--text2); display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .25s, background .15s, color .15s; }
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--accent); color: #0a0e1a; border-color: var(--accent); }
