/* Bulle - Styles communs pour documents juridiques */
/* Inspiré du style épuré Apple du site principal */

:root {
  --bulle-primary: #dc3545;
  --bulle-secondary: #c82333;
  --bulle-dark: #1f2937;
  --bulle-light: #f9fafb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --blue-100: #dbeafe;
  --blue-600: #2563eb;
  --green-100: #d1fae5;
  --green-600: #059669;
  --red-100: #fee2e2;
  --yellow-100: #fef3c7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 20px 16px;
  }
}

/* Header avec logo */
.header {
  text-align: center;
  margin-bottom: 48px;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
}

.subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.version-info {
  display: inline-block;
  background-color: var(--gray-50);
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  margin: 24px 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Navigation / Sommaire */
.nav-menu {
  background-color: var(--gray-50);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  margin-bottom: 40px;
}

.nav-menu h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.nav-menu ul {
  list-style: none;
  padding-left: 0;
}

.nav-menu li {
  margin: 8px 0;
}

.nav-menu a {
  color: var(--gray-700);
  text-decoration: none;
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background-color 0.2s;
  font-size: 0.9375rem;
}

.nav-menu a:hover {
  background-color: var(--gray-100);
}

/* Sections */
.section {
  margin-bottom: 48px;
}

h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-top: 48px;
  margin-bottom: 20px;
  scroll-margin-top: 80px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-top: 32px;
  margin-bottom: 16px;
  scroll-margin-top: 80px;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-top: 24px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  h4 {
    font-size: 1.125rem;
  }
}

p {
  margin: 16px 0;
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.7;
}

/* Listes */
ul,
ol {
  margin: 16px 0;
  padding-left: 28px;
}

li {
  margin: 8px 0;
  color: var(--gray-700);
}

/* Liens */
a {
  color: var(--bulle-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Encarts spéciaux */
.highlight {
  background-color: var(--blue-100);
  padding: 20px 24px;
  border-left: 4px solid var(--blue-600);
  border-radius: 12px;
  margin: 24px 0;
}

.important {
  background-color: var(--red-100);
  padding: 20px 24px;
  border-left: 4px solid var(--bulle-primary);
  border-radius: 12px;
  margin: 24px 0;
  font-weight: 500;
}

.info-box {
  background-color: var(--gray-50);
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  margin: 24px 0;
}

.warning {
  background-color: var(--yellow-100);
  padding: 20px 24px;
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  margin: 24px 0;
}

/* Tableaux */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th {
  background-color: var(--gray-900);
  color: white;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--gray-700);
}

td {
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background-color: var(--gray-50);
}

@media (max-width: 768px) {
  table {
    font-size: 0.875rem;
  }

  th,
  td {
    padding: 12px;
  }
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  text-align: center;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--bulle-primary);
  color: white;
  border: 2px solid var(--bulle-primary);
}

.btn-primary:hover {
  background-color: var(--bulle-secondary);
  border-color: var(--bulle-secondary);
  text-decoration: none;
}

.btn-outline {
  background-color: white;
  color: var(--bulle-primary);
  border: 2px solid var(--bulle-primary);
}

.btn-outline:hover {
  background-color: var(--bulle-primary);
  color: white;
  text-decoration: none;
}

/* Footer */
.footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.footer p {
  margin: 8px 0;
}

.footer a {
  color: var(--gray-600);
  margin: 0 8px;
}

/* Strong */
strong {
  font-weight: 600;
  color: var(--gray-900);
}

/* Scroll reveal animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Bouton retour accueil */
.back-to-home {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.back-to-home:hover {
  color: var(--bulle-primary);
  text-decoration: none;
}

/* Responsive utilities */
@media (max-width: 640px) {
  .hide-mobile {
    display: none;
  }
}
