:root { --primary: #0056A6; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif; background:#f8fafc; color:#111; margin:0; }
.header { background:var(--primary); color:#fff; padding:24px; }
.container { max-width:1100px; margin:0 auto; padding:24px; }
.card { background:#fff; border:1px solid #e5e7eb; border-radius:16px; padding:20px; margin-bottom:16px; box-shadow:0 2px 10px rgba(0,0,0,.04); }
.badge { display:inline-block; padding:4px 10px; border-radius:999px; border:1px solid #e5e7eb; font-size:12px; color:#374151; margin-right:6px; }
.btn { background:var(--primary); color:#fff; padding:10px 14px; border-radius:12px; text-decoration:none; display:inline-block; }
.btn:hover { opacity:.9; }
.grid { display:grid; gap:16px; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); }
small.muted{ color:#6b7280; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-row .full{ grid-column:1 / -1; }
input, textarea, select { width:100%; padding:10px; border:1px solid #d1d5db; border-radius:10px; font-size:14px; }
label{ font-size:13px; color:#374151; margin-bottom:6px; display:block; }
.alert{ padding:12px 14px; border-radius:10px; margin-bottom:12px; }
.alert.success{ background:#ecfdf5; border:1px solid #10b981; color:#065f46; }
.alert.error{ background:#fef2f2; border:1px solid #ef4444; color:#7f1d1d; }
.pagination {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.page-info {
    font-weight: 600;
    color: #333;
}

.page-btn {
    padding: 8px 16px;
    background: #0056b9;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.page-btn:hover {
    background: #003f8f;
}

.page-btn.disabled {
    background: #b5b5b5;
    pointer-events: none;
}
/* ============================
   FORMULAIRE POSTULER — DCONSEIL
   Version moderne + simple
   ============================ */

/* Conteneur principal */
.form-wrapper {
    max-width: 900px;
    margin: 40px auto 60px;
    padding: 35px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Header titre */
.form-wrapper-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Labels */
form label {
    display: block;
    margin-top: 18px;
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

/* Inputs, selects, textarea */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form select,
form textarea {
    width: 100%;
    padding: 14px 14px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    transition: 0.2s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,86,166,0.18);
    outline: none;
}

/* Select pays — flèche moderne */
form select {
    appearance: none;
    background: white url('data:image/svg+xml;utf8,<svg fill="%23666" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>')
        no-repeat right 14px center;
    background-size: 16px;
}

/* Textarea */
form textarea {
    resize: vertical;
    min-height: 110px;
}

/* Upload CV */
form input[type="file"] {
    padding: 12px;
    background: #f9fbff;
    border: 2px dashed #cdd7ff;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}

form input[type="file"]:hover {
    border-color: var(--primary);
    background: #eef4ff;
}

/* Bouton d’envoi */
form button[type="submit"] {
    margin-top: 28px;
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 17px;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.25s ease;
}

form button[type="submit"]:hover {
    background: #004489;
}

/* Responsive */
@media(max-width: 600px){
    .form-wrapper {
        padding: 25px;
    }
}
