/*
===========================================
Polices Personnalisées Smart Check ID Technology
===========================================
*/

/* Police Lato pour FR et EN */
@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato/Lato-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato/Lato-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato/Lato-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato/Lato-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/* Police Arabiya pour l'arabe */
@font-face {
    font-family: 'Arabiya';
    src: url('../fonts/arabiya/alfont_com_AlFont_com_4_C6.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC;
}

/* Alias pour compatibilité */
@font-face {
    font-family: 'Alarabya Normal';
    src: url('../fonts/arabiya/alfont_com_AlFont_com_4_C6.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC;
}

/* Alias supplémentaire pour Alarabya */
@font-face {
    font-family: 'Alarabya';
    src: url('../fonts/arabiya/alfont_com_AlFont_com_4_C6.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC;
}

/* Styles conditionnels par langue - ARABE */
html[lang="ar"] body,
html[lang="AR"] body,
body[data-lang="ar"],
body[data-lang="AR"],
body.lang-ar,
body.lang-AR {
    font-family: 'Arabiya', 'Alarabya', 'Alarabya Normal', 'Noto Sans Arabic', Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Forcer Arabiya pour tous les éléments en arabe */
html[lang="ar"] *,
html[lang="AR"] *,
body[data-lang="ar"] *,
body[data-lang="AR"] *,
body.lang-ar *,
body.lang-AR * {
    font-family: 'Arabiya', 'Alarabya', 'Alarabya Normal', 'Noto Sans Arabic', Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Exception pour les titres en arabe (gras) */
html[lang="ar"] h1,
html[lang="AR"] h1,
html[lang="ar"] h2,
html[lang="AR"] h2,
html[lang="ar"] h3,
html[lang="AR"] h3,
html[lang="ar"] h4,
html[lang="AR"] h4,
html[lang="ar"] h5,
html[lang="AR"] h5,
html[lang="ar"] h6,
html[lang="AR"] h6,
body[data-lang="ar"] h1,
body[data-lang="AR"] h1,
body[data-lang="ar"] h2,
body[data-lang="AR"] h2,
body[data-lang="ar"] h3,
body[data-lang="AR"] h3,
body[data-lang="ar"] h4,
body[data-lang="AR"] h4,
body[data-lang="ar"] h5,
body[data-lang="AR"] h5,
body[data-lang="ar"] h6,
body[data-lang="AR"] h6,
body.lang-ar h1,
body.lang-AR h1,
body.lang-ar h2,
body.lang-AR h2,
body.lang-ar h3,
body.lang-AR h3,
body.lang-ar h4,
body.lang-AR h4,
body.lang-ar h5,
body.lang-AR h5,
body.lang-ar h6,
body.lang-AR h6 {
    font-weight: bold !important;
}

/* Styles conditionnels par langue - FRANÇAIS et ANGLAIS */
html[lang="fr"] body,
html[lang="en"] body,
body[data-lang="fr"],
body[data-lang="en"],
body.lang-fr,
body.lang-en {
    font-family: 'Lato', 'Inter', 'Work Sans', Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Forcer Lato pour tous les éléments en FR/EN */
html[lang="fr"] *,
html[lang="en"] *,
body[data-lang="fr"] *,
body[data-lang="en"] *,
body.lang-fr *,
body.lang-en * {
    font-family: 'Lato', 'Inter', 'Work Sans', Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Exception pour les éléments qui doivent être en gras */
html[lang="fr"] strong,
html[lang="en"] strong,
html[lang="fr"] b,
html[lang="en"] b,
body[data-lang="fr"] strong,
body[data-lang="en"] strong,
body[data-lang="fr"] b,
body[data-lang="en"] b,
body.lang-fr strong,
body.lang-en strong,
body.lang-fr b,
body.lang-en b,
html[lang="fr"] h1,
html[lang="fr"] h2,
html[lang="fr"] h3,
html[lang="fr"] h4,
html[lang="fr"] h5,
html[lang="fr"] h6,
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] h5,
html[lang="en"] h6,
body[data-lang="fr"] h1,
body[data-lang="fr"] h2,
body[data-lang="fr"] h3,
body[data-lang="fr"] h4,
body[data-lang="fr"] h5,
body[data-lang="fr"] h6,
body[data-lang="en"] h1,
body[data-lang="en"] h2,
body[data-lang="en"] h3,
body[data-lang="en"] h4,
body[data-lang="en"] h5,
body[data-lang="en"] h6,
body.lang-fr h1,
body.lang-fr h2,
body.lang-fr h3,
body.lang-fr h4,
body.lang-fr h5,
body.lang-fr h6,
body.lang-en h1,
body.lang-en h2,
body.lang-en h3,
body.lang-en h4,
body.lang-en h5,
body.lang-en h6 {
    font-weight: bold !important;
}
