@font-face {
    font-family: "Roboto";
    src: url("../../vendor/fonts/Roboto/Roboto-Regular.ttf") format("truetype");
    font-weight: 700;
}
@font-face {
    font-family: "Montserrat";
    src : url("../../vendor/fonts/Montserrat/MontserratAlternates-Regular.ttf") format("truetype");
}
@font-face {
    font-family: "Poppins";
    src : url("../../vendor/fonts/Poppins/Poppins-Regular.ttf") format("truetype");
}
:root {
     /* Couleurs */
     --color-text: #0A0A0A;
     --color-bg: #EFEFEF;
     --color-primary: #FF9C02;
     --color-accent: #FFDF20;
     --color-white: #FFFFFF;
     --color-gray-light: #6A7282;
     --color-gray-lighter: #99A1AF;
     
     /* Typographie */
     --font-family-primary: 'Poppins', sans-serif;
     --font-family-secondary: 'Inter', sans-serif;
 
     --text-h1: 700 2rem/1.2 var(--font-family-primary);
     --text-h2: 300 1.125rem/1.4 var(--font-family-primary);
     --text-h3: 300 1rem/1.6 var(--font-family-primary);
     --text-p: 400 .625rem/1.6 var(--font-family-primary);
     --text-span: 400 1rem/1.6 var(--font-family-secondary);
     --text-legend: 400 0.8125rem/1.4 var(--font-family-secondary);
     --text-btn: 600 1rem/1.2 var(--font-family-primary);
     
}


* {
    margin: 0;
    padding: 0;
}


.app-interface {
    display: flex;
    height: 100vh;
    background-color: var(--color-bg);
    flex-direction: column;
    padding-bottom: 0; /* Par défaut sur desktop */
}

.MainContent {
    /* display: flex;
    padding: 0 32px 16px 32px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    align-self: stretch; */



    display: flex;
    padding: 16px 24px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex: 1 0 0;
    align-self: stretch;

    min-height: 0;
    overflow-y: auto;
}



/* Chrome, Safari, Edge */
::-webkit-scrollbar {
  display: none;
}

/* Firefox */
* {
  scrollbar-width: none;
}

/* Internet Explorer / Edge legacy */
* {
  -ms-overflow-style: none;
}




button {
    border: none;
}


.iconAndSpan {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.headerCard{
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    gap: 16px; /* Ajoute un espace pour éviter que les éléments ne se collent */
    flex-wrap: wrap; /* Permet aux boutons de descendre si l'écran est petit */
}

.label-and-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

}


.input-container {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Réduit pour plus de proximité avec le label */
  width: 100%;
}


.error {
  color: red;
}















/* Gestion spécifique des filtres pour éviter le débordement */
.filters-wrapper {
    display: flex;
    gap: 8px;
    overflow-x: auto; /* Active le scroll horizontal */
    padding-bottom: 4px;
    /* Cache la scrollbar mais permet le scroll */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.filters-wrapper::-webkit-scrollbar {
    display: none;
}

.btn-filter {
    flex-shrink: 0; /* Empêche les boutons de s'écraser */
    white-space: nowrap; /* Empêche le texte de passer à la ligne dans le bouton */
}




/* --- MEDIA QUERIES --- */

@media (max-width: 768px) {
    .app-interface {
        /* La valeur doit être égale ou supérieure à la hauteur de ta navbar */
        padding-bottom: 80px; 
    }
    .headerCard {
        flex-direction: column; /* On empile le titre et le groupe de boutons */
        align-items: flex-start; /* Aligne tout à gauche */
        gap: 8px;
    }

    .flex-row {
        width: 100%; /* Le groupe de boutons prend toute la largeur */
        justify-content: flex-start; /* Aligne les boutons au début */
    }

    .btn-alerte {
        flex: 1; /* Sur mobile, les boutons se partagent l'espace largeur */
        justify-content: center; /* Centre le texte dans le bouton */
        padding: 12px 8px;
        font-size: 13px; /* On réduit légèrement la taille de police */
    }
}

@media (max-width: 480px) {
    .flex-row {
        flex-direction: column; /* Sur très petit écran, un bouton par ligne */
        align-items: stretch; /* Boutons pleine largeur */
    }
}

@media (max-width: 992px) {
    .headerCard {
        /* Sur tablette, on sépare le titre des outils de recherche */
        flex-direction: column;
        align-items: flex-start;
    }

    /* On s'assure que le bloc contenant la recherche et les filtres prend toute la largeur */
    .headerCard > .flex-row:last-child {
        width: 100%;
        display: flex;
        flex-direction: column; /* On empile la barre de recherche au-dessus des filtres */
        align-items: stretch;
        gap: 12px;
    }
}


