/* ============================
   MAIN STYLES – Go Numérique
   Base layout + header/footer + boutons
   ============================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body.gn-body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1e293b;               /* gris foncé */
  background: #f3f4f6;          /* gris clair */
}

/* ------------ Liens & texte ------------ */

a {
  color: #2563eb;               /* bleu */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ------------ Header / Top bar ------------ */

.gn-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0f172a;          /* bleu très foncé */
  color: #e5e7eb;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.35);
}

.gn-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gn-logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .04em;
  color: #f9fafb;
}

.gn-logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.gn-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.gn-nav a {
  color: #e5e7eb;
  font-size: 0.9rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.gn-nav a:hover {
  border-bottom-color: #38bdf8; /* cyan */
  text-decoration: none;
}

.gn-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ------------ Sélecteur de langue ------------ */

.lang-switcher select {
  background: #020617;
  color: #e5e7eb;
  border-radius: 999px;
  border: 1px solid #1e293b;
  padding: 5px 10px;
  font-size: 0.8rem;
  outline: none;
}

.lang-switcher select:focus {
  border-color: #38bdf8;
}

/* ------------ Boutons ------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.1s ease;
  text-decoration: none;
}

.btn-primary {
  background: #2563eb;
  color: #f9fafb;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: #1d4ed8;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background: #0f172a;
  color: #e5e7eb;
  border: 1px solid #1f2937;
}

.btn-secondary:hover {
  background: #020617;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid #64748b;
}

.btn-outline:hover {
  background: #111827;
  text-decoration: none;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* ------------ Sections génériques ------------ */

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: #0f172a;
}

.section-intro {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: #6b7280;
}

/* Fond alternatif */
.section-alt {
  background: #f9fafb;
  padding: 32px 20px;
  margin-left: -20px;
  margin-right: -20px;
  border-radius: 16px;
}

/* ------------ Cartes / Grilles ------------ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #0f172a;
}

.card-footer {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ------------ Footer ------------ */

.gn-footer {
  margin-top: 40px;
  border-top: 1px solid #e5e7eb;
  background: #0f172a;
  color: #9ca3af;
}

.gn-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.gn-footer a {
  color: #e5e7eb;
  font-size: 0.8rem;
}

.gn-footer a:hover {
  text-decoration: underline;
}

/* ------------ Responsive ------------ */

@media (max-width: 768px) {
  .gn-header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .gn-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  main {
    padding: 16px 12px 28px;
  }

  .gn-footer-inner {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
}
