/* Boîte principale de la modale des métiers */
.dialogue-metier {
    border: none;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 680px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    background: #ffffff;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 85vh;
}

/* Arrière-plan flouté de la modale active */
.dialogue-metier::backdrop {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
}

/* Titre principal du métier */
.dialogue-metier h2 {
    color: #1e3a8a;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    border-bottom: 2px solid #f0f4ff;
    padding-bottom: 12px;
}

/* Paragraphe de description courte */
.dialogue-metier #job-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #334155;
    margin: 0 0 20px 0;
}

/* Sections internes (Missions et Compétences) */
.pop-section {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.pop-section h3 {
    font-size: 1.2rem;
    color: #1e3a8a;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.pop-section h3 i {
    color: #3b82f6;
    font-size: 1.1rem;
}

/* Listes de détails avec puces bleues personnalisées */
.pop-section ul {
    margin: 0;
    padding-left: 18px;
    list-style-type: none;
}

.pop-section ul li {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 8px;
    position: relative;
}

.pop-section ul li::before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Pied de la modale et boutons d'action */
.pied-pop {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 2px solid #f0f4ff;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.job-postuler,
.job-fermer {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 200ms ease;
    border: none;
}

.job-postuler {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
}

.job-postuler:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.job-fermer {
    background-color: #f1f5f9;
    color: #475569;
}

.job-fermer:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

@media screen and (max-width: 768px) {
    .popup-metier-modal {
        width: 95% !important;
        max-height: 90vh !important;
        padding: 20px !important;
    }

    .popup-metier-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .popup-metier-title {
        font-size: 1.4rem !important;
    }

    .popup-metier-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}