/* =========================================
   RVSA Consulting - main.css
   Thème sombre modernisé avec menu burger
   ========================================= */

:root {
  --bg: #0f172a;
  --bg-alt: #111827;
  --card: #0b1220;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #2563eb;
  --accent-2: #22d3ee;
  --ring: rgba(37,99,235,.35);
}

/* ====== RESET & BASE ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(1200px 800px at 0% 0%, rgba(34,211,238,.08), transparent 60%),
              radial-gradient(1200px 800px at 100% 100%, rgba(37,99,235,.10), transparent 60%),
              linear-gradient(180deg, var(--bg), var(--bg-alt));
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 2rem;
}

/* ====== HEADER ====== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #ffffff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-text small {
  display: block;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ===== NAVIGATION ===== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  transition: right 0.35s ease-in-out;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-2);
}

.nav-links .btn-contact {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-links .btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ===== BURGER ===== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
  position: relative;
}

.burger span {
  height: 3px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation burger → croix */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== MENU MOBILE ===== */
@media (max-width: 820px) {

  /* Bouton burger visible */
  .burger {
    display: flex;
  }

  /* --- Correction MAJEURE : cacher complètement la nav en mobile --- */
  .site-header .nav-links {
    display: none; /* empêche tout décalage du hero */
  }

  /* Quand le menu est ouvert */
  .site-header .nav-links.show {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 75%;
    max-width: 340px;
    background: linear-gradient(180deg, var(--bg-alt), var(--bg));
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.35);
    transition: right 0.35s ease-in-out;
    z-index: 1000;
  }

  .nav-links.show {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
  }

  .nav-links .btn-contact {
    align-self: stretch;
    text-align: center;
    font-size: 1.1rem;
    padding: 0.8rem 0;
    border-radius: 12px;
  }

  /* Fond sombre derrière le menu */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 900;
  }
}

/* ===== FOOTER ===== */
footer {
  background: #0f172a;
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer a {
  color: var(--accent-2);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
