/*
 * Styles communs pour les pages statiques
 * Utilisé par : FAQ, Contact, Politique de confidentialité, Plan du site, Conditions légales
 */

/* Container principal avec fond olive */
.dashboard-olive {
  background-color: #f8f9fa;
}

/* Marges latérales - désactivées */
.static-page-container {
  /* margin-left: 10%;
  margin-right: 10%; */
}

/* Cards Bootstrap modernes */
.static-card {
  border: 0;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.3s ease;
}

.static-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.static-card-header {
  background-color: #f8f9fa;
  border: 0;
  padding: 1rem 1.5rem;
}

.static-card-body {
  padding: 1.5rem;
}

/* Titres de page */
.static-page-title {
  font-size: 2rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 1.5rem;
}

.static-page-title i {
  color: #0d6efd;
  margin-right: 0.75rem;
}

/* Sections de contenu */
.static-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #212529;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.static-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #495057;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.static-content p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.static-content ul,
.static-content ol {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.static-content li {
  margin-bottom: 0.5rem;
}

.static-content a {
  color: #0d6efd;
  text-decoration: none;
}

.static-content a:hover {
  color: #0a58ca;
  text-decoration: underline;
}

/* Sidebar */
.static-sidebar {
  position: sticky;
  top: 20px;
}

.static-sidebar .card {
  margin-bottom: 1.5rem;
}

.static-sidebar .list-group-item {
  border: 0;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.static-sidebar .list-group-item:hover {
  background-color: #f8f9fa;
  padding-left: 1.25rem;
}

/* Badges */
.static-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.static-badge-primary {
  background-color: #0d6efd;
  color: #fff;
}

.static-badge-warning {
  background-color: #ffc107;
  color: #000;
}

.static-badge-info {
  background-color: #0dcaf0;
  color: #000;
}

/* Formulaires */
.static-form .form-label {
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.5rem;
}

.static-form .form-control,
.static-form .form-select {
  border: 2px solid #dee2e6;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.static-form .form-control:focus,
.static-form .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.static-form .btn-primary {
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.static-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

/* Alertes */
.static-alert {
  border: 0;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.static-alert i {
  margin-right: 0.5rem;
}

/* Table des matières (TOC) */
.static-toc {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
}

.static-toc h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 1rem;
}

.static-toc ol,
.static-toc ul {
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.static-toc li {
  margin-bottom: 0.5rem;
}

.static-toc a {
  color: #495057;
  text-decoration: none;
  transition: all 0.2s ease;
}

.static-toc a:hover {
  color: #0d6efd;
  padding-left: 0.25rem;
}

/* Accordéons (pour FAQ) */
.static-accordion-item {
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 0;
}

.static-accordion-item:last-child {
  border-bottom: none;
}

.static-accordion-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #212529;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}

.static-accordion-btn:hover {
  color: #0d6efd;
}

.static-accordion-btn i {
  transition: transform 0.3s ease;
  color: #6c757d;
}

.static-accordion-btn.active i {
  transform: rotate(180deg);
}

.static-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 0.5rem;
}

.static-accordion-content.show {
  max-height: 500px;
  padding: 1rem 0.5rem;
}

/* Responsive */
@media (max-width: 991.98px) {
  .static-page-container {
    margin-left: 5%;
    margin-right: 5%;
  }

  .static-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .static-page-container {
    margin-left: 0;
    margin-right: 0;
  }

  .static-page-title {
    font-size: 1.5rem;
  }

  .static-content h2 {
    font-size: 1.25rem;
  }

  .static-content h3 {
    font-size: 1.1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.static-fade-in {
  animation: fadeIn 0.5s ease;
}

/* Utilitaires */
.static-text-muted {
  color: #6c757d;
}

.static-text-primary {
  color: #0d6efd;
}

.static-text-success {
  color: #198754;
}

.static-text-warning {
  color: #ffc107;
}

.static-text-danger {
  color: #dc3545;
}

.static-bg-light {
  background-color: #f8f9fa;
}

.static-border-light {
  border-color: #dee2e6;
}

.static-rounded {
  border-radius: 8px;
}

.static-shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.static-shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
