/* === Design tokens === */
:root {
  --blue-600: #2563eb; /* primaire */
  --blue-700: #1d4ed8; /* hover */
  --blue-50: #eff6ff; /* fond léger */
  --gray-900: #111827; /* texte principal */
  --gray-700: #374151; /* texte secondaire */
  --gray-200: #e5e7eb; /* bordures */
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --focus: 0 0 0 3px rgba(37, 99, 235, 0.35);
  --maxw: 1100px;
  --gap: 1.25rem;
  --header-h: 64px;
}

html {
  margin: 0;
  padding: 0;
}
header > a {
  color: inherit;
  text-decoration: none;
}

/* === Header === */
header.site-header {
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.header-inner {
  height: var(--header-h);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  display: grid;
  gap: 0.25rem;
}
.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: var(--gray-900);
}
.nav-link:hover {
  background: #f8fafc;
}
.nav-link[aria-current="page"] {
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue-700);
  font-weight: 600;
  position: relative;
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 0.6rem 0.45rem 0.6rem;
  height: 3px;
  background: var(--blue-600);
  border-radius: 3px;
}

.nav-toggle {
  display: none;
}
nav.primary {
  position: static;
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
  translate: 0;
}
.header-inner {
  gap: 2rem;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
}
.nav-link {
  padding: 0.5rem 0.75rem;
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 700px) {
  .ver-ind {
    display: none;
  }
}

.loading-screen {
  z-index: 100;
  background-color: #e5e7eb;
  opacity: 0.5;
  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.animation {
  z-index: 150;
  opacity: 1;
  border-top: 5px solid #296fdf;
  border-right: 10px solid #ffffff00;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
