/* ====================================
   Components - Composants réutilisables
   ==================================== */

/* Tooltips génériques */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 300px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Icon Circle - Icônes circulaires (solde, statut) */
.icon-circle {
    padding-left: 3px;
    font-size: 12px;
    width: 17px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid black;
    margin-right: 2px;
    padding-top: 2px;
}

.icon-circle.green {
    background-color: #0ca60c;
    color: white;
}

.icon-circle.red {
    background-color: #C00;
    color: white;
}

.icon-circle.blue {
    background-color: #1d51bd;
    color: white;
}

.icon-circle.yellow {
    background-color: yellow;
    color: black;
}

.icon-circle.gray {
    background-color: lightgray;
    color: black;
}

/* Debug Container */
.debug-container {
    position: relative;
    display: inline-block;
}

.debug-trigger {
    cursor: pointer;
    color: #666;
    font-weight: bold;
}

.debug-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    font-size: 12px;
    white-space: nowrap;
}

/* Alert Banner */
.alert-banner {
    background-color: #C00;
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    margin-bottom: 1em;
}

.alert-banner i {
    margin-right: 10px;
    font-size: 24px;
}

/* Title Container */
.title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.title-container h1 {
    margin: 0;
}

/* Icons Container */
.icons-container {
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-link {
    font-size: 1.5em;
    color: #000;
    text-decoration: none;
}

.icon-link:hover {
    color: #21bdd0;
}

.fa-arrow-right {
    margin: 0 4px 0 4px;
}

/* PDF Viewer */
.pdf-viewer {
    display: none;
    position: absolute;
    width: 780px;
    height: 1170px;
    border: 1px solid #000;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-top: -2px;
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Form Creation ZIP */
#formCreationZip {
    display: none;
}

/* Total Dossier */
.totalDossier {
    top: 10px;
    text-align: right;
    width: 90px;
    margin-left: 3px;
    padding-left: 3px;
    padding-right: 3px;
    display: inline-block;
    border: solid 1px #063;
    font-size: 9px;
}

/* Span Superpose */
.spanSuperpose {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 600px;
    border: 1px solid grey;
    border-radius: 5px;
    padding: 5px;
    margin-top: 20px;
    margin-bottom: 7px;
    background-color: white;
    z-index: 100;
}

/* Maintenance Alert */
.maintenance-alert {
    background-color: #ffcccc;
    color: #cc0000;
    padding: 20px;
    border: 1px solid #cc0000;
    border-radius: 5px;
    margin: 20px;
    font-family: Arial, sans-serif;
}

.maintenance-alert h2 {
    margin-top: 0;
}

.contact-info {
    font-weight: bold;
}
