@import url('variables.css');
/* LIBRAIRIES CSS */

/* SORTABLE JS*/

.sortable {
    border-spacing: 0;
}

.sortable tbody tr:nth-child(odd) {
    background: #e4e4e4;
}

.sortable td,
.sortable th {
    padding: 10px;
}

.sortable td:first-child,
.sortable th:first-child {
    border-top-left-radius: 4px;
}

.sortable td:last-child,
.sortable th:last-child {
    border-top-right-radius: 4px;
}


/* AUTOCOMPLETE NATIF */

/* Styles de base pour la liste de résultats */
.autocomplete {
    position: relative;
    display: inline-block;
}

.autocomplete-items {
    margin-top: 3px;
    position: absolute;
    border: 2px solid var(--CouleurBordure-1);
    border-radius: var(--RadiusBorderBoites2);
    z-index: 99;
    /* position the autocomplete items to be the same width as the container: */
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
    background-color: #e9e9e9;
}

/* UPLOADER DE FICHIERS */

.input-file-container {
    display: block;
    position: relative;
    border-radius: 7px;
}

.input-file-trigger {
    display: block;
    padding: 12px;
    background: var(--CouleurFond2);
    color: #fff;
    font-size: 1em;
    transition: all 0.4s;
    cursor: pointer;
    border-radius: 7px;
}

.input-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 95%;
    height: 95%;
    opacity: 0;
    padding: 14px 0;
    cursor: pointer;
}

.input-file:hover+.input-file-trigger,
.input-file:focus+.input-file-trigger,
.input-file-trigger:hover,
.input-file-trigger:focus {
    background: var(--CouleurFond2);
    color: #ffffff;
}

.file-return {
    margin: 0;
}

.file-return:not(:empty) {
    margin: 1em 0;
}

.file-return {
    font-style: italic;
    font-size: 0.9em;
    font-weight: bold;
}

.file-return:not(:empty):before {
    content: "Fichier choisit : ";
    font-style: normal;
    font-weight: normal;
}


.sortable th {
    background: #b82d2d;
    color: #fff;
    cursor: pointer;
    font-weight: normal;
    text-align: left;
    text-transform: capitalize;
    vertical-align: baseline;
    white-space: nowrap;
}

.sortable th:hover {
    color: rgb(0, 0, 0);
}

.sortable th:hover::after {
    color: inherit;
    font-size: 1.2em;
    content: ' \025B8';
}

.sortable th::after {
    font-size: 1.2em;
    color: transparent;
    content: ' \025B8';
}

.sortable th.dir-d {
    color: #000;
}

.sortable th.dir-d::after {
    color: inherit;
    content: ' \025BE';
}

.sortable th.dir-u {
    color: #000;
}

.sortable th.dir-u::after {
    color: inherit;
    content: ' \025B4';
}

/* ==================LOADERS============= */

/* CHARGEMENT PAGE */

.spinner {
    margin: 25px auto;
    width: 43.2px;
    height: 100px;
    animation: progress-sze6ck 2.4s infinite backwards;
    background: linear-gradient(0deg, #7a1e82, #7a1e82 50%, transparent 50%, transparent);
    background-size: 100% 200%;
    background-repeat: no-repeat;
    border: 8.6px solid #e881dc;
    border-radius: 21.6px;
}

.spinner2 {
    width: 15%;
    height: 50%;
    margin: auto;
    animation: progress-sze6ck 2.9s infinite backwards;
    background: linear-gradient(0deg, #7a1e82, #7a1e82 50%, transparent 50%, transparent);
    background-size: 100% 200%;
    background-repeat: no-repeat;
    border: 8.6px solid #e881dc;
    border-radius: 21.6px;
}

@keyframes progress-sze6ck {
    0% {
        background-position: 0 0;
        transform: rotate(0deg);
    }

    25% {
        background-position: 0 100%;
        transform: rotate(0deg);
    }

    50% {
        background-position: 0 100%;
        transform: rotate(180deg);
    }

    75% {
        background-position: 0 200%;
        transform: rotate(180deg);
    }

    100% {
        background-position: 0 200%;
        transform: rotate(360deg);
    }
}



/* GESTION LOADER HTMX */

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline;
}

.htmx-request.htmx-indicator {
    display: inline;
}

.spinner_load {
    display: none;
}

.htmx-request .spinner_load {
    display: inline;
}

.htmx-request.spinner_load {
    display: inline;
}

.spinner>span {
    position: relative;
    display: inline-block;
    background-color: #ec7373;
    height: 100%;
    width: 15px;
    border-radius: 20px;
    border-style: solid;
    border-color: var(--CouleurBordureChampsInput);
    -webkit-animation: stretch-delay 1.2s infinite ease-in-out;
    animation: stretch-delay 1.2s infinite ease-in-out;
}

span.rect-2 {
    top: -10%;
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

span.rect-3 {
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}

span.rect-4 {
    top: -10%;
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

span.rect-5 {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

span.rect-6 {
    -webkit-animation-delay: -0.7s;
    animation-delay: -0.7s;
}

/* CHARGEMENT SON */

.mini_spinner_son {
    display: none;
    margin-top: 10px;
}

/* CHARGEMENT NEWSLETTER */

.mini_spinner_newsletter {
    display: none;
    margin-top: 10px;
}

@-webkit-keyframes stretch-delay {

    0%,
    40%,
    100% {
        transform: scaleY(0.85);
    }

    20% {
        transform: scaleY(1);
    }
}

@keyframes stretch-delay {

    0%,
    40%,
    100% {
        transform: scaleY(0.85);
    }

    20% {
        transform: scaleY(1);
    }
}

/* CHECKBOXES */

.checkbox-wrapper-19 {
    box-sizing: border-box;
    --background-color: #fff;
    --checkbox-height: 25px;
}

@-moz-keyframes dothabottomcheck-19 {
    0% {
        height: 0;
    }

    100% {
        height: calc(var(--checkbox-height) / 2);
    }
}

@-webkit-keyframes dothabottomcheck-19 {
    0% {
        height: 0;
    }

    100% {
        height: calc(var(--checkbox-height) / 2);
    }
}

@keyframes dothabottomcheck-19 {
    0% {
        height: 0;
    }

    100% {
        height: calc(var(--checkbox-height) / 2);
    }
}

@keyframes dothatopcheck-19 {
    0% {
        height: 0;
    }

    50% {
        height: 0;
    }

    100% {
        height: calc(var(--checkbox-height) * 1.2);
    }
}

@-webkit-keyframes dothatopcheck-19 {
    0% {
        height: 0;
    }

    50% {
        height: 0;
    }

    100% {
        height: calc(var(--checkbox-height) * 1.2);
    }
}

@-moz-keyframes dothatopcheck-19 {
    0% {
        height: 0;
    }

    50% {
        height: 0;
    }

    100% {
        height: calc(var(--checkbox-height) * 1.2);
    }
}

.checkbox-wrapper-19 input[type=checkbox] {
    display: none;
}

.checkbox-wrapper-19 .check-box {
    height: var(--checkbox-height);
    width: var(--checkbox-height);
    background-color: transparent;
    border: calc(var(--checkbox-height) * .1) solid #000;
    border-radius: 5px;
    position: relative;
    display: inline-block;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -moz-transition: border-color ease 0.2s;
    -o-transition: border-color ease 0.2s;
    -webkit-transition: border-color ease 0.2s;
    transition: border-color ease 0.2s;
    cursor: pointer;
}

.checkbox-wrapper-19 .check-box::before,
.checkbox-wrapper-19 .check-box::after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    height: 0;
    width: calc(var(--checkbox-height) * .2);
    background-color: var(--CouleurFond);
    display: inline-block;
    -moz-transform-origin: left top;
    -ms-transform-origin: left top;
    -o-transform-origin: left top;
    -webkit-transform-origin: left top;
    transform-origin: left top;
    border-radius: 5px;
    content: " ";
    -webkit-transition: opacity ease 0.5;
    -moz-transition: opacity ease 0.5;
    transition: opacity ease 0.5;
}

.checkbox-wrapper-19 .check-box::before {
    top: calc(var(--checkbox-height) * .72);
    left: calc(var(--checkbox-height) * .41);
    box-shadow: 0 0 0 calc(var(--checkbox-height) * .05) var(--background-color);
    -moz-transform: rotate(-135deg);
    -ms-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

.checkbox-wrapper-19 .check-box::after {
    top: calc(var(--checkbox-height) * .37);
    left: calc(var(--checkbox-height) * .05);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.checkbox-wrapper-19 input[type=checkbox]:checked+.check-box,
.checkbox-wrapper-19 .check-box.checked {
    border-color: var(--CouleurBordure-1);
}

.checkbox-wrapper-19 input[type=checkbox]:checked+.check-box::after,
.checkbox-wrapper-19 .check-box.checked::after {
    height: calc(var(--checkbox-height) / 2);
    -moz-animation: dothabottomcheck-19 0.2s ease 0s forwards;
    -o-animation: dothabottomcheck-19 0.2s ease 0s forwards;
    -webkit-animation: dothabottomcheck-19 0.2s ease 0s forwards;
    animation: dothabottomcheck-19 0.2s ease 0s forwards;
}

.checkbox-wrapper-19 input[type=checkbox]:checked+.check-box::before,
.checkbox-wrapper-19 .check-box.checked::before {
    height: calc(var(--checkbox-height) * 1.2);
    -moz-animation: dothatopcheck-19 0.4s ease 0s forwards;
    -o-animation: dothatopcheck-19 0.4s ease 0s forwards;
    -webkit-animation: dothatopcheck-19 0.4s ease 0s forwards;
    animation: dothatopcheck-19 0.4s ease 0s forwards;
}

/* ==================BOUTONS TOGGLE============= */

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--CouleurFond);
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* LOGOS TITRES */

.logo-titre {
    width: 30px;
    height: 30px;
    margin-right: 6px;
    margin-top: 17px
}

/* DEGRADE ANIMES */

@keyframes gradientAnimation {
    0% {
        background-color: #8a4b4b;
    }

    50% {
        background-color: #b98d53;
    }

    100% {
        background-color: #8a4b4b;
    }
}

.gradient-animated {
    background: #ddbb4b;
    animation: gradientAnimation 6s infinite;
}

/* IMAGES CLICABLES */

.clickable-image {
    display: inline-block;
    width: 200px;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.clickable-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.clickable-image:hover {
    box-shadow: 0 0 15px rgba(91, 7, 76, 0.5);
    border-radius: 15px;
}

.clickable-image:hover img {
    opacity: 0.8;
}

.dropbox-media {
    border-style: dashed;
    border-width: 3px;
    border-color: var(--CouleurBordure-1);
    background-color: var(--CouleurFondBoites3);
    border-radius: 8px;
    width: 440px;
}

.autocomplete-items {
    margin-top: 3px;
    border: 2px solid var(--CouleurBordure-1);
    border-radius: var(--RadiusBorderBoites2);
    z-index: 99;
    top: 127%;
    left: auto;
    right: inherit;
    width: fit-content;
    position: absolute;
}

/* GESTION DES TAGS */

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.tag {
    padding: 6px 6px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.tag-selected {
    background-color: var(--CouleurFond);
    color: white;
}

.tag-unselected {
    background-color: #e6e0d8;
    color: var(--color-text);
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Respect prefers-reduced-motion for tags */
@media (prefers-reduced-motion: reduce) {
    .tag {
        transition: none;
    }

    .tag:hover {
        transform: none;
        box-shadow: none;
    }
}

/* GESTION DES TAGS USER */

.tag-user {
    padding: 6px 6px;
    border-radius: 20px;
    user-select: none;
    background-color: var(--CouleurFond);
    color: white;
}


/* STYLES POUR LES MESSAGES HTMX */
.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    font-weight: bold;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    font-weight: bold;
}

/* Animation pour l'apparition des messages */
.htmx-swapping .error-message,
.htmx-swapping .success-message {
    opacity: 0;
    transform: translateY(-10px);
}

.htmx-settling .error-message,
.htmx-settling .success-message {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* STYLES POUR LA DELETION FORM */
.deletion-form {
    max-width: 800px;
    margin: 0 auto;
}

.checklist {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 15px 0;
}

.checklist h4 {
    color: #856404;
    margin-bottom: 10px;
}

.checklist ul {
    list-style-type: none;
    padding-left: 0;
}

.checklist li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.checklist li:before {
    content: "📝";
    position: absolute;
    left: 0;
}

/* STYLES POUR LA LISTE D'ACTIVITÉ */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.activity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

.activity-item.top-activity {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.activity-item.top-activity:hover {
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.activity-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    margin-right: 16px;
}

.rank-badge {
    font-size: 24px;
    line-height: 1;
}

.rank-badge.gold {
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.4));
}

.rank-badge.silver {
    filter: drop-shadow(0 2px 4px rgba(192, 192, 192, 0.4));
}

.rank-badge.bronze {
    filter: drop-shadow(0 2px 4px rgba(205, 127, 50, 0.4));
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
}

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-main {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.pseudo-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-badge.site-jacquie-et-michel {
    background: #ef4444;
    color: white;
}

.site-badge.site-6annonces {
    background: #3b82f6;
    color: white;
}

.site-badge.site-cityxguide {
    background: #8b5cf6;
    color: white;
}

.activity-details {
    margin-top: 4px;
}

.last-activity {
    font-size: 13px;
    color: #6b7280;
}

.activity-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.stat-item.significant .stat-number {
    color: #dc2626;
}

.stat-item.total .stat-number {
    color: #059669;
}

.stat-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.activity-percentage {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.percentage-bar {
    width: 60px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.percentage-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.percentage-text {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    min-width: 35px;
}

/* Style responsive pour les petits écrans */
@media (max-width: 768px) {
    .activity-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .activity-rank {
        align-self: flex-start;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .activity-stats {
        flex-direction: row;
        justify-content: space-between;
        margin-left: 0;
    }

    .activity-percentage {
        flex-direction: column;
        align-items: center;
    }

    .percentage-bar {
        width: 40px;
    }
}

/* STYLES POUR LES MODALS D'AIDE */
.section-header-with-help {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.help-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.help-button:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: scale(1.05);
}

.help-icon {
    font-size: 14px;
    line-height: 1;
}

.help-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.help-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px 12px 0 0;
}

.help-modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
}

.help-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.help-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.help-modal-body {
    padding: 24px;
}

.help-section {
    margin-bottom: 28px;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h4 {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-section p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.help-section ul {
    color: #6b7280;
    line-height: 1.6;
    padding-left: 20px;
    margin: 0;
}

.help-section li {
    margin-bottom: 6px;
}

.stats-explanation {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-explanation {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.stat-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.stat-color.significant {
    background: #dc2626;
}

.stat-color.total {
    background: #059669;
}

.stat-explanation strong {
    color: #1f2937;
    display: block;
    margin-bottom: 4px;
}

.stat-explanation p {
    margin: 0;
    font-size: 14px;
}

.percentage-explanation {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.formula {
    text-align: center;
    margin-bottom: 20px;
}

.formula-text {
    background: #dbeafe;
    color: #1e40af;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 14px;
}

.examples {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.example {
    display: flex;
    align-items: center;
    gap: 12px;
}

.example-bar {
    width: 60px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.example-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.example span {
    font-size: 14px;
    color: #374151;
}

.interpretation {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quality-level {
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid;
}

.quality-level.high {
    background: #f0fdf4;
    border-color: #16a34a;
}

.quality-level.medium {
    background: #fffbeb;
    border-color: #d97706;
}

.quality-level.low {
    background: #fef2f2;
    border-color: #dc2626;
}

.quality-level strong {
    color: #1f2937;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.quality-level p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive pour les modals */
@media (max-width: 768px) {
    .help-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }

    .help-modal-header {
        padding: 16px 20px;
    }

    .help-modal-body {
        padding: 20px;
    }

    .stats-explanation {
        gap: 12px;
    }

    .examples {
        gap: 10px;
    }

    .example {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .interpretation {
        gap: 12px;
    }

    .quality-level {
        padding: 12px;
    }
}

/* MODAL PROFILS ARCHIVES */

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.large-modal {
    width: 800px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
}

.modal-body {
    padding: 20px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.margin-left-10 {
    margin-left: 10px;
}