:root {
    /*--bg: #f5f7f4;*/
    --bg: #F9FAFB;
    --bg_bleu:#DBEAFE;
    --bg_vert:#DCFCE7;
    --bg_vert_fonce:#20362d;
    --bg_vert_pastel: #90b1a1;
    --bg_violet:#F3E8FF;
    --bg_gris:#dce3dd;
    --panel: #ffffff;
    --ink: #1d2520;
    --muted: #69756f;
    --line: #dce3dd;
    --primary: #2e7d5b;
    --primary-dark: #225f45;
    --accent: #b36b2c;
    --danger: #a33a3a;
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Inter';
    src: url('./webfonts/Inter/Inter_24pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}




body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr;
    background: var(--bg);
    color: var(--ink);
    /*font-family: Arial, Helvetica, sans-serif;*/
    /*font-family: 'Inter', sans-serif;*/
}

a {
    color: inherit;
}

.sidebar {
    min-height: 100vh;
    padding: 14px 18px;
    background: #20362d;
    color: #fff;
}

.brand {
    /*margin-bottom: 28px;*/
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
}

nav {
    display: grid;
    gap: 8px;
}

nav a {
    padding: 2px 12px;
    border-radius: 6px;
    color: #e8f1ec;
    text-decoration: none;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}
.menu_actif{
    background: rgba(255, 255, 255, 0.12);
}

.main {
    padding: 14px 28px;

}
.ariane{
    font-style: italic;font-size: 14px;margin-bottom: -20px;
    width:100%;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

h1, h2, h3 {
    margin: 0;
}

h1 {
    margin-top: 4px;
    font-size: 30px;
    font-weight:700;
}

h2 {
    font-size: 20px;
}

.muted {
    color: var(--muted);
    font-size: 14px;
}

.session {
    /*display: flex;
    align-items: center;
    gap: 12px;*/
    float:right;
}

.grid {
    display: grid;
    gap: 16px;
}

.stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    background: var(--panel);
    /*border: 1px solid var(--line);*/
    border-radius: 8px;
    padding: 10px;
    margin-top:10px;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    background: #FFF;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 1px 2px -1px rgba(0, 0, 0, 0.10);

}

.stat-value {
    margin-top: 8px;
    font-size: 34px;
    font-weight: 700;
}

.actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 14px;
    margin-top: 14px;
}

.button,
button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
}

.button.ghost {
    border-color: rgba(255, 255, 255, 0.35);
    background: transparent;
}

.button.danger,
button.danger {
    border-color: var(--danger);
    background: var(--danger);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    /*text-transform: uppercase;*/
}

tr:last-child td {
    border-bottom: 0;
}

.detail {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
}

.detail dt {
    color: var(--muted);
    font-size: 14px;
}

.detail dd {
    margin: 0;
}

form.app-form {
    max-width: 760px;
}

form div {
   /* margin-bottom: 14px;*/
}

/*label {*/
/*    display: block;*/
/*    margin-bottom: 6px;*/
/*    color: var(--muted);*/
/*    font-size: 14px;*/
/*}*/
label{
    margin-right:6px;
    margin-left:3px;
}

input, select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font: inherit;
}

input[type="checkbox"] {
    width: auto;
    min-height: auto;
}

.login {
    display: grid;
    min-height: 100vh;
    place-items: center;
    grid-column: 1 / -1;
}

.login .card {
    width: min(420px, calc(100vw - 32px));
}

@media (max-width: 860px) {
    body {
        grid-template-columns: 1fr;
    }

    .sidebar {
        min-height: auto;
    }

    .stats,
    .two {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
.tableau_block {
    background-color: #fff;
    box-shadow: 0 1px 3px 0 rgba(52, 64, 84, .1), 0 1px 2px 0 rgba(52, 64, 84, .06);

}
.card_picto_droite{

    display: flex;
    padding: 7px;
    flex-direction: column;
    align-items: flex-start;
    align-items: center;
    text-align: center;
    border-radius: 25px;
    width:50px;
    height: 50px;
}
hr{
    margin: 1px
}
.padding-10{
    padding:10px;
}
.marginb-10{
    margin-bottom:10px;
}
.padding-20{
    padding:20px;

}
.thvert th{
    background-color: var(--bg_gris) ;
    color:var(--bg_vert_fonce)
}
.thvert{
    background-color: var(--bg_gris) ;
    color:var(--bg_vert_fonce)
}
.card_titre_vert{
    background-color: var(--bg_gris) ;
    color:var(--bg_vert_fonce);
    padding:4px;
    margin-bottom:4px
}
label{
    margin-top: .5rem;
    margin-bottom: .5rem;
    font-size: 14px;
    font-weight: 700;
}
.badge-user     { background: #2B6CB0BC; color: #ffffff; }
.badge-manager  { background: #BF840DF4;color:#ffffff; }
.badge-admin    { background: #c53030; color: #ffffff; }
.badge-eleveur    { background: #759c57; color: #ffffff; }
.ferme_label{
    color: #6A7282;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px; /* 133.333% */
}
.ferme_body{
    color: #101828;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    padding-left: 4px;

}
.ferme_ligne{
    color: #4A5565;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
}
.card .ferme_over :hover{
    /*background-color: var(--bg_gris);*/
    border-left:solid 4px red;
}
.icon-col {
    width: 50px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hidden{
    display:none
}
/* Optionnel : aligner les éléments proprement en ligne ou en grille */
.picto-checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.picto-item {
    position: relative;
}

/* 1. On cache le cercle/carré de validation d'origine */
.input_picto {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* 2. Style de l'icône par défaut (non sélectionnée) */
.picto-label {
    cursor: pointer;
    color: #6c757d; /* Couleur grise par défaut */
    transition: color 0.2s ease-in-out, transform 0.2s;
}

.picto-label:hover {
    color: #495057;
    transform: scale(1.1); /* Petit effet au survol */
}

/* 3. Changement de couleur AU CLIC (quand l'input invisible est coché) */
.input_picto:checked + .picto-label {
    color: #27a878; /* Couleur de votre choix (ex: bleu Bootstrap) */
}

/* Style spécifique si vous voulez aussi encadrer ou styliser le "Aucun" */
.input_picto:checked + .picto-label .txt-aucun {
    font-weight: bold;
}
.tab-content{
    border-top:dashed 1px lightgrey;

    padding:10px
}
.nav-tabs .nav-link{
    border-radius: 0px !important;

}
.nav-tabs{
    border-bottom:0px;
}
.nav-link{
    color:var(--bg_vert_fonce);
}
.nav-tabs .nav-link.active {
    border-bottom:solid 4px var(--bg_vert_fonce);
}
