/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
  --wb-primary: #0664a7;
  --wb-secondary: #d83715;
  --wb-tertiary: #4d4d4d;
  --wb-success: #10b981;
  --wb-info: #06b6d4;
  --wb-warning: #f59e0b;
  --wb-danger: #ef4444;
  --wb-light: #efefef;
  --wb-dark: #1e293b;

  --primary-rgb: 99, 102, 241;
  --secondary-rgb: 139, 92, 246;

  --gradient-primary: linear-gradient(
    135deg,
    var(--wb-primary) 0%,
    var(--wb-secondary) 100%
  );
  --gradient-light: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  --font-family-base: "Montserrat";
  --font-family-heading: "Montserrat";

  --border-radius: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */
html {
  font-size: clamp(15px, 1.5vw, 17px);
}
body {
  max-width: 100%;
  font-family: var(--font-family-base);
  line-height: 1.6;
  color: var(--wb-dark);
  font-size: 1rem;
}

.site-container {
  margin: 0 0.75rem;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading);
  font-weight: 600;
  line-height: 1.2;
  color: #1f2937;
}
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}
h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}
h4 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}
h5 {
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
}
h6 {
  font-size: clamp(1rem, 1vw, 1.25rem);
}
/* ============================================
   Language Switcher
   ============================================ */
.language-switcher-top-right {
    padding: 0;
}
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-toggle {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.lang-toggle .lang-label {
  margin-left: 4px;
  font-size: 0.9rem;
}

.lang-flag {
  width: 24px;
  height: auto;
  display: inline-block;
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  padding: 4px;
  margin: 0;
  list-style: none;
  min-width: auto;
  z-index: 1050;
  display: none;
}

.lang-dropdown.open .lang-menu {
  display: block;
  background-color: var(--wb-light);
}

.lang-menu li {
  margin: 2px 0 !important;
  background-color: var(--wb-light) !important;
}
.lang-menu li:hover {
  background-color: var(--wb-primary) !important;
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px !important;
  text-decoration: none;
  color: #333;
}

.lang-active a {
  font-weight: bold;
}

/* ============================================
   UTILITAIRES
   ============================================ */
.min-vh-75 {
  min-height: 75vh;
}
.bg-gradient {
  background: var(--gradient-primary);
}
.rounded-pill {
  border-radius: 50rem !important;
}
.transparent-bg {
  background-color: transparent !important;
}
/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--wb-light);
  box-shadow: var(--shadow-lg);
  transition: opacity 0.5s ease;
  padding: 0.25rem 1rem;
}
.sticky-header.scrolled {
  opacity: 0;
  pointer-events: none;
}
.menu-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}
.menu-top {
  padding: 1rem 0;
}
a.header-logo {
  font-family: var(--font-family-heading);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  text-decoration: none;
}
/* ============================================
   MODULE MENU
   ============================================ */
.mod-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.mod-menu .nav-item {
  display: block;
}
.mod-menu .nav-link,
.mod-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 2rem;
  background: rgba(var(--primary-rgb), 0.07);
  color: var(--wb-primary);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mod-menu .nav-link:hover,
.mod-menu .nav-link:focus,
.mod-menu a:hover,
.mod-menu a:focus {
  background: var(--wb-primary);
  color: #fff;
}
.mod-menu .nav-link.active,
.mod-menu a.active {
  background: var(--wb-primary);
  color: #fff;
  font-weight: 600;
}
@media (min-width: 992px) {
  .mod-menu {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
  }
}
/* ============================================
   HERO SECTION
   ============================================ */


   /* ============================================
   MODULES TOP & BOTTOM
   ============================================ */
.top-module,
.bottom-module {
  margin-bottom: 1.5rem;
}

/* ============================================
   MAIN CONTENT AREA WITH SIDEBAR
   ============================================ */
.hero-container {
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}
.main-section {
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem;
}
.content-with-sidebar {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}
.content-without-sidebar {
  display: flex;
}
.component-area {
  flex: 0 0 auto;
  width: 66.6667%;
}
.sidebar-area {
  flex: 0 0 auto;
  width: 33.3333%;
}
.sidebar-content {
  position: sticky;
  top: 1rem;
  background-color: #ffffff;
  box-shadow: var(--shadow);
}
.sidebar-intro {
  padding: 0.25rem;
  margin-bottom: 1rem;
  background: none;
}
.sidebar-a {
  padding: 0.25rem;
  margin-bottom: 1rem;
  background: none;
}
.sidebar-b {
  padding: 0.25rem;
  margin-bottom: 1rem;
  background: none;
}
@media (max-width: 792px) {
  .main-section {
    padding: 0;
  }
  .content-with-sidebar {
    flex-direction: column;
    gap: 0;
  }
  .component-area {
    width: 100%;
    order: 2;
  }
  .sidebar-area {
    width: 100%;
    order: 1;
    padding: 0;
  }
}
/* ============================================
   Articles
   ============================================ */
.com_content-article {
  width: 100%;
  border-radius: 0.5rem;
}
.com-content-article__body {
  width: 100%;
  border-radius: 0.5rem;
  padding: 1rem;
}
.com-content-article__body ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  list-style-type: none;
}
.com-content-article__body ul li {
  position: relative;
  padding-left: 1.25rem;
}
.com-content-article__body ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--wb-primary);
  font-size: 1.25rem;
  line-height: 1;
  top: 0;
}
.com-content-article__body ul .fields-container {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
  font-size: 0.95rem;
}
.com-content-article__body ul .field-label {
  font-size: 0.9rem;
  font-weight: 600;
}
.com-content-article__body .field-value {
  margin-left: 0.25rem;
  font-size: 0.8rem;
  font-weight: 400;
}
.item-page {
  padding-top: 1rem;
}
.page-header {
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-bottom: var(--wb-tertiary) 3px dashed;
  color: var(--wb-primary);
}
/* ============================================
   FOOTER
   ============================================ */
.blog-footer {
  margin-top: 1rem;
  background-color: #f3f4f6;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  border-top: var(--wb-tertiary) 3px dashed;
}
.social-media-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
/* ============================================
   ARTICLES
   ============================================ */
.article-title {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.article-title-text {
  flex-grow: 1;
  font-size: 1.5rem;
  font-weight: 700;
}
.article-title-text-primary {
  color: var(--wb-primary);
}
.article-title-text-secondary {
  color: var(--wb-secondary);
}
.article-paragraph {
  margin-bottom: 1rem;
  color: #374151;
  font-size: 1rem;
  line-height: 1.6;
}
hr.article-spacer-primary,
hr.article-spacer-secondary {
  height: 1rem;
  border: 0;
  border-radius: var(--border-radius);
  opacity: 1;
}
hr.article-spacer-primary {
  background: var(--wb-primary);
}
hr.article-spacer-secondary {
  background: var(--wb-secondary);
}

/* Fond coloré pour articles */
.article-background-primary {
  background-color: var(--wb-primary);
  color: #ffffff;
  padding: 1rem;
  border-radius: var(--border-radius);
}
.article-background-secondary {
  background-color: var(--wb-secondary);
  color: #ffffff;
  padding: 1rem;
  border-radius: var(--border-radius);
}

/* Icônes */
.icon-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  vertical-align: middle;
  text-shadow: 0 0 1px currentColor;
}
.icon-article {
  display: inline-flex;
  font-size: 3rem;
}
.icon-primary {
  color: var(--wb-primary);
}

.icon-secondary {
  color: var(--wb-secondary);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}
.animate-left {
  transform: translateX(-40px);
}
.animate-right {
  transform: translateX(40px);
}
.animate-up {
  transform: translateY(-40px);
}
.animate-down {
  transform: translateY(40px);
}
.animate-fade {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.animate-fade.visible {
  opacity: 1;
}
.animate-zoom {
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}
.animate-zoom.visible {
  transform: scale(1);
  opacity: 1;
}
@keyframes slideFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100vw);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideFromRight {
  0% {
    opacity: 0;
    transform: translateX(100vw);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
/* ============================================
   IMAGES INTÉGRÉES AUX ARTICLES
   ============================================ */

/* Conteneur encadré avec marge */
.image-article-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--wb-tertiary);
  border-radius: var(--border-radius);
  max-width: 100%;
}

/* Variante fond primaire */
.image-article-primary {
  background-color: var(--wb-primary);
  border-color: var(--wb-primary);
  color: #ffffff;
}

/* Variante fond secondaire */
.image-article-secondary {
  background-color: var(--wb-secondary);
  border-color: var(--wb-secondary);
  color: #ffffff;
}

/* Image responsive */
.image-article-box img,
.image-article-box svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
/* Légende centrée sous l'image */
.image-article-caption {
  text-align: center;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  color: inherit;
}
