/**
 * SPDX-FileCopyrightText: 2026 NS-RAID Innovations
 * SPDX-License-Identifier: AGPL-3.0-or-later
 *
 * Theme Environix.
 * Regle : uniquement les variables CSS de Nextcloud (API stable) et nos polices.
 * Les couleurs, logos et fonds viennent du theming (pack de marque).
 * Toute surcharge de classe Nextcloud va dans overrides.css, revu a chaque
 * version majeure.
 */

/* Polices auto-hebergees (SIL Open Font License, voir fonts/LICENSE.md) :
   aucune requete vers un service tiers. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/noto-sans-arabic-arabic-400-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Noto Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/noto-sans-arabic-arabic-600-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }

/* Nextcloud declare ses variables sur [data-theme-*] : un id de body l'emporte. */
body#body-user,
body#body-login,
body#body-public,
body#body-settings {
	--font-face: 'Inter', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
	--environix-font-display: 'Space Grotesk', 'Noto Sans Arabic', var(--font-face);
	/* Nextcloud pose la police sur <html> : le body doit la redeclarer pour que
	   la variable ci-dessus s'applique a tout ce qu'il contient. */
	font-family: var(--font-face);
}

/* Titres dans la police de la marque. */
#body-user h1,
#body-user h2,
#body-public h1,
#body-public h2,
#body-login h1,
#body-login h2 {
	font-family: var(--environix-font-display);
	letter-spacing: -0.01em;
}

/* L'arabe garde sa propre police, sans resserrement. */
:lang(ar) h1,
:lang(ar) h2 {
	font-family: var(--font-face);
	letter-spacing: normal;
}

/* Icone du widget d'accueil (repli pour les vues qui utilisent la classe). */
.icon-environix {
	background-image: url('../img/app-dark.svg');
	background-size: contain;
}

/* Recherche de l en-tete (Nextcloud 35) : le libelle, centre sur toute la
   largeur, passait sous le raccourci « Ctrl K » avec Inter. */
#header .unified-search-input__label {
	min-width: 0;
	max-width: calc(100% - 9rem);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
