/* =================================================================
   Styles pour la page Recrutements
   Date: 2026-03-04
   ================================================================= */

/* Container principal */
.recrutements-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.recrutements-intro {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.recrutements-intro h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 10px;
}

.recrutements-intro p {
    font-size: 1.05em;
    color: #555;
    line-height: 1.6;
}

/* Sections */
.recrutements-section {
    margin-bottom: 50px;
}

.recrutements-section h2 {
    color: #0066cc;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

.recrutements-section h2.section-stages {
    color: #8e44ad;
    border-bottom-color: #8e44ad;
}

/* Cards de recrutement */
.recrutement-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.recrutement-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.recrutement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Badges de type */
.recrutement-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.badge-etude {
    background-color: #e8f4fd;
    color: #0066cc;
}

.badge-stage {
    background-color: #f3e8fd;
    color: #8e44ad;
}

.badge-these {
    background-color: #fde8e8;
    color: #c0392b;
}

/* Contenu de la card */
.recrutement-card h3 {
    font-size: 1.15em;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.recrutement-card .recrutement-description {
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.recrutement-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85em;
    color: #666;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.recrutement-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.recrutement-meta .meta-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* Date limite en évidence */
.date-limite {
    color: #e67e22;
    font-weight: 600;
}

.date-limite.urgente {
    color: #e74c3c;
}

/* Profil recherché */
.recrutement-profil {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 10px 15px;
    margin-top: 10px;
    font-size: 0.85em;
    color: #555;
}

.recrutement-profil strong {
    color: #333;
    display: block;
    margin-bottom: 4px;
}

/* Contact */
.recrutement-contact {
    margin-top: 15px;
}

.recrutement-contact a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9em;
}

.recrutement-contact a:hover {
    text-decoration: underline;
}

/* Message vide */
.recrutements-vide {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* Admin styles */
.admin-recrutements {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 3px solid #e0e0e0;
}

.admin-recrutements h2 {
    color: #333;
    margin-bottom: 20px;
}

.admin-form-container {
    display: none;
    margin-top: 20px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.admin-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.admin-form .form-row .form-group {
    flex: 1;
}

.admin-form .form-group {
    margin-bottom: 15px;
}

.admin-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.admin-form .form-group input,
.admin-form .form-group textarea,
.admin-form .form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.admin-form .form-group input:focus,
.admin-form .form-group textarea:focus,
.admin-form .form-group select:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 102, 204, 0.3);
}

.recrutement-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 13px;
}

.recrutement-table th,
.recrutement-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.recrutement-table th {
    background-color: #f2f2f2;
}

.recrutement-table .invisible {
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .recrutement-cards {
        grid-template-columns: 1fr;
    }

    .admin-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .recrutements-container {
        padding: 0 15px;
    }
}
