/**
 * Recrutements Entrypoints — Particle CSS (mars 2026)
 * Univ-Droit
 * 3 sections : cards d'entrée, timeline échéances, derniers recrutés
 */

/* ========================================
   SECTION
   ======================================== */
.rec-section {
    padding: 32px 0 8px;
}

.rec-section__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-left: 16px;
    border-left: 4px solid #c8102e;
    margin-bottom: 20px;
    line-height: 1.3;
}

.rec-section__intro {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 680px;
}

/* ========================================
   GRID — Cards d'entrée
   ======================================== */
.rec-grid {
    display: grid;
    gap: 14px;
}

.rec-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rec-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rec-grid--5 { grid-template-columns: repeat(5, 1fr); }

/* ========================================
   CARD
   ======================================== */
.rec-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #ebebeb;
    border-left: 4px solid #c8102e;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    position: relative;
}

.rec-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

/* Icon column */
.rec-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    min-width: 56px;
    background: #fafaf9;
    border-right: 1px solid #f0efed;
    transition: background 0.2s;
}

.rec-card:hover .rec-card__icon {
    background: #fef2f2;
}

.rec-card__icon i {
    font-size: 1.3rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.rec-card:hover .rec-card__icon i {
    opacity: 1;
}

/* Content */
.rec-card__body {
    flex: 1;
    padding: 14px 12px;
    min-width: 0;
}

.rec-card__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
    line-height: 1.3;
    transition: color 0.15s;
}

.rec-card:hover .rec-card__title {
    color: #c8102e;
}

.rec-card__subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #999;
    margin-bottom: 6px;
}

.rec-card__counter {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.rec-card__counter-num {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.rec-card__counter-text {
    font-size: 0.7rem;
    color: #999;
    font-weight: 500;
}

.rec-card__desc {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Arrow */
.rec-card__arrow {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #ddd;
    font-size: 0.8rem;
    transition: color 0.2s, transform 0.2s;
}

.rec-card:hover .rec-card__arrow {
    color: #c8102e;
    transform: translateX(3px);
}

/* ========================================
   TIMELINE — Prochaines échéances
   ======================================== */
.rec-timeline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

a.rec-timeline__item,
a.rec-hired-card {
    text-decoration: none;
    color: inherit;
}

a.rec-timeline__item:hover,
a.rec-hired-card:hover {
    text-decoration: none;
    color: inherit;
}

.rec-timeline__item {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ebebeb;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
}

.rec-timeline__item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

/* Badge J-N */
.rec-timeline__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 8px 6px;
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
}

.rec-timeline__item--safe .rec-timeline__badge     { background: #00af2b; }
.rec-timeline__item--low .rec-timeline__badge      { background: #d3e100; color: #333; }
.rec-timeline__item--medium .rec-timeline__badge    { background: #e7a000; }
.rec-timeline__item--high .rec-timeline__badge      { background: #ff6464; }
.rec-timeline__item--critical .rec-timeline__badge  { background: #760c3d; }

.rec-timeline__days {
    white-space: nowrap;
}

/* Content */
.rec-timeline__content {
    flex: 1;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.rec-timeline__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rec-timeline__logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
    background: #f5f5f5;
    padding: 3px;
    flex-shrink: 0;
}

.rec-timeline__info {
    flex: 1;
    min-width: 0;
}

.rec-timeline__title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rec-timeline__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.rec-timeline__chip {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

.rec-timeline__chip--ec           { background: #fce4ec; color: #c8102e; }
.rec-timeline__chip--ater         { background: #e0f2f1; color: #0f7173; }
.rec-timeline__chip--contractuel  { background: #fff3e0; color: #e7a000; }
.rec-timeline__chip--hors-univ    { background: #f3e5f5; color: #760c3d; }

.rec-timeline__univ {
    font-size: 0.72rem;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rec-timeline__date {
    font-size: 0.72rem;
    color: #999;
    margin-top: 4px;
}

.rec-timeline__date i {
    margin-right: 3px;
}

/* ========================================
   HIRED — Derniers recrutés
   ======================================== */
.rec-section--hired {
    background: #fafaf9;
    margin: 24px -20px 0;
    padding: 28px 20px 16px;
    border-radius: 8px;
}

.rec-hired-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.rec-hired-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border-radius: 6px;
    padding: 14px;
    border: 1px solid #ebebeb;
    transition: box-shadow 0.2s, transform 0.15s;
}

.rec-hired-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.rec-hired-card__logo {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.rec-hired-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rec-hired-card__body {
    flex: 1;
    min-width: 0;
}

.rec-hired-card__name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 2px;
}

.rec-hired-card__poste {
    font-size: 0.72rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
}

.rec-hired-card__univ {
    font-size: 0.68rem;
    color: #999;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rec-hired-card__date {
    font-size: 0.68rem;
    color: #bbb;
    margin-top: 4px;
}

.rec-hired-card__date i {
    margin-right: 3px;
    color: #00af2b;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1199px) {
    .rec-grid--5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 959px) {
    .rec-grid--3,
    .rec-grid--4,
    .rec-grid--5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .rec-timeline {
        grid-template-columns: 1fr;
    }

    .rec-hired-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rec-section--hired {
        margin: 24px -12px 0;
        padding: 24px 12px 12px;
    }
}

@media (max-width: 639px) {
    .rec-grid--2,
    .rec-grid--3,
    .rec-grid--4,
    .rec-grid--5 {
        grid-template-columns: 1fr;
    }

    .rec-card__icon {
        width: 46px;
        min-width: 46px;
    }

    .rec-card__icon i { font-size: 1.1rem; }
    .rec-card__title { font-size: 0.82rem; }
    .rec-card__counter-num { font-size: 1.1rem; }
    .rec-card__arrow { padding: 0 8px; }

    .rec-timeline__badge {
        min-width: 50px;
        font-size: 0.75rem;
    }

    .rec-timeline__title {
        font-size: 0.78rem;
    }

    .rec-hired-grid {
        grid-template-columns: 1fr;
    }

    .rec-section__title { font-size: 0.95rem; }

    .rec-section--hired {
        margin: 16px -8px 0;
        padding: 20px 8px 10px;
    }
}
