@import url('https://fonts.googleapis.com/css2?family=Kodchasan:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

/* ========================================
   COULEURS CHARTES BOUTONS NAVBAR
======================================== */

:root {
  --orange-clee: #d8861b;
  --bleu-clee: #176ea1;
  --vert-clee: #589842;
  --rouge-clee: #c63634;
}

/* Nav-link par thématique (hover 30% opacité) */
.nav-link-bleu:hover,
.nav-link-bleu:focus {
  background: rgba(23, 110, 161, 0.3) !important;
  color: var(--grey-900) !important;
}
.nav-link-orange:hover,
.nav-link-orange:focus {
  background: rgba(216, 134, 27, 0.3) !important;
  color: var(--grey-900) !important;
}
.nav-link-rouge:hover,
.nav-link-rouge:focus {
  background: rgba(198, 54, 52, 0.3) !important;
  color: var(--grey-900) !important;
}
.nav-link-vert:hover,
.nav-link-vert:focus {
  background: rgba(88, 152, 66, 0.3) !important;
  color: var(--grey-900) !important;
}

/* ========================================
   MENU DÉROULANT NAVIGATION
======================================== */

.nav-dropdown {
  position: relative;
}

.nav-dropdown > .nav-link {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.98);
  /* Charte originelle: rgba(31, 52, 72, 0.90) */
  color: var(--primary-800);
  /* Charte originelle: #fff */
  font-family: var(--navbar-text-font-family);
  font-size: 1rem;
  border-radius: 0 12px 8px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.22s cubic-bezier(.4,0,.2,1), transform 0.22s cubic-bezier(.4,0,.2,1);
  padding: 1.1rem 0 0.5rem 0;
  margin-top: 10px;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--primary-800);
  /* Charte originelle: #fff */
  text-decoration: none;
  font-family: var(--navbar-text-font-family);
  font-size: 1rem;
  white-space: nowrap;
  transition: background 0.15s;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: var(--primary-100);
  /* Charte originelle: rgba(49, 73, 96, 0.95) */
  color: var(--grey-900);
  /* Charte originelle: #fff */
}

/* Dropdown hover par thématique */
.nav-dropdown .nav-link-bleu + .dropdown-menu a:hover,
.nav-dropdown .nav-link-bleu + .dropdown-menu a:focus {
  background: color-mix(in srgb, var(--bleu-clee) 30%, transparent);
                                                                      /* Charte originelle: rgba(49, 73, 96, 0.95) */
  color: var(--grey-900);
}

.nav-dropdown .nav-link-orange + .dropdown-menu a:hover,
.nav-dropdown .nav-link-orange + .dropdown-menu a:focus {
  background: color-mix(in srgb, var(--orange-clee) 30%, transparent);
                                                                        /* Charte originelle: rgba(49, 73, 96, 0.95) */
  color: var(--grey-900);
}

.nav-dropdown .nav-link-rouge + .dropdown-menu a:hover,
.nav-dropdown .nav-link-rouge + .dropdown-menu a:focus {
  background: color-mix(in srgb, var(--rouge-clee) 30%, transparent);
                                                                       /* Charte originelle: rgba(49, 73, 96, 0.95) */
  color: var(--grey-900);
}

.nav-dropdown .nav-link-vert + .dropdown-menu a:hover,
.nav-dropdown .nav-link-vert + .dropdown-menu a:focus {
  background: color-mix(in srgb, var(--vert-clee) 30%, transparent);
                                                                      /* Charte originelle: rgba(49, 73, 96, 0.95) */
  color: var(--grey-900);
}

/* Masquer dropdowns dès que le menu burger apparaît */
@media (max-width: 1200px) {
  .nav-dropdown .dropdown-menu,
  .dropdown-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }
  
  .nav-dropdown:hover > .dropdown-menu,
  .nav-dropdown:focus-within > .dropdown-menu,
  .nav-dropdown.dropdown-open > .dropdown-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }
}

@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Kodchasan:wght@200;300;400;500;600;700&display=swap");

/* ========================================
   CSS VARIABLES (Design Tokens)
======================================== */

:root {
  /* Primary Colors */
  --primary-900: rgba(31, 52, 72, 1);
  --primary-800: rgba(49, 73, 96, 1);
  --primary-700: rgba(64, 92, 118, 1);
  --primary-600: rgba(80, 112, 142, 1);
  --primary-500: rgba(94, 126, 159, 1);
  --primary-400: rgba(117, 146, 176, 1);
  --primary-300: rgba(140, 166, 194, 1);
  --primary-200: rgba(170, 192, 216, 1);
  --primary-100: rgba(198, 218, 238, 1);
  --primary-50: rgba(229, 240, 255, 1);
  
  /* Grey Colors */
  --grey-900: rgba(19, 25, 39, 1);
  --grey-800: rgba(31, 41, 55, 1);
  --grey-700: rgba(55, 65, 81, 1);
  --grey-600: rgba(75, 85, 99, 1);
  --grey-500: rgba(107, 114, 128, 1);
  --grey-400: rgba(156, 163, 175, 1);
  --grey-300: rgba(209, 213, 219, 1);
  --grey-200: rgba(229, 231, 235, 1);
  --grey-100: rgba(243, 244, 246, 1);
  --grey-50: rgba(249, 250, 251, 1);
  --white: #ffffff;
  
  /* Typography - Navbar */
  --navbar-text-font-family: "Kodchasan", Helvetica, Arial, sans-serif;
  --navbar-text-font-weight: 600;
  --navbar-text-font-size: 18px;
  --navbar-text-letter-spacing: 0px;
  --navbar-text-line-height: 24px;
  --navbar-text-font-style: normal;
  
  /* Typography - Text Normal */
  --text-normal-font-family: "Kodchasan", Helvetica, Arial, sans-serif;
  --text-normal-font-weight: 400;
  --text-normal-font-size: 32px;
  --text-normal-letter-spacing: 0px;
  --text-normal-line-height: normal;
  --text-normal-font-style: normal;
  
  /* Typography - Titre */
  --titre-font-family: "Kodchasan", Helvetica, Arial, sans-serif;
  --titre-font-weight: 500;
  --titre-font-size: 48px;
  --titre-letter-spacing: 0px;
  --titre-line-height: normal;
  --titre-font-style: normal;
  
  /* Typography - Button Giant */
  --button-font-giant-font-family: "Kodchasan", Helvetica, Arial, sans-serif;
  --button-font-giant-font-weight: 600;
  --button-font-giant-font-size: 18px;
  --button-font-giant-letter-spacing: 0px;
  --button-font-giant-line-height: 24px;
  --button-font-giant-font-style: normal;
  
  /* Typography - H1 */
  --text-font-h1-font-family: "Kodchasan", Helvetica, Arial, sans-serif;
  --text-font-h1-font-weight: 600;
  --text-font-h1-font-size: 48px;
  --text-font-h1-letter-spacing: 0px;
  --text-font-h1-line-height: 58px;
  --text-font-h1-font-style: normal;
  
  /* Typography - Body 1 */
  --text-font-b1-body-font-family: "Kodchasan", Helvetica, Arial, sans-serif;
  --text-font-b1-body-font-weight: 400;
  --text-font-b1-body-font-size: 16px;
  --text-font-b1-body-letter-spacing: 0px;
  --text-font-b1-body-line-height: 24px;
  --text-font-b1-body-font-style: normal;
  
  /* Typography - H5 */
  --text-font-h5-font-family: "Kodchasan", Helvetica, Arial, sans-serif;
  --text-font-h5-font-weight: 600;
  --text-font-h5-font-size: 24px;
  --text-font-h5-letter-spacing: 0px;
  --text-font-h5-line-height: 28px;
  --text-font-h5-font-style: normal;
  
  /* Shadows */
  --100: 0px 4px 4px -2px rgba(19, 25, 39, 0.08), 
         0px 2px 4px -2px rgba(19, 25, 39, 0.12);
  --200: 0px 8px 8px -4px rgba(19, 25, 39, 0.08), 
         0px 4px 6px -4px rgba(19, 25, 39, 0.12);
  --300: 0px 8px 16px -6px rgba(19, 25, 39, 0.08), 
         0px 6px 8px -6px rgba(19, 25, 39, 0.12);
  --400: 0px 8px 24px -4px rgba(19, 25, 39, 0.08), 
         0px 6px 12px -6px rgba(19, 25, 39, 0.12);
  --500: 0px 10px 32px -4px rgba(19, 25, 39, 0.1), 
         0px 6px 14px -6px rgba(19, 25, 39, 0.12);
  --600: 0px 12px 42px -4px rgba(19, 25, 39, 0.12), 
         0px 8px 18px -6px rgba(19, 25, 39, 0.12);
  --700: 0px 14px 64px -4px rgba(19, 25, 39, 0.12), 
         0px 8px 22px -6px rgba(19, 25, 39, 0.12);
  --800: 0px 18px 88px -4px rgba(19, 25, 39, 0.14), 
         0px 8px 28px -6px rgba(19, 25, 39, 0.12);
  
  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Z-index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-fixed: 1000;
  --z-modal: 2000;
  --z-popover: 3000;
  --z-tooltip: 4000;
}

/* ========================================
   GLOBAL RESET & BASE STYLES
======================================== */

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--text-font-b1-body-font-family);
  font-size: var(--text-font-b1-body-font-size);
  color: var(--grey-900);
  background-color: #ffffff;
}

/* Focus visible for accessibility */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary-500) !important;
  outline-offset: 2px !important;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ========================================
   UTILITY CLASSES
======================================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ========================================
   HEADER & NAVIGATION (SHARED)
======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--100);
  z-index: var(--z-fixed);
  transition: all 0.3s ease;
}

.navigation .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo img {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-800);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-link {
  font-family: var(--navbar-text-font-family);
  font-weight: var(--navbar-text-font-weight);
  font-size: 16px;
  color: var(--primary-700);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: var(--primary-50);
  color: var(--primary-800);
}

.nav-link.active {
  background-color: var(--primary-100);
  color: var(--primary-800);
  font-weight: 600;
}

/* ========================================
   BREADCRUMB (SHARED)
======================================== */

.breadcrumb-container {
  background-color: transparent;
  padding: 12px 0;
  margin-top: 80px; /* Décalage pour le header fixe */
  margin-bottom: -40px;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--white);
  /* Charte originelle: rgba(255, 255, 255, 0.9) */
}

.breadcrumb a {
  color: var(--white);
  /* Charte originelle: rgba(255, 255, 255, 0.9) */
  text-decoration: none;
  transition: all 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--white);
  /* Charte originelle: #ffffff */
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--white);
  /* Charte originelle: rgba(255, 255, 255, 0.6) */
}

.breadcrumb span:last-child {
  color: var(--white);
  /* Charte originelle: #ffffff */
  font-weight: 500;
}

/* ========================================
   BUTTONS (SHARED)
======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--button-font-giant-font-family);
  font-weight: var(--button-font-giant-font-weight);
  font-size: var(--button-font-giant-font-size);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-800);
  color: #ffffff;
  border-color: var(--primary-800);
  box-shadow: var(--200);
}

.btn-primary:hover {
  background-color: var(--primary-700);
  box-shadow: var(--400);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-800);
  border-color: var(--primary-800);
}

.btn-outline:hover {
  background-color: var(--primary-800);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 36px;
  font-size: 18px;
}

/* ========================================
   FOOTER (SHARED)
======================================== */

.footer {
  background-color: var(--primary-900);
  color: #ffffff;
  padding: 60px 0 24px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--footer-hero-image, none);
  background-size: cover;
  background-position: center bottom;
  opacity: 0.35;
  z-index: 0;
}

.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(31, 52, 72, 0.72);
                                              /* Charte originelle: rgba(31, 52, 72, 1) */
  z-index: 1;
}

.footer > .container {
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-main {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.footer-logo img {
  width: 120px;
  height: auto;
}

.footer-logo p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.6;
}

.footer-medef-logo {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-medef-logo img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-medef-logo img:hover {
  opacity: 1;
}

.footer-title {
  font-family: var(--titre-font-family);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-subtitle {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--primary-200);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* ========================================
   ANIMATIONS
======================================== */

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

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 1000px;
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(49, 73, 96, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(49, 73, 96, 0);
  }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Masquer dropdowns en mode responsive (quand menu burger est présent) */
@media (max-width: 1200px) {
  .nav-dropdown .dropdown-menu,
  .dropdown-menu,
  .nav-links .dropdown-menu,
  .nav-links.active .dropdown-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }
  
  .nav-dropdown:hover > .dropdown-menu,
  .nav-dropdown:focus-within > .dropdown-menu,
  .nav-dropdown.dropdown-open > .dropdown-menu,
  .nav-links .nav-dropdown:hover > .dropdown-menu,
  .nav-links .nav-dropdown:focus-within > .dropdown-menu,
  .nav-links.active .nav-dropdown:hover > .dropdown-menu,
  .nav-links.active .nav-dropdown:focus-within > .dropdown-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }

  .menu-toggle {
    display: flex;
    z-index: calc(var(--z-fixed) + 1);
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: #ffffff;
    padding: 24px;
    box-shadow: var(--300);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    gap: 8px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: var(--z-fixed);
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 16px;
    display: block;
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }
  
  .logo img {
    height: 40px;
  }
}

@media (max-width: 768px) {
  .navigation .container {
    padding: 12px 16px;
    max-height: 70px;
  }
  
  .nav-links {
    top: 70px;
    max-height: calc(100vh - 70px);
  }
  
  .logo img {
    height: 36px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .btn {
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .navigation .container {
    padding: 10px 12px;
  }
  
  .logo {
    font-size: 16px;
  }
  
  .nav-links {
    padding: 16px;
    top: 60px;
    max-height: calc(100vh - 60px);
  }
  
  .nav-link {
    padding: 14px;
    font-size: 15px;
  }
  
  .menu-toggle {
    padding: 6px;
  }
  
  .menu-toggle span {
    width: 22px;
  }
}

/* ========================================
   COMMON SECTIONS - SHARED ACROSS PAGES
======================================== */

/* Section Headers */
.section-header {
  margin-bottom: 60px;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

.section-title {
  font-family: var(--text-font-h1-font-family);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--primary-900);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--primary-600);
  max-width: 700px;
  margin: 0 auto;
}

/* Hero Sections - Common Styles */
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-top: 20px;
}

.hero-overlay img {
  object-position: center;
}

.hero-title {
  font-family: var(--titre-font-family);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  font-weight: 300;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

/* Cards - Common Styles */
.card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--200);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--400);
}

/* Footer Enhanced */
.footer-section {
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Tags */
.tag {
  display: inline-block;
  background: var(--primary-100);
  color: var(--primary-800);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Form Elements - Common Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-900);
}

.required {
  color: #e74c3c;
}

.form-input,
.form-select,
.form-textarea {
  padding: 12px 16px;
  border: 2px solid var(--grey-300);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--grey-900);
  transition: all 0.2s ease;
  background: #ffffff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(94, 126, 159, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--grey-400);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Modal - Common Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: block;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(19, 25, 39, 0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal-container {
  position: relative;
  max-width: 600px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--600);
  animation: slideDown 0.4s ease;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  z-index: 10000;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  border-bottom: 1px solid var(--grey-200);
}

.modal-title {
  font-family: var(--text-font-h1-font-family);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-900);
}

.modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--grey-600);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--grey-100);
  color: var(--grey-900);
}

.modal-body {
  padding: 32px;
}

/* Additional Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   THEME BADGE (Profile Switcher)
======================================== */

.theme-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 25px;
  font-family: var(--navbar-text-font-family);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.theme-badge-pro {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-500) 100%);
  color: white;
}

.theme-badge-pro:hover {
  background: linear-gradient(135deg, #1A3348 0%, #7A9EBF 100%);
}

.theme-badge-student {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: white;
}

.theme-badge-student:hover {
  background: linear-gradient(135deg, #E85A25 0%, #E0820A 100%);
}

@media (max-width: 768px) {
  .theme-badge {
    bottom: 10px;
    right: 10px;
    padding: 10px 16px;
    font-size: 0.75rem;
  }
  
  .theme-badge svg {
    width: 16px;
    height: 16px;
  }
}

/* ========================================
   ACCESSIBILITY BANNER (Cookie-like notification)
======================================== */

.accessibility-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(31, 52, 72, 0.98) 0%, rgba(49, 73, 96, 0.98) 100%);
  color: white;
  padding: 1.5rem 1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.accessibility-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.accessibility-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
}

.accessibility-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.accessibility-banner-icon {
  flex-shrink: 0;
  color: var(--orange-clee);
}

.accessibility-banner-text {
  flex: 1;
  min-width: 300px;
}

.accessibility-banner-title {
  font-family: var(--titre-font-family);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: white;
}

.accessibility-banner-description {
  font-family: var(--navbar-text-font-family);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.accessibility-banner-description a {
  color: var(--orange-clee);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.accessibility-banner-description a:hover {
  color: #ff9966;
}

.accessibility-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-banner {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-family: var(--navbar-text-font-family);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-banner-accept {
  background: var(--orange-clee);
  color: white;
}

.btn-banner-accept:hover {
  background: #ff9966;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(216, 134, 27, 0.3);
}

.btn-banner-decline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-banner-decline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-banner-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  margin-left: 0.5rem;
}

.btn-banner-close:hover {
  color: white;
}

.btn-banner-close svg {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .accessibility-banner {
    padding: 1rem;
  }
  
  .accessibility-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .accessibility-banner-icon {
    display: none;
  }
  
  .accessibility-banner-text {
    min-width: 0;
  }
  
  .accessibility-banner-title {
    font-size: 1.1rem;
  }
  
  .accessibility-banner-description {
    font-size: 0.9rem;
  }
  
  .accessibility-banner-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .btn-banner {
    flex: 1;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }
  
  .btn-banner-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
  }
}

@media (max-width: 480px) {
  .accessibility-banner-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn-banner {
    width: 100%;
  }
}

/* High Contrast Mode Styles */
.high-contrast {
  filter: contrast(1.2);
}

.high-contrast .accessibility-card {
  border: 2px solid var(--grey-900);
}

/* Texte noir pour les boutons en mode contraste élevé */
.high-contrast .btn,
.high-contrast .btn-primary,
.high-contrast .btn-outline,
.high-contrast .btn-banner,
.high-contrast .btn-banner-accept,
.high-contrast .btn-banner-decline,
.high-contrast .btn-accessibility {
  color: #000000 !important;
}

.high-contrast .btn-primary:hover,
.high-contrast .btn-banner-accept:hover {
  color: #000000 !important;
}

/* Reduce Motion Styles */
.reduce-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* ========================================
   PRINT STYLES
======================================== */

@media print {
  .header,
  .footer,
  .btn,
  .menu-toggle,
  .theme-badge {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}
