/* Barre de navigation supérieure */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  line-height: 1.6;
  overflow-x: hidden;
}

.top-nav {
 background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  padding: 15px 30px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-bottom: 3px solid #17a2b8;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-nav a {
 color: #003A65;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.top-nav a:hover {
 background-color: rgba(23, 162, 184, 0.1);
  color: #17a2b8;
}

.services-nav{
margin-bottom: 10%;
}

/* Layout principal */
.rubrique-layout {
   flex: 1;
  margin-left: 280px;
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

}
.rubrique-page{
 display: flex;
  min-height: 100vh;
}

.depth-0 { margin-left: 0; }
.depth-1 { margin-left: 20px; }
.depth-2 { margin-left: 40px; }
.subcategory-prefix { color: #666; }

/* Menu latéral gauche */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #003A65 0%, #002744 100%);
  padding: 25px 20px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  overflow-y: auto;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 900;
}
.blanc{
  color: #fff;
}
.categories-list {
  list-style: none;
  padding: 0;
}
.categories-list li {
  margin-bottom: 10px;
}
.categories-list a {
  text-decoration: none;
  color: #fff;
}
.categories-list a:hover {
  text-decoration: underline;
}

/* Contenu principal */
.main-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}
.service-switcher {
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-switcher label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #003A65;
}

#service-selector {
  border: 2px solid #e9ecef;
  background: white;
  color: #003A65;
  font-size: 1.1em;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  outline: none;
}

#service-selector:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

#service-selector:hover {
  border-color: #17a2b8;
}

/* === STYLES POUR LA LISTE DES DOCUMENTS === */

.documents-list {
  list-style: none;
  padding: 0;
  /* margin: 8px 0 16px 0; */
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
}

/* === STYLES POUR LES LIENS DE DOCUMENTS === */

.document-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 13px 17px;
  background-color: #ffffff;
  color: #495057;
  /* font-size: 13px; */
  line-height: 1.4;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
}

/* .document-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
} */

/* === ÉTATS INTERACTIFS === */

.document-link:hover {
  background-color: #f8f9fa;
  color: #0056b3;
  border-left-color: #0056b3;
  transform: translateX(2px);
}

.document-link:hover i {
  color: #0056b3;
}

.document-link.active {
  background-color: #e3f2fd;
  color: #1976d2;
  border-left-color: #1976d2;
justify-content: center;
}

.document-link.active i {
  color: #1976d2;
}
/* === RESPONSIVE === */

@media (max-width: 768px) {
  .document-link {
    padding: 12px 14px;
    font-size: 13px;
  }
  
  .document-link i {
    margin-right: 10px;
    font-size: 14px;
  }
}

/* Cartes de documents */
.document-card {
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 15px;
}
.document-card h4 {
  margin-top: 0;
}
.document-card a {
  display: inline-block;
  margin-right: 10px;
  color: #007bff;
  text-decoration: none;
}
.document-card a:hover {
  text-decoration: underline;
}

.document-header {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}
        
.btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255,255,255,0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  font-size: 18px;
}     
.document-body {
  padding: 24px;
}
        
.document-summary {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-style: italic;
  color: #666;
  border-left: 4px solid #007bff;
  line-height: 1.5;
} 
.meta-item {
  display: flex;
  padding: 12px 0;
}
        
.meta-item span {
  color: #666;
  text-align: right;
  flex: 1;
}
.default-message {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 40px 20px;
}

/* Forcer la transparence et le style dans la sidebar */
.sidebar .accordion-item {
  background-color: transparent !important;
  border: none !important;
}

.sidebar .accordion-button {
  background-color: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  border: none !important;
}

.sidebar .accordion-button:not(.collapsed) {
  background-color: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Forcer la couleur de la flèche */
.sidebar .accordion-button::after {
  filter: invert(1) !important;
}

/* Hover */
.sidebar .accordion-button:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}


