/* ─────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ───────────────────────────────────────────────────────── */
:root {
  --green-900: #063A28;
  --green-800: #0C5A3E;
  --green-700: #0F6E56;
  --green-600: #1A8870;
  --green-200: #9FE1CB;
  --green-100: #CBF0E3;
  --green-50:  #EAF8F2;

  --amber-700: #854F0B;
  --amber-600: #BA7517;
  --amber-400: #EF9F27;
  --amber-100: #FAC775;
  --amber-50:  #FEF3DC;

  --gray-900:  #1A1A17;
  --gray-800:  #2C2C28;
  --gray-700:  #444440;
  --gray-600:  #5A5A56;
  --gray-500:  #6A6A64;
  --gray-400:  #8E8E88;
  --gray-300:  #C4C4BE;
  --gray-200:  #DDDDD6;
  --gray-100:  #EEEEEA;
  --gray-50:   #F6F6F2;

  --white:     #FFFFFF;

  --red-700:   #7A2020;
  --red-600:   #A32D2D;
  --red-200:   #F5AAAA;
  --red-100:   #FAD0D0;
  --red-50:    #FCEBEB;

  --blue-700:  #185FA5;
  --blue-50:   #E6F1FB;

  --purple-700:#5C2D91;
  --purple-100:#E8D5F7;
  --purple-50: #F5EEFF;

  --teal-700:  #0F6670;
  --teal-100:  #C5EAED;
  --teal-50:   #E6F7F8;

  --orange-700:#8C3A00;
  --orange-100:#FDDCC0;
  --orange-50: #FFF0E3;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);

  --context-nav-height: 70px;
}

/* ─────────────────────────────────────────────────────────
   2. RESET / BASE
   ───────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: var(--green-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

/* ─────────────────────────────────────────────────────────
   3. HEADER / MAIN NAVIGATION
   ───────────────────────────────────────────────────────── */
.site-header {
  background: var(--green-900);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.mobile-menu-toggle {
  display: none;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px 14px 20px;
  border-right: 1px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
  text-decoration: none;
}

.header-brand:hover {
  text-decoration: none;
}

.header-emblem {
  width: 40px;
  height: 40px;
  background: var(--amber-400);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  color: var(--green-900);
  font-weight: 700;
}

.header-titles {
  display: flex;
  flex-direction: column;
}

.header-titles .main-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.3;
  white-space: nowrap;
}

.header-titles .sub-title {
  font-size: 10.5px;
  color: var(--green-200);
  font-weight: 400;
}

.header-nav {
  display: flex;
  align-items: stretch;
  flex: 1;
  padding: 0 12px;
  gap: 2px;
  overflow: visible;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.header-nav::-webkit-scrollbar {
  height: 5px;
}

.header-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.60);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-tab:hover {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.nav-tab.active {
  color: var(--white);
  border-bottom-color: var(--amber-400);
}

.nav-tab .tab-num {
  width: 19px;
  height: 19px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-tab.active .tab-num {
  background: var(--amber-400);
  color: var(--green-900);
}

/* ─────────────────────────────────────────────────────────
   4. HEADER DROPDOWN — PROCÉDURES
   ───────────────────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}

.nav-dropdown-toggle {
  height: 100%;
}

.dropdown-arrow {
  font-size: 20px;
  margin-left: 2px;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: var(--green-900);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 9999;
  display: none;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

/* Desktop only: open dropdown on hover */
@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: block;
  }
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.35;
}

.nav-dropdown-menu a:hover {
  background: var(--green-50);
  color: var(--green-800);
  text-decoration: none;
}

.nav-dropdown-menu a.active {
  background: var(--green-700);
  color: var(--amber-400);
}

.dropdown-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.nav-dropdown-menu a.active .dropdown-icon {
  background: rgba(255,255,255,0.18);
}

/* ─────────────────────────────────────────────────────────
   5. CONTEXT NAV
   ───────────────────────────────────────────────────────── */
   body.home-active .context-nav-wrap {
  display: none;
}

.context-nav-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 68px;
  z-index: 90;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.context-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.context-nav-inner::-webkit-scrollbar {
  height: 5px;
}

.context-nav-inner::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 999px;
}

.context-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-500);
  white-space: nowrap;
  flex-shrink: 0;
}

.context-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

.context-tab {
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-700);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.context-tab:hover {
  background: var(--white);
  border-color: var(--green-200);
  color: var(--green-800);
}

.context-tab.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}

.context-tab.ctx-red.active {
  background: var(--red-600);
  border-color: var(--red-600);
}

.context-tab.ctx-teal.active {
  background: var(--teal-700);
  border-color: var(--teal-700);
}

.context-tab[hidden] {
  display: none;
}

/* ─────────────────────────────────────────────────────────
   6. HEADER ACTIONS
   ───────────────────────────────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-left: 1px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.btn-print {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-print:hover {
  background: rgba(255,255,255,0.2);
}

/* ─────────────────────────────────────────────────────────
   HOME PAGE
   ───────────────────────────────────────────────────────── */

   .home-pane {
     display: none;
   }

   .home-pane.active {
     display: block;
   }

   /* HERO */
   .home-hero {
     background: linear-gradient(135deg, #ecfdf5, #ffffff);
     border: 1px solid rgba(15, 118, 110, 0.14);
     border-radius: 28px;
     padding: 42px;
     box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
     margin-bottom: 24px;
   }

   .home-kicker {
     display: inline-flex;
     align-items: center;
     padding: 7px 12px;
     border-radius: 999px;
     background: rgba(15, 118, 110, 0.08);
     color: var(--green-800);
     font-weight: 700;
     font-size: 13px;
     margin-bottom: 14px;
   }

   .home-hero h1 {
     font-size: clamp(2rem, 4vw, 3.3rem);
     line-height: 1.1;
     color: var(--green-900);
     margin-bottom: 16px;
     max-width: 920px;
   }

   .home-hero p {
     max-width: 850px;
     color: var(--gray-600);
     font-size: 1.04rem;
     line-height: 1.75;
   }

   /* HERO BUTTONS */
   .home-actions {
     display: flex;
     flex-wrap: wrap;
     gap: 10px;
     margin-top: 24px;
   }

   .home-btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     min-height: 42px;
     padding: 0 16px;
     border-radius: 999px;
     border: 1px solid rgba(15, 118, 110, 0.18);
     background: #fff;
     color: var(--green-800);
     text-decoration: none;
     font-weight: 700;
     font-size: 13px;
     line-height: 1.3;
   }

   .home-btn:hover {
     text-decoration: none;
     background: var(--green-50);
   }

   .home-btn.primary {
     background: var(--green-800);
     color: #fff;
     border-color: var(--green-800);
   }

   .home-btn.primary:hover {
     background: var(--green-900);
   }

   /* INTRO CARDS */
   .home-intro-grid {
     display: grid;
     grid-template-columns: repeat(3, minmax(0, 1fr));
     gap: 16px;
     margin-bottom: 30px;
   }

   .home-info-card,
   .home-procedure-card {
     background: #fff;
     border: 1px solid rgba(15, 23, 42, 0.08);
     border-radius: 22px;
     padding: 20px;
     box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
   }

   .home-card-icon {
     width: 44px;
     height: 44px;
     border-radius: 16px;
     background: var(--green-50);
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.35rem;
     margin-bottom: 12px;
   }

   .home-info-card h2 {
     font-size: 1.05rem;
     color: var(--gray-900);
     margin-bottom: 8px;
   }

   .home-info-card p {
     color: var(--gray-600);
     line-height: 1.7;
     font-size: 14px;
   }

   /* SECTION TITLE */
   .home-section-title {
     margin: 26px 0 16px;
   }

   .home-section-title h2 {
     color: var(--gray-900);
     margin-bottom: 6px;
     font-size: 1.45rem;
   }

   .home-section-title p {
     color: var(--gray-500);
     font-size: 14px;
   }

   /* PROCEDURE CARDS */
   .home-procedure-grid {
     display: grid;
     grid-template-columns: repeat(3, minmax(0, 1fr));
     gap: 14px;
   }

   .home-procedure-card {
     display: block;
     text-decoration: none;
     color: inherit;
     transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
   }

   .home-procedure-card:hover {
     transform: translateY(-3px);
     box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
     text-decoration: none;
   }

   .hpc-icon {
     display: inline-flex;
     width: 42px;
     height: 42px;
     border-radius: 15px;
     align-items: center;
     justify-content: center;
     font-size: 1.35rem;
     margin-bottom: 12px;
   }

   .home-procedure-card strong {
     display: block;
     font-size: 1rem;
     color: var(--gray-900);
     margin-bottom: 7px;
     line-height: 1.35;
   }

   .home-procedure-card small {
     display: block;
     color: var(--gray-500);
     line-height: 1.55;
     font-size: 13px;
   }

   .home-procedure-card.red .hpc-icon { background: var(--red-50); }
   .home-procedure-card.teal .hpc-icon { background: var(--teal-50); }
   .home-procedure-card.green .hpc-icon { background: var(--green-50); }
   .home-procedure-card.amber .hpc-icon { background: var(--amber-50); }
   .home-procedure-card.blue .hpc-icon { background: var(--blue-50); }
   .home-procedure-card.orange .hpc-icon { background: var(--orange-50); }

   /* RESOURCE STRIP */
   .home-resource-strip {
     margin-top: 24px;
     padding: 16px;
     border-radius: 20px;
     background: var(--gray-50);
     display: flex;
     flex-wrap: wrap;
     gap: 10px;
   }

   .home-resource-strip a {
     background: #fff;
     border: 1px solid rgba(15, 23, 42, 0.08);
     padding: 10px 13px;
     border-radius: 999px;
     text-decoration: none;
     color: var(--gray-700);
     font-weight: 700;
     font-size: 13px;
   }

   .home-resource-strip a:hover {
     text-decoration: none;
     background: var(--green-50);
     color: var(--green-800);
   }

   .home-contribution-call {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  color: #fff;
  border-radius: 24px;
  padding: 26px;
  margin: 26px 0 30px;
  box-shadow: 0 18px 42px rgba(6, 58, 40, 0.18);
}

.home-contribution-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.home-contribution-call h2 {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.home-contribution-call p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
  font-size: 14.5px;
  margin-bottom: 10px;
}

.home-contribution-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.home-contribution-call .home-btn {
  background: #fff;
  color: var(--green-800);
  border-color: rgba(255, 255, 255, 0.25);
}

.home-contribution-call .home-btn.primary {
  background: var(--amber-400);
  color: var(--green-900);
  border-color: var(--amber-400);
}

   /* TABLET */
   @media (max-width: 900px) {
     .home-hero {
       padding: 30px 24px;
       border-radius: 24px;
     }

     .home-intro-grid,
     .home-procedure-grid {
       grid-template-columns: repeat(2, minmax(0, 1fr));
     }
   }

   /* MOBILE */
   @media (max-width: 640px) {
     body.home-active .page-wrapper {
       padding: 18px 14px 46px;
     }

     .home-hero {
       padding: 22px 18px;
       border-radius: 20px;
       margin-bottom: 18px;
     }

     .home-kicker {
       font-size: 11.5px;
       padding: 6px 10px;
       margin-bottom: 12px;
     }

     .home-hero h1 {
       font-size: 1.7rem;
       line-height: 1.18;
       margin-bottom: 12px;
     }

     .home-hero p {
       font-size: 13.5px;
       line-height: 1.65;
     }

     .home-actions {
       flex-direction: column;
       gap: 8px;
       margin-top: 18px;
     }

     .home-btn {
       width: 100%;
       min-height: 42px;
       border-radius: 14px;
       padding: 10px 14px;
       text-align: center;
     }

     .home-intro-grid,
     .home-procedure-grid {
       grid-template-columns: 1fr;
       gap: 12px;
     }

     .home-info-card,
     .home-procedure-card {
       padding: 16px;
       border-radius: 18px;
     }

     .home-card-icon,
     .hpc-icon {
       width: 40px;
       height: 40px;
       border-radius: 14px;
       font-size: 1.2rem;
       margin-bottom: 10px;
     }

     .home-info-card h2,
     .home-procedure-card strong {
       font-size: 15px;
       line-height: 1.35;
     }

     .home-info-card p,
     .home-procedure-card small {
       font-size: 13px;
       line-height: 1.55;
     }

     .home-section-title {
       margin: 22px 0 12px;
     }

     .home-section-title h2 {
       font-size: 1.25rem;
     }

     .home-section-title p {
       font-size: 13px;
       line-height: 1.55;
     }

     .home-procedure-card:hover {
       transform: none;
     }

     .home-resource-strip {
       margin-top: 18px;
       padding: 12px;
       border-radius: 18px;
       display: grid;
       grid-template-columns: 1fr;
       gap: 8px;
     }

     .home-resource-strip a {
       border-radius: 14px;
       padding: 10px 12px;
       font-size: 13px;
     }
     .home-contribution-call {
    flex-direction: column;
    padding: 20px 16px;
    border-radius: 20px;
    margin: 20px 0 24px;
  }

  .home-contribution-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    font-size: 1.25rem;
  }

  .home-contribution-call h2 {
    font-size: 1.15rem;
  }

  .home-contribution-call p {
    font-size: 13.5px;
    line-height: 1.65;
  }

  .home-contribution-actions {
    flex-direction: column;
  }

  .home-contribution-actions .home-btn {
    width: 100%;
  }
   }

   /* VERY SMALL MOBILE */
   @media (max-width: 380px) {
     .home-hero h1 {
       font-size: 1.5rem;
     }

     .home-hero {
       padding: 20px 14px;
     }

     .home-info-card,
     .home-procedure-card {
       padding: 14px;
     }
   }

/* ─────────────────────────────────────────────────────────
   7. LAYOUT
   ───────────────────────────────────────────────────────── */

.page-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.section-pane {
  display: none;
}

.section-pane.active {
  display: block;
}

/* ─────────────────────────────────────────────────────────
   8. SECTION HEADER / ALERTS
   ───────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.section-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.section-icon.green  { background: var(--green-100); }
.section-icon.amber  { background: var(--amber-50); }
.section-icon.blue   { background: var(--blue-50); }
.section-icon.red    { background: var(--red-50); }
.section-icon.purple { background: var(--purple-50); }
.section-icon.teal   { background: var(--teal-50); }

.section-header h1 {
  font-size: 21px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.25;
}

.section-header p {
  font-size: 13.5px;
  color: var(--gray-500);
  margin-top: 4px;
}

.section-alert {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 13.5px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.section-alert.red {
  background: var(--red-50);
  border: 1px solid var(--red-100);
  color: var(--orange-700);
}

.section-alert.teal {
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-700);
}

.section-alert.amber {
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  color: var(--amber-700);
}

.section-alert .sa-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─────────────────────────────────────────────────────────
   9. PROCEDURE STEPS
   ───────────────────────────────────────────────────────── */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s;
  min-width: 0;
}

.step-card:hover {
  box-shadow: var(--shadow-sm);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  overflow-wrap: normal;
}

.step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-card.urgent .step-badge {
  background: var(--red-600);
}

.step-card.important .step-badge {
  background: var(--amber-600);
}

.step-card.purple-badge .step-badge {
  background: var(--purple-700);
}

.step-card.teal-badge .step-badge {
  background: var(--teal-700);
}

.step-header-text {
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.step-header-text h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.step-header-text span {
  font-size: 13px;
  color: var(--gray-500);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.step-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.tag.green  { background: var(--green-100);  color: var(--green-800); }
.tag.amber  { background: var(--amber-50);   color: var(--amber-700); }
.tag.red    { background: var(--red-50);     color: var(--red-600); }
.tag.blue   { background: var(--blue-50);    color: var(--blue-700); }
.tag.gray   { background: var(--gray-100);   color: var(--gray-700); }
.tag.purple { background: var(--purple-100); color: var(--purple-700); }
.tag.teal   { background: var(--teal-100);   color: var(--teal-700); }
.tag.orange { background: var(--orange-100); color: var(--orange-700); }

.step-chevron {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s, background 0.2s;
  flex-shrink: 0;
}

.step-card.open .step-chevron {
  transform: rotate(180deg);
  background: var(--green-100);
}

.step-chevron svg {
  width: 12px;
  height: 12px;
  stroke: var(--gray-600);
}

.step-body {
  display: none;
  padding: 0 20px 20px 68px;
  border-top: 1px solid var(--gray-100);
}

.step-body.open {
  display: block;
  padding-top: 16px;
}

.step-section {
  margin-bottom: 14px;
}

.step-section h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 8px;
}

/* ─────────────────────────────────────────────────────────
   10. LISTS / INFO BOXES / COLUMNS
   ───────────────────────────────────────────────────────── */
.action-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.action-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-800);
  overflow-wrap: anywhere;
}

.action-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-600);
  margin-top: 7px;
  flex-shrink: 0;
}

.action-list.urgent li::before {
  background: var(--red-600);
}

.action-list.purple li::before {
  background: var(--purple-700);
}

.action-list.teal li::before {
  background: var(--teal-700);
}

.info-box {
  background: var(--amber-50);
  border-left: 3px solid var(--amber-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--amber-700);
  margin-top: 12px;
}

.info-box.green {
  background: var(--green-50);
  border-left-color: var(--green-600);
  color: var(--green-800);
}

.info-box.red {
  background: var(--red-50);
  border-left-color: var(--red-600);
  color: var(--red-600);
}

.info-box.purple {
  background: var(--purple-50);
  border-left-color: var(--purple-700);
  color: var(--purple-700);
}

.info-box.teal {
  background: var(--teal-50);
  border-left-color: var(--teal-700);
  color: var(--teal-700);
}

.section-icon.blue,
.legal-card-header.blue,
.li-num.blue,
.li-badge.blue {
  background: #2563eb;
  color: #fff;
}

.section-alert.blue {
  border-left: 4px solid #2563eb;
  background: #eff6ff;
}

.context-tab.ctx-blue.active {
  background: #2563eb;
  color: #fff;
}

.tag.blue {
  background: #dbeafe;
  color: #1e40af;
}

.info-box.blue {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

/* ─────────────────────────────────────────────────────────
   11. VOLETS COLORÉS
   ───────────────────────────────────────────────────────── */
.volet-block {
  border-radius: var(--radius-md);
  border: 1px solid;
  padding: 14px 16px;
  margin-bottom: 10px;
  min-width: 0;
}

.volet-block.v-sante {
  background: var(--blue-50);
  border-color: #c0d8f0;
}

.volet-block.v-juridique {
  background: var(--amber-50);
  border-color: var(--amber-100);
}

.volet-block.v-asso {
  background: var(--green-50);
  border-color: var(--green-100);
}

.volet-block.v-psy {
  background: var(--purple-50);
  border-color: var(--purple-100);
}

.volet-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.volet-block.v-sante .volet-title {
  color: var(--blue-700);
}

.volet-block.v-juridique .volet-title {
  color: var(--amber-700);
}

.volet-block.v-asso .volet-title {
  color: var(--green-700);
}

.volet-block.v-psy .volet-title {
  color: var(--purple-700);
}

/* ─────────────────────────────────────────────────────────
   12. RISK MATRIX
   ───────────────────────────────────────────────────────── */
.risk-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.risk-cell {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 1px solid;
}

.risk-cell.high {
  background: var(--red-50);
  border-color: var(--red-200);
}

.risk-cell.medium {
  background: var(--amber-50);
  border-color: var(--amber-100);
}

.risk-cell.low {
  background: var(--green-50);
  border-color: var(--green-100);
}

.risk-cell .rc-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.risk-cell.high .rc-label {
  color: var(--red-600);
}

.risk-cell.medium .rc-label {
  color: var(--amber-700);
}

.risk-cell.low .rc-label {
  color: var(--green-700);
}

.risk-cell .rc-items {
  font-size: 12px;
  color: var(--gray-700);
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────
   13. CASE SELECTOR
   ───────────────────────────────────────────────────────── */
.case-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.case-btn {
  flex: 1;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.case-btn:hover {
  border-color: var(--green-200);
}

.case-btn.selected {
  border-color: var(--green-700);
  background: var(--green-50);
}

.case-btn.sel-red.selected {
  border-color: var(--red-600);
  background: var(--red-50);
}

.case-btn.sel-teal.selected {
  border-color: var(--teal-700);
  background: var(--teal-50);
}

.case-btn .case-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.case-btn .case-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}

.case-btn .case-desc {
  font-size: 12px;
  color: var(--gray-500);
}

/* ─────────────────────────────────────────────────────────
   14. CHECKLISTS
   ───────────────────────────────────────────────────────── */
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checklist-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.checklist-card.full-width {
  grid-column: 1 / -1;
}

.checklist-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.checklist-subtitle {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.progress-bar {
  height: 6px;
  background: var(--gray-100);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-fill {
  height: 100%;
  background: var(--green-600);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.progress-fill.red {
  background: var(--red-600);
}

.progress-fill.teal {
  background: var(--teal-700);
}

.progress-label {
  font-size: 12px;
  color: var(--gray-500);
  text-align: right;
  margin-bottom: 14px;
}

.checklist-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.checklist-item:hover {
  background: var(--gray-50);
}

.checklist-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--green-700);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-item.cl-red input[type="checkbox"] {
  accent-color: var(--red-600);
}

.checklist-item.cl-teal input[type="checkbox"] {
  accent-color: var(--teal-700);
}

.checklist-item label {
  font-size: 14px;
  color: var(--gray-800);
  cursor: pointer;
  line-height: 1.45;
}

.checklist-item.checked label {
  text-decoration: line-through;
  color: var(--gray-400);
}

.reset-btn {
  margin-top: 12px;
  width: 100%;
  padding: 8px;
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--gray-500);
  transition: all 0.2s;
}

.reset-btn:hover {
  background: var(--gray-50);
  color: var(--gray-700);
}

/* ─────────────────────────────────────────────────────────
   15. LEGAL REFERENCES
   ───────────────────────────────────────────────────────── */
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.legal-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
}

.legal-card-header {
  background: var(--green-900);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-card-header.red {
  background: var(--orange-700);
}

.legal-card-header.teal {
  background: var(--teal-700);
}

.legal-card-header.purple {
  background: var(--purple-700);
}

.legal-card-header .lch-icon {
  font-size: 18px;
}

.legal-card-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.legal-card-header p {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.legal-items {
  padding: 4px 0;
}

.legal-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s;
  overflow-wrap: anywhere;
}

.legal-item:last-child {
  border-bottom: none;
}

.legal-item:hover {
  background: var(--gray-50);
}

.legal-item .li-num {
  min-width: 24px;
  height: 24px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 11px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  flex-shrink: 0;
}

.legal-item .li-num.red {
  background: var(--red-50);
  color: var(--red-600);
}

.legal-item .li-num.teal {
  background: var(--teal-100);
  color: var(--teal-700);
}

.legal-item .li-num.purple {
  background: var(--purple-100);
  color: var(--purple-700);
}

.legal-item .li-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
  overflow-wrap: anywhere;
}

.legal-item .li-detail {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.legal-item .li-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--amber-50);
  color: var(--amber-700);
  white-space: nowrap;
  margin-top: 4px;
  display: inline-block;
}

.legal-item .li-badge.red {
  background: var(--red-50);
  color: var(--red-600);
}

.legal-item .li-badge.teal {
  background: var(--teal-100);
  color: var(--teal-700);
}

.legal-item .li-badge.purple {
  background: var(--purple-100);
  color: var(--purple-700);
}

/* ─────────────────────────────────────────────────────────
   16. PARTNERS / RIGHTS
   ───────────────────────────────────────────────────────── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.partner-card .p-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.partner-card .p-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
}

.partner-card .p-phone {
  font-size: 12px;
  color: var(--green-700);
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 2px;
}

.partner-card .p-phone.red {
  color: var(--red-600);
  font-weight: 600;
}

.partner-card .p-phone.teal {
  color: var(--teal-700);
}

.partner-card .p-role {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 3px;
}

.rights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.right-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.right-item .ri-icon {
  width: 36px;
  height: 36px;
  background: var(--green-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.right-item .ri-icon.red {
  background: var(--red-50);
}

.right-item .ri-icon.teal {
  background: var(--teal-100);
}

.right-item .ri-icon.purple {
  background: var(--purple-100);
}

.right-item .ri-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
}

.right-item .ri-desc {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ─────────────────────────────────────────────────────────
   17. FOLLOW-UP / TIMELINE / FORMS
   ───────────────────────────────────────────────────────── */
.followup-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.timeline-nav {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: fit-content;
  position: sticky;
  top: 120px;
}

.timeline-nav-title {
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s;
  border-left: 3px solid transparent;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item:hover {
  background: var(--gray-50);
}

.timeline-item.active {
  background: var(--green-50);
  border-left-color: var(--green-700);
}

.timeline-item.active.red {
  background: var(--red-50);
  border-left-color: var(--red-600);
}

.timeline-item.active.teal {
  background: var(--teal-50);
  border-left-color: var(--teal-700);
}

.timeline-item .ti-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  flex-shrink: 0;
}

.timeline-item.active .ti-dot {
  background: var(--green-700);
}

.timeline-item.active.red .ti-dot {
  background: var(--red-600);
}

.timeline-item.active.teal .ti-dot {
  background: var(--teal-700);
}

.timeline-item .ti-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
}

.timeline-item.active .ti-label {
  font-weight: 600;
  color: var(--green-800);
}

.timeline-item.active.red .ti-label {
  color: var(--orange-700);
}

.timeline-item.active.teal .ti-label {
  color: var(--teal-700);
}

.timeline-item .ti-sub {
  font-size: 11px;
  color: var(--gray-400);
}

.followup-panel {
  display: none;
}

.followup-panel.active {
  display: block;
}

.followup-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  min-width: 0;
}

.followup-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.followup-card .fc-meta {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.observation-field {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  min-height: 80px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  width: 100%;
  background: var(--gray-50);
  color: var(--gray-900);
  transition: border-color 0.2s;
  outline: none;
}

.observation-field:focus {
  border-color: var(--green-600);
  background: var(--white);
}

.field-group {
  margin-bottom: 16px;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.field-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-900);
  cursor: pointer;
  outline: none;
}

.field-select:focus {
  border-color: var(--green-600);
  background: var(--white);
}

.cloture-criteria {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
}

.criterion {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.criterion:last-child {
  border-bottom: none;
}

.criterion-check {
  width: 22px;
  height: 22px;
  accent-color: var(--green-700);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
}

.criterion-check.red {
  accent-color: var(--red-600);
}

.criterion-check.teal {
  accent-color: var(--teal-700);
}

.criterion label {
  font-size: 14px;
  color: var(--gray-800);
  cursor: pointer;
}

.resource-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}

.resource-quick-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.resource-quick-card.blue {
  border-left: 5px solid #2563eb;
}

.resource-quick-card.amber {
  border-left: 5px solid #d97706;
}

.resource-quick-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: #f8fafc;
  flex-shrink: 0;
}

.resource-quick-content h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.resource-quick-content p {
  margin: 0 0 14px;
  color: var(--gray-700, #374151);
  line-height: 1.6;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-action-btn,
.inline-resource-link,
.glossary-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  background: #f8fafc;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.quick-action-btn:hover,
.inline-resource-link:hover,
.glossary-inline:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  background: #fff;
}

.quick-action-btn.blue {
  background: #eff6ff;
  color: #1d4ed8;
}

.quick-action-btn.amber {
  background: #fffbeb;
  color: #b45309;
}

.inline-resource-link {
  margin-top: 8px;
  background: #eff6ff;
  color: #1d4ed8;
}

.glossary-inline {
  padding: 3px 8px;
  font-size: inherit;
  background: #f1f5f9;
  color: #1d4ed8;
}

.mini-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────
   18. BUTTONS
   ───────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--green-700);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--green-800);
}

.btn-primary.red {
  background: var(--red-600);
}

.btn-primary.red:hover {
  background: var(--orange-700);
}

.btn-primary.teal {
  background: var(--teal-700);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* ─────────────────────────────────────────────────────────
   19. SECTION LABELS
   ───────────────────────────────────────────────────────── */
.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--green-700);
  margin-bottom: 12px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label.red {
  color: var(--red-600);
}

.section-label.teal {
  color: var(--teal-700);
}

.section-label.purple {
  color: var(--purple-700);
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ─────────────────────────────────────────────────────────
   20. FOOTER
   ───────────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-900);
  color: var(--white);
  margin-top: 40px;
  border-top: 4px solid var(--amber-400);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 22px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  margin-bottom: 24px;
}

.footer-emblem {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amber-400);
  color: var(--green-900);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-brand h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 6px;
}

.footer-brand p {
  max-width: 720px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--green-100);
}

.footer-links {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--amber-100);
  margin-bottom: 4px;
}

.footer-col a {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,0.62);
  font-size: 11.5px;
  line-height: 1.5;
}

.footer-bottom p:last-child {
  text-align: right;
  max-width: 520px;
}

.hcr-services-section {
  margin: 28px 0;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.hcr-services-header {
  display: none;
}

.hcr-services-header h2 {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.18);
  font-size: 1.45rem;
}

.hcr-services-header p {
  margin: 0 0 18px;
  color: #334155;
  line-height: 1.6;
}

.hcr-info-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 22px;
  border-radius: 6px;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #0f172a;
  line-height: 1.45;
}

.hcr-service-grid {
  display: grid;
 grid-template-columns: repeat(4, minmax(130px, 1fr));
 gap: 12px;
 margin-bottom: 18px;
}

.hcr-service-tile {
  border: 1px solid #0284c7;
  border-radius: 4px;
  overflow: hidden;
  background: #eaf6fb;
  cursor: pointer;
  padding: 0;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

.hcr-service-tile:hover,
.hcr-service-tile.active {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.18);
}

.hcr-tile-icon {
  height: 58px;
  display: grid;
  place-items: center;
  background: #087dbb;
  color: #fff;
  font-size: 1.65rem;
}

.hcr-tile-title {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 10px;
  color: #0369a1;
  font-weight: 700;
  text-align: center;
  line-height: 1.18;
  font-size: 0.88rem;
}

.hcr-service-panel {
  display: none;
  padding: 22px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.hcr-service-panel.active {
  display: block;
}

.hcr-service-panel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #075985;
  font-size: 1.35rem;
}

.hcr-service-panel p {
  color: #334155;
  line-height: 1.65;
}

.hcr-partner-grid,
.hcr-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.hcr-partner-card,
.hcr-content-box,
.hcr-contact-box,
.hcr-alert,
.hcr-contact-grid > div {
  background: #ffffff;
  border-radius: 16px;
  border-left: 4px solid #0284c7;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.hcr-contact-grid > div strong {
  color: #075985;
}

.hcr-partner-card h4,
.hcr-content-box h4 {
  margin: 0 0 10px;
  color: #0f172a;
}

.hcr-partner-card ul,
.hcr-content-box ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #334155;
  line-height: 1.6;
}

.hcr-contact-box {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.hcr-contact-grid > div {
  display: grid;
  gap: 6px;
}

.hcr-contact-grid span,
.hcr-contact-box span {
  color: #475569;
  line-height: 1.5;
}

.hcr-alert {
  margin-top: 14px;
  background: #fff7ed;
  border-left: 4px solid #f97316;
  color: #7c2d12;
  line-height: 1.55;
}

.hcr-faq {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.hcr-faq h4 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 1rem;
}

.hcr-faq details {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  padding: 12px 14px;
}

.hcr-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #075985;
  line-height: 1.45;
}

.hcr-faq details[open] summary {
  margin-bottom: 8px;
}

.hcr-faq p {
  margin: 0;
  color: #334155;
  line-height: 1.65;
}


/* ─────────────────────────────────────────────────────────
   21. RESPONSIVE — GENERAL
   ───────────────────────────────────────────────────────── */
@media (min-width: 1181px) {
  .page-wrapper,
  .header-inner,
  .context-nav-inner,
  .footer-inner {
    max-width: 1180px;
  }

  .legal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .header-inner,
  .context-nav-inner,
  .page-wrapper,
  .footer-inner {
    max-width: 100%;
  }

  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hcr-service-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 900px) {
  body {
    font-size: 14.5px;
  }

  .header-inner {
    flex-wrap: wrap;
    align-items: center;
  }

  .header-brand {
    flex: 1 1 auto;
    min-width: 260px;
    border-right: none;
    padding: 12px 16px;
  }

  .header-actions {
    padding: 8px 16px;
    border-left: none;
    margin-left: auto;
  }

  .header-nav {
    order: 3;
    width: 100%;
    flex: 1 0 100%;
    padding: 0 12px 8px;
    overflow-x: auto;
    overflow-y: visible;
  }

  .nav-tab {
    min-height: 42px;
    padding: 0 12px;
  }

  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown-menu {
    position: fixed;
    left: 12px;
    right: 12px;
    top: var(--dropdown-mobile-top, 104px);
    min-width: 0;
    width: auto;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    border-radius: var(--radius-md);
    z-index: 9999;
  }

  .nav-dropdown.mobile-dismissed .nav-dropdown-menu {
    display: none !important;
  }

  .nav-dropdown.mobile-dismissed .dropdown-arrow {
    transform: none !important;
  }

  .context-nav-wrap {
    top: var(--header-height, 96px);
  }

  .context-nav-inner {
    padding: 9px 14px;
    align-items: flex-start;
  }

  .context-label {
    padding-top: 7px;
  }

  .context-tabs {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .page-wrapper {
    padding: 22px 16px 48px;
  }

  .section-header {
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .section-header h1 {
    font-size: clamp(18px, 3vw, 21px);
  }

  .section-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .case-selector,
  .risk-matrix,
  .partners-grid,
  .rights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .case-selector {
    gap: 10px;
  }

  .case-btn {
    min-width: 0;
  }

  .step-body {
    padding-left: 58px;
  }

  .legal-grid,
  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .checklist-card.full-width {
    grid-column: auto;
  }

  .followup-layout {
    grid-template-columns: 1fr;
  }

  .timeline-nav {
    position: static;
  }
}

@media (max-width: 780px) {
  .followup-layout {
    grid-template-columns: 1fr;
  }
  .resource-quick-grid {
    grid-template-columns: 1fr;
  }

  .resource-quick-card {
    flex-direction: column;
  }

  .quick-action-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .footer-inner {
    padding: 28px 14px 20px;
  }

  .footer-brand {
    flex-direction: column;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .footer-bottom p:last-child {
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 900px) {
  .three-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .two-col,
  .three-col,
  .legal-grid,
  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hcr-services-section.compact {
  display: grid;
  gap: 18px;
}

  .hcr-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hcr-partner-grid,
  .hcr-contact-grid {
    grid-template-columns: 1fr;
  }

  .hcr-service-tile {
    min-height: 96px;
  }

  .hcr-tile-icon {
    height: 48px;
    font-size: 1.3rem;
  }

  .hcr-tile-title {
    font-size: 0.7rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 68px;
  }

  .header-brand {
    min-width: 0;
    padding: 12px 10px 12px 14px;
    border-right: none;
  }

  .header-titles .main-title {
    white-space: normal;
    font-size: 11.5px;
  }

  .header-titles .sub-title {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-right: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
  }

  .mobile-menu-icon {
    font-size: 18px;
    line-height: 1;
  }

  .header-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;

    display: none;
    flex-direction: column;
    gap: 4px;

    width: 100%;
    padding: 10px;
    background: var(--green-900);
    border-top: 1px solid rgba(255,255,255,0.12);

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  body.mobile-nav-open .header-nav {
    display: flex;
  }

  .header-nav .nav-tab,
  .header-nav .nav-dropdown {
    width: 100%;
  }

  .nav-tab {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 0 12px;
    border-bottom: none;
    border-radius: var(--radius-sm);
  }

  .nav-tab.active {
    background: rgba(255,255,255,0.10);
    border-bottom-color: transparent;
  }

  .nav-dropdown {
    display: block;
    position: static;
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    height: 44px;
    justify-content: flex-start;
  }

  .nav-dropdown-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;

    display: none !important;

    width: 100%;
    min-width: 0;
    max-height: none;
    overflow: visible;

    margin-top: 4px;
    padding: 6px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: none;
  }

  body.mobile-nav-open .nav-dropdown.open .nav-dropdown-menu {
    display: block !important;
  }

  .nav-dropdown-menu a {
    padding: 11px 10px;
    font-size: 13px;
  }

  .context-nav-wrap {
    top: 68px;
  }
  .context-label {
    display: none;
  }

  .context-nav-inner {
    padding: 8px 10px;
    gap: 0;
  }

  .context-tabs {
    width: 100%;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .context-tabs::-webkit-scrollbar {
    display: none;
  }

  .context-tab {
    flex: 0 0 auto;
    padding: 7px 11px;
    font-size: 11.5px;
  }
  .context-tab.ctx-orange.active {
  background: var(--orange-700);
  border-color: var(--orange-700);
  color: #fff;
}

.section-icon.orange {
  background: var(--orange-50);
  color: var(--orange-700);
}

.section-alert.orange {
  background: var(--orange-50);
  border: 1px solid var(--orange-100);
  color: var(--orange-700);
}

.legal-card-header.orange,
.li-num.orange,
.li-badge.orange {
  background: var(--orange-700);
  color: #fff;
}

.tag.orange {
  background: var(--orange-100);
  color: var(--orange-700);
}

  .steps-container {
    gap: 10px;
  }
  .step-card {
    border-radius: 16px;
  }

  .step-header {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    grid-template-areas:
      "badge text chevron"
      "badge tags chevron";
    align-items: start;
    gap: 8px 10px;
    padding: 14px 14px;
  }

  .step-badge {
    grid-area: badge;
    width: 30px;
    height: 30px;
    font-size: 12px;
    margin-top: 2px;
  }

  .step-header-text {
    grid-area: text;
    min-width: 0;
  }

  .step-header-text h3 {
    font-size: 14px;
    line-height: 1.35;
    margin: 0;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }

  .step-header-text span {
    display: block;
    font-size: 12.5px;
    line-height: 1.45;
    margin-top: 4px;
    color: var(--gray-500);
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }

  .step-tags {
    grid-area: tags;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
    min-width: 0;
  }

  .tag {
    font-size: 10px;
    padding: 3px 7px;
    line-height: 1.2;
  }

  .step-chevron {
    grid-area: chevron;
    width: 26px;
    height: 26px;
    margin-top: 2px;
    justify-self: end;
  }

  .step-body {
    padding: 0 14px 16px 14px;
  }

  .step-body.open {
    padding-top: 14px;
  }
}

@media (max-width: 600px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .context-label {
    display: none;
  }

  .context-nav-inner {
    padding: 8px 10px;
    gap: 0;
  }

  .context-tabs {
    width: 100%;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .context-tabs::-webkit-scrollbar {
    display: none;
  }

  .context-tab {
    flex: 0 0 auto;
    padding: 7px 11px;
    font-size: 11.5px;
  }
}

@media (max-width: 380px) {
  .context-label {
    display: none;
  }
  .page-wrapper {
    padding-left: 8px;
    padding-right: 8px;
  }

  .header-brand {
    padding-left: 10px;
    padding-right: 8px;
  }

  .nav-tab {
    padding-left: 8px;
    padding-right: 8px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-icon {
    width: 36px;
    height: 36px;
  }

  .legal-item {
    flex-direction: column;
  }

  .legal-item .li-num {
    border-radius: 999px;
  }

  .step-header {
    grid-template-columns: 26px minmax(0, 1fr) 22px;
    column-gap: 8px;
    padding: 12px 10px;
  }

  .step-header-text h3 {
    font-size: 13.5px;
  }

  .step-header-text span {
    font-size: 11.8px;
  }

  .tag {
    font-size: 10.5px;
    padding: 3px 7px;
  }
}

/* ─────────────────────────────────────────────────────────
   22. PRINT
   ───────────────────────────────────────────────────────── */
@media print {
  .site-header .header-actions,
  .btn-print,
  .context-nav-wrap {
    display: none;
  }

  .step-body {
    display: block !important;
    padding-top: 14px;
  }

  .section-pane {
    display: block !important;
  }

  body {
    font-size: 13px;
  }
}

/* ─────────────────────────────────────────────────────────
   ABOUT PAGE
   ───────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.about-card,
.side-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  min-width: 0;
}

.about-card h2,
.side-card h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.about-card p {
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 14px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.feature-item p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.45;
  margin: 0;
}

.scope-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.scope-list li {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-700);
}

.scope-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-600);
  margin-top: 9px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .about-card,
  .side-card {
    padding: 18px;
  }
}


/* ─────────────────────────────────────────────────────────
   MODE D’EMPLOI PAGE
   ───────────────────────────────────────────────────────── */
.usage-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.usage-card,
.side-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  min-width: 0;
}

.usage-intro {
  background: var(--green-50);
  border-left: 3px solid var(--green-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 13px 15px;
  color: var(--green-800);
  font-size: 13.5px;
  margin-bottom: 20px;
}

.usage-steps {
  display: grid;
  gap: 13px;
}

.usage-step {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 15px;
}

.usage-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.usage-step h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.usage-step p {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.55;
}

.usage-step strong {
  color: var(--gray-900);
}

.usage-alert {
  margin-top: 18px;
  background: var(--amber-50);
  border-left: 3px solid var(--amber-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--amber-700);
}

.side-card h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.side-card p {
  font-size: 13.5px;
  color: var(--gray-600);
  margin-bottom: 14px;
}

.quick-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.quick-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 13px;
  color: var(--gray-700);
}

.quick-list li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.mini-card {
  background: var(--blue-50);
  border: 1px solid #c0d8f0;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 18px;
}

.mini-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mini-card p {
  font-size: 13px;
  color: var(--gray-700);
  margin: 0;
}

@media (max-width: 900px) {
  .usage-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .usage-card,
  .side-card {
    padding: 18px;
  }

  .usage-step {
    padding: 12px;
  }

  .usage-num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

/* ─────────────────────────────────────────────────────────
   GLOSSAIRE PAGE
   ───────────────────────────────────────────────────────── */

/* Search */
.search-bar-wrap {
  margin-bottom: 28px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.search-bar:focus-within {
  border-color: var(--green-600);
}

.search-bar .search-icon {
  font-size: 18px;
  flex-shrink: 0;
  color: var(--gray-400);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--gray-900);
  background: none;
  min-width: 0;
}

.search-bar input::placeholder {
  color: var(--gray-400);
}

.search-count {
  font-size: 12px;
  color: var(--gray-500);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Alphabet filter */
.alpha-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.alpha-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.alpha-btn:hover {
  background: var(--green-50);
  border-color: var(--green-200);
  color: var(--green-800);
}

.alpha-btn.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}

.alpha-btn.all {
  width: auto;
  padding: 0 12px;
}

/* Category tabs */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.cat-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cat-tab:hover {
  border-color: var(--green-200);
  color: var(--green-800);
  background: var(--green-50);
}

.cat-tab.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}

.cat-tab .ct-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cat-tab.active .ct-dot {
  background: rgba(255,255,255,0.6) !important;
}

/* Glossary layout */
.glossary-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.glossary-layout .sidebar-nav {
  position: sticky;
  top: 96px;

  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;

  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}

.glossary-layout .sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.glossary-layout .sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.glossary-layout .sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 999px;
}

.glossary-layout .sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

.glossary-layout .sidebar-title {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--gray-50);
}

/* Sidebar */
.sidebar-nav {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 96px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background 0.15s;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-item:hover {
  background: var(--gray-50);
  text-decoration: none;
}

.sidebar-item.active {
  background: var(--green-50);
  border-left-color: var(--green-700);
  color: var(--green-800);
  font-weight: 600;
}

.sidebar-item .si-badge {
  font-size: 10px;
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

.sidebar-item.active .si-badge {
  background: var(--green-100);
  color: var(--green-700);
}

/* Glossary entries */
.glossary-section {
  margin-bottom: 36px;
}

.glossary-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-700);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.glossary-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.term-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
  scroll-margin-top: 120px;
}

.term-card:hover {
  box-shadow: var(--shadow-md);
}

.term-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}

.term-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  margin-top: 1px;
}

.term-header-text {
  flex: 1;
  min-width: 0;
}

.term-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 3px;
}

.term-abbr {
  font-size: 11px;
  font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 6px;
  display: inline-block;
}

.term-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

.term-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.term-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.term-chevron {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s, background 0.2s;
}

.term-card.open .term-chevron {
  transform: rotate(180deg);
  background: var(--green-100);
}

.term-chevron svg {
  width: 12px;
  height: 12px;
  stroke: var(--gray-600);
}

.term-body {
  display: none;
  padding: 0 20px 20px 72px;
  border-top: 1px solid var(--gray-100);
}

.term-body.open {
  display: block;
  padding-top: 16px;
}

.term-definition {
  font-size: 14px;
  color: var(--gray-800);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Sub-types */
.sub-types {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.sub-type {
  border-radius: var(--radius-md);
  border: 1px solid;
  padding: 12px 15px;
}

.sub-type-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.sub-type-body {
  font-size: 13.5px;
  line-height: 1.6;
}

.sub-type.corporelle {
  background: var(--red-50);
  border-color: var(--red-100);
}

.sub-type.corporelle .sub-type-title,
.sub-type.corporelle .sub-type-body {
  color: var(--red-700);
}

.sub-type.sexuelle {
  background: var(--purple-50);
  border-color: var(--purple-100);
}

.sub-type.sexuelle .sub-type-title,
.sub-type.sexuelle .sub-type-body {
  color: var(--purple-700);
}

.sub-type.psychologique {
  background: var(--blue-50);
  border-color: #c0d8f0;
}

.sub-type.psychologique .sub-type-title,
.sub-type.psychologique .sub-type-body {
  color: var(--blue-700);
}

.sub-type.economique {
  background: var(--amber-50);
  border-color: var(--amber-100);
}

.sub-type.economique .sub-type-title,
.sub-type.economique .sub-type-body {
  color: var(--amber-700);
}

.sub-type.situations {
  background: var(--teal-50);
  border-color: var(--teal-100);
}

.sub-type.situations .sub-type-title,
.sub-type.situations .sub-type-body {
  color: var(--teal-700);
}

/* Arabic text */
.arabic {
  direction: rtl;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.8;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}

.empty-state .es-icon {
  font-size: 40px;
  margin-bottom: 14px;
}

.empty-state h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 14px;
}

/* Glossary responsive */
@media (max-width: 900px) {
  .glossary-layout {
    grid-template-columns: 1fr;
  }

  .glossary-layout .sidebar-nav {
    position: relative;
    top: auto;
    max-height: 260px;
    overflow-y: auto;
  }
}

@media (max-width: 640px) {
  .search-bar {
    align-items: flex-start;
  }

  .search-count {
    display: none;
  }

  .cat-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .cat-tab {
    flex-shrink: 0;
  }

  .section-header {
    flex-direction: column;
    gap: 10px;
  }

  .term-header {
    padding: 14px 13px;
    gap: 10px;
  }

  .term-icon {
    width: 34px;
    height: 34px;
  }

  .term-name {
    font-size: 14px;
  }

  .term-subtitle {
    font-size: 12px;
  }

  .term-body {
    padding-left: 13px;
    padding-right: 13px;
  }
}


/* ─────────────────────────────────────────────────────────
   ANNUAIRE PAGE
   ───────────────────────────────────────────────────────── */

/* Toolbar */
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}

.toolbar .search-bar {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.toolbar .search-bar:focus-within {
  border-color: var(--green-600);
}

.toolbar .search-icon {
  font-size: 16px;
  flex-shrink: 0;
  color: var(--gray-400);
}

.toolbar .search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--gray-900);
  background: none;
  min-width: 0;
}

.toolbar .search-bar input::placeholder {
  color: var(--gray-400);
}

.filter-select {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--gray-700);
  cursor: pointer;
  outline: none;
  box-shadow: var(--shadow-sm);
}

.filter-select:focus {
  border-color: var(--green-600);
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.result-count {
  font-size: 13px;
  color: var(--gray-500);
}

.result-count strong {
  color: var(--gray-800);
  font-weight: 600;
}

/* Category tabs */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.cat-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cat-tab:hover {
  border-color: var(--green-200);
  color: var(--green-800);
  background: var(--green-50);
}

.cat-tab.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}

.cat-tab .ct-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cat-tab.active .ct-dot {
  background: rgba(255,255,255,0.6) !important;
}

.cat-badge {
  font-size: 10px;
  background: rgba(0,0,0,0.08);
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 700;
}

.cat-tab.active .cat-badge {
  background: rgba(255,255,255,0.25);
}

/* Directory layout */
.directory-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.directory-main,
#directoryContent {
  min-width: 0;
}

/* Sidebar for directory */
.directory-layout .sidebar-nav {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  position: sticky;
  top: 96px;
  box-shadow: var(--shadow-sm);

  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}

.directory-layout .sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.directory-layout .sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.directory-layout .sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 999px;
}

.directory-layout .sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

.directory-layout .sidebar-title {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}

.directory-layout .sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 16px;
  font-size: 12px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background 0.15s;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.directory-layout .sidebar-item:last-child {
  border-bottom: none;
}

.directory-layout .sidebar-item:hover {
  background: var(--gray-50);
  text-decoration: none;
}

.directory-layout .sidebar-item.active {
  background: var(--green-50);
  border-left-color: var(--green-700);
  color: var(--green-800);
  font-weight: 600;
}

.directory-layout .sidebar-item .si-badge {
  font-size: 10px;
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 2px 5px;
  border-radius: 8px;
  font-weight: 600;
}

.directory-layout .sidebar-item.active .si-badge {
  background: var(--green-100);
  color: var(--green-700);
}

/* City sections */
.city-section {
  margin-bottom: 32px;
  scroll-margin-top: 120px;
}

.city-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.city-header h2 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-700);
}

.city-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

/* Directory partner card */
.directory-layout .partner-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.directory-layout .partner-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.directory-layout .partner-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cat-color, var(--green-600));
  border-radius: 3px 0 0 3px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: var(--cat-bg, var(--green-50));
}

.card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.card-type-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
  background: var(--cat-bg, var(--green-50));
  color: var(--cat-color, var(--green-700));
  flex-shrink: 0;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.card-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-600);
}

.card-meta-row .meta-icon {
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.card-meta-row a {
  color: var(--green-700);
  word-break: break-all;
  font-size: 11px;
}

.card-meta-row .contact-name {
  color: var(--gray-800);
  font-weight: 500;
}

.card-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
  border: none;
  cursor: pointer;
}

.card-btn:hover {
  opacity: 0.82;
  text-decoration: none;
}

.card-btn.tel {
  background: var(--green-50);
  color: var(--green-800);
}

.card-btn.email {
  background: var(--blue-50);
  color: var(--blue-700);
}

.card-btn.urgence {
  background: var(--red-50);
  color: var(--red-600);
  font-size: 12px;
  padding: 6px 12px;
}

.card-data-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 11px;
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  border-radius: var(--radius-md);
  color: var(--amber-700);
  font-size: 11.5px;
  line-height: 1.45;
}

.card-data-warning .warning-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.card-btn.report {
  background: var(--amber-50);
  color: var(--amber-700);
  border: 1px solid var(--amber-100);
}

.card-btn.report:hover {
  background: var(--amber-100);
  color: var(--amber-700);
}

/* Urgence banner */
.urgence-banner {
  background: var(--red-50);
  border: 1px solid var(--red-100);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.urgence-banner h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--red-700);
  margin-bottom: 6px;
}

.urgence-icon {
  font-size: 28px;
}

.urgence-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.urgence-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--red-100);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red-600);
}

.urgence-pill .num {
  font-size: 14px;
  font-family: 'IBM Plex Mono', monospace;
}

/* Add notice */
.add-notice {
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--amber-700);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}

.empty-state .es-icon {
  font-size: 40px;
  margin-bottom: 14px;
}

.empty-state h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 14px;
}

.directory-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(246, 246, 242, 0.94);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.directory-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  width: min(420px, 100%);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  text-align: center;
}

.loader-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
}

.loader-text h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.loader-text p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 18px;
}

.loader-progress {
  width: 100%;
  height: 7px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.loader-progress-bar {
  height: 100%;
  width: 38%;
  background: linear-gradient(
    90deg,
    var(--green-700),
    var(--amber-400),
    var(--green-700)
  );
  border-radius: 999px;
  animation: directoryLoading 1.15s ease-in-out infinite;
}

.loader-small {
  font-size: 12px;
  color: var(--gray-500);
}

@keyframes directoryLoading {
  0% {
    transform: translateX(-120%);
  }

  50% {
    transform: translateX(80%);
  }

  100% {
    transform: translateX(260%);
  }
}

/* Add structure notice */
.add-structure-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-left: 4px solid var(--green-700);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  margin-bottom: 24px;
}

.add-structure-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--green-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.add-structure-content {
  flex: 1;
  min-width: 0;
}

.add-structure-content h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 4px;
}

.add-structure-content p {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.55;
  margin-bottom: 10px;
}

.add-structure-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-700);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.add-structure-link:hover {
  background: var(--green-800);
  color: var(--white);
  text-decoration: none;
}

/* Directory responsive */
@media (max-width: 900px) {
  .directory-layout {
    grid-template-columns: 1fr;
  }

  .directory-layout .sidebar-nav {
      position: relative;
      top: auto;
      max-height: 260px;
      overflow-y: auto;
    }
}

@media (max-width: 640px) {
  .toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .toolbar .search-bar {
    min-width: 0;
  }

  .cat-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .cat-tab {
    flex-shrink: 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .urgence-banner {
    align-items: flex-start;
  }

  .urgence-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .card-header {
    flex-wrap: wrap;
  }
  .loader-card {
    padding: 20px;
  }

  .loader-text h2 {
    font-size: 16px;
  }

  .loader-text p {
    font-size: 12.5px;
  }

  .add-structure-notice {
    flex-direction: column;
    gap: 10px;
  }

  .add-structure-link {
    width: 100%;
  }
}


/* ─────────────────────────────────────────────────────────
   CONTACT PAGE
   ───────────────────────────────────────────────────────── */

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.contact-card,
.info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  min-width: 0;
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}

.field-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--gray-900);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.field-group textarea {
  min-height: 140px;
  resize: vertical;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--green-600);
  background: var(--white);
}

.form-note {
  background: var(--amber-50);
  border-left: 3px solid var(--amber-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--amber-700);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px;
}

.info-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.info-item p,
.info-item a {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.45;
}

.alert-box {
  margin-top: 18px;
  background: var(--red-50);
  border: 1px solid var(--red-200);
  color: var(--red-600);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 13px;
}

.report-violence-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 13px;
  background: var(--white);
  border: 1px solid var(--red-100);
  border-radius: var(--radius-md);
}

.report-violence-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--red-50);
  color: var(--red-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.report-violence-box h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--red-700);
  margin-bottom: 4px;
}

.report-violence-box p {
  font-size: 12.5px;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 10px;
}

.report-violence-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red-600);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.report-violence-link:hover {
  background: var(--red-700);
  color: var(--white);
  text-decoration: none;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-card,
  .info-card {
    padding: 18px;
  }

  .contact-card .btn-primary {
    width: 100%;
  }
  .report-violence-box {
    flex-direction: column;
  }

  .report-violence-link {
    width: 100%;
  }
}


/* ─────────────────────────────────────────────────────────
   DOCUMENTS / BIBLIOTHÈQUE PAGE
   ───────────────────────────────────────────────────────── */

.documents-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.documents-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 10px 14px;
  min-width: 0;
  transition: border-color 0.2s, background 0.2s;
}

.documents-search:focus-within {
  border-color: var(--green-600);
  background: var(--white);
}

.documents-search-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.documents-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--gray-900);
  min-width: 0;
}

.documents-search input::placeholder {
  color: var(--gray-400);
}

.documents-counter {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
}

.documents-counter span {
  color: var(--green-700);
  font-weight: 700;
}

.documents-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.doc-filter {
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  border-radius: 999px;
  padding: 8px 13px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.doc-filter:hover {
  background: var(--green-50);
  border-color: var(--green-200);
  color: var(--green-800);
}

.doc-filter.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.document-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.document-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
  transform: translateY(-1px);
}

.document-preview {
  height: 145px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.document-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.document-placeholder {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-direction: column;
  gap: 4px;
}

.document-placeholder::after {
  content: "Aperçu";
  font-size: 10px;
  font-weight: 600;
  color: currentColor;
}

.document-preview-pages {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 6px;
  background: var(--gray-50);
}

.document-preview-pages img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.document-placeholder-docx {
  background: var(--blue-50);
  color: var(--blue-700);
}

.document-placeholder-pdf,
.document-placeholder-pdf — 2 pages {
  background: var(--red-50);
  color: var(--red-600);
}

.document-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.document-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.document-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.35;
  margin: 0;
}

.document-description {
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 10px;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 12px;
}

.document-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.document-actions .btn-primary,
.document-actions .btn-secondary {
  width: 100%;
  justify-content: center;
  padding: 8px 10px;
  font-size: 12px;
  min-height: 36px;
}

.documents-empty {
  display: none;
  background: var(--white);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 28px 18px;
  margin-top: 18px;
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
}

.documents-empty.show {
  display: block;
}

@media (max-width: 760px) {
  .documents-toolbar {
    grid-template-columns: 1fr;
  }

  .documents-counter {
    width: fit-content;
  }

  .documents-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .doc-filter {
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .documents-grid {
    grid-template-columns: 1fr;
  }

  .document-preview {
    height: 135px;
  }

  .document-actions {
    grid-template-columns: 1fr;
  }
}


/* ─────────────────────────────────────────────────────────
   THANK YOU / SUCCESS PAGE
   ───────────────────────────────────────────────────────── */

body.success-page {
  display: flex;
  flex-direction: column;
}

body.success-page .page-wrapper {
  width: 100%;
  flex: 1;
  padding-top: 42px;
  padding-bottom: 70px;
}

.success-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.success-card,
.success-layout .info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  min-width: 0;
}

.success-card {
  border-top: 4px solid var(--green-600);
}

.success-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
}

.success-card h1 {
  font-size: 25px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.25;
  margin-bottom: 8px;
}

.success-card p {
  font-size: 14px;
  color: var(--gray-600);
  max-width: 760px;
  margin-bottom: 16px;
}

.success-note {
  background: var(--green-50);
  border-left: 3px solid var(--green-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
  color: var(--green-800);
  font-size: 13px;
  margin: 18px 0;
}

.success-layout .info-card h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.success-layout .info-card > p {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .success-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.success-page .page-wrapper {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .success-card,
  .success-layout .info-card {
    padding: 20px;
  }

  .success-card h1 {
    font-size: 22px;
  }
}


/* ─────────────────────────────────────────────────────────
   COMITÉ DE LECTURE — TABLE STYLE
   ───────────────────────────────────────────────────────── */

.reading-committee-section {
  max-width: 980px;
  margin: 28px auto 0;
}

.reading-committee-title {
  text-align: center;
  color: var(--teal-700);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 22px;
  line-height: 1.2;
}

.reading-committee-table {
  width: 100%;
  display: grid;
  gap: 4px;
  background: var(--white);
}

.committee-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 4px;
}

.committee-name {
  background: #2d7189;
  color: #ffffff;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.15;
  text-align: center;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
}

.committee-role {
  background: #c9cacc;
  color: #34414a;
  font-size: 16px;
  line-height: 0.95;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  min-height: auto;
  text-align: justify;
}

.committee-row:hover .committee-name {
  background: #245f74;
}

.committee-row:hover .committee-role {
  background: #d4d5d7;
}

@media (max-width: 700px) {
  .reading-committee-title {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .committee-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 8px;
  }

  .committee-name {
    font-size: 16px;
    min-height: auto;
    padding: 10px 14px;
  }

  .committee-role {
    font-size: 14px;
    min-height: auto;
    padding: 12px 14px;
    text-align: left;
  }
}



.forum-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.forum-feature-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.forum-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.forum-feature-card h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #0f172a;
}

.forum-feature-card p {
  color: #475569;
  line-height: 1.7;
}

.forum-cta-box {
  margin-top: 26px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border: 1px solid rgba(37, 99, 235, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.forum-cta-box h2 {
  margin-bottom: 8px;
  color: #0f172a;
}

.forum-cta-box p {
  color: #475569;
  margin: 0;
}

@media (max-width: 900px) {
  .forum-page-grid {
    grid-template-columns: 1fr;
  }

  .forum-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ─────────────────────────────────────────────────────────
   APPEL À RELECTURE / COMITÉ
   ───────────────────────────────────────────────────────── */

.review-hero {
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  color: #fff;
  border-radius: 28px;
  padding: 36px;
  margin-bottom: 24px;
  box-shadow: 0 18px 44px rgba(6, 58, 40, 0.18);
}

.review-kicker {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: var(--amber-100);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.review-hero h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 900px;
}

.review-hero p {
  color: rgba(255,255,255,0.86);
  max-width: 900px;
  line-height: 1.75;
  margin-bottom: 10px;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.review-section {
  margin: 28px 0;
}

.review-section h2 {
  font-size: 1.45rem;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.review-section > p {
  color: var(--gray-600);
  max-width: 880px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.review-profile-grid,
.review-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.review-profile-card,
.review-check-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.rpc-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.review-profile-card h3,
.review-check-card h3 {
  font-size: 14.5px;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.review-profile-card p,
.review-check-card p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

.review-notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-radius: 22px;
  padding: 22px;
  margin: 24px 0;
}

.review-notice.legal {
  background: var(--blue-50);
  border: 1px solid rgba(24, 95, 165, 0.16);
}

.review-notice.amber {
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
}

.review-notice-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.review-notice h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.review-notice p {
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 8px;
}

.consent-form-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.consent-form-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.consent-form-header h3 {
  color: var(--gray-900);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.consent-form-header p {
  color: var(--gray-500);
  font-size: 13px;
}

.consent-badge {
  background: var(--green-50);
  color: var(--green-800);
  border: 1px solid var(--green-100);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.consent-text p {
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 10px;
}

.consent-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.consent-field label,
.signature-grid label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.signature-line {
  height: 34px;
  border-bottom: 1px solid var(--gray-300);
}

.consent-options {
  background: var(--gray-50);
  border-radius: 18px;
  padding: 16px;
  margin: 20px 0;
}

.consent-options h4 {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.consent-options label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 8px;
}

.signature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 16px;
  margin-top: 20px;
}

.signature-box {
  height: 72px;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  background: #fff;
}

.consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  border-top: 1px solid var(--gray-200);
  padding-top: 18px;
}

.review-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-step {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 18px;
}

.process-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--green-800);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.process-step h3 {
  font-size: 14.5px;
  margin-bottom: 6px;
}

.process-step p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

.consent-field input,
.consent-field select,
.consent-field textarea,
.signature-grid input {
  width: 100%;
  border: 1px solid var(--gray-200);
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-size: 13.5px;
  color: var(--gray-800);
}

.consent-field input:focus,
.consent-field select:focus,
.consent-field textarea:focus,
.signature-grid input:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(26, 136, 112, 0.12);
}

.consent-field.full {
  margin-top: 18px;
}

.required {
  color: var(--red-600);
  font-weight: 700;
}

.review-notice.compact {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
}

.online-signature {
  margin-top: 20px;
}

.official-process {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hidden-field {
  display: none;
}

.form-error-summary {
  background: var(--red-50);
  border: 1px solid var(--red-100);
  color: var(--red-700);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 16px 0;
}

.form-error-summary strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-error-summary ul {
  margin: 0;
  padding-left: 20px;
}

.form-error-summary li {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.consent-options label.checkbox-error {
  background: var(--red-50);
  border: 1px solid var(--red-100);
  border-radius: 12px;
  padding: 10px;
}

.consent-options label.checkbox-error input {
  outline: 2px solid var(--red-600);
  outline-offset: 2px;
}

@media (max-width: 1000px) {
  .review-profile-grid,
  .review-check-grid,
  .review-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .official-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .review-hero {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .review-hero h2 {
    font-size: 1.65rem;
  }

  .review-hero p {
    font-size: 13.5px;
    line-height: 1.65;
  }

  .review-actions,
  .consent-actions {
    flex-direction: column;
  }

  .review-actions .home-btn,
  .consent-actions .home-btn {
    width: 100%;
  }

  .review-profile-grid,
  .review-check-grid,
  .review-process,
  .consent-fields,
  .signature-grid {
    grid-template-columns: 1fr;
  }

  .review-notice {
    flex-direction: column;
    padding: 18px;
    border-radius: 18px;
  }

  .consent-form-card {
    padding: 18px;
    border-radius: 20px;
  }

  .consent-form-header {
    flex-direction: column;
  }

  .consent-badge {
    width: fit-content;
  }
  .official-process {
    grid-template-columns: 1fr;
  }

  .consent-field input,
  .consent-field select,
  .consent-field textarea,
  .signature-grid input {
    font-size: 13px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .review-hero,
  .review-section:not(#formulaire-accord),
  .review-notice,
  .consent-actions {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .page-wrapper {
    max-width: none;
    padding: 0;
  }

  .consent-form-card {
    box-shadow: none;
    border: none;
    padding: 0;
  }
}
