@view-transition {
  navigation: auto;
}

.developer {
  text-decoration: underline;
}
.font-display {
  font-family: "Cormorant Garamond", serif;
}

.font-body {
  font-family: "Montserrat", sans-serif;
}

.hero-gradient {
  background: linear-gradient(
    165deg,
    #1a0e0a 0%,
    #2d1810 25%,
    #0f0805 50%,
    #1a0e0a 75%,
    #0a0503 100%
  );
  position: relative;
}

.hero-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 30%,
      rgba(186, 140, 99, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 70%,
      rgba(218, 165, 32, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(139, 90, 43, 0.08) 0%,
      transparent 70%
    );
  opacity: 0.6;
}

.gold-accent {
  color: #daa520;
}

.copper-accent {
  color: #b8860b;
}

.gradient-gold {
  background: linear-gradient(135deg, #daa520 0%, #b8860b 50%, #cd853f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  max-height: 80vh;
  background: rgba(10, 5, 3, 0.98);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(218, 165, 32, 0.2);
  padding: 2rem 1rem;
  z-index: 40;
  overflow-y: auto;
  transition: all 0.3s ease;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}
.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: rgba(218, 165, 32, 0.1);
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(218, 165, 32, 0.4);
  border-radius: 2px;
}

.sidebar-nav.hidden-sidebar {
  transform: translate(-100%, -50%);
}

.sidebar-toggle {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 80px;
  background: linear-gradient(
    90deg,
    rgba(10, 5, 3, 0.95),
    rgba(218, 165, 32, 0.1)
  );
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 39;
  transition: all 0.3s ease;
  border: 1px solid rgba(218, 165, 32, 0.2);
  border-left: none;
}

.sidebar-toggle:hover {
  background: linear-gradient(
    90deg,
    rgba(218, 165, 32, 0.2),
    rgba(218, 165, 32, 0.15)
  );
  width: 45px;
}

.sidebar-toggle.sidebar-open {
  left: 280px;
}

.sidebar-nav-item {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 4px;
}

.sidebar-nav-item:hover {
  background: rgba(218, 165, 32, 0.1);
  border-left-color: rgba(218, 165, 32, 0.5);
  padding-left: 1.5rem;
}

.sidebar-nav-item.active {
  background: rgba(218, 165, 32, 0.15);
  border-left-color: #daa520;
  padding-left: 1.5rem;
}

.sidebar-nav-item .item-number {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: rgba(218, 165, 32, 0.2);
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  margin-right: 0.75rem;
  font-size: 0.875rem;
  color: #daa520;
  transition: all 0.3s ease;
}

.sidebar-nav-item.active .item-number {
  background: #daa520;
  color: #0a0503;
  transform: scale(1.1);
}

.sidebar-nav-item .item-title {
  font-size: 0.875rem;
  color: #c9b896;
  transition: color 0.3s ease;
}

.sidebar-nav-item.active .item-title {
  color: #daa520;
  font-weight: 600;
}

@media (max-width: 1280px) {
  .sidebar-nav {
    width: 260px;
  }
  .sidebar-toggle.sidebar-open {
    left: 260px;
  }
}

@media (max-width: 768px) {
  .sidebar-nav {
    width: 100%;
    max-width: 320px;
    max-height: 70svh;
    top: auto;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
    border-right: none;
    border-top: 1px solid rgba(218, 165, 32, 0.2);
    border-radius: 20px 20px 0 0;
  }

  .sidebar-nav.hidden-sidebar {
    transform: translate(-50%, 100%);
  }

  .sidebar-nav.active {
    transform: translateY(0);
  }

  .sidebar-toggle {
    left: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 40px;
    border-radius: 20px 20px 0 0;
    border: 1px solid rgba(218, 165, 32, 0.2);
    border-bottom: none;
  }

  .sidebar-toggle.sidebar-open {
    left: 50%;
    bottom: 70svh;
  }

  .sidebar-toggle-chevron {
    transform: rotate(90deg);
  }
}

footer {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

.section-ornament {
  width: 120px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #daa520 50%,
    transparent 100%
  );
  margin: 0 auto;
  position: relative;
}

.section-ornament::before,
.section-ornament::after {
  content: "◆";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #daa520;
  font-size: 8px;
}

.section-ornament::before {
  left: -15px;
}

.section-ornament::after {
  right: -15px;
}

.social-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .social-container {
    gap: 1.5rem;
  }
}

.social-icon {
  width: 2rem;
  height: 2rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.social-container a:hover .social-icon {
  transform: scale(1.2);
  opacity: 0.8;
}

.arrow-down {
  translate: -50%;
}

.constitutional-article {
  border-left: 3px solid rgba(218, 165, 32, 0.3);
  padding-left: 2rem;
  position: relative;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

.constitutional-article::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, #daa520, #cd853f);
  transition: height 0.4s ease;
}

.constitutional-article:hover::before {
  height: 100%;
}

.constitutional-article:hover {
  border-left-color: #daa520;
}

.constitutional-article > * {
  opacity: 0;
  transform: translateX(100px);
}

.preambule-box {
  background: linear-gradient(
    145deg,
    rgba(218, 165, 32, 0.08) 0%,
    rgba(139, 90, 43, 0.05) 100%
  );
  border: 1px solid rgba(218, 165, 32, 0.2);
  box-shadow:
    0 20px 50px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(218, 165, 32, 0.1);
  position: relative;
  overflow: hidden;
}

.preambule-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #daa520, transparent);
}

.principle-card {
  background: rgba(26, 14, 10, 0.6);
  border: 1px solid rgba(218, 165, 32, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.principle-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(218, 165, 32, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.principle-card:hover::after {
  left: 100%;
}

.principle-card:hover {
  border-color: rgba(218, 165, 32, 0.4);
  transform: translateY(-5px);
  box-shadow:
    0 25px 50px -12px rgba(218, 165, 32, 0.2),
    0 0 30px rgba(218, 165, 32, 0.1);
}
.principle-icon {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
  width: 48px;
  height: 50px;
}

.nav-glass {
  background: rgba(10, 5, 3, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(218, 165, 32, 0.1);
}

.drop-cap::first-letter {
  font-size: 3.5em;
  line-height: 0.8;
  float: left;
  margin-right: 0.1em;
  margin-top: 0.1em;
  color: #daa520;
  font-weight: 700;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}

.logo-wrap {
  display: flex;
  align-items: center;
}

.seal-decoration {
  width: 150px;
  height: 150px;
  border: 3px solid rgba(218, 165, 32, 0.3);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-decoration::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(218, 165, 32, 0.2);
  border-radius: 50%;
}

.quote-mark {
  font-size: 4rem;
  line-height: 0;
  color: rgba(218, 165, 32, 0.2);
  font-family: "Cormorant Garamond", serif;
}

.table-of-contents {
  background: rgba(26, 14, 10, 0.4);
  border: 1px solid rgba(218, 165, 32, 0.15);
  backdrop-filter: blur(5px);
}

.toc-link {
  position: relative;
  transition: all 0.3s ease;
  padding-left: 1.5rem;
}

.toc-link::before {
  content: "▸";
  position: absolute;
  left: 0;
  opacity: 0;
  transition: all 0.3s ease;
  color: #daa520;
}

.toc-link:hover {
  color: #daa520;
  padding-left: 2rem;
}

.toc-link:hover::before {
  opacity: 1;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #daa520, #cd853f);
  z-index: 100;
  transition: width 0.1s ease;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #daa520, #b8860b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 50;
  box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(218, 165, 32, 0.5);
}

.search-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  background: rgba(26, 14, 10, 0.6);
  border: 1px solid rgba(218, 165, 32, 0.3);
  border-radius: 50px;
  color: #e8dcc4;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #daa520;
  box-shadow: 0 0 20px rgba(218, 165, 32, 0.2);
}

.search-input::placeholder {
  color: #8b7355;
}

.search-icon {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #daa520;
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  background: rgba(15, 8, 5, 0.98);
  border: 1px solid rgba(218, 165, 32, 0.3);
  border-radius: 12px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 60;
  display: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(218, 165, 32, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-result-item:hover {
  background: rgba(218, 165, 32, 0.1);
  border-left: 3px solid #daa520;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-highlight {
  background: rgba(218, 165, 32, 0.3);
  padding: 2px 4px;
  border-radius: 3px;
}

.active-section {
  color: #daa520 !important;
  position: relative;
}

.active-section::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #daa520;
}

.article-visible > * {
  animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.institutions-icon,
.ceremony-icon,
.economy-icon {
  width: 32px;
  height: 32px;
}

.vision-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
}

@media (width <= 480px) {
  .title-span {
    word-break: break-all;
  }
}
