@import url('./main-layout.css');
@import url('./commons.css');
@import url('./views/utilisateur-view.css');
@import url('./views/critere-evaluation.css');
/*@import url('@fontsource/oxygen/index.css');*/

@font-face {
  font-family: "ProzaLibre-Regular";
  src: url('./fonts/ProzaLibre-Regular.woff2') format("woff2");
  font-weight: normal;
  font-style: normal;
}

html {
      --lumo-shade-5pct: rgba(33, 33, 33, 0.05);
      --lumo-shade-10pct: rgba(33, 33, 33, 0.1);
      --lumo-shade-20pct: rgba(33, 33, 33, 0.2);
      --lumo-shade-30pct: rgba(33, 33, 33, 0.3);
      --lumo-shade-40pct: rgba(33, 33, 33, 0.4);
      --lumo-shade-50pct: rgba(33, 33, 33, 0.5);
      --lumo-shade-60pct: rgba(33, 33, 33, 0.6);
      --lumo-shade-70pct: rgba(33, 33, 33, 0.7);
      --lumo-shade-80pct: rgba(33, 33, 33, 0.8);
      --lumo-shade-90pct: rgba(33, 33, 33, 0.9);

      /*
      --lumo-primary-color: hsl(22, 92%, 29%);
      --lumo-primary-color-50pct: hsla(22, 92%, 29%, 0.5);
      --lumo-primary-color-10pct: hsla(22, 92%, 29%, 0.1);
      */
      --lumo-primary-color: hsl(22, 92%, 31%);
      --lumo-primary-color-50pct: hsla(22, 92%, 31%, 0.5);
      --lumo-primary-color-10pct: hsla(22, 92%, 31%, 0.1);

      --lumo-error-color-50pct: rgba(231, 24, 24, 0.5);
      --lumo-error-color-10pct: rgba(231, 24, 24, 0.1);
      --lumo-success-color-50pct: hsla(122, 95%, 32%, 0.5);
      --lumo-success-color-10pct: hsla(122, 95%, 32%, 0.1);
      --lumo-shade: hsl(0, 0%, 13%);

      /*--lumo-primary-text-color: hsl(22, 92%, 29%);*/
      --lumo-primary-text-color: hsl(7, 92%, 31%);
      --lumo-error-color: hsl(0, 81%, 50%);
      --lumo-error-text-color: hsl(0, 86%, 45%);
      --lumo-success-color: hsl(122, 95%, 32%);
      --lumo-success-contrast-color: hsl(159, 29%, 10%);
      --lumo-success-text-color: hsl(122, 95%, 32%);
      --lumo-font-family: 'ProzaLibre-Regular';

      font-size:100%;
}

h1, h2, h3, h4, h5, h6 {
    color: #905D0C;
}

@media (max-width: 400px) {


    .image_eht{
        width: 55px;
        height: 70px;
    }

    .image_rim{
            width: 70px;
            height: 70px;
    }
    .pg_ouverture{
            font-size:0.9rem;
    }
    .sp_ouverture{
                font-size:0.7rem;
    }

    .grid_stats {
        width: 100%;
        font-size: 0.8em;
        border-radius: 1em;
        overflow: hidden;
    }
}

@media (min-width: 400px) {


    .image_eht{
        width: 77px;
        height: 90px;
    }

    .image_rim{
            width: 90px;
            height: 90px;
    }
    .pg_ouverture{
            font-size:1.1rem;
        }
    .sp_ouverture{
                font-size:0.9rem;
    }

    .grid_stats {
            width: 100%;
            font-size: 0.8em;
            border-radius: 1em;
            overflow: hidden;
        }
}

@media (min-width: 500px) {

    .image_eht{
        width: 77px;
        height: 90px;
    }

    .image_rim{
            width: 90px;
            height: 90px;
    }
    .pg_ouverture{
            font-size:1.2rem;
    }
    .sp_ouverture{
            font-size:1.0rem;
    }

    .grid_stats {
            width: 100%;
            font-size: 0.8em;
            border-radius: 1em;
            overflow: hidden;
        }
}
@media (min-width: 640px) {

    .image_eht{
            width: 120px;
            height: 140px;
        }

        .image_rim{
                width: 140px;
                height: 140px;
        }
        .pg_ouverture{
                font-size:1.4rem;
        }
        .sp_ouverture{
                font-size:1.2rem;
        }
        .grid_stats {
                width: 100%;
                font-size: 0.8em;
                border-radius: 1em;
                overflow: hidden;
            }
}
@media (min-width:960px) {

    .image_eht{
        width: 120px;
        height: 140px;
    }

    .image_rim{
            width: 140px;
            height: 140px;
    }
    .pg_ouverture{
        font-size:1.3rem;
    }
    .sp_ouverture{
        font-size:1.1rem;
    }
    .grid_stats {
            width: 80%;
            font-size: 0.9em;
            border-radius: 1em;
            overflow: hidden;
        }
}
@media (min-width:1100px) {

    .image_eht{
        width: 120px;
        height: 140px;
    }

    .image_rim{
            width: 140px;
            height: 140px;
    }
    .pg_ouverture{
        font-size:1.5rem;
    }
    .sp_ouverture{
         font-size:1.3rem;
    }

    .grid_stats {
            width: 80%;
            font-size: 0.9em;
            border-radius: 1em;
            overflow: hidden;
        }
}

@media (min-width:1260px) {

    .image_eht{
            width: 171px;
            height: 200px;
    }

        .image_rim{
                width: 200px;
                height: 200px;
        }
        .pg_ouverture{
            font-size:1.6rem;
        }

        .sp_ouverture{
            font-size:1.4rem;
        }

        .grid_stats {
                width: 80%;
                font-size: 1.0em;
                border-radius: 1em;
                overflow: hidden;
        }
}

.comp-blinking {
    animation: comp-blink-animation 1s steps(5, start) infinite;
    -webkit-animation: comp-blink-animation 1s steps(5, start) infinite;
}

.radio-button-dossier{
    --vaadin-radio-button-label-font-size:0.8em;
    --vaadin-input-field-label-font-weight: bold;
}

.label-bold{
    font-weight: bold;
}

.nni_class{
    /*width: 200px;*/
    /*--vaadin-input-field-height: 30px;*/
    --vaadin-input-field-value-font-size: 20px;
    --vaadin-input-field-border-radius: 15px;
    --vaadin-input-field-value-font-weight: bold;
}

/* Drawer / menu latéral : libellés plus petits pour faire tenir
   "Historique des mouvements", "Affectation des agences", etc.
   sans tronquer ni passer sur deux lignes.
   Sélecteur de tag direct + !important pour forcer la cascade
   (bypass des potentielles surcharges Lumo dans le shadow DOM). */
vaadin-side-nav,
vaadin-side-nav-item {
  font-size: 0.9em !important;
}

vaadin-side-nav-item::part(item) {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  white-space: normal !important;
  line-height: 1.2 !important;
  height: auto !important;
}

vaadin-side-nav-item::part(link) {
  white-space: normal !important;
  height: auto !important;
}

vaadin-app-layout {
  --vaadin-app-layout-drawer-width: 270px;
}

