/* =====================================================
   CDD Offres Emploi — Styles frontend
   ===================================================== */

.cdd-oe-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    font-family: inherit;
}

/* --- Filtres --- */
.cdd-oe-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.cdd-oe-filter-btn {
    padding: 7px 16px;
    border: 2px solid #1a3a6b;
    border-radius: 20px;
    background: #fff;
    color: #1a3a6b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    line-height: 1;
}
.cdd-oe-filter-btn:hover,
.cdd-oe-filter-btn.active {
    background: #1a3a6b;
    color: #fff;
}

/* --- Compteur --- */
.cdd-oe-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}
.cdd-oe-count strong {
    color: #1a3a6b;
    font-size: 18px;
}

/* --- Grille --- */
.cdd-oe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* --- Carte --- */
.cdd-oe-card {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow .2s ease, transform .15s ease;
    position: relative;
    overflow: hidden;
}
.cdd-oe-card:hover {
    box-shadow: 0 6px 24px rgba(26,58,107,.12);
    transform: translateY(-2px);
}

/* Badge top (ex: "Reconvertis bienvenus") */
.cdd-oe-badge-top {
    position: absolute;
    top: 0; right: 0;
    background: #f0faf4;
    color: #1a7a4a;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-bottom-left-radius: 8px;
    letter-spacing: .3px;
}

/* Header carte */
.cdd-oe-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.cdd-oe-title-wrap {
    flex: 1;
}
.cdd-oe-card-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 4px !important;
    line-height: 1.3 !important;
    color: #1a1a2e !important;
}
.cdd-oe-entreprise {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}
.cdd-oe-contrat-badge {
    padding: 4px 10px;
    border-radius: 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Tags */
.cdd-oe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cdd-oe-tag {
    background: #f2f4f8;
    color: #444;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 10px;
    white-space: nowrap;
}
.cdd-oe-tag-remote { background: #e8f4fd; color: #1a6b9a; }
.cdd-oe-tag-salaire { background: #fef9e7; color: #856404; }

/* Technologies */
.cdd-oe-technos {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.cdd-oe-techno {
    background: #eef0fe;
    color: #3730a3;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 8px;
}

/* Description */
.cdd-oe-description {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}
.cdd-oe-description p {
    margin: 0;
}

/* Pourquoi */
.cdd-oe-pourquoi {
    font-size: 13px;
    color: #1a7a4a;
    background: #f0faf4;
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #1a7a4a;
}

/* Footer carte */
.cdd-oe-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    gap: 10px;
}
.cdd-oe-date,
.cdd-oe-deadline {
    font-size: 12px;
    color: #888;
}
.cdd-oe-deadline.cdd-oe-urgent {
    color: #c0392b;
    font-weight: 600;
}

/* CTA bouton */
.cdd-oe-cta {
    display: inline-block;
    padding: 8px 18px;
    background: #1a3a6b;
    color: #fff !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .15s ease;
    white-space: nowrap;
}
.cdd-oe-cta:hover {
    background: #142d55;
    color: #fff !important;
}

/* Message aucun résultat */
.cdd-oe-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 15px;
}
.cdd-oe-reset-link {
    background: none;
    border: none;
    color: #1a3a6b;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
    padding: 0;
}

/* État vide (aucune offre publiée) */
.cdd-oe-vide {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fc;
    border-radius: 16px;
    border: 2px dashed #d0d8e8;
}
.cdd-oe-vide-icon { font-size: 48px; margin-bottom: 16px; }
.cdd-oe-vide h3 { font-size: 22px; color: #1a3a6b; margin-bottom: 10px; }
.cdd-oe-vide p  { color: #666; font-size: 15px; line-height: 1.6; }

/* Carte masquée par le filtre JS */
.cdd-oe-card.cdd-oe-hidden {
    display: none;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .cdd-oe-grid {
        grid-template-columns: 1fr;
    }
    .cdd-oe-card-header {
        flex-direction: column;
    }
    .cdd-oe-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .cdd-oe-cta {
        width: 100%;
        text-align: center;
    }
}
