/**
 * FICHE-PAIE.FR - Générateur de bulletins de paie
 *
 * @copyright 2025-2026 Purple Telecom EURL
 * @license   Proprietary - All Rights Reserved
 * @author    Fabien HIRIART <contact@polygonlab.ai>
 *
 * This software is the property of Purple Telecom EURL.
 * Unauthorized use is strictly prohibited.
 */

/* ========================================
   MODAL À PROPOS - BRANDING FICHE-PAIE.FR
   ======================================== */

/* Overlay */
.modal-about-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
}

/* Box */
.modal-about-box {
    background: #ffffff;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    animation: modalAboutAppear 0.3s ease-out;
}

@keyframes modalAboutAppear {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Bouton X */
.modal-about-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: background 0.2s;
    z-index: 10;
    padding: 0;
}

.modal-about-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Header - Couleur branding sidebar */
.modal-about-header {
    background: linear-gradient(180deg, #1d458c 0%, #152d5c 100%);
    color: #ffffff;
    padding: 20px 25px;
    text-align: center;
}

.modal-about-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #ffffff;
}

.modal-about-subtitle {
    font-size: 13px;
    opacity: 0.85;
    margin: 0 0 15px 0;
    color: #ffffff;
}

.modal-about-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-about-badges .badge-version {
    background: #28a745;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.modal-about-badges .badge-build {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
}

/* Contenu - fond bleu branding */
.modal-about-content {
    background: #152d5c;
    padding: 18px 25px;
    color: #ffffff;
}

.modal-about-section {
    margin-bottom: 14px;
}

.modal-about-section:last-of-type {
    margin-bottom: 10px;
}

.modal-about-section .section-label {
    font-size: 9px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    text-align: center;
}

.modal-about-section .section-text {
    font-size: 13px;
    color: #ffffff;
    line-height: 1.6;
    text-align: center;
}

.modal-about-section .section-text strong {
    color: #ffffff;
    font-weight: 600;
}

/* Legal Box */
.modal-legal-box {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 11px;
    color: #ffc107;
    line-height: 1.5;
}

.modal-legal-box svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #ffc107;
}

/* API List - Compact */
.modal-api-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.api-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.api-item .api-name {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
}

.api-item .api-desc {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
}

/* Copyright */
.modal-about-copyright {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Liens */
.modal-about-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 25px;
    background: #f8f9fa;
    flex-wrap: wrap;
}

.modal-about-links a {
    font-size: 11px;
    color: #1d458c;
    text-decoration: none;
}

.modal-about-links a:hover {
    text-decoration: underline;
}

/* Bouton Fermer */
.modal-about-action {
    padding: 15px 25px 20px;
    text-align: center;
    background: #f8f9fa;
}

.btn-modal-fermer {
    background: linear-gradient(180deg, #1d458c 0%, #152d5c 100%);
    color: #ffffff;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-modal-fermer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(21, 45, 92, 0.5);
}

/* ™ et ® ne doivent pas affecter le centrage */
.modal-about-title sup,
.modal-about-section .section-text sup,
.modal-about-copyright sup {
    position: absolute;
    font-size: 0.55em;
    margin-left: 2px;
}
.modal-about-title,
.modal-about-section .section-text,
.modal-about-copyright {
    position: relative;
}

/* Responsive */
@media (max-width: 480px) {
    .modal-about-box { max-width: 100%; margin: 10px; }
    .modal-about-header { padding: 25px 20px; }
    .modal-about-title { font-size: 18px; }
    .modal-about-badges { flex-direction: column; gap: 8px; }
    .api-item { flex-direction: column; align-items: flex-start; gap: 4px; }
}
