/* ═══════════════════════════════════════════════
   CAIRO FONT - OVERRIDE GLOBAL
   Force la police Cairo sur TOUS les éléments
═══════════════════════════════════════════════ */

/* Règle universelle avec !important - SAUF les polices d'icônes */
*:not(.fas):not(.far):not(.fab):not(.fa):not(.fa-solid):not(.fa-regular):not(.fa-brands):not([class*="fa-"]):not([class*="bpmn-icon"]):not([class*="glyphicon"]),
*::before:not(.fas):not(.far):not(.fab):not(.fa):not(.fa-solid):not(.fa-regular):not(.fa-brands):not([class*="bpmn-icon"]):not([class*="glyphicon"]),
*::after:not(.fas):not(.far):not(.fab):not(.fa):not(.fa-solid):not(.fa-regular):not(.fa-brands):not([class*="bpmn-icon"]):not([class*="glyphicon"]),
html,
body,
div:not([class*="fa-"]):not([class*="bpmn-icon"]):not([class*="glyphicon"]),
span:not([class*="fa-"]):not([class*="bpmn-icon"]):not([class*="glyphicon"]),
p,
a:not([class*="fa-"]),
h1, h2, h3, h4, h5, h6,
button:not([class*="fa-"]),
input,
textarea,
select,
label,
li,
ul,
ol,
table,
td,
th,
tr {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
}

/* Spécifique pour les éléments de formulaire */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select,
button {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
}

/* Pour les éléments Leaflet (carte) */
.leaflet-container,
.leaflet-popup-content,
.leaflet-popup-content-wrapper,
.leaflet-control {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
}

/* Pour les éléments de navigation */
nav,
.nav,
.navbar,
.menu,
.header {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
}

/* Pour les cartes et sections */
.card,
.section,
.container,
.wrapper {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
}

/* RTL - Direction arabe */
[dir="rtl"],
[dir="rtl"] *,
.rtl-mode,
.rtl-mode * {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
}

/* ═══════════════════════════════════════════════
   POLICES D'ICÔNES — restaurées en dernier pour
   garantir la priorité (cascade égale, ordre gagne)
═══════════════════════════════════════════════ */
.fas, .far, .fab, .fa, .fa-solid, .fa-regular, .fa-brands,
i[class*="fa-"],
span[class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* Icônes BPMN (modeler Camunda) */
[class*="bpmn-icon"] {
  font-family: 'bpmn' !important;
}

/* Icônes Form.io (Glyphicons) */
.glyphicon,
[class*="glyphicon-"] {
  font-family: 'Glyphicons Halflings' !important;
}
