/* 🎯 Importation des polices */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&display=swap');

/* 🎨 Variables globales */
:root {
  --vert-clair: #85BB64;
  --vert-fonce: #1A7346;
  --vert-tres-fonce: #0D1F1C;
  --gris-clair: #DADADA;
  --gris-fonce: #374548;

  --font-fr: 'Montserrat', sans-serif;
  --font-ar: 'DroidArabicKufi', sans-serif;
}

/* 🧱 Structure générale */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-fr);
  background-color: white;
  color: var(--gris-fonce);
  line-height: 1.6;
  letter-spacing: -1px;
  text-align:justify;
}

.back-to-top {
  text-align: center;
  padding: 1rem 0;
  background-color: var(--vert-fonce);
}

.back-to-top a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: opacity 0.3s ease;
}

.back-to-top a:hover {
  opacity: 0.8;
}

.back-to-top i {
  margin-right: 6px;
}


/* 🌍 Police arabe locale */
@font-face {
  font-family: 'DroidArabicKufi';
  src: url('../fonts/DroidKufi-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DroidArabicKufi';
  src: url('../fonts/Droid.Arabic.Kufi_.Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 🌍 Texte arabe */
html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
  letter-spacing: 0;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] strong,
html[lang="ar"] b,
html[lang="ar"] .main-nav a,
html[lang="ar"] .side-nav a,
html[lang="ar"] .button,
html[lang="ar"] .btn,
html[lang="ar"] .hero-content h1,
html[lang="ar"] .newsletter-text h2 {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] strong,
html[lang="ar"] b {
  font-weight: 700;
}

/* 🧾 Titres */
h1, h2, h3 {
  color: var(--gris-fonce);
  font-weight: 700;
}

html[lang="ar"] button.hero-nav, html[lang="ar"] button.carousel-nav{transform: rotate(180deg);}

/* 🔗 Liens */
a {
  color: var(--vert-clair);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* 🟩 Boutons globaux
   Gère les boutons éditoriaux génériques utilisés hors modules spécialisés.
   Style aligné sur les boutons/pills de la rubrique Publications. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55em 1.15em;
  border: 1px solid var(--vert-fonce);
  border-radius: 999px;
  background-color: var(--vert-fonce);
  color: #fff;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.button:hover {
  background-color: var(--vert-tres-fonce);
  border-color: var(--vert-tres-fonce);
  color: #fff;
  text-decoration: none;
}
.button.secondary,
.button.secondaire {
  background-color: #fff;
  border-color: rgba(26, 115, 70, .22);
  color: var(--vert-fonce);
}
.button.secondary:hover,
.button.secondaire:hover {
  background-color: var(--vert-fonce);
  border-color: var(--vert-fonce);
  color: #fff;
}

/* 📞 Barre supérieure (coordonnées + réseaux + langue) */
.top-bar {
  background-color: var(--vert-clair);
  color: white;
  font-size: 0.9em;
  padding: 0.72em 0;
}

.container-topbar {
  width: min(1240px, 92%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 10px;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.98em;
  font-weight: 600;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.topbar-value {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  letter-spacing: 0;
}

.topbar-email .topbar-value {
  white-space: nowrap;
}

.topbar-label {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.topbar-sep {
  opacity: 0.7;
  flex: 0 0 auto;
}

.top-bar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 0 0 auto;
}

.top-bar a {
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.top-bar a:hover {
  color: white;
  opacity: 0.82;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 0.82em;
  flex-wrap: nowrap;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 0.98em;
  line-height: 1;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
  unicode-bidi: isolate;
    font-family: var(--font-fr);

}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  font-weight: 800;
}

.lang-switch a.active {
  background-color: white;
  color: var(--vert-fonce);
}

a.Recrutement {
  background-color: white;
  color: var(--vert-fonce);
  padding: 0.1em 0.2em;
  border-radius: 2px;
  font-size: 0.9em;
  font-weight: 900;
}

a.Recrutement:hover {
  background-color: white;
  color: var(--vert-fonce);
}

.lang-switch a.active {
  background-color: white;
  color: var(--vert-fonce);
  padding: 0.2em 0.5em;
  border-radius: 4px;
}
/* 🧭 Header principal */
header {
  background-color: white;
  color: #323232;
  padding: 1em 0;
  border-bottom: 1px solid var(--gris-clair);
}

/* 📦 Conteneur du header */
.container-header {
  max-width: 1300px;
  margin: auto;
  padding: 0 20px;
}

/* 📐 Bloc flex contenant logo + menu + burger */
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}

/* 🏷️ Logo ADHA */
.branding {
  display: flex;
  align-items: center;
}

.logo {
  max-width: 140px;
  height: auto;
  margin-right: 1em;
}
/* 🧭 Menu principal */
.main-nav {
  display: flex;
  align-items: center; /* ✅ aligne verticalement avec le logo */
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.1em;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.05em;
}


.main-nav li {
  position: relative;
}

.main-nav a {
  color: #323232;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--vert-clair);
}

/* 📂 Sous-menus déroulants */
.main-nav ul.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--vert-clair);
  padding: 0.2em 0.5em;
  z-index: 10;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 0.8em;
}

.main-nav li:hover .submenu {
  display: block;
}

.main-nav li.has-submenu > a {
  position: relative;
  padding-right: 1.2em; /* espace pour la flèche */
}

.main-nav li.has-submenu > a::after {
  content: "↓";
  position: absolute;
  right: 0.3em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7em;
  color: var(--vert-fonce);
}


.submenu li {
  margin: 0.3em 0;
}

.submenu li a {
  color: white;
  font-weight: 500;
  text-transform: none;
  display: block;
  padding: 0.4em 0.6em;
  border-radius: 4px;
}

.submenu li:hover {
  background-color: #1A7946;
  font-weight: 700;
}

.submenu li:hover a {
  color: #FFF;
  font-weight: 700;
}

/* 🍔 Bouton burger (mobile) */
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
  color: var(--vert-fonce);
  cursor: pointer;
}
/* 🦶 Pied de page */
footer {
  background-color: var(--vert-tres-fonce);
  color: white;
  padding: 2em 1em;
}

/* 🧱 Conteneur du footer */
.footer-content {
  max-width: 1240px;
  margin: auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
}

/* 📂 Section individuelle du footer */
.footer-section h3 {
  margin-top: 0;
  color: var(--vert-clair);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.5em;
}

.footer-section ul li a {
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: var(--vert-clair);
  text-decoration: underline;
}

/* 📱 Icônes réseaux sociaux */
.footer-social-icons {
  display: flex;
  gap: 1em;
  margin-top: 0.5em;
}

.footer-social-icons a {
  color: white;
  font-size: 1.2em;
  transition: color 0.2s ease;
}

.footer-social-icons a:hover {
  color: var(--vert-clair);
}

/* 🧾 Bas du footer */
.footer-bottom {
  text-align: center;
  margin-top: 2em;
  font-size: 0.9em;
}

/* 🧱 Grille de rubriques (cartes d’accueil) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5em;
}

.card {
  background-color: var(--gris-clair);
  padding: 1em;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  color: var(--vert-tres-fonce);
  transition: background-color 0.3s ease;
}

.card:hover {
  background-color: var(--vert-clair);
  color: white;
}

/* 🧱 Layout des pages internes */
.layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  margin-top: 2em;
}
/* Conteneur */
main.container {
  max-width: 1200px;
  margin: auto;
  padding: 2em;
}

/* Fil d’Ariane */
.breadcrumb {
  font-size: 0.9em;
  margin-bottom: 1.5em;
  color: #666;
}
.breadcrumb a {
  color: var(--vert-fonce);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb .sep {
  margin: 0 0.5em;
  color: #999;
}
.breadcrumb .current {
  font-weight: bold;
  color: #333;
}

/* 📚 Menu latéral */
.sidebar {
  flex: 0 0 auto;
  align-self: flex-start;
  background-color: #F2F2F2;
  padding: 1em;
  border-radius: 6px;
}

.sidebar h2 {
  font-size: 1.2em;
  margin-bottom: 1em;
  color: var(--vert-fonce);
  font-weight: 900;
}

.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-nav li {
  margin-bottom: 0.8em;
}

.side-nav a {
  color: var(--vert-tres-fonce);
  font-weight: 500;
  text-decoration: none;
}

.side-nav a:hover {
  color: var(--vert-fonce);
  text-decoration: underline;
}

.side-nav a.active {
  font-weight: 700;
  color: var(--vert-fonce);
  border-left: 4px solid var(--vert-fonce);
  padding-left: 0.5em;
  padding-right: 0.2em;
  background-color: #E3E3E3;
  border-radius: 4px;
}

.sidebar-block {
  margin-top: 2em;
  background-color: #F2F2F2;
  padding: 0em;
  border-radius: 6px;
  font-size: 0.95em;
  line-height: 1.5;
}

.sidebar-block h3 {
  margin-top: 0;
  color: var(--vert-fonce);
  font-size: 1.1em;
}

.sidebar-block ul {
  list-style: none;
  padding: 0;
  margin: 0.5em 0 0;
}

.sidebar-block ul li {
  margin-bottom: 0.4em;
}

.sidebar-block ul li a {
  color: var(--vert-tres-fonce);
  text-decoration: none;
  font-weight: 500;
}

.sidebar-block ul li a:hover {
  color: var(--vert-fonce);
  text-decoration: underline;
}


/* 📄 Contenu principal */
.content {
  flex: 1;
  min-width: 300px;
}
/* 📊 Tableaux institutionnels */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  font-size: 0.9em;
  background-color: white;
  line-height:1.2em;
}

thead {
  background-color: var(--vert-clair);
  color: white;
  font-weight: 600;
  vertical-align:middle;
}

th, td {
  padding: 0.5em;
  border-bottom: 1px solid var(--gris-clair);
  text-align: left;
  vertical-align:middle;
}

td:nth-child(2){
  font-weight: 700;
}

td:nth-child(6) span {
  font-weight: 600;
  font-size: 0.8em;
}

tbody tr:nth-child(even) {
  background-color: #F9F9F9;
}

tbody tr:hover {
  background-color: #EEF6EC;
}

th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9em;
}

td {
  color: #323232;
}

/* 📱 Tableaux responsives */
@media screen and (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: auto;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 1em;
    border: 1px solid var(--gris-clair);
    border-radius: 6px;
    padding: 0.5em;
    background-color: #FFF;
  }

  td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75em 1em;
    border: none;
    border-bottom: 1px solid #eee;
  }

  td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #666;
    margin-bottom: 0.3em;
    white-space: normal;
    line-height: 1.2em;
  }

  td[data-label="Estimation prévisionnelle en DHS"]::before {
    content: "Estimation prévisionnelle \A en DHS";
    white-space: pre-line;
  }
}


/* 📱 Responsive header + menu burger */
@media screen and (max-width: 768px) {
  .top-bar {
    padding: 0.65em 0;
  }

  .container-topbar {
    padding: 0 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .top-bar-left {
    gap: 6px 10px;
    font-size: 0.96em;
  }

  .topbar-sep {
    display: none;
  }

  .topbar-item {
    max-width: 100%;
  }

  .topbar-value {
    white-space: normal;
  }

  .top-bar-right {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .social-icons {
    gap: 11px;
    flex-wrap: wrap;
  }

  .lang-switch {
    margin-inline-start: auto;
  }

  .container-header {
    width: 90%;
    margin: 0 auto;
    padding: 0 1em;
  }

  .header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8em 0;
    width: 100%;
    margin: auto;
  }

  .burger {
    position: relative;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .burger span {
    position: absolute;
    width: 24px;
    height: 3px;
    background-color: var(--vert-fonce);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .burger span:nth-child(1) { top: 8px; }
  .burger span:nth-child(2) { top: 14px; }
  .burger span:nth-child(3) { top: 20px; }

  .burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 14px;
  }

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

  .burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 14px;
  }

  .main-nav {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    width: 100%;
    background-color: white;
  }

  .main-nav.active {
    max-height: 600px;
    opacity: 1;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin: 0;
    padding: 1em;
  }

  .main-nav li { padding: 0.4em 0; }

  .main-nav ul.submenu {
    position: static;
    box-shadow: none;
    padding: 0.5em 0;
  }

  .main-nav li:hover .submenu {
    display: block;
  }
}
/* 📱 Responsive footer */
@media screen and (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2em;
    padding: 0 1em;
  }

  .footer-section {
    width: 100%;
  }

  .footer-social-icons {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1em;
  }

  .footer-bottom {
    font-size: 0.85em;
    margin-top: 1.5em;
  }
}

/* 📱 Responsive layout des pages internes */
@media screen and (max-width: 768px) {
  .layout {
    flex-direction: column;
    gap: 1.5em;
  }

  .sidebar {
    width: 90%;
    margin: 0 auto;
    padding: 1em;
  }

  .content {
    width: 100%;
    min-width: auto;
  }

  .side-nav a.active {
    border-left: none;
    border-bottom: 2px solid var(--vert-fonce);
    padding-left: 0;
    padding-bottom: 0.3em;
    background-color: transparent;
  }
}

/* 📱 Responsive typographie et boutons */
@media screen and (max-width: 768px) {
  body {
    font-size: 0.95em;
    line-height: 1.5;
    padding: 0;
  }

  h1 {
    font-size: 1.6em;
    margin-bottom: 0.8em;
  }

  h2 {
    font-size: 1.3em;
    margin-bottom: 0.6em;
  }

  p {
    margin-bottom: 1em;
  }

  main.container {
    padding: 1.5em;
  }


  .button {
    font-size: 0.9em;
    padding: 0.5em 1em;
    width: 95%;
    margin: 10px auto;
    border: none;
  }
}

/* 📱 Responsive grille d’accueil */
@media screen and (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 1.2em;
  }

  .card {
    padding: 1em;
    font-size: 0.95em;
    text-align: left;
  }

  .card:hover {
    background-color: var(--vert-clair);
    color: white;
  }
}


    .objet-complet {
      display: none;
      margin-top: 0.5em;
      font-size: 0.9em;
      color: #444;
    }
    .objet-complet.visible {
      display: block;
    }
    .toggle-objet {
      background: none;
      border: none;
      color: #1a7946;
      cursor: pointer;
      font-size: 0.9em;
      margin-left: 0.5em;
    }



  /* FILTRES */
  .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    background: #f9f9f9;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 0 0.5em rgba(0,0,0,0.05);
  }

  .filters label {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-size: 0.85em;
    color: #333;
  }

  .filters select,
  .filters input[type="date"] {
    margin-top: 0.3em;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85em;
    background: #fff;
  }

  .filters .button {
    align-self: flex-end;
    margin-top: auto;
    padding: 0.6em 1.2em;
    background: #1a7946;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .filters .button:hover {
    background: #86b64d;
  }

  /* PAGINATION */
  .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: center;
    margin-top: 2em;
  }

  .pagination a {
    padding: 0.5em 0.9em;
    background: #eee;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background 0.2s ease;
  }

  .pagination a:hover {
    background: #ddd;
  }

  .pagination a.active {
    background: #1a7946;
    color: #fff;
    font-weight: bold;
  }

  /* RESPONSIVE */
  @media (max-width: 768px) {
    .filters {
      flex-direction: column;
    }

    .filters label {
      flex: 1 1 auto;
    }

    .filters .button {
      width: 100%;
    }

    table thead {
      display: none;
    }

    table tr {
      display: block;
      margin-bottom: 1em;
      border: 1px solid #ddd;
      border-radius: 6px;
      padding: 0.8em;
      background: #fff;
    }

    table td {
      display: flex;
      justify-content: space-between;
      padding: 0.4em 0;
      font-size: 0.95em;
    }

    table td::before {
      content: attr(data-label);
      font-weight: bold;
      color: #555;
    }
  }


/* FILTRES EN DEUX LIGNES SUR DESKTOP */
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-template-areas:
    "secteur province"
    "date_debut date_fin"
    "submit submit";
  gap: 1em;
  background: #f9f9f9;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 0 0.5em rgba(0,0,0,0.05);
}

.filters label:nth-child(1) { grid-area: secteur; }
.filters label:nth-child(2) { grid-area: province; }
.filters label:nth-child(3) { grid-area: date_debut; }
.filters label:nth-child(4) { grid-area: date_fin; }
.filters .button { grid-area: submit; }

/* MOBILE : tout en colonne */
@media (max-width: 768px) {
  .filters {
    display: flex;
    flex-direction: column;
  }
}



/* RTL activation patch */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .header-flex,
html[dir="rtl"] .presentation-wrapper,
html[dir="rtl"] .layout { direction: rtl; }

html[dir="rtl"] .main-nav ul,
html[dir="rtl"] .side-nav ul,
html[dir="rtl"] .footer-section ul {
  padding-right: 0;
  padding-left: 0;
}
html[dir="rtl"] .breadcrumb { direction: rtl; }

html[dir="rtl"] .top-bar-left,
html[dir="rtl"] .content,
html[dir="rtl"] .sidebar,
html[dir="rtl"] .footer-section,
html[dir="rtl"] .hero-content,
html[dir="rtl"] .presentation-text {
  text-align: right;
}

html[dir="rtl"] .top-bar-left {
  direction: rtl;
}

html[dir="rtl"] .topbar-value,
html[dir="rtl"] .topbar-email .topbar-value {
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="rtl"] .top-bar-right,
html[dir="rtl"] .social-icons,
html[dir="rtl"] .lang-switch {
  direction: ltr;
    font-family: var(--font-fr);

}
html[dir="rtl"] .lang-switch { unicode-bidi: isolate; }
html[dir="rtl"] .main-nav ul.submenu { left: auto; right: 0; }
html[dir="rtl"] .main-nav li.has-submenu > a { padding-right: 0; padding-left: 1.2em; }
html[dir="rtl"] .main-nav li.has-submenu > a::after { right: auto; left: .3em; }
html[dir="rtl"] th,
html[dir="rtl"] td,
html[dir="rtl"] .filters label,
html[dir="rtl"] .pagination,
html[dir="rtl"] .footer-legal-links ul { direction: rtl; }
html[dir="rtl"] th,
html[dir="rtl"] td,
html[dir="rtl"] .filters label { text-align: right; }
html[dir="rtl"] .side-nav a.active {
  border-left: none;
  border-right: 4px solid var(--vert-fonce);
  padding-left: .2em;
  padding-right: .5em;
}
html[dir="rtl"] .logo {
  margin-right: 0;
  margin-left: 1em;
}

@media screen and (max-width: 768px) {
  html[dir="rtl"] .container-topbar {
    direction: initial;
  }

  html[dir="rtl"] .top-bar-left {
    justify-content: flex-start;
  }

  html[dir="rtl"] .top-bar-right {
    direction: ltr;
  }

  html[dir="rtl"] .lang-switch {
    margin-inline-start: auto;
    margin-inline-end: 0;
  }
}
/* CMS mapping refinements */
.main-nav li.active > a,
.main-nav > ul > li > a.active {
  color: var(--vert-fonce);
}

.footer-legal-links {
  margin-top: 1.2em;
}

.footer-legal-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em 1.2em;
  margin-top: 1em;
}

.footer-legal-links ul li {
  margin-bottom: 0;
}

.article-body + .rubrique-grid,
.article-body + section.rubrique-grid {
  margin-top: 2em;
}

/* ========================================================================== 
   PATCH_GLOBAL_PALETTE_ADHA_20260507
   Palette institutionnelle globale.
   Règle : horizontales = vert ; verticales = vert clair.
========================================================================== */
:root{
  --adha-green: #1A7346;
  --adha-green-light: #85BB64;
  --adha-gray: #5B6A6C;
  --adha-gray-dark: #334648;

  --vert-fonce: var(--adha-green);
  --vert-clair: var(--adha-green-light);
  --gris-fonce: var(--adha-gray-dark);
  --gris-texte: var(--adha-gray-dark);
  --gris-secondaire: var(--adha-gray);

  --accent-horizontal: var(--adha-green);
  --accent-vertical: var(--adha-green-light);
  --adha-radius-sm: 12px;
  --adha-radius: 16px;
  --adha-radius-lg: 20px;
}

body{
  color: var(--adha-gray-dark);
}

.section-kicker,
.front-chip,
.front-badge{
  color: var(--adha-green);
}

/* ========================================================================== 
   PATCH_TOPBAR_RESPONSIVE_20260508
   Topbar desktop/mobile : plus fine, compacte, alignée et institutionnelle.
========================================================================== */

.top-bar{
  background: var(--adha-green-light, #85BB64) !important;
  color: #fff;
  font-size: .82rem;
  line-height: 1.25;
}

.container-topbar{
  min-height: 34px;
  padding-top: .22rem !important;
  padding-bottom: .22rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(1rem, 3vw, 2.2rem) !important;
}

.top-bar-left,
.top-bar-right{
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: .55rem .75rem !important;
  min-width: 0;
}

.top-bar-left{
  justify-content: flex-start;
}

.top-bar-right{
  justify-content: flex-end;
}

.top-bar a,
.top-bar span,
.top-bar p,
.top-bar li{
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .005em;
}

.top-bar a{
  text-decoration: none !important;
}

.top-bar a:hover{
  opacity: .86;
}

.top-bar .social-icons,
.top-bar .social-links,
.top-bar .top-socials,
.top-bar-right .social-icons,
.top-bar-right .social-links{
  display: inline-flex !important;
  align-items: center !important;
  gap: .58rem !important;
}

.top-bar i,
.top-bar svg,
.top-bar .social-icons a,
.top-bar .social-links a{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.top-bar .social-icons a,
.top-bar .social-links a,
.top-bar-right > a:not(.lang-switch a){
  width: 18px;
  height: 18px;
  opacity: .96;
}

.lang-switch,
.top-bar .lang-switch{
  display: inline-flex !important;
  align-items: center !important;
  gap: .28rem !important;
  margin-inline-start: .45rem;
}

.lang-switch a,
.top-bar .lang-switch a{
  min-width: 31px !important;
  height: 26px !important;
  padding: 0 .55rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 7px !important;
  color: #fff !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.lang-switch a.active,
.lang-switch a.current,
.lang-switch a[aria-current="true"],
.top-bar .lang-switch a.active,
.top-bar .lang-switch a.current,
.top-bar .lang-switch a[aria-current="true"]{
  background: rgba(255,255,255,.92) !important;
  color: var(--adha-green, #1A7346) !important;
  border-color: rgba(255,255,255,.92) !important;
}

html[dir="rtl"] .container-topbar{
  direction: rtl;
}

html[dir="rtl"] .top-bar-left{
  justify-content: flex-start;
}

html[dir="rtl"] .top-bar-right{
  justify-content: flex-end;
}

/* Mobile : topbar compacte, deux lignes maximum */
@media screen and (max-width: 768px){
  .top-bar{
    font-size: .72rem;
  }

  .container-topbar{
    min-height: 0;
    padding: .38rem .75rem .42rem !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .34rem !important;
    text-align: center;
  }

  .top-bar-left,
  .top-bar-right{
    width: 100%;
    justify-content: center !important;
    gap: .32rem .52rem !important;
  }

  .top-bar-left{
    order: 1;
    font-size: .72rem;
  }

  .top-bar-right{
    order: 2;
  }

  .top-bar a,
  .top-bar span,
  .top-bar p,
  .top-bar li{
    font-weight: 700;
  }

  .top-bar .social-icons,
  .top-bar .social-links,
  .top-bar .top-socials,
  .top-bar-right .social-icons,
  .top-bar-right .social-links{
    gap: .48rem !important;
  }

  .top-bar .social-icons a,
  .top-bar .social-links a,
  .top-bar-right > a:not(.lang-switch a){
    width: 17px;
    height: 17px;
  }

  .lang-switch,
  .top-bar .lang-switch{
    margin-inline-start: .35rem;
    gap: .22rem !important;
  }

  .lang-switch a,
  .top-bar .lang-switch a{
    min-width: 29px !important;
    height: 24px !important;
    padding: 0 .45rem !important;
    border-radius: 6px !important;
    font-size: .72rem !important;
  }
}

@media screen and (max-width: 420px){
  .container-topbar{
    padding-left: .65rem !important;
    padding-right: .65rem !important;
  }

  .top-bar-left{
    gap: .2rem .42rem !important;
    line-height: 1.35;
  }

  .top-bar-right{
    gap: .28rem .42rem !important;
  }
}

/* ========================================================================== 
   PATCH_TOPBAR_ICONS_20260508
   Topbar : icônes coordonnées + réseaux sociaux propres et subtils.
========================================================================== */

.topbar-contact-item,
.topbar-social-link{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .34rem !important;
  white-space: nowrap;
  vertical-align: middle;
}

.topbar-contact-icon{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  color: rgba(255,255,255,.96);
  opacity: .92;
  flex: 0 0 auto;
}

.topbar-contact-icon i,
.topbar-social-link i{
  display: block !important;
  width: 1em;
  height: 1em;
  line-height: 1 !important;
  text-align: center !important;
  font-size: .86rem;
}

.topbar-contact-item[data-contact="fax"] .topbar-contact-icon i{
  font-size: .78rem;
}

.topbar-social-link{
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  padding: 0 !important;
  border-radius: 999px;
  color: #fff !important;
  opacity: .96;
  text-decoration: none !important;
  transition: background .18s ease, color .18s ease, opacity .18s ease, transform .18s ease;
}

.topbar-social-link:hover{
  background: rgba(255,255,255,.16);
  opacity: 1;
  transform: translateY(-1px);
}

.topbar-social-link i{
  font-size: .82rem;
}

.topbar-social-link[data-social="x"] i{
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: .78rem;
  font-weight: 800;
}

.topbar-social-link[data-social="mail"] i{
  font-size: .80rem;
}

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

@media screen and (max-width: 768px){
  .topbar-contact-item{
    gap: .25rem !important;
  }

  .topbar-contact-icon{
    width: 15px;
    height: 15px;
  }

  .topbar-contact-icon i{
    font-size: .74rem;
  }

  .topbar-social-link{
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
  }

  .topbar-social-link i{
    font-size: .76rem;
  }
}

/* ========================================================================== 
   PATCH_TOPBAR_DESIGN_V2_20260508
   Topbar v2 : capsules sobres, réseaux ghost, switch langue compact.
========================================================================== */

.top-bar{
  background: linear-gradient(180deg, rgba(133,187,100,.96), rgba(133,187,100,.91)) !important;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: #fff !important;
}

.container-topbar{
  min-height: 36px !important;
  padding-top: .25rem !important;
  padding-bottom: .25rem !important;
}

.top-bar-left,
.top-bar-right{
  gap: .42rem !important;
}

/* Coordonnées : petites capsules discrètes */
.topbar-contact-item{
  min-height: 24px;
  padding: 0 .58rem !important;
  gap: .34rem !important;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.075);
  color: #fff !important;
  font-size: .78rem;
  font-weight: 750 !important;
  line-height: 1 !important;
  letter-spacing: .003em;
}

.topbar-contact-item + .topbar-contact-item{
  margin-inline-start: .12rem;
}

.topbar-contact-icon{
  width: 15px !important;
  height: 15px !important;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff !important;
  opacity: 1 !important;
}

/* On force des pictos fiables, indépendants de la version FontAwesome */
.topbar-contact-icon i{
  display: none !important;
}

.topbar-contact-icon::before{
  display: block;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
}

.topbar-contact-item[data-contact="phone"] .topbar-contact-icon::before{
  content: "☎";
  font-size: .66rem;
}

.topbar-contact-item[data-contact="mail"] .topbar-contact-icon::before{
  content: "✉";
  font-size: .66rem;
}

.topbar-contact-item[data-contact="fax"] .topbar-contact-icon::before{
  content: "F";
  font-size: .58rem;
  letter-spacing: -.02em;
}

/* Réseaux sociaux : micro ghost buttons */
.topbar-social-link,
.top-bar .social-icons a,
.top-bar .social-links a{
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  border: 1px solid transparent;
  border-radius: 999px !important;
  background: transparent !important;
  color: rgba(255,255,255,.96) !important;
  opacity: 1 !important;
}

.topbar-social-link:hover,
.top-bar .social-icons a:hover,
.top-bar .social-links a:hover{
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.18) !important;
  color: #fff !important;
  transform: none !important;
}

.topbar-social-link i,
.top-bar .social-icons a i,
.top-bar .social-links a i{
  font-size: .78rem !important;
  line-height: 1 !important;
}

/* Switch langue : aspect segmented, plus discret */
.lang-switch,
.top-bar .lang-switch{
  min-height: 26px;
  padding: 2px !important;
  gap: 2px !important;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  margin-inline-start: .55rem !important;
}

.lang-switch a,
.top-bar .lang-switch a{
  min-width: 30px !important;
  height: 22px !important;
  padding: 0 .52rem !important;
  border-radius: 999px !important;
  background: transparent !important;
  border: 0 !important;
  color: rgba(255,255,255,.95) !important;
  font-size: .74rem !important;
  font-weight: 850 !important;
}

.lang-switch a.active,
.lang-switch a.current,
.lang-switch a[aria-current="true"],
.top-bar .lang-switch a.active,
.top-bar .lang-switch a.current,
.top-bar .lang-switch a[aria-current="true"]{
  background: #fff !important;
  color: var(--adha-green, #1A7346) !important;
  box-shadow: none !important;
}

/* Le texte brut restant devient moins dominant */
.top-bar-left > span:not(.topbar-contact-item),
.top-bar-right > span:not(.topbar-contact-item),
.top-bar-left > a:not(.topbar-contact-item):not(.topbar-social-link),
.top-bar-right > a:not(.topbar-contact-item):not(.topbar-social-link){
  font-size: .78rem;
  font-weight: 750 !important;
}

/* RTL : ordre naturel sans effet inversé parasite */
html[dir="rtl"] .topbar-contact-item{
  direction: rtl;
}

html[dir="rtl"] .lang-switch,
html[dir="rtl"] .top-bar .lang-switch{
  direction: ltr;
}

/* Mobile : aspect carte utilitaire, compact mais respirant */
@media screen and (max-width: 768px){
  .top-bar{
    background: rgba(133,187,100,.96) !important;
  }

  .container-topbar{
    min-height: 0 !important;
    padding: .38rem .65rem .42rem !important;
    gap: .36rem !important;
  }

  .top-bar-left,
  .top-bar-right{
    gap: .28rem .38rem !important;
  }

  .topbar-contact-item{
    min-height: 22px;
    padding: 0 .45rem !important;
    gap: .25rem !important;
    font-size: .66rem !important;
    letter-spacing: 0;
  }

  .topbar-contact-icon{
    width: 13px !important;
    height: 13px !important;
  }

  .topbar-contact-icon::before{
    font-size: .56rem !important;
  }

  .topbar-social-link,
  .top-bar .social-icons a,
  .top-bar .social-links a{
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
  }

  .topbar-social-link i,
  .top-bar .social-icons a i,
  .top-bar .social-links a i{
    font-size: .72rem !important;
  }

  .lang-switch,
  .top-bar .lang-switch{
    min-height: 24px;
    margin-inline-start: .28rem !important;
  }

  .lang-switch a,
  .top-bar .lang-switch a{
    min-width: 27px !important;
    height: 20px !important;
    padding: 0 .42rem !important;
    font-size: .68rem !important;
  }
}

@media screen and (max-width: 420px){
  .topbar-contact-item{
    font-size: .64rem !important;
  }

  .topbar-contact-item[data-contact="fax"]{
    opacity: .92;
  }
}

/* ========================================================================== 
   PATCH_TOPBAR_RTL_LANG_END_20260508
   Topbar AR : placer le switch langue en fin visuelle de topbar.
========================================================================== */

html[dir="rtl"] .top-bar .lang-switch{
  order: 99 !important;
  margin-inline-start: .55rem !important;
  margin-inline-end: 0 !important;
}

html[dir="rtl"] .top-bar-left,
html[dir="rtl"] .top-bar-right{
  align-items: center !important;
}

html[dir="rtl"] .top-bar-right{
  flex-direction: row !important;
}

@media screen and (max-width: 768px){
  html[dir="rtl"] .top-bar .lang-switch{
    order: 99 !important;
    margin-inline-start: .35rem !important;
    margin-inline-end: 0 !important;
  }
}

/* ========================================================================== 
   PATCH_TOPBAR_STRUCTURE_V3_20260508
   Topbar v3 : structure propre FR/AR, langue en fin visuelle en arabe.
========================================================================== */

.topbar-v3 .container-topbar{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(1.25rem, 4vw, 3rem) !important;
  min-height: 36px !important;
  padding-top: .25rem !important;
  padding-bottom: .25rem !important;
}

.topbar-v3 .topbar-contact,
.topbar-v3 .topbar-tools,
.topbar-v3 .social-icons,
.topbar-v3 .lang-switch{
  display: inline-flex !important;
  align-items: center !important;
}

.topbar-v3 .topbar-contact{
  gap: .42rem !important;
  min-width: 0;
}

.topbar-v3 .topbar-tools{
  gap: .5rem !important;
  min-width: 0;
}

.topbar-v3 .social-icons{
  gap: .32rem !important;
}

.topbar-v3 .topbar-ltr{
  direction: ltr;
}

.topbar-v3 .topbar-ltr .topbar-contact{
  order: 1;
  justify-content: flex-start;
}

.topbar-v3 .topbar-ltr .topbar-tools{
  order: 2;
  justify-content: flex-end;
  direction: ltr;
}

.topbar-v3 .topbar-rtl{
  direction: ltr !important;
}

.topbar-v3 .topbar-rtl .topbar-tools{
  order: 1;
  justify-content: flex-start;
  direction: ltr !important;
}

.topbar-v3 .topbar-rtl .topbar-contact{
  order: 2;
  justify-content: flex-end;
  direction: rtl !important;
}

/* En AR, la langue est rendue AVANT les réseaux dans le DOM, donc elle devient bien en fin visuelle gauche. */
.topbar-v3 .topbar-rtl .lang-switch{
  order: 1 !important;
  margin-inline-start: 0 !important;
  margin-inline-end: .35rem !important;
}

.topbar-v3 .topbar-rtl .social-icons{
  order: 2 !important;
}

.topbar-v3 .topbar-contact-item{
  min-height: 24px;
  padding: 0 .58rem !important;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.075);
  color: #fff !important;
  font-size: .78rem;
  font-weight: 750 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.topbar-v3 .topbar-contact-icon{
  width: 15px !important;
  height: 15px !important;
  background: rgba(255,255,255,.18);
}

.topbar-v3 .topbar-social-link{
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  color: #fff !important;
  text-decoration: none !important;
}

.topbar-v3 .topbar-social-link:hover{
  background: rgba(255,255,255,.12) !important;
}

.topbar-v3 .lang-switch{
  min-height: 26px;
  padding: 2px !important;
  gap: 2px !important;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  margin: 0 !important;
  direction: ltr !important;
}

.topbar-v3 .lang-switch a{
  min-width: 30px !important;
  height: 22px !important;
  padding: 0 .52rem !important;
  border-radius: 999px !important;
  background: transparent !important;
  border: 0 !important;
  color: rgba(255,255,255,.95) !important;
  font-size: .74rem !important;
  font-weight: 850 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}

.topbar-v3 .lang-switch a.active{
  background: #fff !important;
  color: var(--adha-green, #1A7346) !important;
}

@media screen and (max-width: 768px){
  .topbar-v3 .container-topbar{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .36rem !important;
    padding: .38rem .65rem .42rem !important;
    text-align: center;
  }

  .topbar-v3 .topbar-contact,
  .topbar-v3 .topbar-tools,
  .topbar-v3 .topbar-ltr .topbar-contact,
  .topbar-v3 .topbar-ltr .topbar-tools,
  .topbar-v3 .topbar-rtl .topbar-contact,
  .topbar-v3 .topbar-rtl .topbar-tools{
    width: 100%;
    justify-content: center !important;
  }

  .topbar-v3 .topbar-contact{
    order: 1 !important;
    gap: .28rem !important;
  }

  .topbar-v3 .topbar-tools{
    order: 2 !important;
    gap: .38rem !important;
  }

  .topbar-v3 .topbar-contact-item{
    min-height: 22px;
    padding: 0 .45rem !important;
    font-size: .66rem !important;
  }

  .topbar-v3 .topbar-social-link{
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
  }

  .topbar-v3 .lang-switch{
    min-height: 24px;
  }

  .topbar-v3 .lang-switch a{
    min-width: 27px !important;
    height: 20px !important;
    font-size: .68rem !important;
  }
}

/* ========================================================================== 
   PATCH_TOPBAR_RTL_ORDER_V4_20260508
   AR : placer le switch langue en fin visuelle de topbar, donc à gauche
   des réseaux sociaux. Override volontaire des anciens order RTL.
========================================================================== */

html[dir="rtl"] .top-bar.topbar-v3 .container-topbar.topbar-rtl .topbar-tools{
  direction: ltr !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
}

html[dir="rtl"] .top-bar.topbar-v3 .container-topbar.topbar-rtl .topbar-tools .lang-switch{
  order: -10 !important;
  margin-inline-start: 0 !important;
  margin-inline-end: .46rem !important;
}

html[dir="rtl"] .top-bar.topbar-v3 .container-topbar.topbar-rtl .topbar-tools .social-icons{
  order: 1 !important;
}

@media screen and (max-width: 768px){
  html[dir="rtl"] .top-bar.topbar-v3 .container-topbar.topbar-rtl .topbar-tools{
    justify-content: center !important;
  }

  html[dir="rtl"] .top-bar.topbar-v3 .container-topbar.topbar-rtl .topbar-tools .lang-switch{
    order: -10 !important;
    margin-inline-start: 0 !important;
    margin-inline-end: .34rem !important;
  }
}

/* ========================================================================== 
   PATCH_TOPBAR_MOBILE_COMPACT_V5_20260508
   Topbar mobile : capsules coordonnées compactes, sans retour ligne.
   Mobile : téléphone + email visibles ; fax masqué pour éviter la surcharge.
========================================================================== */

@media screen and (max-width: 768px){
  .topbar-v3 .container-topbar{
    padding-top: .32rem !important;
    padding-bottom: .36rem !important;
    gap: .30rem !important;
  }

  .topbar-v3 .topbar-contact{
    width: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: .34rem !important;
    overflow: visible !important;
  }

  .topbar-v3 .topbar-contact-item{
    min-height: 21px !important;
    height: 21px !important;
    padding: 0 .42rem !important;
    gap: .22rem !important;
    font-size: .62rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    flex: 0 1 auto !important;
    max-width: calc(50vw - .75rem);
  }

  .topbar-v3 .topbar-contact-item .topbar-value,
  .topbar-v3 .topbar-contact-item .topbar-label{
    display: inline-block !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  .topbar-v3 .topbar-contact-icon{
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    flex: 0 0 12px !important;
  }

  .topbar-v3 .topbar-contact-icon i,
  .topbar-v3 .topbar-contact-icon::before{
    font-size: .53rem !important;
  }

  /* Le fax est utile desktop, mais trop lourd sur mobile. */
  .topbar-v3 .topbar-fax,
  .topbar-v3 .topbar-contact-item[data-contact="fax"]{
    display: none !important;
  }

  .topbar-v3 .topbar-tools{
    width: 100%;
    justify-content: center !important;
    gap: .36rem !important;
  }

  .topbar-v3 .social-icons{
    gap: .26rem !important;
  }

  .topbar-v3 .topbar-social-link{
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
  }

  .topbar-v3 .lang-switch{
    min-height: 23px !important;
  }

  .topbar-v3 .lang-switch a{
    min-width: 26px !important;
    height: 19px !important;
    padding: 0 .38rem !important;
    font-size: .66rem !important;
  }
}

@media screen and (max-width: 360px){
  .topbar-v3 .topbar-contact-item{
    padding: 0 .34rem !important;
    font-size: .58rem !important;
  }

  .topbar-v3 .topbar-contact{
    gap: .25rem !important;
  }
}

/* ========================================================================== 
   PATCH_TOPBAR_X_ICON_20260508
   Corrige l'icône X/Twitter dans la topbar : X typographique robuste.
========================================================================== */

.topbar-v3 .topbar-social-link[data-social="x"] i,
.top-bar .topbar-social-link[data-social="x"] i{
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 800 !important;
  font-style: normal !important;
  font-size: .78rem !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.topbar-v3 .topbar-social-link[data-social="x"] i::before,
.top-bar .topbar-social-link[data-social="x"] i::before{
  content: "X" !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 800 !important;
  font-style: normal !important;
  line-height: 1 !important;
}

@media screen and (max-width: 768px){
  .topbar-v3 .topbar-social-link[data-social="x"] i,
  .top-bar .topbar-social-link[data-social="x"] i{
    font-size: .72rem !important;
  }
}
