@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');



html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #F6EFE5;
}

.navbar {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    background-color: #4F4845 !important;
    /* background-image: url('../images/topographyContact.svg'); */
}

.logs-col {
    background: #4F4845;
    font-family: poppins;
    border-radius: 0 0.5rem 0.5rem 0;
}



.toast {
    min-width: 300px;
    margin-bottom: 10px;
    border: none;
}

.toast-header {
    color: white;
}

.bg-success .toast-header {
    background-color: #28a745;
}

.bg-error .toast-header {
    background-color: #dc3545;
}

.bg-warning .toast-header {
    background-color: #ffc107;
}

.bg-info .toast-header {
    background-color: #17a2b8;
}

.toast-body {
    background-color: white;
    border-radius: 0 0 0.3rem 0.3rem;
}

.login-card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

/* Style du loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Assure que le loader est au-dessus de tout */
    display: none;
    /* Cache le loader par défaut */
}

/* Animation du spinner */
.spinner {
    border: 4px solid #f3f3f3;
    /* Couleur de fond du spinner */
    border-top: 4px solid #3498db;
    /* Couleur du spinner */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    /* Animation */
}

/* Keyframes pour l'animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.returnButton {
    border: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.card-header {
    border-radius: 0.375rem 0.375rem 0 0 !important;
}

.btn-primary {
    background-color: #4F4845;
    background-image: url('../images/topographyContact.svg');
    border: none;
}

.btn-group .btn {
    margin-right: 5px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Style personnalisé pour les boutons radio */
.custom-radio {
    width: 1.5em;
    height: 1.5em;
    margin-top: 0.25em;
    margin-right: 0.5em;
    border: 2px solid #0d6efd;
}

.custom-radio:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}


.form-check-label {
    cursor: pointer;
    transition: color 0.2s ease;
}

.form-check-input:checked+.form-check-label {
    color: #0d6efd;
    font-weight: 500;
}

.badge {
    font-size: 1em;
    padding: 0.35em 0.65em;
}

.card {
    border-radius: 0.5rem;
    overflow: hidden;
}

.card-header {
    background-color: #4F4845;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    background-image: url('../images/topographyContact.svg');
}

.modal-header {
    background-color: #4F4845 !important;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    background-image: url('../images/topographyContact.svg');
}

.question-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.answer-group {
    position: relative;
}

.answer-group .input-group-text {
    background-color: transparent;
    border-right: none;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.invalid-feedback {
    font-size: 0.85rem;
}

.was-validated .form-control:invalid,
.was-validated .form-control:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.15);
}

/* Badge de classement */
.badge-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    position: relative;
    margin: 0 auto 1rem;
    background-color: #4F4845;
    background-image: url('../images/topographyContact.svg');
}

.badge-rank::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed rgba(79, 72, 69, 0.5);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Animation des cartes */
.card {
    transition: all 0.3s ease;
}

.card-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Onglets personnalisés */
.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
}

.nav-tabs .nav-link.active {
    color: #4e73df;
    background: transparent;
    border-bottom: 3px solid #4e73df;
}

/* Avatar utilisateur */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.avatar-initial,
.avatar-circle {
    color: white;
    font-weight: bold;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4F4845;
    background-image: url('../images/topographyContact.svg');
    background-size: cover;
}


/* Tableau responsive */
.table-responsive {
    border-radius: 0.35rem;
}

.table thead th {
    border-bottom-width: 1px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Graphiques responsives */
#evolutionChart,
#scoreDistributionChart {
    min-height: 300px;
}

@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .nav-tabs .nav-link {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Cookie Consent Modal */
#cookieConsentModal .modal-content {
    border-radius: 10px;
    border: none;
}

#cookieConsentModal .modal-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

#cookieConsentModal .form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.2em;
}

#cookieConsentModal .form-check-label {
    margin-left: 0.5em;
    font-size: 0.95rem;
}

#cookieConsentModal .btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: #4F4845;
    margin-top: 10rem !important;
}

footer a {
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #E95538 !important;
}

footer .list-unstyled li {
    padding: 0.25rem 0;
}

/* Page Contact */
#contact-form .form-control {
    border-radius: 0.5rem;
    border: 2px solid #dee2e6;
    transition: all 0.3s;
}

#contact-form .form-control:focus {
    border-color: #E95538;
    box-shadow: 0 0 0 0.25rem rgba(233, 85, 56, 0.25);
}

#contact-form textarea {
    min-height: 200px;
    resize: vertical;
}

/* Adaptation mobile */
@media (max-width: 768px) {
    footer .col-md-4 {
        margin-bottom: 2rem;
    }

    footer .text-center {
        text-align: center !important;
    }
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-circle .circle-bg {
    stroke-dasharray: 100, 100;
}

.progress-circle .circle {
    transition: stroke-dasharray 0.3s ease;
}

.dynamic-icons-box {
    display: flex;
    gap: 2px;
    font-family: evolve, sans-serif;
    font-size: 1.1em;
}

.dynamic-icons-box.active {
    color: #ce6b28 !important;
}

.dynamic-icons-box.active .dynamic-icons i:nth-child(1) {
    opacity: 0;
}

.dynamic-icons-box.active .dynamic-icons i:nth-child(2) {
    opacity: 1;
}

.dynamic-icons-box:hover {
    color: #ce6b28 !important;
}

.dynamic-icons-box:hover .dynamic-icons i:nth-child(1) {
    opacity: 0;
}

.dynamic-icons-box:hover .dynamic-icons i:nth-child(2) {
    opacity: 1;
}

.dynamic-icons-box .dynamic-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1em;
}

.dynamic-icons-box .dynamic-icons i {
    position: absolute;
}

.dynamic-icons-box .dynamic-icons i:nth-child(1) {
    opacity: 1;
}

.dynamic-icons-box .dynamic-icons i:nth-child(2) {
    opacity: 0;
}

@font-face {
    font-family: 'Evolve';
    src: url('../fonts/MADE Evolve Sans Regular EVO.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Evolve';
    src: url('../fonts/MADE Evolve Sans Bold EVO.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Evolve';
    src: url('../fonts/MADE Evolve Sans Light EVO.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Evolve';
    src: url('../fonts/MADE Evolve Sans Medium EVO.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Evolve';
    src: url('../fonts/MADE Evolve Sans Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}