/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
}

/* Popup Styles */
.popup-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.popup-buttons div {
    margin: 0 10px;
    text-align: center;
    display: flex;
    align-items: center;
}

.popup-buttons img {
    width: 17px;
    height: 17px;
    cursor: pointer;
    margin-right: 5px;
}

.popup-buttons .count {
    font-size: 11px;
}

.class_react {
    display: flex;
    align-items: center;
}

.class_react button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.class_react button img {
    display: inline-block;
}

.count {
    margin-left: 5px;
}

/* Styles pour les liens légaux dans la section info */
.legal-link {
    color: #1ABC9C;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legal-link:hover {
    color: #16A085;
    text-decoration: underline;
    transform: translateX(3px);
}

.legal-link i {
    font-size: 16px;
    color: #1ABC9C;
}

.link-description {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: normal;
}

/* Responsive pour les liens légaux */
@media (max-width: 768px) {
    .legal-link {
        font-size: 14px;
    }
    
    .link-description {
        display: block;
        margin-left: 24px;
        margin-top: 4px;
    }
}

#fileLabel:hover {
    background-color: #0056b3;
}

#submitBtn {
    display: inline-flex;
    align-items: center;
    padding: 10px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#submitBtn i {
    margin-right: 5px;
}

#submitBtn:hover {
    background-color: #218838;
}

#progressDiv,#imageProgressDiv {
    margin-top: 20px;
}

/* Container and Text Styles */
.container {
    border: 1px solid black;
    padding: 10px;
    width: 300px;
}

.name {
    font-weight: bold;
    font-size: 1.2em;
}

.text {
    margin-top: 10px;
}
/*reglage popup*/
/* Style pour le popup */
.popup-reglage {
    display: none; /* Caché par défaut */
    position: absolute;
    right: 10px;
    top: 50px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.popup-reglage ul {
    list-style: none;
    margin: 0;
    padding: 10px;
}

.popup-reglage ul li {
    padding: 8px 12px;
}

.popup-reglage ul li a {
    text-decoration: none;
    color: #333;
}

.popup-reglage ul li:hover {
    background-color: #f2f2f2;
}

/*======================img loading===============*/
/* Style pour le popup de chargement de l'image */
.image-popup-loading {
    padding: 20px;
    text-align: center;
    font-family: sans-serif;
    color: #555;
}

/* Animation simple du spinner */
.spinner {
    margin: 0 auto 10px auto;
    width: 32px;
    height: 32px;
    border: 4px solid #f3f3f3; /* Gris clair */
    border-top: 4px solid #3498db; /* Bleu */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Style pour le message d'erreur */
.image-popup-error {
    padding: 20px;
    text-align: center;
    font-family: sans-serif;
    color: #e74c3c; /* Rouge */
}

/* Animation Keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*ANIMATION SUPRESSION MOTS DANGEREUX*/
.fade-out {
    animation: fadeOut 0.5s ease-in forwards;
    background-color: #ffdddd;
    color: red;
    font-weight: bold;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/*desactivation logout */
a.disabled {
    pointer-events: none;
    color: gray;
    opacity: 0.5;
    cursor: not-allowed;
}

/* Conteneur principal de la section Info */
.info-card {
    background: var(--side);
    color: var(--text); /* Utilise la couleur de texte du thème */
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

/* Titres */
.section-title {
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.info-subtitle {
    color: var(--text);
    opacity: 0.8; /* Légèrement estompé au lieu d'un gris fixe (text-muted) */
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

/* Liste personnalisée sans bordures Bootstrap gênantes */
.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
}

.custom-list li:last-child {
    border-bottom: none;
}

.custom-list li strong {
    color: var(--primary);
}

/* Adaptation spécifique pour le mode sombre si nécessaire */
[data-theme="dark"] .info-subtitle {
    opacity: 0.9;
    color: #fff;
}