/* Header */
.nav {
  background-color: #1B2F4E;
  padding: 0 1.5rem;
}
.nav a,
.nav .logo,
.logo-switches a {
  color: #FFFFFF !important;
}

/* Réduire la taille du header sur mobile */
.nav {
  min-height: unset;
}

/* Bouton lune visible sur mobile */
.logo-switches {
  display: flex !important;
  flex-wrap: nowrap;
}
.logo-switches svg {
  fill: #FFFFFF;
  stroke: #FFFFFF;
}

/* Footer */
footer {
  background-color: #122240;
  color: #8ab0d4;
  padding: 1rem 1.5rem;
}
footer a {
  color: #8ab0d4 !important;
}

/* Justifier uniquement sur PC, pas sur mobile */
@media (min-width: 768px) {
  .post-content p,
  .home-info p {
    text-align: justify;
  }
}

/* Cartes articles — fond adouci en mode sombre */
@media (prefers-color-scheme: dark) {
  .post-entry {
    background-color: rgb(30, 50, 80) !important;
  }
}
/* Ligne Accueil/lune/Contact — centrée sous le titre */
.logo-switches {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.3rem;
}
/* Liens Accueil/Contact — mobile uniquement */
.mobile-quick-link {
  color: #FFFFFF !important;
  font-size: 0.75rem;
  padding: 0 0.6rem;
  text-decoration: none;
  font-weight: 400 !important;
}
@media (min-width: 768px) {
  .mobile-quick-link {
    display: none !important;
  }
  .logo-switches {
    justify-content: flex-end !important;
    width: auto !important;
    margin-top: 0 !important;
  }
}
/* Agrandir le titre sur mobile */
@media (max-width: 767px) {
  .logo a {
    font-size: 1.4rem !important;
  }
  /* Cacher Accueil et Contact du menu principal sur mobile */
  #menu li:first-child,
  #menu li:last-child {
    display: none !important;
  }
}
@media (max-width: 767px) {
  #menu a {
    font-size: 1rem !important;
  }
  .mobile-quick-link {
    font-size: 1rem !important;
  }
  .logo-switches .mobile-quick-link {
    font-size: 1rem !important;
    font-weight: 400 !important;
  }
}
/* ============================================
   TABLEAU D'ORIENTATION — PAGE DÉCRYPTAGES
   ============================================ */

.orientation-block {
  margin: 0 0 3rem 0;
  padding: 2rem;
  background: #f8f9fc;
  border-left: 4px solid #1B2F4E;
  border-radius: 0 8px 8px 0;
}

.orientation-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1B2F4E;
  margin-bottom: 0.4rem;
}

.orientation-subtitle {
  color: #555;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.orientation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 600px;
}

.orientation-table thead tr {
  background-color: #1B2F4E;
  color: #ffffff;
}

.orientation-table thead th {
  padding: 0.75rem 0.9rem;
  text-align: center;
  font-weight: 600;
  border: 1px solid #2a3f5f;
  line-height: 1.3;
}

.orientation-table thead th:first-child {
  text-align: left;
  width: 160px;
}

.orientation-table tbody tr:nth-child(even) {
  background-color: #eef1f7;
}

.orientation-table tbody tr:hover {
  background-color: #dde3ef;
  transition: background-color 0.15s ease;
}

.orientation-table td {
  padding: 0.65rem 0.9rem;
  border: 1px solid #cdd3de;
  text-align: center;
  vertical-align: middle;
  line-height: 1.5;
}

.orientation-table td.row-label {
  text-align: left;
  font-weight: 600;
  color: #1B2F4E;
  background-color: #e8ecf4;
  white-space: nowrap;
}

.orientation-table td a {
  color: #1B2F4E;
  text-decoration: underline;
  font-weight: 500;
  display: inline-block;
  margin: 1px 0;
}

.orientation-table td a:hover {
  color: #2e5fa3;
}

.orientation-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #666;
}

@media (max-width: 768px) {
  .orientation-block {
    padding: 1.2rem;
  }
  .orientation-title {
    font-size: 1.15rem;
  }
}
