:root {
    --bg:        #f0f2f5;
    --surface:   #ffffff;
    --primary:   #1a5276;
    --primary-h: #154360;
    --danger:    #c0392b;
    --success:   #27ae60;
    --text:      #2c3e50;
    --muted:     #7f8c8d;
    --border:    #dde1e5;
    --radius:    8px;
    --shadow:    0 2px 16px rgba(0,0,0,.09);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Page d'erreur ───────────────────────────────────────────────────────── */

.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg);
    text-align: center;
}
.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    opacity: .15;
}
.error-title { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.error-msg   { color: var(--muted); max-width: 360px; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* ── App layout (pages authentifiées) ──────────────────────────────────── */

body.app-body {
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 100vh;
    align-items: unset;
    justify-content: unset;
}

/* Header */

.app-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 78px;
}

.app-header-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    text-decoration: none;
}

.app-header-logo {
    height: 52px;
    width: auto;
    display: block;
}

.app-header-titles {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.app-header-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--primary);
    line-height: 1;
}

.app-header-tagline {
    font-size: .72rem;
    color: var(--muted);
    font-weight: 400;
    font-style: italic;
    letter-spacing: .01em;
    line-height: 1;
}

/* User dropdown */

.app-header-user { position: relative; }

.user-trigger {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .85rem;
    font-family: inherit;
    cursor: pointer;
    padding: .35rem .75rem;
    border-radius: 6px;
    transition: background .15s, border-color .15s;
}
.user-trigger:hover { background: var(--bg); border-color: #c0c8d0; }

.user-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: calc(100% + .4rem);
    min-width: 170px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 200;
}
.app-header-user.open .user-dropdown { display: flex; }

.user-dropdown a,
.user-dropdown-signout {
    display: block;
    width: 100%;
    padding: .55rem 1rem;
    font-size: .875rem;
    color: var(--text);
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: background .12s;
}
.user-dropdown a:hover,
.user-dropdown-signout:hover { background: var(--bg); }
.user-dropdown a.active { font-weight: 600; color: var(--primary); }

.user-dropdown-sep {
    border: none;
    border-top: 1px solid var(--border);
    margin: .2rem 0;
}

/* Horizontal nav */

.app-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 78px;
    z-index: 90;
    flex-shrink: 0;
}

.app-nav-inner {
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.app-nav-links {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-item {
    display: block;
    padding: .7rem .9rem;
    color: var(--muted);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}
.nav-item:hover { color: var(--primary); }
.nav-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.nav-sep-v {
    width: 1px;
    height: 1.1rem;
    background: var(--border);
    margin: 0 .35rem;
    flex-shrink: 0;
}

.nav-burger {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: .5rem .25rem;
    line-height: 0;
}

/* Main + footer */

.app-main {
    flex: 1;
    padding: 2rem 2.25rem;
    min-width: 0;
}

.app-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: .75rem 2rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-shrink: 0;
}

.footer-logo {
    height: 28px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.footer-text {
    font-size: .76rem;
    color: var(--muted);
}

/* Mobile */

@media (max-width: 700px) {
    .app-header-inner { padding: 0 1rem; }
    .app-nav-inner { padding: 0 1rem; flex-wrap: wrap; }
    .app-main { padding: 1.25rem 1rem; }
    .app-footer { padding: .75rem 1rem; }

    .nav-burger { display: block; }

    .app-nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding-bottom: .4rem;
    }
    .app-nav-inner.open .app-nav-links { display: flex; }

    .nav-item {
        border-bottom: none;
        border-left: 2px solid transparent;
        padding: .6rem .5rem;
        width: 100%;
    }
    .nav-item.active { border-left-color: var(--primary); }
    .nav-sep-v { width: 100%; height: 1px; margin: .2rem 0; }
}

/* ── Page header ────────────────────────────────────────────────────────── */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: .75rem;
}

.page-header h1 {
    font-size: 1.5rem;
    color: var(--text);
    font-weight: 700;
}

.page-subtitle {
    color: var(--muted);
    font-size: .9rem;
    margin-top: .2rem;
}

/* ── Content cards (dashboard grid) ────────────────────────────────────── */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.content-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.content-card h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: var(--text);
}

.content-card p {
    font-size: .9rem;
    line-height: 1.65;
    color: var(--muted);
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* ── Profil page ────────────────────────────────────────────────────────── */

.profil-sections {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 680px;
}

.profil-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.profil-card h2 {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--border);
}


/* 2FA row */
.totp-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.totp-hint {
    font-size: .85rem;
    color: var(--muted);
    margin-top: .4rem;
    max-width: 340px;
    line-height: 1.5;
}

.totp-action {
    flex-shrink: 0;
}

.inline-password {
    padding: .45rem .7rem;
    font-size: .875rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 170px;
    margin-bottom: .4rem;
    display: block;
}

/* ── Auth card ──────────────────────────────────────────────────────────── */

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.auth-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.25rem 2rem;
    width: 100%;
    max-width: 420px;
}

.auth-card h1 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .2rem;
}

.subtitle {
    color: var(--muted);
    font-size: .875rem;
    margin-bottom: 1.5rem;
}

/* ── Form elements ──────────────────────────────────────────────────────── */

.form-group { margin-bottom: 1rem; }

label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: .3rem;
    color: var(--text);
}
label .required { color: var(--danger, #dc3545); }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: .6rem .8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: .95rem;
    color: var(--text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,82,118,.12);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: .65rem 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: .93rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, opacity .15s, border-color .15s;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-h); }

.btn-secondary { background: #f0f4f8; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: #e2e8f0; }

.btn-inline { width: auto; padding: .5rem 1.1rem; }

.btn-danger { background: var(--danger); color: #fff; margin-top: .25rem; }
.btn-danger:hover { opacity: .88; }

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
}
.btn-ghost:hover { background: #f0f4f8; }

/* ── Alerts ─────────────────────────────────────────────────────────────── */

.alert {
    padding: .7rem 1rem;
    border-radius: 6px;
    font-size: .875rem;
    margin-bottom: 1rem;
}
.alert-error   { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6cb; }
.alert-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #c3e6cb; }
.alert-warning { background: #fff8e1; color: #6d4c00; border: 1px solid #ffe082; }
.alert-warning a { color: #6d4c00; font-weight: 600; }
.alert-info { background: #e8f0fb; color: #1a3a6b; border: 1px solid #b3c8f0; }

/* ── Navigation links ───────────────────────────────────────────────────── */

.form-footer {
    margin-top: 1.25rem;
    text-align: center;
    font-size: .855rem;
    color: var(--muted);
}
.form-footer a { color: var(--primary); text-decoration: none; font-weight: 500; }
.form-footer a:hover { text-decoration: underline; }

.link-right {
    display: flex;
    justify-content: flex-end;
    margin-top: -.4rem;
    margin-bottom: .8rem;
    font-size: .8rem;
}
.link-right a { color: var(--muted); text-decoration: none; }
.link-right a:hover { color: var(--primary); }

.divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

.auth-sep {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0 1rem;
    color: var(--muted);
    font-size: .78rem;
}
.auth-sep::before,
.auth-sep::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--border);
}

.btn-ua {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    padding: .55rem 1rem;
    background: #d6e4f0;
    color: var(--primary);
    border: 1px solid #aac4dc;
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    justify-content: center;
}
.btn-ua:hover { background: #c2d8ec; border-color: #8dafc8; color: var(--primary); }

.btn-ua-logo {
    height: 60px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.cas-notice {
    background: #eef3fb;
    border: 1px solid #b3c8f0;
    color: #1a3a6b;
    font-size: .875rem;
    line-height: 1.55;
}


/* ── Dashboard ──────────────────────────────────────────────────────────── */

.dashboard {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.dashboard > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.dashboard h1 { font-size: 1.35rem; color: var(--primary); }

.profile-section { margin-bottom: 1.5rem; }

.profile-section h2 {
    font-size: .7rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .6rem;
}

.profile-info {
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .85rem 1rem;
    font-size: .93rem;
    line-height: 1.5;
}

.label { color: var(--muted); font-size: .78rem; }

.badge {
    display: inline-block;
    padding: .2rem .65rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    margin-top: .2rem;
}
.badge-on  { background: #d4edda; color: #155724; }
.badge-off { background: #e2e3e5; color: #383d41; }

/* ── 2FA setup ──────────────────────────────────────────────────────────── */

.qr-wrapper { display: flex; justify-content: center; margin: 1rem 0 1.25rem; }

.secret-box, .recovery-box {
    border-radius: 6px;
    padding: .65rem 1rem;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    text-align: center;
    word-break: break-all;
    margin-bottom: .75rem;
}

.secret-box {
    background: #f8f9fa;
    border: 1px solid var(--border);
    font-size: .95rem;
    letter-spacing: .12em;
}

.recovery-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    font-size: 1.1rem;
    letter-spacing: .18em;
    font-weight: 700;
}

.recovery-warn {
    font-size: .8rem;
    color: #b45309;
    text-align: center;
    margin-bottom: 1rem;
}

/* ── Form row (deux champs côte à côte) ────────────────────────────────── */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 .75rem;
}
.form-row .form-group:has(input[type="file"]) {
    display: flex;
    flex-direction: column;
}
.form-row .form-group input[type="file"] { margin-top: auto; }

/* ── Radio group ────────────────────────────────────────────────────────── */

.radio-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .25rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .92rem;
    font-weight: 400;
    cursor: pointer;
    padding: .5rem .75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color .15s, background .15s;
}

.radio-label:has(input:checked) {
    border-color: var(--primary);
    background: #eaf1f8;
}

.radio-label input[type="radio"] {
    width: auto;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.radio-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.field-readonly {
    font-size: .92rem;
    color: var(--text);
    padding: .45rem 0;
}
.field-info {
    font-size: .85rem;
    color: var(--muted);
    font-style: italic;
    padding: .35rem 0;
}

/* ── Admin — Validations ─────────────────────────────────────────────── */

.validation-list { display: flex; flex-direction: column; gap: 1.25rem; }

.validation-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: .75rem 1rem;
}

.validation-header {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.validation-identity {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.validation-meta {
    display: flex;
    gap: 1rem;
    font-size: .85rem;
    color: var(--muted);
}

.validation-form { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.validation-form .form-group { margin: 0; flex: 1; min-width: 220px; }
.validation-form .form-check { display: flex; align-items: center; gap: .4rem; font-size: .9rem; white-space: nowrap; padding-bottom: .15rem; }
.validation-form .form-check input { width: auto; }
.validation-actions { display: flex; align-items: flex-end; }
.validation-reject { display: flex; align-items: flex-end; padding-bottom: 0; }

.btn-sm { padding: .4rem .85rem; font-size: .85rem; }
.btn-danger { background: var(--danger); color: #fff; border: none; border-radius: var(--radius); cursor: pointer; font-weight: 600; }
.btn-danger:hover { background: #a93226; }

.badge {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.badge-type      { background: #eaf1fb; color: #1a5276; }
.badge-warning   { background: #fff3cd; color: #7d5a00; }
.text-muted      { color: var(--muted); }

/* ── Textarea ───────────────────────────────────────────────────────────── */

textarea {
    width: 100%;
    padding: .6rem .8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: .95rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    resize: vertical;
    transition: border-color .15s, box-shadow .15s;
    line-height: 1.55;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,82,118,.12);
}

/* ── File input ─────────────────────────────────────────────────────────── */

input[type="file"] {
    width: 100%;
    padding: .45rem .6rem;
    border: 1px dashed var(--border);
    border-radius: 6px;
    font-size: .875rem;
    color: var(--muted);
    background: #fafbfc;
    cursor: pointer;
}

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

/* ── Profil sub-section heading (h3) ────────────────────────────────────── */

.profil-card h3 {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin: 1.25rem 0 .75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ── Image previews ─────────────────────────────────────────────────────── */

.img-preview {
    display: block;
    margin-bottom: .5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    object-fit: contain;
    background: #fafbfc;
}

.img-preview-logo { max-height: 70px; width: auto; height: auto; }
.img-preview-bg   { width: 280px; height: 70px; object-fit: cover; }
.img-preview-img  { width: 120px; height: 90px; object-fit: cover; }
.delete-img-label { display: flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--danger); cursor: pointer; margin-bottom: .35rem; }

/* ── Card alt (fond légèrement grisé) ───────────────────────────────────── */

.card-alt {
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-top: .75rem;
}

/* ── Entreprise layout (form + preview) ─────────────────────────────────── */

.entreprise-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.entreprise-form    { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.entreprise-preview { position: sticky; top: 1.5rem; }

.preview-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: .75rem;
}

/* ── Fiche entreprise ────────────────────────────────────────────────────── */

.fiche-entreprise {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    font-size: .875rem;
}

.fiche-banner { width: 100%; aspect-ratio: 4/1; overflow: hidden; }
.fiche-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fiche-header {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    padding: .875rem 1rem;
    border-bottom: 1px solid var(--border);
}

.fiche-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fafbfc;
    flex-shrink: 0;
}

.fiche-header-text { flex: 1; min-width: 0; }
.fiche-header-text h2 { font-size: 1rem; margin: 0 0 .2rem; }
.fiche-raison-sociale { font-size: .75rem; color: var(--muted); margin: 0 0 .2rem; }
.fiche-adresse { font-size: .78rem; color: var(--muted); margin: 0 0 .4rem; }

.fiche-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.fiche-link {
    font-size: .75rem;
    padding: .15rem .5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--primary);
    text-decoration: none;
}
.fiche-link:hover { background: var(--primary); color: #fff; }

.fiche-section {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border);
}
.fiche-section:last-child { border-bottom: none; }
.fiche-section h3 {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin: 0 0 .4rem;
}
.fiche-section p { margin: 0; line-height: 1.5; color: var(--text); }

.md-content { font-size: .875rem; line-height: 1.6; color: var(--text); }
.md-content p        { margin: 0 0 .6rem; }
.md-content p:last-child { margin-bottom: 0; }
.md-content ul, .md-content ol { padding-left: 1.25rem; margin: 0 0 .6rem; }
.md-content li       { margin-bottom: .2rem; }
.md-content strong   { font-weight: 700; }
.md-content em       { font-style: italic; }
.md-content a        { color: var(--primary); }
.md-content h1 { font-size: .95rem; font-weight: 700; margin: .75rem 0 .3rem; }
.md-content h2 { font-size: .82rem; font-weight: 700; margin: .75rem 0 .3rem; }
.md-content h3 { font-size: .75rem; font-weight: 700; margin: .75rem 0 .3rem; }

.fiche-section-video { padding-bottom: .5rem; }
.fiche-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.fiche-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.fiche-video-link { display: inline-block; font-size: .75rem; color: var(--muted); margin-top: .5rem; text-decoration: none; }
.fiche-video-link:hover { color: var(--primary); }

.fiche-photos { display: flex; gap: .5rem; margin-top: .75rem; }
.fiche-photo  { flex: 1; width: 0; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; display: block; }

.btn-sm { padding: .3rem .75rem; font-size: .8rem; }
.fiche-btn-offers { display: inline-block; text-decoration: none; }

@media (max-width: 900px) {
    .entreprise-layout { grid-template-columns: 1fr; }
    .entreprise-preview { position: static; }
}

/* ── Événements admin ────────────────────────────────────────────────────── */

.evt-admin-list { display: flex; flex-direction: column; }
.evt-admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--border);
}
.evt-admin-row:last-child { border-bottom: none; }
.evt-admin-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.evt-admin-nom { font-weight: 600; font-size: .9rem; }
.evt-admin-meta { font-size: .78rem; color: var(--muted); }
.evt-admin-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

.evt-entreprises-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.evt-entreprises-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .4rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .875rem;
    gap: 1rem;
}
.evt-entreprises-list li:last-child { border-bottom: none; }
.btn-link { background: none; border: none; cursor: pointer; font-size: .8rem; padding: 0; }
.btn-danger-link { color: var(--danger); }
.btn-danger-link:hover { text-decoration: underline; }
.checkbox-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 400; }
.checkbox-label input[type="checkbox"] { width: auto; margin: 0; }

/* ── Label hint ─────────────────────────────────────────────────────────── */

.label-hint {
    font-weight: 400;
    color: var(--muted);
    font-size: .78rem;
    margin-left: .25rem;
}
