/* ============================================================
   Basik Talents — Feuille de styles principale
   Variables CSS injectées dynamiquement depuis les settings org
   ============================================================ */

/* --- Variables globales (fallback si non injectées) --- */
:root {
    --color-primary:     #1e40af;
    --color-primary-light: #3b5ed6;
    --color-primary-dark:  #1a349a;
    --color-secondary:   #ffffff;
    --color-bg:          #f8fafc;
    --color-surface:     #ffffff;
    --color-border:      #e2e8f0;
    --color-text:        #1e293b;
    --color-text-muted:  #64748b;
    --color-success:     #16a34a;
    --color-error:       #dc2626;
    --color-warning:     #d97706;
    --color-info:        #0284c7;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;
    --radius-xl:  16px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.12);

    --transition: 150ms ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    line-height: 1.2;
    font-weight: 700;
}

p { margin: 0 0 1em; }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header --- */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1rem;
    height: 64px;
}

.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.logo-text { font-size: 1.25rem; color: var(--color-text); }
.logo-text strong { color: var(--color-primary); }
.logo-img { height: 40px; width: auto; display: block; }

.header-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: nowrap; white-space: nowrap; flex-shrink: 0; }
.nav-link { color: var(--color-text); font-weight: 500; text-decoration: none; font-size: .9rem; white-space: nowrap; }
.nav-link:hover { color: var(--color-primary); text-decoration: none; }
.nav-link--muted { color: var(--color-text-muted); }

/* --- Main & Footer --- */
.site-main { flex: 1; }

.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    margin-top: 4rem;
    color: var(--color-text-muted);
    font-size: .875rem;
    text-align: center;
}
.site-footer__credit { font-size: .775rem; margin: .25rem 0 0; }
.site-footer__credit a { color: var(--color-text-muted); text-decoration: none; }
.site-footer__credit a:hover { color: var(--color-primary); }

/* --- Flash messages --- */
.flash {
    padding: .875rem 1.25rem;
    margin: 1rem auto;
    max-width: 1120px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: .9rem;
}

.flash--success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.flash--error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.flash--warning { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.flash--info    { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* --- Boutons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .625rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
}
.btn--primary:hover {
    background: var(--color-primary-light);
    text-decoration: none;
    color: #fff;
}

.btn--secondary {
    background: var(--color-surface);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}
.btn--secondary:hover {
    background: #eff6ff;
    text-decoration: none;
}

.btn--danger {
    background: var(--color-error);
    color: #fff;
}

.btn--sm { padding: .375rem .875rem; font-size: .825rem; }
.btn--lg { padding: .875rem 2rem; font-size: 1rem; }

/* --- Formulaires --- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 500; margin-bottom: .375rem; font-size: .9rem; }

.form-control {
    width: 100%;
    padding: .625rem .875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: .95rem;
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30,64,175,.15);
}
.form-control.is-invalid { border-color: var(--color-error); }

.form-error { color: var(--color-error); font-size: .825rem; margin-top: .25rem; }

/* form-input = alias de form-control (utilisé dans les vues admin/intern) */
.form-input {
    display: block;
    width: 100%;
    padding: .6rem .875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: .925rem;
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color var(--transition), box-shadow var(--transition);
    box-sizing: border-box;
}
.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30,64,175,.15);
}
.form-input:disabled, .form-input[disabled] {
    background: var(--color-bg);
    color: var(--color-text-muted);
    cursor: not-allowed;
}
.form-input.is-invalid { border-color: var(--color-error); }
textarea.form-input { resize: vertical; min-height: 80px; }
select.form-input { cursor: pointer; }

.form-hint { font-size: .8rem; color: var(--color-text-muted); margin-top: .3rem; }
.required    { color: var(--color-error); }

/* Grille 2 colonnes pour les formulaires */
.form-grid {
    display: grid;
    gap: 0 1.25rem;
}
.form-grid--2 { grid-template-columns: 1fr 1fr; }
.form-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) {
    .form-grid--2, .form-grid--3 { grid-template-columns: 1fr; }
}

/* Actions bas de formulaire */
.form-actions {
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* --- Cards admin (panneaux blancs avec header/body/footer) --- */
.admin-body .card,
.admin-page .card {
    display: block;
    padding: 0;
    cursor: default;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.admin-body .card:hover,
.admin-page .card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--color-border);
}
.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}
.card__title  { font-size: 1rem; font-weight: 600; margin: 0; }
.card__subtitle { font-size: .82rem; color: var(--color-text-muted); margin: .1rem 0 0; }
.card__body   { padding: 1.5rem; }
.card__body.p-0 { padding: 0; }
.card__footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    gap: .75rem;
    align-items: center;
}

/* Liens et utilitaires admin */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-bottom: .4rem;
}
.back-link:hover { color: var(--color-primary); }
.link-primary { color: var(--color-primary); text-decoration: none; }
.link-primary:hover { text-decoration: underline; }

.page-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.filter-bar   { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.empty-state  { padding: 2.5rem 1.5rem; text-align: center; color: var(--color-text-muted); font-size: .9rem; }

/* --- Cards landing --- */
.hero {
    padding: 5rem 0 3rem;
    text-align: center;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-text);
    margin-bottom: .5rem;
}
.hero__title strong { color: var(--color-primary); }

.hero__subtitle {
    color: var(--color-text-muted);
    font-size: 1.15rem;
    margin: 0;
}

.access-cards { padding: 2rem 0 5rem; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: var(--color-text);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    cursor: pointer;
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    text-decoration: none;
    border-color: var(--color-primary);
}

.card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}
.card__icon svg { width: 28px; height: 28px; }

.card--internal .card__icon { background: #f0fdf4; color: #16a34a; }
.card--company  .card__icon { background: #fff7ed; color: #ea580c; }

.card__title { font-size: 1.2rem; margin: 0; }
.card__desc  { color: var(--color-text-muted); font-size: .9rem; margin: 0; flex: 1; }

.card__cta {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-weight: 600;
    font-size: .875rem;
    color: var(--color-primary);
    margin-top: .5rem;
}
.card--internal .card__cta { color: #16a34a; }
.card--company  .card__cta { color: #ea580c; }

/* --- Page d'erreur --- */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    gap: 1rem;
    padding: 2rem;
}
.error-page h1 {
    font-size: 6rem;
    color: var(--color-primary);
    margin: 0;
    line-height: 1;
}
.error-page p { color: var(--color-text-muted); font-size: 1.1rem; margin: 0; }

/* --- Utilitaires --- */
.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.d-none { display: none !important; }

/* --- Responsive --- */
@media (max-width: 640px) {
    .cards-grid { grid-template-columns: 1fr; }
    .hero { padding: 3rem 0 1.5rem; }
    .site-header .container { height: 56px; }
}

/* ============================================================
   Admin — Layout avec sidebar
   ============================================================ */

.admin-body { display: block; }

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #0f172a;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 1.5rem 1.25rem 1rem;
    border-bottom: 1px solid #1e293b;
}
.sidebar-logo .logo-text { color: #e2e8f0; font-size: 1.1rem; }
.sidebar-logo .logo-text strong { color: var(--color-primary); }
.sidebar-logo .logo-img { height: 38px; filter: brightness(0) invert(1); }

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .625rem 1.25rem;
    color: #94a3b8;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-link:hover { color: #e2e8f0; background: #1e293b; text-decoration: none; }
.sidebar-link--active { color: #fff; border-left-color: var(--color-primary); background: #1e293b; }
.sidebar-sep { height: 1px; background: #1e293b; margin: .5rem .75rem; }

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.sidebar-org { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-primary); background: rgba(255,255,255,.07); border-radius: var(--radius-sm); padding: .2rem .5rem; margin-bottom: .5rem; align-self: flex-start; }
.sidebar-user__name { font-size: .875rem; font-weight: 600; color: #e2e8f0; }
.sidebar-user__role { font-size: .775rem; color: #64748b; }
.sidebar-logout { font-size: .825rem; color: #64748b; text-decoration: none; }
.sidebar-logout:hover { color: #e2e8f0; }
.sidebar-credit { font-size: .7rem; color: #334155; margin: .5rem 0 0; }
.sidebar-credit a { color: #475569; text-decoration: none; }
.sidebar-credit a:hover { color: #e2e8f0; }

/* Main content */
.admin-main {
    flex: 1;
    min-width: 0;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
}

.admin-page {
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
}
.admin-page--narrow { max-width: 800px; }
.admin-page--wide   { max-width: none; }

/* Page header */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.page-header__actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.page-title  { font-size: 1.75rem; margin: 0; }
.page-subtitle { color: var(--color-text-muted); margin: .25rem 0 0; font-size: .9rem; }
.page-back { font-size: .875rem; color: var(--color-text-muted); text-decoration: none; display: block; margin-bottom: .25rem; }
.page-back:hover { color: var(--color-primary); }

/* Section card */
.section-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.section-card__title { font-size: 1.1rem; margin: 0 0 1.25rem; }
.section-card__footer { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border); }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.stat-card__value { font-size: 2rem; font-weight: 700; line-height: 1; margin-bottom: .25rem; }
.stat-card__label { font-size: .825rem; color: var(--color-text-muted); }
.stat-card__dot {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--stat-color, #94a3b8);
}
.stat-card--primary .stat-card__value { color: var(--color-primary); }
.stat-card--warning { border-color: #f59e0b; }
.stat-card--warning .stat-card__value { color: #d97706; }

/* Sélection rapide de statut inline dans le tableau stagiaires */
.status-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--status-color, #94a3b8);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .4rem center;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    padding: .2rem 1.4rem .2rem .625rem;
    cursor: pointer;
    transition: opacity .15s, outline .15s;
    max-width: 160px;
}
.status-select:focus { outline: 2px solid rgba(255,255,255,.6); outline-offset: 1px; }
.status-select:disabled { cursor: wait; }
.status-select--saved { outline: 2px solid #22c55e; outline-offset: 2px; }
.status-select option { background: #1e293b; color: #f1f5f9; }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.pagination__btn {
    display: inline-flex;
    align-items: center;
    padding: .375rem .75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: .875rem;
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition);
}
.pagination__btn:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }
.pagination__btn--active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); font-weight: 600; }
.pagination__dots { padding: 0 .25rem; color: var(--color-text-muted); }

/* Tri colonnes */
.th-sort-link { color: var(--color-text); text-decoration: none; font-weight: 600; }
.th-sort-link:hover { color: var(--color-primary); text-decoration: none; }

/* Ligne archivée */
.row--archived td { opacity: .55; }
.row--archived:hover td { opacity: 1; }

/* Dashboard colonnes */
.dashboard-cols { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) {
    .dashboard-cols { grid-template-columns: 1fr; }
}

/* Quick actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.quick-action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: .9rem;
    transition: box-shadow var(--transition), border-color var(--transition);
}
.quick-action-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); text-decoration: none; }
.quick-action-card__arrow { color: var(--color-text-muted); }

/* Data table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.data-table th {
    text-align: left;
    padding: .625rem 1rem;
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
}
.data-table td {
    padding: .875rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--color-bg); }
.table-link { font-weight: 600; color: var(--color-text); text-decoration: none; }
.table-link:hover { color: var(--color-primary); }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .625rem;
    border-radius: 999px;
    font-size: .775rem;
    font-weight: 600;
    color: #fff;
    background: #64748b;
    white-space: nowrap;
}
.badge--success { background: var(--color-success); }
.badge--error   { background: var(--color-error); }
.badge--lg { font-size: .875rem; padding: .375rem .875rem; }

/* Filters bar */
.filters-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.filters-bar__search { max-width: 300px; }
.filters-bar__select { max-width: 220px; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Login */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--color-bg);
}
.login-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-md);
}
.login-header { text-align: center; margin-bottom: 2rem; }
.login-title { font-size: 1.5rem; margin: 1rem 0 .25rem; }
.login-subtitle { color: var(--color-text-muted); font-size: .9rem; margin: 0; }
.login-form { display: flex; flex-direction: column; gap: 0; }
.login-back { text-align: center; margin-top: 1.25rem; font-size: .875rem; color: var(--color-text-muted); margin-bottom: 0; }

/* Forms helpers */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-section-title { font-size: 1rem; color: var(--color-text-muted); font-weight: 600; border-bottom: 1px solid var(--color-border); padding-bottom: .5rem; margin: 1.5rem 0 1rem; }
.form-section-title:first-child { margin-top: 0; }
.form-checkboxes { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.form-check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; cursor: pointer; }
.form-check input { cursor: pointer; }
.form-actions { display: flex; justify-content: flex-end; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--color-border); margin-top: 1rem; }
.required { color: var(--color-error); }
.form-control--inline { width: auto; min-width: 0; }

/* Profile header */
.profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.profile-header__main { display: flex; align-items: center; gap: 1rem; }
.profile-header__actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Status bar */
.status-bar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}
.status-bar__form {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

/* Tabs */
.tabs {
    display: flex;
    gap: .25rem;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: .75rem 1.25rem;
    font-family: var(--font-sans);
    font-size: .9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn--active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.tab-content { display: flex; flex-direction: column; gap: 1rem; }

/* Notes */
.note-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
}
.note-card__header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
    flex-wrap: wrap;
}
.note-card__body { font-size: .9rem; line-height: 1.7; }

/* Stages */
.stage-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
}
.stage-card__header { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; flex-wrap: wrap; }
.stage-card__dates  { font-size: .875rem; margin-bottom: .5rem; }
.stage-card__notes  { font-size: .875rem; margin: .5rem 0 0; }

/* Visibility toggle */
.visibility-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.visibility-toggle .form-label { margin: 0; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-entry {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.25rem;
    position: relative;
}
.timeline-entry::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}
.timeline-entry:last-child::before { display: none; }

.timeline-entry__dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    border: 3px solid var(--color-surface);
    box-shadow: 0 0 0 2px var(--color-border);
}
.timeline-entry__body { flex: 1; }
.timeline-entry__header { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .25rem; }
.timeline-entry__comment { font-size: .875rem; color: var(--color-text-muted); margin: .375rem 0 0; }

/* Kanban */
.kanban-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    align-items: flex-start;
}

.kanban-col {
    flex: 0 0 260px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.kanban-col__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .875rem 1rem;
    border-top: 4px solid #94a3b8;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}
.kanban-col__title { font-weight: 600; font-size: .875rem; }
.kanban-col__count {
    background: var(--color-border);
    color: var(--color-text-muted);
    border-radius: 999px;
    padding: .1rem .5rem;
    font-size: .75rem;
    font-weight: 600;
}

.kanban-col__cards { padding: .75rem; display: flex; flex-direction: column; gap: .5rem; min-height: 80px; }
.kanban-empty { text-align: center; color: var(--color-text-muted); font-size: .825rem; padding: 1rem 0; }

.kanban-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: .875rem 1rem;
    color: var(--color-text);
    cursor: grab;
    transition: box-shadow var(--transition), border-color var(--transition), opacity var(--transition);
}
.kanban-card:active { cursor: grabbing; }
.kanban-card:hover { box-shadow: var(--shadow-sm); border-color: var(--color-primary); }
.kanban-card__link { display: block; text-decoration: none; color: inherit; }
.kanban-card__link:hover { text-decoration: none; color: inherit; }
.kanban-card__name { font-weight: 600; font-size: .875rem; margin-bottom: .25rem; }
.kanban-card__meta { font-size: .775rem; color: var(--color-text-muted); }
.kanban-card__badge { margin-top: .5rem; }
/* Zone de drop active */
.kanban-col--over .kanban-col__cards {
    background: color-mix(in srgb, var(--color-primary) 6%, transparent);
    border-radius: var(--radius-md);
    outline: 2px dashed var(--color-primary);
    outline-offset: -4px;
}

/* ============================================================
   Espace stagiaire (/me)
   ============================================================ */

.intern-body { background: #f1f5f9; }

.intern-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.intern-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.intern-header__right { display: flex; align-items: center; gap: 1.25rem; }
.intern-header__name  { font-size: .875rem; font-weight: 500; color: var(--color-text-muted); }
.intern-header__logout { font-size: .875rem; color: var(--color-text-muted); text-decoration: none; }
.intern-header__logout:hover { color: var(--color-error); }

.intern-main      { padding: 2rem 1.5rem 4rem; }
.intern-container { max-width: 1100px; margin: 0 auto; }

.intern-page { display: flex; flex-direction: column; gap: 0; }

.intern-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
}
.intern-hero__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.intern-hero__name { font-size: 1.5rem; margin: 0 0 .5rem; }

.intern-section { display: flex; flex-direction: column; gap: 1.25rem; }

@media (max-width: 600px) {
    .intern-hero { flex-direction: column; text-align: center; }
    .intern-main { padding: 1rem .75rem 3rem; }
}

/* ============================================================
   Module Évaluation stagiaire
   ============================================================ */

.tab-btn--eval { border-left: 1px solid var(--color-border); margin-left: .5rem; padding-left: 1.5rem; }

.eval-section {
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 0;
}
.eval-section:first-child { padding-top: 0; }
.eval-section:last-of-type { border-bottom: none; }

.eval-section__title {
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-text-muted);
    margin: 0 0 1rem;
}

/* Radio globale ++ +- -- */
.eval-radio-group {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}
.eval-radio-group--column { flex-direction: column; gap: .5rem; }

.eval-radio {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    padding: .5rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    transition: border-color var(--transition), background var(--transition);
    user-select: none;
}
.eval-radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.eval-radio:has(input:checked) { border-color: currentColor; }
.eval-radio--pp { color: #16a34a; }
.eval-radio--pp:has(input:checked) { background: #f0fdf4; }
.eval-radio--pm { color: #d97706; }
.eval-radio--pm:has(input:checked) { background: #fffbeb; }
.eval-radio--mm { color: #dc2626; }
.eval-radio--mm:has(input:checked) { background: #fef2f2; }

.eval-radio-line {
    display: flex;
    align-items: center;
    gap: .625rem;
    cursor: pointer;
    font-size: .9rem;
    padding: .375rem 0;
}
.eval-radio-line input { cursor: pointer; }

/* Checkboxes intérêts */
.eval-checkboxes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.eval-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    font-size: .9rem;
    padding: .375rem .75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), background var(--transition);
}
.eval-check:has(input:checked) {
    border-color: var(--color-primary);
    background: #eff6ff;
    color: var(--color-primary);
    font-weight: 500;
}
.eval-check input { position: absolute; opacity: 0; width: 0; height: 0; }

/* Grille des traits */
.eval-traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .5rem;
}

/* Grille critères */
.eval-criteria-list { display: flex; flex-direction: column; gap: 1rem; }

.eval-criterion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: .875rem 1rem;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}
.eval-criterion__label {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    flex: 1;
    min-width: 200px;
}
.eval-criterion__label strong { font-size: .9rem; }
.eval-criterion__label span   { font-size: .8rem; }

/* Responsive admin */
@media (max-width: 900px) {
    .admin-sidebar { width: 200px; }
}
@media (max-width: 700px) {
    /* Layout admin — sidebar devient barre du haut */
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        width: 100%;
        height: auto;
        min-height: 0;
        position: sticky;
        top: 0;
        z-index: 200;
        flex-direction: row;
        align-items: center;
        overflow: hidden;
    }
    .sidebar-logo {
        padding: .5rem 1rem;
        border-bottom: none;
        border-right: 1px solid #1e293b;
        flex-shrink: 0;
    }
    .sidebar-nav {
        flex: 1;
        flex-direction: row;
        padding: 0 .25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        scrollbar-width: none;
    }
    .sidebar-nav::-webkit-scrollbar { display: none; }
    .sidebar-footer { display: none; }
    .sidebar-sep { display: none; }
    .sidebar-link {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: .625rem .75rem;
        white-space: nowrap;
        font-size: .8rem;
        gap: .4rem;
    }
    .sidebar-link svg { width: 15px; height: 15px; }
    .sidebar-link--active { border-bottom-color: var(--color-primary); border-left-color: transparent; background: transparent; }
    .form-row { grid-template-columns: 1fr; }
    .filters-bar { flex-direction: column; align-items: stretch; }
    .filters-bar__search, .filters-bar__select { max-width: none; }
}

/* ============================================================
   Anchor Nav — navigation latérale fixe
   ============================================================ */

.anchor-nav {
    position: fixed;
    right: 1.5rem;
    top: 5rem;
    width: 185px;
    z-index: 50;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: .75rem;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
}

/* Dans l'espace admin (pas de header), on descend moins */
.admin-body .anchor-nav { top: 2rem; }

.anchor-nav__title {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--color-text-muted);
    margin: 0 0 .5rem;
    padding: 0 .25rem .5rem;
    border-bottom: 1px solid var(--color-border);
}
.anchor-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.anchor-nav__link {
    display: block;
    width: 100%;
    padding: .45rem .6rem;
    font-size: .845rem;
    font-family: var(--font-sans);
    line-height: 1.3;
    color: var(--color-text-muted);
    text-decoration: none !important;
    background: none;
    border: none;
    border-left: 2px solid transparent;
    border-radius: var(--radius-sm);
    text-align: left;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
    cursor: pointer;
}
.anchor-nav__link:hover {
    color: var(--color-text);
    background: var(--color-bg);
}
.anchor-nav__link.is-active {
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    background: rgba(30,64,175,.07);
    font-weight: 500;
}
.anchor-nav__sep {
    height: 1px;
    background: var(--color-border);
    margin: .4rem .25rem;
}

/* Offset scroll pour les sections */
.intern-anchor-section { scroll-margin-top: 5rem; }
.admin-anchor-section  { scroll-margin-top: 1.5rem; }

@media (max-width: 900px) {
    .anchor-nav { display: none; }
}

/* --- Emails / Templates --- */
.variable-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .35rem;
}
.variable-tag {
    display: inline-block;
    padding: .15rem .5rem;
    background: rgba(30,64,175,.08);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: .78rem;
    font-family: monospace;
}
.alert {
    padding: .85rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: .9rem;
    border: 1px solid transparent;
}
.alert--info {
    background: rgba(2,132,199,.07);
    border-color: rgba(2,132,199,.25);
    color: #0369a1;
}
.actions-cell { white-space: nowrap; }
.actions-cell .btn + .btn,
.actions-cell form + .btn,
.actions-cell .btn + form,
.actions-cell form + form { margin-left: .25rem; }
.mt-6 { margin-top: 1.5rem; }

/* --- Espace entreprise --- */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.selection-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.selection-card__header {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .5rem;
}
.selection-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}
.selection-card__desc {
    font-size: .85rem;
    color: var(--color-text-muted);
    margin: 0 0 .5rem;
}
.selection-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .8rem;
    color: var(--color-text-muted);
    margin-bottom: .5rem;
}
.mt-2 { margin-top: .5rem; }

/* Profils candidats (vue entreprise) */
.intern-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}
.profile-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.profile-card--interested {
    border-color: var(--color-success);
    background: rgba(22,163,74,.03);
}
.profile-card__header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}
.profile-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.profile-card__name { font-weight: 600; font-size: .95rem; }
.profile-card__orientation { font-size: .8rem; color: var(--color-text-muted); }
.profile-card__status {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: var(--color-text-muted);
    margin-bottom: .5rem;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.profile-card__bio {
    font-size: .85rem;
    color: var(--color-text-muted);
    margin: 0 0 .75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.profile-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-bottom: .75rem;
}
.tag {
    display: inline-block;
    padding: .15rem .55rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: .75rem;
    color: var(--color-text-muted);
}
.interest-form {
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px solid var(--color-border);
}
.btn--full { width: 100%; }

/* Admin — liste sélections */
.selections-list { display: flex; flex-direction: column; gap: .5rem; }
.selection-admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem .85rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}
.selection-admin-item__info { flex: 1; min-width: 0; font-size: .9rem; }
.intern-checkboxes {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    max-height: 200px;
    overflow-y: auto;
    padding: .5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    cursor: pointer;
}
.ml-2 { margin-left: .5rem; }
.d-flex { display: flex; }
.gap-2 { gap: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-3 { margin-top: .75rem; }

/* Profil detail entreprise */
.profile-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 768px) {
    .profile-detail-layout { grid-template-columns: 1fr; }
}
.profile-detail-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: .75rem;
}
/* (card__header defini plus haut dans la section admin cards) */

/* Template email — liste card */
.tpl-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tpl-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}
.tpl-item:last-child { border-bottom: none; }
.tpl-item__main {
    flex: 1;
    min-width: 0;
}
.tpl-item__badges {
    display: flex;
    gap: .35rem;
    margin-bottom: .3rem;
}
.tpl-item__name {
    font-weight: 600;
    font-size: .95rem;
    color: var(--color-text);
}
.tpl-item__code {
    display: inline-block;
    font-size: .78rem;
    color: var(--color-text-muted);
    margin: .15rem 0 .3rem;
}
.tpl-item__subject {
    font-size: .85rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 600px;
}
.tpl-item__actions {
    display: flex;
    gap: .4rem;
    flex-shrink: 0;
}

/* --- Badge année préparatoire --- */
.badge--preparatory {
    background: #7c3aed;
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: var(--radius-xl);
}

/* --- Tag highlight (année préparatoire sur cards) --- */
.tag--highlight {
    background: #ede9fe;
    color: #6d28d9;
    border-color: #c4b5fd;
}

/* --- Évaluation badges --- */
.eval-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: .85rem;
}
.eval--positive, .eval-badge.eval--positive { background: #dcfce7; color: #16a34a; }
.eval--neutral,  .eval-badge.eval--neutral  { background: #fef9c3; color: #b45309; }
.eval--negative, .eval-badge.eval--negative { background: #fee2e2; color: #dc2626; }

/* Badge évaluation globale dans card__header */
.badge.eval--positive { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }
.badge.eval--neutral  { background: #fef9c3; color: #b45309; border: 1px solid #fde68a; }
.badge.eval--negative { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }

/* --- Grille critères évaluation --- */
.eval-criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .5rem;
}
.eval-criteria-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: .4rem .75rem;
}
.eval-criteria-label {
    font-size: .875rem;
    color: var(--color-text);
}

/* ============================================================
   Responsive mobile — consolidation globale
   ============================================================ */

/* Tables : scroll horizontal sur petits écrans */
.data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

@media (max-width: 700px) {

    /* Admin — page principale */
    .admin-main { padding: 1rem .875rem 2rem; }
    .admin-page { padding: 0; }

    /* En-tête de page */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
    }
    .page-header__actions {
        display: flex;
        flex-wrap: wrap;
        gap: .4rem;
        width: 100%;
    }
    .page-header__actions .btn { flex: 1 1 auto; text-align: center; }

    /* Sidebar mobile — masquer les éléments secondaires */
    .sidebar-org    { display: none; }
    .sidebar-credit { display: none; }

    /* Cards : réduire le padding intérieur */
    .card__header { padding: .875rem 1rem; }
    .card__body   { padding: .875rem 1rem; }
    .card__footer { padding: .875rem 1rem; }

    /* Kanban : défilement horizontal */
    .kanban-board {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
    }
    .kanban-col { min-width: 260px; flex-shrink: 0; }

    /* Profile cards : 1 colonne */
    .intern-profiles-grid { grid-template-columns: 1fr; }
    .selection-grid       { grid-template-columns: 1fr; }

    /* Template email : empiler actions */
    .tpl-item {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
    }
    .tpl-item__actions { width: 100%; justify-content: flex-end; }

    /* Evaluation criteria : 1 colonne */
    .eval-criteria-grid { grid-template-columns: 1fr; }

    /* Formulaires : actions pleine largeur */
    .form-actions { flex-direction: column-reverse; align-items: stretch; }
    .form-actions .btn { width: 100%; text-align: center; }

    /* Filtres */
    .filters-bar__search,
    .filters-bar__select { max-width: none; width: 100%; }

    /* Titre page plus petit */
    .page-title { font-size: 1.35rem; }
}

@media (max-width: 480px) {

    /* Réduire encore plus sur très petits écrans */
    .admin-main { padding: .75rem .625rem 2rem; }

    /* Boutons plus compacts */
    .btn--sm { padding: .3rem .6rem; font-size: .8rem; }

    /* En-têtes de section */
    .section-card__title { font-size: 1rem; }

    /* Flash messages */
    .flash { padding: .625rem 1rem; font-size: .875rem; }

    /* Hero stagiaire */
    .intern-hero__name { font-size: 1.25rem; }

    /* Sidebar nav — cacher les labels texte sur très petit */
    .sidebar-link svg { width: 20px; height: 20px; }
}

