:root {
  /* ==========================================================================
     COLOR PALETTE
     All colors are defined here. This is the single source of truth.
     ========================================================================== */

  /* --- Core Brand & Text Colors --- */
  --text-primary: #2c3e50;
  --text-secondary: #5d6d7e;
  --text-footer: #a9b4c0;
  --text-inverse: #ffffff;
  --tooltip-link-hover: #01a31f;
  
  --text-tooltip: #e8e8e8;
  --tooltip-text-default: var(--text-tooltip);
  --tooltip-text-link: var(--color-white);
  --tooltip-text-link-hover: var(--tooltip-link-hover);
  --tooltip-text-strong: var(--color-white);
  --tooltip-text-heading: var(--color-white);

  /* --- Background Colors --- */
  --bg-body: #f5f3f0;
  --bg-main: #fcfbf9;
  --bg-footer: #2c3e50;
  --bg-surface: #ffffff;
  --bg-hover-subtle: #edeae6;
  --bg-tooltip: #2c3e50;

  /* --- Accent & Interactive Colors --- */
  --color-accent: #2c5233;
  --color-accent-rgb: 44, 82, 51;
  --color-accent-hover: #2a7337;
  /* --color-accent-hover-rgb: 36, 99, 81; */
  --color-status-warning: #d9534f;

  /* --- Borders & Dividers --- */
  --color-border: #e0ddd9;
  --color-border-footer: rgba(255, 255, 255, 0.1);

  /* --- Helper Colors --- */
  --color-white: #ffffff;
  --color-blue: blue;
  --color-white-rgb: 255, 255, 255;
  --color-black-rgb: 0, 0, 0;

  /* ==========================================================================
     NEW: INTERACTIVE ELEMENTS (The Unified Button Style)
     ========================================================================== */
  --interactive-bg: var(--bg-hover-subtle);
  --interactive-bg-hover: var(--color-accent);
  --interactive-bg-active: var(--color-accent-hover);

  --interactive-content-color: var(--text-secondary);
  --interactive-content-color-hover: var(--text-inverse);
  
  --interactive-shadow: var(--shadow-sm);
  --interactive-shadow-hover: 0 8px 15px -3px rgba(var(--color-black-rgb), 0.15), 0 0 8px -2px rgba(var(--color-accent-rgb), 0.4);

  --interactive-transform: translateY(0) scale(1);
  --interactive-transform-hover: translateY(-3px) scale(1.05);
  --interactive-transform-active: translateY(1px) scale(0.98);

  --interactive-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --interactive-transition-active: all 0.1s ease-out;

  /* ==========================================================================
     FOOTER INK ANIMATION PALETTE (Preserved)
     ========================================================================== */
  --footer-anim-bg: var(--bg-footer);
  --footer-anim-text-default: #bdc3c7;
  --footer-anim-text-hover: var(--color-white);
  --footer-anim-ink: #1abc9c;


  /* ==========================================================================
     LAYOUT, TYPOGRAPHY & EFFECTS
     ========================================================================== */
  /* --- Fonts & Sizing --- */
  --font-family-base: 'Lora', serif;
  --max-width: 1444px;

  /* --- Spacing & Borders --- */
  --border-radius: 16px;

  /* --- Shadows --- */
  --shadow-sm: 0 4px 6px -1px rgba(var(--color-black-rgb), 0.05), 0 2px 4px -2px rgba(var(--color-black-rgb), 0.05);
  --shadow-md: 0 10px 15px -3px rgba(var(--color-black-rgb), 0.07), 0 4px 6px -4px rgba(var(--color-black-rgb), 0.07);

  /* --- Transitions & Animations --- */
  --transition-speed: 0.35s;
  --footer-anim-duration-bloom: 0.5s;
  --footer-anim-duration-text: 0.3s;
  --footer-anim-easing-organic: cubic-bezier(0.25, 0.8, 0.25, 1);
  --footer-anim-stagger-delay: 0.08s;
}
/*______________________________*/






/**/
/**/
/**/
*,
*::before,
*::after {
  box-sizing: border-box;
}


html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: 16px;
  background-color: var(--bg-body);
  color: var(--text-primary);
}

input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Main Sticky Header */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: hsla(39, 25%, 97%, 0.85); /* NOTE: hsla() cannot use CSS variables directly. Keeping this as is. */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.1rem 0rem 0;
}

header nav {
  display: flex;
  gap: 0.75rem;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow-x: auto;
  padding: 1.1rem 1em 1rem 1em;
}

/* === TO EDIT COLORS AND/ORANIMATIONS === */

/* ==========================================================================
   UNIFIED INTERACTIVE BUTTONS
   Both header tabs and social icons share these styles.
   ========================================================================== */

/* --- 1. Shared Base Styles for All Buttons --- */
header label,
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  text-decoration: none; /* Prevents underlines on social links */
  
  /* Applying the unified style from :root */
  background-color: var(--interactive-bg);
  color: var(--interactive-content-color);
  box-shadow: var(--interactive-shadow);
  transform: var(--interactive-transform);
  transition: var(--interactive-transition);
}

/* --- 2. Element-Specific Sizing & Typography --- */
header label {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.75em 1.5em;
  border-radius: 999px;
  white-space: nowrap;
}

.social-icons a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.social-icons a svg {
/* --- To edit svg colors ---   fill: var(--interactive-content-color); */
  transition: fill 0.3s ease;
}
/* --- 3. Shared Hover States --- */
header label:hover,
.social-icons a:hover {
  /* This is the lighter green for hover actions */
  background-color: var(--interactive-bg-hover);
  color: var(--interactive-content-color-hover);
  box-shadow: var(--interactive-shadow-hover);
  transform: var(--interactive-transform-hover);
}

.social-icons a:hover svg {
  fill: var(--interactive-content-color-hover);
}

/* --- 4. NEW: Selected Tab State --- */
/* This rule ONLY applies to the active tab, giving it the darker color */
#tab1:checked ~ header label[for="tab1"],
#tab2:checked ~ header label[for="tab2"],
#tab3:checked ~ header label[for="tab3"],
#tab4:checked ~ header label[for="tab4"],
#tab5:checked ~ header label[for="tab5"] {
  /* This is the darker green for the persistent selected state */
  background-color: var(--color-accent-hover);
  
  /* We keep the other "active" styles so it stays popped out */
  color: var(--interactive-content-color-hover);
  box-shadow: var(--interactive-shadow-hover);
  transform: var(--interactive-transform-hover);
}


/* --- 5. Shared Active (Press Down) State --- */
header label:active,
.social-icons a:active {
  background-color: var(--interactive-bg-active);
  transform: var(--interactive-transform-active);
  transition: var(--interactive-transition-active);
}

/* --- 6. Shared Focus State for Accessibility --- */
header label:focus-visible,
.social-icons a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.5), var(--interactive-shadow);
}

/*END HEADER-LABEL*/

main {
  display: block;
  background-color: var(--bg-main);
}

/* Tab panels are now the centered containers */
.tab-panel {
  display: none;  
  flex-direction: column;
  grid-gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
}

#tab1:checked ~ main #panel1,
#tab2:checked ~ main #panel2,
#tab3:checked ~ main #panel3,
#tab4:checked ~ main #panel4,
#tab5:checked ~ main #panel5 {
  display: grid;
}

@keyframes contentFadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-panel section {
    max-width: 100%; /* Ensure content doesn't exceed the container */
    overflow-wrap: break-word; /* Break long words (modern browsers) */
    word-wrap: break-word; /* For older browsers */
    white-space: normal; /* Ensure text wraps */
  background-color: var(--bg-surface);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  scroll-margin-top: 100px;
  padding: 2.5rem;
  animation: contentFadeInUp 0.5s ease-out forwards;
}


.tab-panel a { /* Optional: Break at any character, not just word boundaries */
    word-break: break-all;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

#panel5 .legal-content {
  padding-top: 0rem;
  padding-bottom: 2rem;
}

.status-warning {
  color: var(--color-status-warning);
  font-weight: bold;
}

.contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-item img {
  flex-shrink: 0;
}

h1 {
  font-size: 3.25rem;
  font-weight: 800;
  margin: 0 0 0.3rem 0;
  color: var(--text-primary);
}

h1 a {
  font-size: 3.25rem;
  font-weight: 900;
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 0.2rem 0;
  color: var(--text-primary);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 0.1rem 0;
  color: var(--text-primary);
}

h4 {
  font-size: 1rem;
  font-weight: 500;
  margin: 2rem 0 0rem 0;
  color: var(--text-primary);
}

p,
li {
  line-height: 1.7;
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 1rem 0;
}

ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

li {
  margin-bottom: 0.5rem;
}

p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  color: var(--text-secondary);
}

a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-speed) ease, text-decoration 0.2s ease;
}

a:hover {
  color: var(--tooltip-link-hover);
  text-decoration: underline;
}

a:focus {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.quote-entry {
  background-color: var(--bg-body);
  border-left: 4px solid var(--color-accent);
  padding: 0.4rem 1.5rem;
  margin-top: 2rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.quote-entry strong {
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.quote-entry p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.quote-entry li {
  margin-left: 2rem;
  padding: 0.1rem 1rem
}



/*
==========================================================================
  INK & WATER FOOTER ANIMATION
==========================================================================
*/
.footer-wrapper {
  background-color: var(--footer-anim-bg);
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  overflow: hidden;
  position: relative;
}

.footer-column ul h4 {
  padding: 0.01em 0;
}

.footer-column li {
  padding: 0.01em 0;
}


.footer-column ul {
  list-style: none;
  padding: 0.1em 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.footer-column li {
  position: relative;
  margin: 0 0.5em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp var(--footer-anim-duration-bloom) var(--footer-anim-easing-organic) forwards;
  transition: opacity var(--footer-anim-duration-text) ease-in-out;
}

.footer-column li:nth-child(1) { animation-delay: calc(1 * var(--footer-anim-stagger-delay)); }
.footer-column li:nth-child(2) { animation-delay: calc(2 * var(--footer-anim-stagger-delay)); }
.footer-column li:nth-child(3) { animation-delay: calc(3 * var(--footer-anim-stagger-delay)); }
.footer-column li:nth-child(4) { animation-delay: calc(4 * var(--footer-anim-stagger-delay)); }


@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-column li a {
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  z-index: 1;
  display: inline-block;
  padding: 0.5px 0.5px;
  color: var(--footer-anim-text-default);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color var(--footer-anim-duration-text) ease, transform var(--footer-anim-duration-text) var(--footer-anim-easing-organic);
}

.footer-column li::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background-color: var(--footer-anim-ink);
  border-radius: 50%;
  filter: blur(25px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  z-index: 1;
  transition: transform var(--footer-anim-duration-bloom) var(--footer-anim-easing-organic), opacity var(--footer-anim-duration-bloom) var(--footer-anim-easing-organic);
}

.footer-column ul:hover li {
  opacity: 0.6;
}

.footer-column ul li:hover {
  opacity: 1;
}

.footer-column li:hover::before {
  opacity: 0.5;
  transform: translate(-50%, -50%) scale(1);
}

.footer-column li:hover a {
  color: var(--footer-anim-text-hover);
  transform: translateY(-2px);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .footer-column li {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
  .footer-column li::before {
    display: none;
  }
  .footer-column li a:hover {
    color: var(--footer-anim-text-hover);
    text-decoration: underline;
    text-decoration-color: var(--footer-anim-ink);
  }
}

/*____________________________________________________________________________________*/
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 0rem;
}

.footer-column {
  white-space: nowrap;
  text-align: center;
}

.footer-column h4 {
  margin: 0.5rem 0rem 0.5rem 0; 
  color: var(--text-inverse);
}

.footer-column ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

/*_______________________________________________________________________*/
.site-footer {
  background-color: var(--bg-footer);
  color: var(--text-footer);
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border-footer);
  margin-top: 1rem;
}


.site-footer a {
  color: var(--text-footer);
  font-weight: 400;
}

.site-footer a:hover {
  color: var(--text-inverse);
}

.footer-container h4 {
  color: var(--text-inverse);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  background-color: var(--bg-footer);
  color: var(--text-footer);
  padding: 0 1.5rem;
}

.footer-top {
  text-align: center;
  margin-bottom: 1rem;
}

.footer-top p {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-inverse); 
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--color-border-footer);
}

.footer-bottom h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-footer);
}

.footer-bottom h4 a {
  color: var(--text-footer);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.footer-bottom h4 a:hover {
  color: var(--text-inverse);
  text-decoration: underline;
}


/* Glossary Styles */
.glossaryContainer {
  position: relative;
  display: inline-block;
  cursor: help;
}

.glossaryWord {
  border-bottom: 2px dotted var(--color-accent);
  color: var(--text-primary);
  font-weight: 500;
}
.glossaryContainer:hover .glossaryWord {
    border-bottom-color: var(--color-accent-hover);
}

.glossaryWord::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 2px;
  /* SVG icon color is now controlled by the accent color variable */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a5d4e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'%3E%3C/path%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  opacity: 0.6;
  transition: opacity var(--transition-speed) ease;
}

.glossaryTooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: max-content;
  max-width: 320px;
  padding: 12px 16px;
  background-color: var(--bg-tooltip);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: left;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  pointer-events: auto;
  transition: all var(--transition-speed) cubic-bezier(0.68, -0.55, 0.265, 1.55);
  white-space: normal;
}

.glossaryTooltip::before {
  content: "?";
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 10px;
  line-height: 1;
  color: var(--text-tooltip);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  pointer-events: auto;
}

.glossaryTooltip:hover::before {
  opacity: 1;
}

.glossaryTooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--bg-tooltip);
}

.glossaryContainer:hover .glossaryTooltip,
.glossaryContainer:focus-within .glossaryTooltip,
.glossaryTooltip:hover {
  color: var(--text-tooltip);
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.glossaryTooltip p {
  /* This is usually handled by the parent's `color`, but you can explicitly set it */
  color: var(--text-strong);
}

.glossaryTooltip strong {
  color: var(--tooltip-text-strong);
  font-weight: bold; /* Ensure it's visually bold */
}

.glossaryTooltip h1,
.glossaryTooltip h2,
.glossaryTooltip h3,
.glossaryTooltip h4,
.glossaryTooltip h5,
.glossaryTooltip h6 {
  color: var(--tooltip-text-title);
  margin-top: 0.5em; /* Adjust spacing for headings within a small tooltip */
  margin-bottom: 0.2em;
}

.glossaryTooltip a {
  color: var(--tooltip-text-link);
  /* Ensure no default underline unless hovered */
  text-decoration: none;
}

.glossaryTooltip a:hover {
  color: var(--tooltip-text-link-hover);
  text-decoration: underline;
}

.reseaux ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  main {
    padding: 1.5rem 1rem;
  }
  .tab-panel section {
    padding: 1.5rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  p,
  li {
    font-size: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .social-icons a {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: rgba(var(--color-white-rgb), 0.1);
    box-shadow: 0 2px 6px rgba(var(--color-black-rgb), 0.15);
  }
  .social-icons a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(var(--color-black-rgb), 0.2), 0 0 8px var(--color-accent);
  }
  .social-icons a:active {
    transform: scale(0.98);
    background-color: var(--color-accent);
  }
}

@media screen and (max-width: 480px) {
  header nav {
    gap: 0.5rem;
  }
  header label {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-top p {
    font-size: 1rem;
  }
}

@media (max-width: 320px) {
  .social-icons {
    gap: 0.75rem;
  }
  .social-icons a {
    width: 40px;
    height: 40px;
  }
}

@media print {
  .glossaryTooltip {
    display: none !important;
  }
  .glossaryWord {
    border-bottom: none;
  }
  .glossaryWord::before {
    display: none;
  }
}








/* --- 1. Main Layout & Structure --- */
.side-menu-layout {
  display: grid;
  grid-template-columns: 300px 1fr; /* Sidebar width | Content Area */
  gap: 1.5rem;
}

/* Hide all radio buttons */
.side-menu-layout input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* --- 2. Sidebar Styling --- */
.side-nav {
  background-color: var(--bg-hover-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden; /* Ensures children respect the border radius */
  display: flex;
  flex-direction: column;
}

.category-tabs-side {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}

.category-tabs-side label {
  flex-grow: 1;
  text-align: center;
  padding: 0.8rem 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border-bottom: 3px solid transparent;
}
.category-tabs-side label:hover {
  color: var(--text-primary);
  background-color: #e9e6e3;
}

/* Style for the selected category tab */
#category-1:checked ~ .side-nav label[for="category-1"],
#category-2:checked ~ .side-nav label[for="category-2"],
#category-3:checked ~ .side-nav label[for="category-3"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.item-lists {
  flex-grow: 1;
  overflow-y: auto; /* Adds scrollbar if list is too long */
}

.item-list {
  list-style: none;
  padding: 0.5rem;
  margin: 0;
  display: none; /* Hide all lists by default */
  animation: contentFadeInUp 0.4s ease;
}

/* Logic to show the correct item list */
#category-1:checked ~ .side-nav #idea-1-items,
#category-2:checked ~ .side-nav #idea-2-items,
#category-3:checked ~ .side-nav #idea-3-items {
  display: block;
}

.item-list label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px; /* Slightly smaller radius for internal items */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-weight: 500;
  color: var(--text-secondary);
}
.item-list label svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: var(--text-secondary);
  transition: all 0.2s ease-in-out;
}
.item-list label:hover {
  background-color: #e0ddd9;
  color: var(--text-primary);
}
.item-list label:hover svg {
  fill: var(--text-primary);
}

/* Style for the SELECTED item in the list */
#i1-item-1:checked ~ .side-nav label[for="i1-item-1"],
#i1-item-2:checked ~ .side-nav label[for="i1-item-2"],
/* ... repeat for ALL 45 items ... */
#i3-item-15:checked ~ .side-nav label[for="i3-item-15"] {
  background-color: var(--color-accent);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
  transform: translateX(5px);
}
#i1-item-1:checked ~ .side-nav label[for="i1-item-1"] svg,
#i1-item-2:checked ~ .side-nav label[for="i1-item-2"] svg,
/* ... repeat for ALL 45 items ... */
#i3-item-15:checked ~ .side-nav label[for="i3-item-15"] svg {
  fill: var(--text-inverse);
}


/* --- 3. Content Area Styling --- */
.content-area {
  padding: 1rem; /* Add some internal padding */
}
.content-panel {
  display: none;
  animation: contentFadeInUp 0.5s ease-out forwards;
}

/* Logic to show the correct content panel */
#i1-item-1:checked ~ .content-area #content-i1-item-1,
#i1-item-2:checked ~ .content-area #content-i1-item-2,
/* ... repeat for ALL 45 items ... */
#i3-item-15:checked ~ .content-area #content-i3-item-15 {
  display: block;
}

/* --- 4. Responsive Design for Mobile --- */
@media (max-width: 900px) {
  .side-menu-layout {
    grid-template-columns: 1fr; /* Stack sidebar on top of content */
  }
  .side-nav {
    max-height: 40vh; /* Prevent the sidebar from taking too much vertical space */
  }
  .content-area {
    padding-top: 0;
  }
}
/* END: Add this CSS */
