/* =====================================================
   Offres d'Emploi — Frontend Styles
   ===================================================== */

/* ----- Grid ----- */
.oe-grid {
    display: grid;
    gap: 24px;
    margin: 32px 0;
}
.oe-cols-2 { grid-template-columns: repeat(2, 1fr); }
.oe-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
    .oe-cols-2,
    .oe-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* ----- Tile ----- */
.oe-tile {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 10px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.oe-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.oe-tile-inner {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.oe-tile-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #1a202c;
    line-height: 1.3;
}
.oe-tile-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .9rem;
    color: #4a5568;
    flex: 1;
}
.oe-tile-meta li { display: flex; align-items: flex-start; gap: 6px; }
.oe-icon { flex-shrink: 0; }
.oe-tile-btn {
    display: inline-block;
    margin-top: auto;
    padding: 8px 16px;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 600;
    text-align: center;
    transition: background .2s;
}
.oe-tile:hover .oe-tile-btn { background: #1d4ed8; }

.oe-no-offres {
    font-style: italic;
    color: #6b7280;
}

/* ----- Single page ----- */
.oe-single-page {
    max-width: 860px;
    margin: 40px auto;
    padding: 0 20px;
}
.oe-back {
    display: inline-block;
    margin-bottom: 20px;
    color: #2563eb;
    text-decoration: none;
    font-size: .9rem;
}
.oe-back:hover { text-decoration: underline; }
.oe-single-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 20px;
    color: #1a202c;
}
.oe-single-meta {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    margin-bottom: 32px;
}
.oe-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .95rem;
    color: #374151;
}
.oe-single-description {
    line-height: 1.8;
    color: #374151;
    margin-bottom: 48px;
}
.oe-single-description h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a202c;
}

.oe-single-button {
   margin-bottom: 3rem;
}

.oe-single-button a {
   background-color: #277bc3;
   padding: 1rem 1.5rem;
   border-radius: 12px;
   color: white;
   transition: background-color 0.5s ease;
   text-transform: uppercase;
}

.oe-single-button a:hover {
   background-color: #176ba3;
   color: white;
 }

.oe-single-button a:visited {
   color: white;
}

/* ----- Application form ----- */
.oe-application-form {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 32px;
    margin-top: 16px;
}
.oe-application-form h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1e40af;
}
.oe-form-intro {
    font-size: .95rem;
    color: #374151;
    margin-bottom: 24px;
}
