:root {
    --arrow-bg: rgb(172, 172, 172);
    --arrow-icon: url(https://upload.wikimedia.org/wikipedia/commons/9/9d/Caret_down_font_awesome_whitevariation.svg);
    --option-bg: white;
    --select-bg: rgba(255, 255, 255, 1);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

table {
    display: block;
    width: fit-content; /* Ajuste à la taille du contenu */
    margin: 20px auto; /* Centre la table */
    border-radius: 12px; /* Arrondi les bords */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Ombre */
    overflow: hidden; /* Évite que le contenu dépasse */
}

table thead th {
    padding: 12px 16px; /* Ajuste selon tes besoins */
}
table tr {
    border-bottom: 1px solid #e5edf8;
}
table tbody tr:hover {
    background-color: #e5edf850;
}
table tr:last-child {
    border-bottom: none;
}

table tr td {
    padding: 5px 16px; /* Ajuste selon tes besoins */
}

table tfoot {
    font-weight: bold;
}

table tfoot tr {
    border-top: 2px solid #e5edf8;
}

input,
textarea {
    border: 1px solid #e5edf8;
    box-sizing: border-box;
    padding: 8px 12px;
    height: 38px;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}
input:hover,
textarea:hover {
    border: 1px solid #0276ff;
}

.checkbox-container .round {
    position: relative;
}

.checkbox-container .round label {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    height: 28px;
    width: 28px;
    display: block;
}

.checkbox-container .round label:after {
    border: 2px solid #fff;
    border-top: none;
    border-right: none;
    content: '';
    height: 6px;
    left: 8px;
    opacity: 0;
    position: absolute;
    top: 9px;
    transform: rotate(-45deg);
    width: 12px;
}

.checkbox-container .round input[type='checkbox'] {
    visibility: hidden;
    display: none;
    opacity: 0;
}

.checkbox-container .round input[type='checkbox']:checked + label {
    background-color: #66bb6a;
    border-color: #66bb6a;
}

.checkbox-container .round input[type='checkbox']:checked + label:after {
    opacity: 1;
}

/* CSS */
.button {
    align-items: center;
    appearance: button;
    background-color: #0276ff;
    border-radius: 8px;
    border-style: none;
    box-shadow: rgba(255, 255, 255, 0.26) 0 1px 2px inset;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    font-family: 'RM Neue', sans-serif;
    font-size: 100%;
    line-height: 1.00;
    margin: 0;
    height:auto ;
    padding: 8px 8px;
    text-align: center;
    text-transform: none;
    transition:
        color 0.13s ease-in-out,
        background 0.13s ease-in-out,
        opacity 0.13s ease-in-out,
        box-shadow 0.13s ease-in-out;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button:active {
    background-color: #006ae8;
}

.button:hover {
    background-color: #1c84ff;
}

.group:hover > .button:first-child {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}
select {
    /* Reset */
    appearance: none;
    border: 1px solid #e5edf8;
    outline: 0;
    font: inherit;
    box-sizing: border-box;
    padding: 8px 12px;
    height: 38px;
    border-radius: 6px;
    /* Personalize */
    width: auto;
    background:
        var(--arrow-icon) no-repeat right 0.8em center / 1.4em,
        linear-gradient(to left, var(--arrow-bg) 3em, var(--select-bg) 3em);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

select:hover {
    border: 1px solid #0276ff;
}

/* Remove IE arrow */
select::-ms-expand {
    display: none;
}

/* Remove focus outline */
select:focus {
    outline: none;
}

/* <option> colors */
select option {
    color: inherit;
    background-color: var(--option-bg);
}

/* CORRECTION Tom Select */
.ts-control {
    border: 1px solid #ddd !important; /* Bordure légère */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important; /* Ombre subtile */
    border-radius: 6px;
}
.ts-control:hover {
    border-color: #aaa !important; /* Bordure plus foncée au survol */
}

.ts-dropdown,
.ts-control {
    background-color: white !important; /* Fond blanc */
}
.ts-wrapper {
    border: 1px solid red;
}

.ts-dropdown {
    border: 1px solid #ddd !important; /* Bordure légère */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important; /* Ombre subtile */
}

.ts-dropdown .option {
    background-color: white !important; /* Fond blanc pour chaque option */
    color: black !important; /* Texte noir */
    padding: 8px 12px; /* Espacement */
}

.ts-dropdown .option:hover,
.ts-dropdown .active {
    background-color: #f3f4f6 !important; /* Gris clair au*/
}

[x-cloak] {
    display: none !important;
}

.chart-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
canvas {
    width: 100% !important;
    height: auto !important;
}


@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeOutDown {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.3s ease-out forwards;
}

.animate-fade-out-down {
  animation: fadeOutDown 0.2s ease-in forwards;
}

/* Animation pour la popup de copie */
@keyframes copyPopup {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.8);
    }
    15% {
        opacity: 1;
        transform: translateY(-8px) scale(1.1);
    }
    30% {
        transform: translateY(-12px) scale(1);
    }
    45% {
        transform: translateY(-16px) scale(1.05);
    }
    70% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-25px) scale(0.9);
    }
}

.copy-popup {
    position: fixed;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    pointer-events: none;
    animation: copyPopup 0.8s ease-out forwards;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.copy-popup::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #059669;
}

/* Background de navigation avec image et dégradé */
.nav-bg-image {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image: 
    linear-gradient(to left, rgb(249, 250, 252) 10%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(to right, rgb(249, 250, 252) 10%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(to bottom, rgba(80, 80, 80, 0.9) 0%, rgba(255, 255, 255, 0) 10%),
    linear-gradient(to top, rgb(249, 250, 252) 10%, rgba(255, 255, 255, 0) 40%),
    url('/img/bg.webp')
    ;
    background-repeat:no-repeat;
    background-position: center;
    background-size: cover;
    height: 350px;
    width: 100%;
    margin: 0 auto;
    max-width: 1100px;
    opacity: 0.4;
}



@media print {
    .no-print {
        display: none !important;
    }
}