/* ============================================================
   prochemploi.css — Modale calquée sur le design agenda
   + bouton PDF
   ============================================================ */

/* --- Tableaux des offres --- */
.responsive-table {
    width: 80%;
    border-collapse: collapse;
    margin: 20px 0;
}
.responsive-table th,
.responsive-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}
.responsive-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}
.responsive-table tr:hover {
    background-color: #f9f9f9;
}

/* ============================================================
   MODALE — même architecture que la modale agenda
   ============================================================ */

#hc-modal.hc-event-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    background-color: rgba(0, 0, 0, 0.77);
}

#hc-modal .hc-modal-content {
    background-color: #000000;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 90%;
    max-width: 700px;
    max-height: 90%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
}

/* --- Header noir : bouton PDF à gauche, × à droite --- */
#hc-modal .hc-modal-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    padding: 5px 10px;
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 44px;
    gap: 8px;
}

/* --- Bouton PDF --- */
#hc-modal .hc-modal-header #hc-download-pdf-btn {
    background-color: #0d6a9f;
    color: #ffffff;
    border: 2px solid #0a5280;
    border-radius: 3px;
    height: 30px;
    line-height: 1em;
    font-size: 13px;
    padding: 0 10px;
    white-space: nowrap;
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.15s ease;
}
#hc-modal .hc-modal-header #hc-download-pdf-btn:hover {
    background-color: #0a5280;
}
#hc-modal .hc-modal-header #hc-download-pdf-btn:active {
    box-shadow: 0 0 0 3px #ffffff;
    border-color: #1b283b;
}
#hc-modal .hc-modal-header #hc-download-pdf-btn:disabled {
    background-color: #555;
    border-color: #444;
    cursor: not-allowed;
    opacity: 0.7;
}

/* --- Bouton × --- */
#hc-modal .hc-close {
    float: none;
    font-size: 39px;
    line-height: 1;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}
#hc-modal .hc-close:hover,
#hc-modal .hc-close:focus {
    color: rgb(219, 0, 0);
    text-decoration: none;
}

/* --- Corps blanc --- */
#hc-modal-body.hc-modal-details {
    background-color: #ffffff;
    padding: 10px;
    margin-top: 0;
}

/* --- Titres dans le corps --- */
#hc-modal-body h1 {
    font-size: 28px;
    color: rgb(1, 124, 182);
    margin-bottom: 8px;
}
#hc-modal-body h2 {
    font-size: 22px;
    background-color: #02516d;
    color: #ffffff;
    padding: 4px 8px;
    margin-bottom: 6px;
    text-align: center;
}
#hc-modal-body h3 { font-size: 18px; color: #5f0505; }
#hc-modal-body h4 { font-size: 15px; color: #043f30; }
#hc-modal-body p  { margin-top: 5px; margin-bottom: 10px; padding-left: 5px; }

/* --- Masquage des éléments parasites du site tiers --- */
#hc-modal-body #searchbox             { display: none; }
#hc-modal-body .col-lg-7 a img        { display: none; }
#hc-modal-body header .container      { display: none; }
#hc-modal-body .texte .text-right a   { display: none; }
#hc-modal-body #footer .container     { display: none; }
#hc-modal-body #entreprises-nav-menu  { display: none; }
#hc-modal-body #scrollToTopButton     { display: none; }

/* ============================================================
   SPINNER — même design que spinner.css agenda
   ============================================================ */
#hc-spinner.hc-loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
}
#hc-spinner .hc-spinner-wheel {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: hc-spin 1s linear infinite;
}
@keyframes hc-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    #hc-modal .hc-modal-content {
        width: 98%;
        max-height: 95%;
    }
    #hc-modal .hc-modal-header #hc-download-pdf-btn {
        font-size: 11px;
        padding: 0 6px;
    }
}
