/* ============================================================
   Plateforme Recrutement — Feuille de style principale
   Police: Quicksand (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

/* ---------- Variables ---------- */
:root {
    --primary:       #1a3a5c;
    --primary-light: #2563a8;
    --primary-dark:  #0f2239;
    --accent:        #3b82f6;
    --accent-hover:  #2563eb;
    --success:       #16a34a;
    --danger:        #dc2626;
    --warning:       #d97706;
    --info:          #0891b2;
    --light:         #f8fafc;
    --white:         #ffffff;
    --gray-100:      #f1f5f9;
    --gray-200:      #e2e8f0;
    --gray-300:      #cbd5e1;
    --gray-400:      #94a3b8;
    --gray-500:      #64748b;
    --gray-700:      #334155;
    --gray-900:      #0f172a;
    --text:          #1e293b;
    --text-muted:    #64748b;
    --border:        #e2e8f0;
    --radius:        12px;
    --radius-lg:     20px;
    --radius-sm:     8px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow:        0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
    --shadow-lg:     0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08);
    --transition:    .2s cubic-bezier(.4,0,.2,1);
    --sidebar-w:     260px;
    --header-h:      68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    background: var(--gray-100);
    line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Layout Public ---------- */
.public-layout { display: flex; flex-direction: column; min-height: 100vh; }

/* ---------- Navbar Public ---------- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    height: var(--header-h);
}
.navbar-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.navbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.navbar-brand img { height: 40px; width: auto; object-fit: contain; }
.navbar-brand span { font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: -.3px; }
.navbar-nav { display: flex; align-items: center; gap: 4px; }
.navbar-nav a {
    padding: 8px 16px; border-radius: var(--radius-sm);
    color: var(--gray-700); font-weight: 600; font-size: 14px;
    transition: background var(--transition), color var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active { background: var(--gray-100); color: var(--primary); }
.navbar-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 100px 24px 80px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { max-width: 800px; margin: 0 auto; text-align: center; position: relative; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: #93c5fd; }
.hero p { font-size: 18px; color: rgba(255,255,255,.8); margin-bottom: 36px; }
.hero-search {
    display: flex; gap: 0; background: var(--white);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.25); max-width: 600px; margin: 0 auto;
}
.hero-search input {
    flex: 1; border: none; outline: none; padding: 18px 24px;
    font-family: 'Quicksand', sans-serif; font-size: 15px; font-weight: 500;
    color: var(--text);
}
.hero-search button {
    padding: 18px 28px; background: var(--accent); color: #fff; border: none;
    cursor: pointer; font-family: 'Quicksand', sans-serif; font-weight: 700;
    font-size: 15px; transition: background var(--transition); white-space: nowrap;
}
.hero-search button:hover { background: var(--accent-hover); }

/* ---------- Container ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-title { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.section-sub { color: var(--text-muted); margin-bottom: 40px; font-size: 16px; }

/* ---------- Cards Offres ---------- */
.offres-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.offre-card {
    background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
    padding: 28px; transition: box-shadow var(--transition), transform var(--transition);
    display: flex; flex-direction: column; gap: 14px;
}
.offre-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.offre-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.offre-card h3 { font-size: 17px; font-weight: 700; color: var(--primary); line-height: 1.3; }
.offre-card-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-item { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.meta-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.offre-card-desc { color: var(--gray-500); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.offre-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 700;
    letter-spacing: .3px; white-space: nowrap;
}
.badge-primary   { background: #dbeafe; color: #1e40af; }
.badge-success   { background: #dcfce7; color: #15803d; }
.badge-danger    { background: #fee2e2; color: #b91c1c; }
.badge-warning   { background: #fef3c7; color: #92400e; }
.badge-info      { background: #cffafe; color: #0e7490; }
.badge-secondary { background: var(--gray-100); color: var(--gray-500); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: var(--radius-sm); border: none;
    font-family: 'Quicksand', sans-serif; font-size: 14px; font-weight: 700;
    cursor: pointer; text-decoration: none; transition: all var(--transition);
    letter-spacing: .2px; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(59,130,246,.3); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 4px 16px rgba(59,130,246,.4); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary-light); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--gray-100); color: var(--text); }

/* ---------- Formulaires ---------- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 700; font-size: 13px; color: var(--gray-700); margin-bottom: 6px; letter-spacing: .3px; text-transform: uppercase; }
.form-control {
    width: 100%; padding: 11px 16px;
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    font-family: 'Quicksand', sans-serif; font-size: 15px; font-weight: 500;
    color: var(--text); background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.form-control::placeholder { color: var(--gray-400); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Alertes ---------- */
.alert {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px;
    font-weight: 600; font-size: 14px;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: #dcfce7; color: #15803d; border-left: 4px solid var(--success); }
.alert-danger   { background: #fee2e2; color: #b91c1c; border-left: 4px solid var(--danger); }
.alert-warning  { background: #fef3c7; color: #92400e; border-left: 4px solid var(--warning); }
.alert-info     { background: #dbeafe; color: #1e40af; border-left: 4px solid var(--accent); }

/* ---------- Tables ---------- */
.table-wrapper { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; }
.table th { background: var(--gray-100); padding: 12px 18px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-500); white-space: nowrap; border-bottom: 1px solid var(--border); }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; font-size: 14px; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #f8faff; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Cards Admin ---------- */
.card {
    background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.card-header {
    padding: 20px 24px 0; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 0;
}
.card-title { font-size: 16px; font-weight: 700; color: var(--primary); }
.card-body { padding: 24px; }

/* ---------- Stats Cards ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
    background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
    padding: 22px 24px; display: flex; align-items: center; gap: 16px;
    box-shadow: var(--shadow-sm); transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-icon {
    width: 52px; height: 52px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-icon.blue   { background: #dbeafe; color: #1e40af; }
.stat-icon.green  { background: #dcfce7; color: #15803d; }
.stat-icon.orange { background: #fef3c7; color: #92400e; }
.stat-icon.red    { background: #fee2e2; color: #b91c1c; }
.stat-icon.purple { background: #f3e8ff; color: #7e22ce; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-top: 4px; }

/* ---------- Layout Admin ---------- */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-w); background: var(--primary-dark); color: #fff;
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 200;
    transition: transform var(--transition);
}
.sidebar-logo {
    padding: 24px 20px; display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo img { height: 36px; width: auto; object-fit: contain; }
.sidebar-logo span { font-size: 16px; font-weight: 700; color: #fff; }
.sidebar-nav { flex: 1; padding: 16px 12px; }
.nav-section { margin-bottom: 8px; }
.nav-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.35); padding: 10px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm); color: rgba(255,255,255,.7); font-size: 14px; font-weight: 600; text-decoration: none; transition: all var(--transition); margin-bottom: 2px; }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-item.active { background: var(--accent); color: #fff; box-shadow: 0 2px 10px rgba(59,130,246,.4); }
.sidebar-footer { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-content { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
    height: var(--header-h); background: var(--white); border-bottom: 1px solid var(--border);
    padding: 0 28px; display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm);
}
.page-content { padding: 28px; flex: 1; }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 24px; font-weight: 700; color: var(--primary); }
.page-header p { color: var(--text-muted); margin-top: 4px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--gray-300); }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; gap: 4px; justify-content: center; margin-top: 24px; }
.page-item a, .page-item span {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 14px;
    border: 1px solid var(--border); background: var(--white); color: var(--text);
    text-decoration: none; transition: all var(--transition);
}
.page-item a:hover { border-color: var(--accent); color: var(--accent); }
.page-item.active span { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-item.disabled span { color: var(--gray-300); cursor: not-allowed; }

/* ---------- Candidat Layout ---------- */
.candidat-layout { display: flex; min-height: 100vh; }
.candidat-sidebar { width: var(--sidebar-w); background: var(--primary); color: #fff; position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 200; display: flex; flex-direction: column; }
.candidat-content { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; }

/* ---------- Auth Pages ---------- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 24px; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; overflow: hidden; }
.auth-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 36px 36px 28px; text-align: center; }
.auth-header img { height: 56px; margin: 0 auto 16px; }
.auth-header h1 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.auth-header p { color: rgba(255,255,255,.7); font-size: 14px; }
.auth-body { padding: 36px; }

/* ---------- Footer Public ---------- */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.6); padding: 48px 24px 24px; margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 42px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer ul a { color: rgba(255,255,255,.6); font-size: 14px; transition: color var(--transition); }
.footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }

/* ---------- Offre Détail ---------- */
.offre-detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.offre-prose h2 { font-size: 17px; color: var(--primary); margin: 24px 0 10px; }
.offre-prose p, .offre-prose li { color: var(--gray-700); font-size: 15px; line-height: 1.7; }
.offre-prose ul { padding-left: 20px; list-style: disc; }
.offre-sidebar-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 28px; position: sticky; top: calc(var(--header-h) + 20px); box-shadow: var(--shadow); }

/* ---------- Modals ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: all var(--transition); }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 24px 28px 0; display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 18px; font-weight: 700; color: var(--primary); }
.modal-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: none; background: var(--gray-100); cursor: pointer; color: var(--text-muted); transition: all var(--transition); }
.modal-close:hover { background: var(--danger); color: #fff; }
.modal-body { padding: 0 28px; }
.modal-footer { padding: 20px 28px 28px; display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- Filter Bar ---------- */
.filter-bar { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 16px 20px; margin-bottom: 20px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-bar .form-control { min-width: 180px; margin: 0; padding: 8px 14px; font-size: 14px; }
.filter-bar .btn { height: 40px; }

/* ---------- Empty State ---------- */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-state svg { width: 64px; height: 64px; color: var(--gray-300); margin: 0 auto 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--gray-500); margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .offre-detail-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    :root { --sidebar-w: 0px; }
    .sidebar, .candidat-sidebar { transform: translateX(-260px); }
    .sidebar.open, .candidat-sidebar.open { transform: translateX(0); width: 260px; }
    .admin-content, .candidat-content { margin-left: 0; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .navbar-nav { display: none; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .offres-grid { grid-template-columns: 1fr; }
}
/* ============================================================
   MOBILE OPTIMISÉ — Coller à la fin de main.css
   ============================================================ */

@media (max-width: 768px) {

    /* --- Navbar --- */
    .navbar-inner { padding: 0 16px; }
    .navbar-brand span { font-size: 15px; }
    .navbar-brand img { height: 32px; }
    .navbar-actions { display: none; }
    #menu-toggle { display: flex !important; }

    /* --- Hero --- */
    .hero { padding: 56px 16px 48px; }
    .hero h1 { font-size: 1.7rem; }
    .hero p { font-size: 15px; }
    .hero-search { flex-direction: column; border-radius: var(--radius); }
    .hero-search input { padding: 16px 18px; border-radius: var(--radius) var(--radius) 0 0; }
    .hero-search button { border-radius: 0 0 var(--radius) var(--radius); justify-content: center; padding: 16px; }

    /* --- Container --- */
    .container { padding: 0 16px; }
    .section { padding: 40px 0; }
    .section-title { font-size: 22px; }

    /* --- Cards offres --- */
    .offres-grid { grid-template-columns: 1fr; gap: 14px; }
    .offre-card { padding: 20px; }
    .offre-card-footer { flex-direction: column; gap: 10px; align-items: flex-start; }
    .offre-card-footer .btn { width: 100%; justify-content: center; }

    /* --- Formulaires --- */
    .auth-card { border-radius: var(--radius); }
    .auth-header { padding: 28px 24px 22px; }
    .auth-body { padding: 24px; }
    .auth-header h1 { font-size: 18px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }

    /* --- Topbar admin/candidat --- */
    .topbar { padding: 0 16px; height: 58px; }
    .page-content { padding: 16px; }
    .page-header h1 { font-size: 20px; }

    /* --- Stats --- */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 16px; gap: 12px; }
    .stat-value { font-size: 22px; }
    .stat-icon { width: 42px; height: 42px; }

    /* --- Tables --- */
    .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table th, .table td { padding: 10px 12px; font-size: 13px; }

    /* --- Filter bar --- */
    .filter-bar { flex-direction: column; gap: 10px; padding: 14px 16px; }
    .filter-bar .form-control { min-width: unset; width: 100%; }
    .filter-bar .btn { width: 100%; justify-content: center; }

    /* --- Boutons --- */
    .btn-lg { padding: 14px 20px; font-size: 15px; }

    /* --- Footer --- */
    .footer { padding: 36px 16px 20px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    /* --- Offre détail --- */
    .offre-sidebar-card { position: static; }
    .offre-detail-layout { gap: 20px; }

    /* --- Modal --- */
    .modal { margin: 0 8px; }
    .modal-header { padding: 20px 20px 0; }
    .modal-body { padding: 0 20px; }
    .modal-footer { padding: 16px 20px 24px; }

    /* --- Page candidat/admin : masquer le texte long des badges --- */
    .table-actions { gap: 4px; }
}

@media (max-width: 400px) {
    .hero h1 { font-size: 1.45rem; }
    .navbar-brand span { display: none; } /* Juste le logo sur très petit écran */
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { flex-direction: row; }
    .auth-page { padding: 12px; }
}