/*
Theme Name:  AlsaTech
Theme URI:   https://alsatech.fr
Author:      Christophe Hirsinger
Author URI:  https://alsatech.fr
Description: Thème minimaliste AlsaTech — newsletter tech B2B Alsace. Dark, orange, épuré.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: alsatech
Tags:        custom-menu, featured-images, translation-ready
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:          #050816;
  --bg-alt:      #0b1020;
  --bg-card:     rgba(11, 16, 32, 0.95);
  --accent:      #f05a1a;
  --accent-glow: rgba(240, 90, 26, 0.18);
  --text:        #f0f0f2;
  --muted:       #8a8fa8;
  --border:      rgba(148, 163, 184, 0.18);
  --radius:      10px;
  --max-w:       1020px;
  --font-head:   'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
}

/* ============================================================
   RESET MINIMAL
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.site-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   NAV — barre légère
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 22, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .site-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 20px;
}

.site-logo {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.site-logo span { color: var(--accent); }

/* menu horizontal ultra-léger */
.nav-primary ul {
  list-style: none;
  display: flex;
  gap: 6px;
}

.nav-primary a {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}

.nav-primary a:hover,
.nav-primary .current-menu-item a {
  color: var(--text);
  background: rgba(240, 90, 26, 0.1);
  text-decoration: none;
}

/* bouton CTA dans la nav */
.nav-cta a {
  background: var(--accent);
  color: #0b1020 !important;
  font-weight: 600;
  padding: 7px 14px !important;
  border-radius: 999px;
}
.nav-cta a:hover { background: #d94d13; }

/* hamburger mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-primary {
    display: none;
    position: absolute;
    top: 56px;
    left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px 16px;
  }
  .nav-primary.is-open { display: block; }
  .nav-primary ul { flex-direction: column; gap: 2px; }
  .nav-primary a { display: block; font-size: 1rem; padding: 10px 12px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: 60px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer .site-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.site-main { min-height: 60vh; }

/* ============================================================
   UTILITAIRES PARTAGÉS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .15s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, #f05a1a, #ff7a3d);
  color: #0b1020;
  box-shadow: 0 8px 22px rgba(240, 90, 26, 0.4);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.pill {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================================================
   PAGE DE BASE (posts, pages simples)
   ============================================================ */
.entry-content {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 20px;
}
.entry-content h2 { font-size: 1.5rem; margin: 32px 0 10px; }
.entry-content p  { color: var(--muted); margin-bottom: 16px; }
.entry-content ul { padding-left: 20px; color: var(--muted); }

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 480px) {
  :root { font-size: 15px; }
}
