/* Styles pour les offres d'emploi */

/* Couleurs */
.color-cotrans {
    color: #0070c0;
}

/* Titres */
.title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.title.text-center {
    text-align: center;
}

/* Alertes */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.alert i.material-icons {
    margin-right: 10px;
    font-size: 24px;
}

.alert p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.alert.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.alert.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.cotrans-jobs {
    padding: 4rem 0;
}

/* Liste des offres */
.jobs-list {
    margin: 2rem 0;
}

.job-card {
    display: block;
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #0070c0;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.job-card:hover {
    background: #0070c0;
    color: #fff;
    transform: translateX(5px);
}

.job-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.job-card:hover .job-category {
    color: rgba(255, 255, 255, 0.8);
}

.job-location {
    font-style: italic;
}

.job-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.job-card .job-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1976D2;
}

.job-card .job-location,
.job-card .job-type {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #666;
}

.job-card .material-icons {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Styles pour le détail de l'offre */
.jobs {
    padding: 2rem 0;
}

.jobs .text-center {
    text-align: center;
}

.jobs .title {
    font-weight: 700;
}

.jobs .color-cotrans {
    color: #357dc1;
}

/* Titre de l'offre */
.jobs .candidature-title {
    margin-bottom: 30px;
}

.jobs .candidature-title-item {
    margin: 15px 0;
}

.jobs .candidature-title-item h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Informations de l'offre */
.jobs .candidature-infos {
    margin: 30px 0;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 4px;
}

.jobs .candidature-infos-item {
    margin: 15px 0;
}

.jobs .candidature-infos-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.jobs .candidature-infos-item strong {
    color: #333;
}

/* Détail de l'offre */
.jobs .candidature-detail {
    margin: 30px 0 60px;
}

.jobs .candidature-detail-item {
    margin: 30px 0;
    padding: 2rem;
    background: #fff;
}

.jobs .candidature-detail-item h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    color: #0070c0;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Formulaire de candidature */
.candidature-form {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.candidature-form-item {
    margin-bottom: 2rem;
}

#forms-iframe-loader {
    text-align: center;
    padding: 2rem;
}

#forms-iframe-loader .loader-spinner {
    font-size: 2rem;
    color: #0070c0;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#candidature-iframe-spontanee {
    width: 100%;
    height: 3400px;
    border: none;
    margin-top: 1rem;
}

.jobs .candidature-form-item h3 {
    margin-bottom: 30px;
    color: #0070c0;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

/* Iframe */
.jobs #candidature-iframe {
    height: 3400px !important;
    overflow-y: scroll;
    border: none;
    width: 100%;
    margin-top: 30px;
    background: #fff;
}

@media screen and (max-width: 1170px) {
    .jobs #candidature-iframe {
        height: 3800px;
    }
}

.jobs #candidature-iframe-spontanee {
    height: 3500px;
    overflow-y: auto;
}

@media screen and (max-width: 1170px) {
    .jobs #candidature-iframe-spontanee {
        height: 4200px;
    }
}

/* Loader pour l'iframe */
#forms-iframe-loader {
    margin: 40px auto;
    text-align: center;
}

#forms-iframe-loader .loader-spinner {
    display: inline-block;
    color: #0070c0;
    font-size: 48px;
    animation: spin 2s infinite linear;
}

#forms-iframe-loader p {
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.job-card .job-excerpt {
    margin: 1rem 0;
    flex-grow: 1;
}

.job-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Détail de l'offre */
.job-detail .job-header {
    margin-bottom: 3rem;
}

.job-detail .job-title {
    font-size: 2.5rem;
    color: #1976D2;
    margin-bottom: 1rem;
}

.job-detail .job-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.job-detail .job-meta > div {
    display: flex;
    align-items: center;
    color: #666;
}

.job-detail .job-content {
    margin-bottom: 3rem;
}

.job-detail .job-content h2 {
    color: #1976D2;
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.job-detail .job-apply {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 4px;
}

.job-detail .job-apply h2 {
    margin-bottom: 1.5rem;
}

.application-frame {
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .job-detail .job-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .job-detail .job-title {
        font-size: 2rem;
    }
}

.job-card:hover .job-title, .job-card:hover .job-location {
    color: #fff;
}