/* Roboto Font Definition - Using local bundled fonts */

/* Roboto Regular (400) */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('assets/assets/font/Roboto/static/Roboto-Regular.ttf') format('truetype');
}

/* Roboto Italic (400) */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 400;
  src: url('assets/assets/font/Roboto/static/Roboto-Italic.ttf') format('truetype');
}

/* Roboto Light (300) */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('assets/assets/font/Roboto/static/Roboto-Light.ttf') format('truetype');
}

/* Roboto Light Italic (300) */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 300;
  src: url('assets/assets/font/Roboto/static/Roboto-LightItalic.ttf') format('truetype');
}

/* Roboto Medium (500) */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('assets/assets/font/Roboto/static/Roboto-Medium.ttf') format('truetype');
}

/* Roboto Medium Italic (500) */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 500;
  src: url('assets/assets/font/Roboto/static/Roboto-MediumItalic.ttf') format('truetype');
}

/* Roboto Bold (700) */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('assets/assets/font/Roboto/static/Roboto-Bold.ttf') format('truetype');
}

/* Roboto Bold Italic (700) */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 700;
  src: url('assets/assets/font/Roboto/static/Roboto-BoldItalic.ttf') format('truetype');
}

/* Roboto Thin (100) */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100;
  src: url('assets/assets/font/Roboto/static/Roboto-Thin.ttf') format('truetype');
}

/* Roboto Black (900) */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  src: url('assets/assets/font/Roboto/static/Roboto-Black.ttf') format('truetype');
}

/* Use system fonts as fallback */
:root {
  --system-fonts: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* Basic font fallback */
body {
  font-family: var(--system-fonts);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Apply Roboto to Flutter elements with proper rendering */
flt-glass-pane * {
  font-family: 'Roboto', Arial, sans-serif !important;
  /* 🎯 FIX: Utiliser auto au lieu de antialiased pour éviter les artefacts */
  -webkit-font-smoothing: auto !important;
  -moz-osx-font-smoothing: auto !important;
  text-rendering: geometricPrecision !important;
  /* 🎯 FIX CRITIQUE: Supprimer TOUTES les ombres */
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

flt-paragraph, flt-span, flt-text {
  font-family: 'Roboto', Arial, sans-serif !important;
  -webkit-font-smoothing: auto !important;
  -moz-osx-font-smoothing: auto !important;
  text-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

/* Ensure proper text rendering in inputs */
input, textarea, select, button {
  font-family: 'Roboto', Arial, sans-serif !important;
  -webkit-font-smoothing: auto !important;
  -moz-osx-font-smoothing: auto !important;
  text-rendering: geometricPrecision !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

/* 🎯 FIX CRITIQUE: Cibler spécifiquement les inputs Flutter */
flt-glass-pane input,
flt-glass-pane textarea {
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  -webkit-text-stroke: 0 !important;
  color: #212121 !important;
  -webkit-text-fill-color: #212121 !important;
}

/* Basic text color for readability */
html, body {
  color: #212121;
  background-color: #ffffff;
}
