/* 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;
}
/* ===== Nouveau design liste offres ===== */
.cotrans-jobs-board {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}
.cotrans-jobs-search {
    position: relative;
    margin-bottom: 16px;
}
.cotrans-jobs-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}
#cotrans-jobs-keyword {
    width: 100%;
    height: 56px !important;
    padding: 0 20px 0 50px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
    box-sizing: border-box;
    box-shadow: none !important;
}
#cotrans-jobs-keyword:focus {
    border-color: #03a9f4 !important;
    outline: none;
}
.cotrans-jobs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}
.cotrans-jobs-filter {
    display: block !important;
    height: 40px !important;
    padding: 0 30px 0 14px !important;
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23666'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 14px;
    cursor: pointer;
    color: #333;
}
.cotrans-jobs-filter:focus {
    border-color: #03a9f4 !important;
    outline: none;
}
.cotrans-jobs-reset {
    height: 40px;
    padding: 0 16px;
    border: none;
    background: transparent;
    color: #03a9f4;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}
.cotrans-jobs-reset:hover {
    color: #0288d1;
}
.cotrans-jobs-count {
    font-weight: bold;
    margin-bottom: 16px;
    color: #333;
}
.cotrans-jobs-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cotrans-job-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 20px 24px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.cotrans-job-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #03a9f4;
}
.cotrans-job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}
.cotrans-job-card-title {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    flex: 1;
}
.cotrans-job-card-date {
    flex-shrink: 0;
    padding: 5px 14px;
    background: #e1f5fe;
    border-radius: 20px;
    font-size: 13px;
    color: #01579b;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.4;
}
.cotrans-job-card-excerpt {
    color: #444;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 16px;
}
.cotrans-job-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cotrans-job-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}
.cotrans-job-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #e1f5fe;
    color: #01579b;
    border: 1px solid #81d4fa;
    border-radius: 20px;
    font-size: 13px;
    line-height: 1.4;
}
.cotrans-job-tag .material-icons {
    font-size: 14px !important;
    width: 14px;
    height: 14px;
}
.cotrans-job-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 18px;
    background: #03a9f4;
    color: #fff !important;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}
.cotrans-job-card-link:hover {
    background: #0288d1;
}
.cotrans-job-card-link .material-icons {
    font-size: 18px !important;
}
.cotrans-jobs-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}
.cotrans-jobs-empty .material-icons {
    font-size: 48px !important;
    display: block;
    margin: 0 auto 10px;
}
@media (max-width: 600px) {
    .cotrans-job-card {
        padding: 16px;
    }
    .cotrans-job-card-title {
        font-size: 16px !important;
    }
    .cotrans-jobs-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .cotrans-jobs-filter {
        width: 100%;
    }
}
