/* Polices locales – Montserrat & Open Sans */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/opensans-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/opensans-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/opensans-700.ttf') format('truetype');
}

/* Typography & base */
:root {
  /* Colors */
  --color-primary-dark: #002B5B;
  --color-primary: #00ADEF;
  --color-text: #1E1E1E;
  --color-text-light: #475569;
  --color-text-muted: #64748b;
  --color-white: #FFFFFF;
  --color-border: #E5E7EB;
  --gradient-primary: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.08);
  
  /* Layout */
  --header-h: 75px;
  --sidebar-w: 360px;
  --radius: 10px;
  --transition: 220ms ease;
  
  /* Typography Scale */
  --font-base: 1rem;
  --font-sm: 0.875rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 2rem;
  
  /* Line Heights */
  --leading-tight: 1.5;
  --leading-normal: 1.5;
  --leading-relaxed: 1.5;
  
  /* Letter Spacing */
  --tracking-tight: -0.01em;
  --tracking-normal: 0;
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #FFF;
  color: var(--color-text);
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: var(--font-base);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  margin: 0;
}

h1 {
  font-size: var(--font-3xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: 1rem;
  color: var(--color-text);
  text-transform: capitalize;
}

h2 {
  font-size: var(--font-2xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: 0.75rem;
  color: var(--color-text);
  text-transform: capitalize;
}

h3 {
  font-size: var(--font-xl);
  font-weight: 600;
  line-height: var(--leading-normal);
  margin-bottom: 0.6rem;
  color: var(--color-text);
}

h4 {
  font-size: var(--font-lg);
  font-weight: 600;
  line-height: var(--leading-normal);
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

h5, h6 {
  font-size: var(--font-base);
  font-weight: 600;
  line-height: var(--leading-normal);
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

p { 
  margin: 0 0 1rem 0; 
  font-size: var(--font-base);
  line-height: 1.5;
  color: var(--color-text);
}

ul, ol { 
  margin: 0.5rem 0 1rem 1.5rem; 
  font-size: var(--font-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

li {
  margin: 0.375rem 0;
}

p strong,
p b,
li strong,
li b,
strong,
b {
  font-weight: 600;
  text-transform: none;
}
a { 
  color: var(--color-primary); 
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}
a:hover { 
  color: var(--color-primary-dark);
  text-decoration: underline;
}

code, pre {
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: var(--font-sm);
}

code {
  background: #f1f5f9;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  color: #e11d48;
  font-weight: 500;
}

pre {
  line-height: var(--leading-normal);
  background: #1e293b;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1rem 0;
}

pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* Exceptions pour la casse */
code, pre {
  text-transform: none !important;
}

small {
  font-size: var(--font-sm);
  color: var(--color-text-muted);
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(229, 231, 235, 0.5);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.reading-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.1s ease-out;
  box-shadow: 0 2px 8px rgba(221, 36, 31, 0.25);
}

/* Bouton hamburger – toujours visible (desktop + mobile) */
.sidebar-toggle {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 50;
  height: 40px;
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}

.sidebar-toggle:hover {
  background: #f1f5f9;
  box-shadow: var(--shadow-md);
}

.sidebar-toggle:active {
  background: #e2e8f0;
}

.sidebar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.sidebar-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.sidebar-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Retour accueil */
.back-home {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-primary-dark);
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
}

.back-home:hover {
  background: #f1f5f9;
  box-shadow: var(--shadow-md);
  color: #15803d;
  text-decoration: none;
}

.back-home:active {
  background: #e2e8f0;
}

.back-home-icon {
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 700;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-w);
  background: linear-gradient(180deg,
    rgba(240, 253, 244, 0.4) 0%,
    rgba(236, 253, 245, 0.6) 50%,
    rgba(220, 252, 231, 0.5) 100%);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 62px 2px 18px;
  z-index: 40;
  backdrop-filter: blur(10px);
  transform: translateX(0);
  transition: transform var(--transition);
}

.toc {
  margin-left: 10px;
}

.toc ul { 
  list-style: none; 
  padding: 0; 
  margin: 0;
}
.toc > ul > li { margin-bottom: 6px; }
.toc a {
  display: block;
  padding: 8px 10px;
  color: #0f172a;
  font-weight: 600;
  font-size: 1rem;
}
.toc a:hover { 
  background: rgba(34, 197, 94, 0.12); 
  text-decoration: none;
  /* border-radius: 6px; */
}
.toc ul ul { margin-left: 12px; }
.toc ul ul a {
  font-weight: 500;
  color: #334155;
  padding: 6px 10px;
  font-size: 1rem;
}

.toc a.active {
  background: rgba(34, 197, 94, 0.2);
  color: #15803d;
  border-left: 3px solid #22c55e;
  /* border-radius: 6px; */
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(34, 197, 94, 0.1);
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 30;
}

.backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

/* Content layout */
.content {
  padding-top: 12px;
  padding-left: 28px;
  padding-right: 28px;
  padding-bottom: 64px;
  max-width: 1100px;
  margin-left: calc(var(--sidebar-w) + max(0px, (100% - var(--sidebar-w) - 1100px) / 2));
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.4;
  transition: margin-left var(--transition), max-width var(--transition);
}

/* Desktop : sidebar masquée → contenu centré en largeur */
body.sidebar-is-collapsed .sidebar {
  transform: translateX(-100%);
}

body.sidebar-is-collapsed .content {
  margin-left: auto;
  margin-right: auto;
}

.hero {
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin: 8px 0 14px;
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  align-items: center;
  gap: 24px;
}

.hero-text h2 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0;
}

.hero-text p { 
  margin: 4px 0 8px; 
  color: rgba(255,255,255,0.95); 
  line-height: 1.4; 
}

.hero-illustration {
  display: flex;
  justify-content: flex-end;
}

.hero-illustration-box {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.hero-illustration-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-illustration {
    justify-content: flex-start;
    margin-top: 12px;
  }
}

.doc-section {
  scroll-margin-top: 16px;
  padding: 20px;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
}
.doc-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.doc-section > h2 {
  color: var(--color-primary-dark);
  font-size: 1.5rem;
  margin-bottom: 0.75em;
  font-weight: 700;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--color-border);
}
.doc-section > h3 {
  font-size: 1.2rem;
  color: #0f172a;
  margin-top: 1.2em;
  font-weight: 600;
}
.doc-section article {
  font-size: 1rem;
  line-height: 1.4;
  color: #1e293b;
}

/* Markdown-style formatting */
.doc-section article p {
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
  font-size: 1.05rem;
  text-align: justify;
}

.doc-section article h2 {
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--color-border);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-primary-dark);
}

.doc-section article h3,
.doc-section article h4,
.doc-section article h5,
.doc-section article h6 {
  font-weight: 600;
  margin-bottom: 0.5em;
}

.doc-section article h3 {
  margin-top: 1.2em;
  color: #0f172a;
}

.doc-section article h4 {
  margin-top: 1em;
  font-size: 1.1rem;
  color: #1e293b;
}

.doc-section article h5 {
  margin-top: 0.9em;
  font-size: 1rem;
  color: #334155;
}

.doc-section article h6 {
  margin-top: 0.8em;
  font-size: 0.95rem;
  color: #475569;
}

.doc-section article ul {
  margin: 1rem 0;
  padding: 1rem 1.5rem;
  line-height: 1.4;
  list-style: none;
  background: linear-gradient(to right, rgba(0, 149, 67, 0.03), rgba(0, 149, 67, 0.01));
  border-left: 2px solid rgba(0, 149, 67, 0.3);
  border-radius: 0 8px 8px 0;
}

.doc-section article ul ul {
  border-left: none;
  margin-block: 0;
  padding-block: .2rem;
}

.doc-section article ol {
  margin: 0.6rem 0 0.75rem 1.5em;
  padding-left: 1.5em;
  line-height: 1.4;
}

.doc-section article ol {
  list-style-type: decimal;
}

.doc-section article li {
  margin: 0.5rem 0;
  line-height: 1.4;
  position: relative;
  padding-left: 1.2rem;
}

.doc-section article ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #009543;
  font-weight: 700;
}

.doc-section article ul ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #009543;
  font-weight: 700;
}

.doc-section article ol li {
  padding-left: 0;
}

.doc-section article ol li::before {
  content: none;
}

.doc-section article li > ul,
.doc-section article li > ol {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

.doc-section article strong {
  font-weight: 700;
  color: #0f172a;
}

.doc-section article em {
  font-style: italic;
}

.doc-section article code {
  background: #f1f5f9;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  color: #dc2626;
}

.doc-section article pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1em;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1em 0;
  line-height: 1.4;
}

.doc-section article pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.9em;
}

.doc-section article blockquote {
  border-left: 4px solid var(--color-primary);
  margin: 1em 0;
  color: #1e293b;
  background: #f8fafc;
  padding: 0.75em 1em;
  border-radius: 0 8px 8px 0;
  line-height: 1.4;
  font-size: 1.15em;
  font-weight: 500;
}

.highlight-text {
  color: #006633;
  font-size: 1.05em;
  font-weight: 600;
  line-height: 1.7;
  margin: 1.5rem 0;
}

.contact-info {
  color: #c53030 !important;
  font-weight: 600;
}

.field-title {
  font-size: 0.95em;
  font-weight: 600;
  color: #006633;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  padding-left: 0.5rem;
  border-left: 3px solid #009543;
}

.position-num {
  color: #c53030 !important;
  font-weight: 700;
}

.btn-action {
  color: #009543 !important;
}

.note-text {
  font-style: italic;
  color: #475569;
  font-size: 1em;
  margin: 1rem 0;
}

.required-text {
  color: #c53030;
}

.doc-section article a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.doc-section article a:hover {
  color: var(--color-primary-dark);
  text-decoration-thickness: 2px;
}

.doc-section article hr {
  border: none;
  border-top: 2px solid var(--color-border);
  margin: 1.2em 0;
}

.doc-section article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95em;
  line-height: 1.4;
}

.doc-section article table th,
.doc-section article table td {
  padding: 0.6em;
  border: 1px solid var(--color-border);
  text-align: left;
  line-height: 1.4;
}

.doc-section article table th {
  background: #f8fafc;
  font-weight: 600;
  color: #0f172a;
}

/* Image blocks */
.image-block {
  margin: 16px 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  /* border-radius: var(--radius); */
}
.image-block h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin: 0 0 8px 0;
}
.doc-image {
  /*width: 100%;*/
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin: 0 auto;
}
.image-caption {
  margin: 8px 0 0 0;
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
  font-style: italic;
  line-height: 1.4;
}

/* Callouts */
.callout {
  padding: 10px 12px;
  margin: 10px 0;
  border-left: 4px solid transparent;
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  line-height: 1.4;
}
.callout-title {
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
  text-transform: none;
}
.callout-body {
  line-height: 1.4;
}
.callout-body p {
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.callout-body ul {
  margin: 0.4rem 0 0.5rem 1.25rem;
  line-height: 1.4;
  list-style: disc;
  background: none;
  border: none;
  padding-left: 1.5rem;
}

.annexe-heading {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1rem 1rem 18px;
  background: linear-gradient(to right, rgba(0, 149, 67, 0.08), rgba(0, 149, 67, 0));
  border-radius: 4px;
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
  color: #0f172a;
  font-weight: 700;
}

.callout-body ol {
  margin: 0.4rem 0 0.5rem 1.25rem;
  line-height: 1.4;
}

.callout-body li {
  padding-left: 0;
  position: static;
}
.callout--warning {
  background: #FEF2F2;
  border-left-color: #EF4444;
}
.callout--tip {
  background: #EFF6FF;
  border-left-color: #3B82F6;
}
.callout--procedure {
  background: #F3F4F6;
  border-left-color: var(--color-primary-dark);
}

/* Accordion */
.accordion { 
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-item { 
  border-bottom: 1px solid rgba(0, 149, 67, 0.15);
  background: linear-gradient(to right, rgba(0, 149, 67, 0.02), rgba(0, 149, 67, 0.01));
  transition: background var(--transition);
  /* border-radius: 6px; */
  margin-bottom: 4px;
}

.accordion-item:last-child {
  border-bottom: 1px solid rgba(0, 149, 67, 0.15);
}

.accordion-item:hover {
  background: linear-gradient(to right, rgba(0, 149, 67, 0.05), rgba(0, 149, 67, 0.02));
  box-shadow: 0 2px 4px rgba(0, 149, 67, 0.08);
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: transparent;
  border: none;
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-header:hover {
  color: #009543;
}

.accordion-header::after {
  content: "+";
  font-size: 1.8rem;
  font-weight: 300;
  color: #009543;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.accordion-header[aria-expanded="true"]::after {
  content: "−";
  transform: rotate(0deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s ease,
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  padding: 0 20px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.accordion-item.open .accordion-content {
  opacity: 1;
  padding: 0 20px 18px 20px;
}

.accordion-content p {
  margin: 0 0 0.75rem 0;
  line-height: 1.6;
  color: #64748b;
}

.accordion-content ul, .accordion-content ol {
  margin: 0.5rem 0 0.75rem 1.5rem;
  line-height: 1.6;
  color: #64748b;
}

.accordion-content li {
  margin: 0.4rem 0;
}
/* Annexes Section */
#annexes article > h3 {
  background: #f0fdf4;
  color: #15803d;
  padding: 14px 18px;
  border-left: 4px solid #22c55e;
  margin: 28px 0 16px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

#annexes article h4 {
  color: #15803d;
  padding-left: 12px;
  border-left: 3px solid #86efac;
  margin: 20px 0 12px 0;
  font-size: 1.05rem;
  font-weight: 600;
}

#annexes article h5 {
  color: #0f172a;
  font-weight: 600;
  margin: 16px 0 10px 0;
}

#annexes article ul li::marker {
  color: #22c55e;
}

/* Footer */
.app-footer {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 14px;
  line-height: 1.4;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--gradient-primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25), 0 2px 4px rgba(34, 197, 94, 0.15);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 60;
  font-size: 0;
}

.back-to-top::before {
  content: "▲";
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #15803d 0%, #0b5a28 100%);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4), 0 4px 8px rgba(34, 197, 94, 0.2);
}

.back-to-top:active {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
}

.text-decoration{
  text-decoration: underline !important;
}

/* Responsive */
@media (max-width: 1200px) {
  :root { --sidebar-w: 340px; }
}
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    height: 100vh;
  }

  .sidebar.is-open-on-mobile {
    transform: translateX(0);
    box-shadow: var(--shadow-md);
  }

  body.sidebar-is-collapsed .sidebar {
    transform: translateX(-100%);
  }

  .content {
    margin-left: auto;
    margin-right: auto;
    padding-left: 14px;
    padding-right: 14px;
    max-width: 100%;
  }
}
@media (max-width: 640px) {
  .hero { padding: 18px; }
  .doc-section { padding: 18px; }

  .back-home {
    min-width: 40px;
    padding: 0 10px;
  }

  .back-home-label {
    display: none;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
  
  .back-to-top::before {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  p {
    text-align: left;
  }

  .doc-section article p {
    text-align: left;
  }
}


