/* ============================================================
   Dev du Sud — site vitrine
   Style signature : fond sombre bleu nuit, violet profond,
   touches teal & navy, accents ambre / violet / bleu.
   ============================================================ */

:root {
  --bg-night: #1a1a28;        /* bleu nuit — fond principal */
  --bg-purple: #2a1a4e;       /* violet profond — sections alternées */
  --teal: #134e4a;            /* teal — panneaux / touches */
  --navy: #1e3a5f;            /* navy — panneaux / touches */
  --amber: #f59e0b;           /* accent principal */
  --violet: #8b5cf6;          /* accent secondaire */
  --blue: #3b82f6;            /* accent secondaire */
  --text: #eef0f6;
  --text-soft: #b8bccd;
  --card: #222236;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-night);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 26, 40, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--amber), var(--violet));
  color: #1a1a28;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 26px;
}

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.98rem;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--amber); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--amber);
  color: #1a1a28;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover { background: #fbbf24; box-shadow: var(--shadow); }

.btn-outline {
  border-color: var(--violet);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover { background: rgba(139, 92, 246, 0.14); }

.btn-nav { padding: 9px 18px; font-size: 0.92rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(700px 360px at 10% 110%, rgba(19, 78, 74, 0.35), transparent 60%),
    var(--bg-night);
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--border);
}

.hero-inner { max-width: 820px; }

.hero-kicker {
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 3.1rem;
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 22px;
}

.hero-accent {
  background: linear-gradient(90deg, var(--amber), var(--violet) 60%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.18rem;
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 32px;
}

.hero-sub strong { color: var(--text); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hero-points li { display: inline-flex; align-items: center; gap: 8px; }

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-amber  { background: var(--amber); }
.dot-violet { background: var(--violet); }
.dot-blue   { background: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }

.section-alt {
  background:
    radial-gradient(800px 320px at 100% 0%, rgba(30, 58, 95, 0.45), transparent 60%),
    var(--bg-purple);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-head-left { margin: 0 0 26px; text-align: left; }

.section-head h2 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.section-sub { color: var(--text-soft); font-size: 1.05rem; }

/* ---------- Grilles & cartes ---------- */
.grid {
  display: grid;
  gap: 20px;
}

.guides-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: var(--shadow);
}

.card h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--text); }

.card p { font-size: 0.94rem; color: var(--text-soft); }

.card-arrow {
  display: inline-block;
  margin-top: 12px;
  color: var(--amber);
  font-weight: 700;
}

/* ---------- Livres ---------- */
.books-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.book-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}

.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.book-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border);
}

.book-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }

.book-body h3 { font-size: 1.06rem; margin-bottom: 10px; }

.book-body p { font-size: 0.92rem; color: var(--text-soft); flex: 1; }

.book-price {
  font-size: 1.5rem !important;
  font-weight: 800;
  color: var(--amber) !important;
  margin: 14px 0;
  flex: none !important;
}

.book-body .btn { text-align: center; }

/* ---------- Réseaux ---------- */
.social-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.social-card h3 { color: var(--text); }

.social-handle {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--violet);
  font-size: 0.84rem;
  font-weight: 600;
}

.social-pending { opacity: 0.55; }

.social-pending .social-handle { background: rgba(59, 130, 246, 0.14); color: var(--blue); }

/* ---------- À propos ---------- */
.apropos-inner {
  display: flex;
  gap: 44px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  border: 2px solid rgba(245, 158, 11, 0.5);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.apropos-text { flex: 1; min-width: 280px; }

.apropos-text p { margin-bottom: 16px; color: var(--text-soft); font-size: 1.02rem; }

.apropos-text strong { color: var(--text); }

.apropos-points {
  list-style: none;
  margin-top: 10px;
}

.apropos-points li {
  padding: 9px 0 9px 28px;
  position: relative;
  color: var(--text-soft);
}

.apropos-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}

/* ---------- Contact ---------- */
.contact-inner { max-width: 720px; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #141420;
  border-top: 1px solid var(--border);
  padding: 46px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-brand .brand-mark {
  margin-bottom: 12px;
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.footer-brand .brand-name { font-size: 1rem; }

.footer-brand p { color: var(--text-soft); font-size: 0.9rem; margin-top: 8px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.94rem;
}

.footer-links a:hover { color: var(--amber); }

.footer-bottom {
  margin-top: 36px;
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
  display: block;
  width: 100%;
  max-width: 100%;
}

.version-badge { margin-top: 6px; opacity: 0.55; font-size: 0.78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; justify-content: center; }
  .nav-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .hero { padding: 64px 0 60px; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 1.7rem; }
  .avatar { width: 130px; height: 130px; }
}
