/* Feuille de style unique, sans compilation (adaptée à cPanel).
   Couleurs : variables --brand-* servies par /brand.css depuis config/platform.php.
   Polices système : aucune requête vers un service tiers (conformité RGPD). */

:root {
    --brand-primary: #07213F; --brand-primary-hover: #0E3360; --brand-primary-fg: #FFFFFF;
    --brand-accent: #8A5E17; --brand-accent-bright: #C9973A; --brand-accent-soft: #F7EFDF;
    --brand-ink: #0F1B2A; --brand-muted: #4F5B69; --brand-surface: #F5F3EE; --brand-line: #E2DED5;
    --brand-success: #1E7A4E; --brand-danger: #B3261E;
    --radius: 10px; --radius-lg: 18px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--brand-ink); background: #fff; line-height: 1.55; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -0.01em; }
p { margin: 0 0 .75rem; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--brand-accent-bright); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.page { padding-top: 3rem; padding-bottom: 3rem; }
.narrow { max-width: 46rem; }
.prose { max-width: 65ch; }
.muted { color: var(--brand-muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.break { word-break: break-all; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; }
.link { color: var(--brand-primary); font-weight: 600; text-underline-offset: 2px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1rem; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--brand-primary); color: var(--brand-primary-fg); }
.btn-primary:hover { background: var(--brand-primary-hover); }
.btn-secondary { background: #fff; color: var(--brand-ink); border-color: var(--brand-line); }
.btn-secondary:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.btn-ghost { background: transparent; color: var(--brand-primary); }
.btn-ghost:hover { background: var(--brand-surface); }
.btn-danger { background: #fff; color: var(--brand-danger); border-color: color-mix(in srgb, var(--brand-danger) 40%, white); }
.btn-danger:hover { background: var(--brand-danger); color: #fff; }
.btn-light { background: #fff; color: var(--brand-primary); }
.btn-light:hover { background: var(--brand-accent-soft); }
.btn-lg { padding: .8rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }
.is-static { pointer-events: none; }

/* En-tête & pied */
.site-header { border-bottom: 1px solid var(--brand-line); background: #fff; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--brand-primary); }
.brand-mark { height: 48px; width: auto; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-main { font-weight: 800; font-size: 1.2rem; letter-spacing: .08em; }
.brand-sub { white-space: nowrap; font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-accent); margin-top: .25rem; }
@media (max-width: 640px) { .hide-sm { display: none !important; } .header-inner, .header-actions { flex-wrap: nowrap; gap: .4rem; } .lang-switch { margin-right: 0; } }
@media (max-width: 480px) { .brand-words { display: none; } }
.footer-logo { width: 140px; height: auto; margin-bottom: .75rem; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--brand-primary); }
.header-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.lang-switch { display: flex; gap: .15rem; margin-right: .4rem; }
.lang-switch a { font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--brand-muted); padding: .3rem .45rem; border-radius: 6px; }
.lang-switch a[aria-current="true"] { color: var(--brand-primary); background: var(--brand-surface); }
.site-footer { margin-top: 5rem; border-top: 1px solid var(--brand-line); background: var(--brand-surface); }
.footer-inner { display: grid; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .875rem; }
.footer-links a { color: var(--brand-muted); text-decoration: none; }
.footer-links a:hover { color: var(--brand-primary); }
.footer-copy { border-top: 1px solid var(--brand-line); text-align: center; font-size: .75rem; color: var(--brand-muted); padding: 1rem; margin: 0; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr; } .footer-links { justify-content: flex-end; } }

/* Accueil : hero en deux colonnes (texte sur marine, diaporama photo) */
.hero { display: grid; background: var(--brand-primary); color: var(--brand-primary-fg); }
.hero-copy { padding: 3rem 1.25rem 3.5rem; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { color: var(--brand-accent-bright); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.eyebrow-dark { color: var(--brand-accent); }
.hero-title { font-size: clamp(1.9rem, 3.2vw, 2.9rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; max-width: 21ch; }
.lead { font-size: 1.05rem; opacity: .88; max-width: 56ch; margin-top: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-media { position: relative; min-height: 18rem; overflow: hidden; background: #0B1A2E; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Cadrage par image : le visage du chef reste visible quel que soit le format. */
.focus-madagascar img { object-position: 66% 30%; }
.focus-kitchen img { object-position: 68% 35%; }
.focus-germany img { object-position: 30% 35%; }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 33, 63, .55) 0%, rgba(7, 33, 63, 0) 22%); }
.hero-pause { position: absolute; right: .75rem; bottom: .75rem; z-index: 2; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; font: inherit; font-size: .8rem; letter-spacing: -.1em; color: #fff; background: rgba(7, 33, 63, .7); border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; cursor: pointer; }
.hero-pause:hover { background: rgba(7, 33, 63, .9); }
@media (min-width: 900px) {
    .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 31rem; }
    .hero-copy { padding: 3.5rem 3rem 3.5rem max(1.25rem, calc((100vw - 72rem) / 2 + 1.25rem)); }
    .hero-media { min-height: 100%; }
}
@media (max-width: 899px) { .hero-media { order: -1; aspect-ratio: 16 / 9; min-height: 0; } .hero-media::after { background: none; } }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

.btn-gold { background: var(--brand-accent-bright); color: var(--brand-primary); }
.btn-gold:hover { background: #D9AA52; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.showcase { display: grid; gap: 2.5rem; align-items: center; padding-top: 4.5rem; }
@media (min-width: 900px) { .showcase { grid-template-columns: 1fr 1fr; } }
.sample { margin: 0; max-width: 28rem; justify-self: center; width: 100%; }
.sample-card { background: #fff; border: 1px solid var(--brand-line); border-top: 4px solid var(--brand-accent-bright); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: 0 24px 48px -24px rgba(7, 33, 63, .45); }
.sample-name { font-size: 1.25rem; font-weight: 700; margin: 0; }
.sample-facts { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; font-size: .9rem; }
.sample-facts li { background: var(--brand-surface); border-radius: 8px; padding: .5rem .75rem; }
.sample-lock-unused { display: flex; align-items: center; gap: .5rem; border-top: 1px solid var(--brand-line); padding-top: 1rem; margin-top: 1.25rem; color: var(--brand-accent); font-size: .9rem; font-weight: 600; }
.sample figcaption { margin-top: .75rem; }

.band { background: var(--brand-surface); border-top: 1px solid var(--brand-line); border-bottom: 1px solid var(--brand-line); padding: 4rem 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 2rem; }
.steps li { border-top: 3px solid var(--brand-accent-bright); padding-top: 1rem; }
.steps h3 { font-size: 1.05rem; margin-top: .25rem; }
.steps p { font-size: .9rem; }
.step-number { color: var(--brand-accent); font-weight: 800; font-size: .9rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: 1.5rem; padding-top: 4rem; }
.panel { border-radius: var(--radius-lg); padding: 2rem; }
.panel h2 { font-size: 1.5rem; font-weight: 800; }
.panel p { max-width: 50ch; margin-bottom: 1.5rem; }
.panel-brand { background: var(--brand-primary); color: var(--brand-primary-fg); }
.panel-brand p { opacity: .9; }
.panel-accent { background: var(--brand-accent-soft); }
.panel-brand h2 { color: #fff; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; } }

/* Cartes & talents */
.card { background: #fff; border: 1px solid var(--brand-line); border-radius: var(--radius-lg); padding: 1.5rem; }
.page-title { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 800; }
.talent-head { display: flex; gap: .9rem; align-items: flex-start; }
.avatar { flex: none; width: 3rem; height: 3rem; border-radius: 50%; background: var(--brand-primary); color: var(--brand-primary-fg); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.avatar-lg { width: 3.5rem; height: 3.5rem; font-size: 1.1rem; }
.talent-name { font-size: 1.05rem; margin: 0; }
.talent-head p { margin: 0; }
.talent-grid { display: grid; gap: 1.25rem; margin-top: 1rem; }
.talent-card { display: flex; flex-direction: column; }
.talent-foot { margin-top: auto; padding-top: .75rem; }
.chips { list-style: none; padding: 0; margin: 1rem 0 .75rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .78rem; }
.chips li { background: var(--brand-surface); border-radius: 6px; padding: .25rem .5rem; }
.result-count { font-weight: 700; margin-top: 1.5rem; font-size: .9rem; }
@media (min-width: 640px) { .talent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .talent-grid { grid-template-columns: repeat(3, 1fr); } }
.badge-verified { display: inline-flex; align-items: center; gap: .3rem; background: color-mix(in srgb, var(--brand-success) 12%, white); color: var(--brand-success); font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .25rem .6rem; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; }

/* Formulaires */
.auth-wrap { max-width: 36rem; margin: 0 auto; padding: 3.5rem 1.25rem; }
.auth-card { margin-top: 1.75rem; }
.form { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
.form-secondary { margin-top: -.25rem; }
.form-title { font-size: 1.05rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .9rem; font-weight: 600; }
.field input { font: inherit; font-size: 1rem; padding: .65rem .75rem; border: 1px solid var(--brand-line); border-radius: 8px; background: #fff; color: var(--brand-ink); }
.field input:focus { border-color: var(--brand-primary); }
.hint { font-size: .8rem; color: var(--brand-muted); margin: 0; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: .9rem; font-weight: 600; margin-bottom: .5rem; padding: 0; }
.choice-group { display: grid; gap: .75rem; }
.choice-group legend { grid-column: 1 / -1; }
@media (min-width: 560px) { .choice-group { grid-template-columns: 1fr 1fr; } }
.choice { display: grid; grid-template-columns: auto 1fr; gap: .15rem .5rem; border: 1px solid var(--brand-line); border-radius: var(--radius); padding: .9rem; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand-primary); box-shadow: 0 0 0 1px var(--brand-primary); background: var(--brand-surface); }
.choice input { margin-top: .3rem; }
.choice-title { font-weight: 700; }
.choice-hint { grid-column: 2; font-size: .82rem; color: var(--brand-muted); }
.company-fields { border: 1px dashed var(--brand-line); border-radius: var(--radius); padding: 1rem; }
.company-fields[hidden] { display: none; }
.checks { display: flex; flex-direction: column; gap: .6rem; font-size: .9rem; }
.check { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }

/* Messages */
.alert { border-radius: 8px; padding: .75rem 1rem; font-size: .9rem; margin-bottom: 1rem; }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert-error { background: color-mix(in srgb, var(--brand-danger) 6%, white); border: 1px solid color-mix(in srgb, var(--brand-danger) 30%, white); color: var(--brand-danger); }
.alert-success { background: color-mix(in srgb, var(--brand-success) 7%, white); border: 1px solid color-mix(in srgb, var(--brand-success) 30%, white); color: var(--brand-ink); }
.alert-title { font-size: 1.1rem; }
.notice { background: var(--brand-surface); border-radius: var(--radius); padding: 1rem; margin: 1.25rem 0; }
.notice h2 { font-size: 1rem; }

/* Tableau de bord */
.dashboard-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.dashboard-grid h2 { font-size: 1.05rem; }
.facts { display: grid; gap: 1rem; margin: 0; }
.facts dt { font-size: .85rem; color: var(--brand-muted); }
.facts dd { margin: .2rem 0 0; font-weight: 700; }
@media (min-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .dashboard-grid { grid-template-columns: 2fr 1fr; } }

/* Juridique & erreurs */
.legal-text { white-space: pre-line; margin-top: 2rem; line-height: 1.7; }
.error-page { padding-top: 6rem; padding-bottom: 6rem; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--brand-line); margin: 0; line-height: 1; }

/* Utilitaires */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.text-danger { color: var(--brand-danger); }
.btn-sm { padding: .4rem .7rem; font-size: .8rem; }
select, textarea { font: inherit; font-size: 1rem; padding: .6rem .75rem; border: 1px solid var(--brand-line); border-radius: 8px; background: #fff; color: var(--brand-ink); width: 100%; }
textarea { resize: vertical; }
select:focus, textarea:focus { border-color: var(--brand-primary); }
progress { width: 100%; height: .6rem; border: 0; border-radius: 999px; overflow: hidden; background: var(--brand-line); appearance: none; }
progress::-webkit-progress-bar { background: var(--brand-line); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--brand-accent-bright); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--brand-accent-bright); border-radius: 999px; }

/* Profil candidat */
.profile-head { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .profile-head { grid-template-columns: 1fr 22rem; } }
.completion { display: flex; flex-direction: column; gap: .75rem; }
.completion-label { font-size: .9rem; display: flex; justify-content: space-between; }
.missing summary { cursor: pointer; font-size: .85rem; color: var(--brand-accent); font-weight: 600; }
.missing ul { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .85rem; color: var(--brand-muted); }
.status-pill { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .25rem .65rem; background: var(--brand-surface); color: var(--brand-muted); }
.status-pending_review, .doc-pending { background: var(--brand-accent-soft); color: var(--brand-accent); }
.status-active, .status-verified, .doc-verified { background: color-mix(in srgb, var(--brand-success) 12%, white); color: var(--brand-success); }
.status-rejected, .status-suspended, .doc-rejected { background: color-mix(in srgb, var(--brand-danger) 10%, white); color: var(--brand-danger); }
.section-nav { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--brand-line); margin: 2rem 0 1.5rem; }
.section-nav a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--brand-muted); padding: .7rem .9rem; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.section-nav a:hover { color: var(--brand-primary); }
.section-nav a[aria-current="page"] { color: var(--brand-primary); border-bottom-color: var(--brand-accent-bright); }
.profile-section { display: flex; flex-direction: column; gap: 1.5rem; }
.profile-section h2 { font-size: 1.2rem; }
.inline-choices { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.inline-choice { display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; cursor: pointer; }
.check-grid { display: grid; gap: .5rem 1rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.language-rows { display: grid; gap: .5rem; }
.language-row { display: grid; grid-template-columns: 1fr 12rem; gap: 1rem; align-items: center; }
.optional-block { border-top: 1px solid var(--brand-line); padding-top: 1rem; }
.notice-lock { display: flex; gap: .5rem; align-items: flex-start; color: var(--brand-accent); font-weight: 600; font-size: .9rem; margin-top: 0; }
.notice-lock svg { flex: none; margin-top: .15rem; }
.entry-block { display: flex; flex-direction: column; gap: 1rem; }
.entry { border: 1px solid var(--brand-line); border-radius: var(--radius); padding: 1rem; }
.entry-summary { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.entry h3 { font-size: 1rem; margin: 0 0 .15rem; }
.entry p { margin: 0; }
.entry-edit summary { cursor: pointer; color: var(--brand-primary); font-weight: 600; font-size: .85rem; margin-top: .6rem; }
.entry-edit[open] { border-top: 1px dashed var(--brand-line); margin-top: .75rem; padding-top: .25rem; }
.entry-edit .form { margin-top: 1rem; }
.entry-add summary { list-style: none; display: inline-flex; }
.entry-add summary::-webkit-details-marker { display: none; }
.entry-add[open] .form { margin-top: 1rem; border: 1px dashed var(--brand-line); border-radius: var(--radius); padding: 1rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-muted); padding: .5rem; border-bottom: 1px solid var(--brand-line); }
.table td { padding: .75rem .5rem; border-bottom: 1px solid var(--brand-line); vertical-align: top; }
.upload-form { border-top: 1px solid var(--brand-line); padding-top: 1.25rem; margin-top: 1.25rem; }
.upload-form h3 { font-size: 1rem; }
input[type="file"] { font-size: .9rem; }
.photo-row { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; margin-top: 1rem; }
.photo-preview { width: 160px; height: 160px; min-height: 160px; object-fit: cover; border-radius: 50%; border: 3px solid var(--brand-accent-soft); }
.avatar-xl { width: 160px; height: 160px; font-size: 2.5rem; }
.avatar-photo { object-fit: cover; padding: 0; }
.photo-actions { flex: 1; min-width: 16rem; display: flex; flex-direction: column; gap: 1rem; }
.consent { border: 1px solid var(--brand-line); border-radius: var(--radius); padding: .9rem; gap: .5rem; margin: 0; }

/* Bouton de support WhatsApp (lien simple, sans script tiers) */
.wa-button { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 50; display: inline-flex; align-items: center; gap: .5rem; background: #0E7A3F; color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; padding: .75rem 1.1rem; border-radius: 999px; box-shadow: 0 10px 24px -8px rgba(7, 33, 63, .55); transition: background-color .15s, transform .15s; }
.wa-button:hover { background: #0A6232; transform: translateY(-1px); }
.wa-button:focus-visible { outline: 3px solid var(--brand-accent-bright); outline-offset: 3px; }
@media (max-width: 640px) { .wa-button { padding: .85rem; } .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; } }
@media print { .wa-button { display: none; } }
.footer-support { margin-top: .5rem; }
.site-footer { padding-bottom: 4.5rem; } /* le bouton ne masque pas le bas du pied de page */

/* Coordonnées floutées : texte FACTICE, les vraies coordonnées ne quittent jamais le serveur */
.contact-locked { border: 1px dashed var(--brand-line); border-radius: var(--radius); padding: .6rem .75rem; margin: .75rem 0 .25rem; background: var(--brand-surface); }
.contact-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.contact-rows li { display: flex; align-items: center; gap: .5rem; color: var(--brand-muted); font-size: .9rem; }
.contact-blur { filter: blur(4.5px); user-select: none; -webkit-user-select: none; pointer-events: none; color: var(--brand-ink); font-weight: 600; letter-spacing: .02em; }
.contact-lock-note { display: flex; align-items: center; gap: .35rem; margin: .5rem 0 0; font-size: .75rem; font-weight: 700; color: var(--brand-accent); }
@media print { .contact-blur { color: transparent; } }

.featured-talent .talent-card { border-top: 4px solid var(--brand-accent-bright); box-shadow: 0 24px 48px -24px rgba(7, 33, 63, .45); }
.showcase .btn { margin-top: .75rem; }
@media (min-width: 900px) { .showcase-single { grid-template-columns: 1fr; } }

/* ===== Profil candidat : onglets supplémentaires ===== */
.profile-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1rem; }
.profile-head-actions p { margin: 0; }
.inline-choices.stacked { flex-direction: column; gap: .4rem; }
.form-section { font-size: 1.1rem; border-top: 1px solid var(--brand-line); padding-top: 1.25rem; margin-top: .5rem; }
.yesno-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .yesno-grid { grid-template-columns: repeat(3, 1fr); } }
.yesno { border: 1px solid var(--brand-line); border-radius: var(--radius); padding: .75rem; }
.portfolio-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin-top: 1rem; }
.portfolio-item { border: 1px solid var(--brand-line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.portfolio-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.portfolio-body { padding: .75rem; }
.portfolio-body h3 { font-size: .95rem; margin: 0 0 .25rem; }
.quote { font-style: italic; color: var(--brand-ink); margin-top: .35rem; }

/* ===== Page profil talent (façon Upwork) ===== */
.preview-banner { background: var(--brand-primary); color: #fff; padding: .75rem 0; }
.preview-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.preview-inner p { margin: 0; font-size: .92rem; }
.breadcrumb { margin: 0 0 1rem; font-size: .9rem; }
.talent-page { padding-top: 2rem; }
.tp-header { display: grid; gap: 1.5rem; align-items: start; padding: 1.75rem; }
@media (min-width: 900px) { .tp-header { grid-template-columns: 1fr 20rem; } }
.tp-identity { display: flex; gap: 1.25rem; align-items: flex-start; }
.tp-avatar { flex: none; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid var(--brand-accent-soft); }
.tp-avatar-initials { display: flex; align-items: center; justify-content: center; background: var(--brand-primary); color: #fff; font-size: 2.2rem; font-weight: 800; }
.tp-name { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin: 0; display: flex; align-items: center; gap: .4rem; }
.tp-verified { color: var(--brand-accent-bright); display: inline-flex; }
.tp-headline { font-size: 1.1rem; font-weight: 600; margin: .35rem 0; }
.tp-location { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; font-size: .9rem; margin: 0; }
.tp-chips { margin-top: .9rem; }
.chip-strong { background: var(--brand-primary) !important; color: #fff; font-weight: 700; }
.chip-green { background: color-mix(in srgb, var(--brand-success) 14%, white) !important; color: var(--brand-success); font-weight: 700; }
.tp-action { display: flex; flex-direction: column; gap: .6rem; }
.tp-action .contact-locked { margin: 0; }
@media (max-width: 560px) { .tp-identity { flex-direction: column; } .tp-avatar { width: 88px; height: 88px; } }

.tp-layout { display: grid; gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
@media (min-width: 900px) { .tp-layout { grid-template-columns: 19rem 1fr; } }
.tp-side { display: flex; flex-direction: column; gap: 1rem; }
.tp-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.tp-box { padding: 1.25rem; }
.tp-box h2, .tp-section h2 { font-size: 1.05rem; margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.tp-section h2 { font-size: 1.2rem; }
.tp-box p { margin: 0 0 .5rem; }
.tp-dl { margin: .5rem 0 0; display: grid; gap: .6rem; }
.tp-dl dt { font-size: .78rem; color: var(--brand-muted); text-transform: uppercase; letter-spacing: .04em; }
.tp-dl dd { margin: .1rem 0 0; font-weight: 600; font-size: .92rem; }
.tp-langs { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.tp-langs li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .5rem; font-size: .9rem; }
.tp-lang-name { font-weight: 700; }
.tp-lang-level { color: var(--brand-muted); font-size: .82rem; text-align: right; }
.level-bar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.level-bar i { height: 5px; border-radius: 3px; background: var(--brand-line); }
.lvl-1 i:nth-child(-n+1), .lvl-2 i:nth-child(-n+2), .lvl-3 i:nth-child(-n+3), .lvl-4 i:nth-child(-n+4),
.lvl-5 i:nth-child(-n+5), .lvl-6 i:nth-child(-n+6), .lvl-7 i:nth-child(-n+7) { background: var(--brand-accent-bright); }
.tp-checks, .tp-flags { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .45rem; font-size: .9rem; }
.tp-checks li, .tp-flags li { display: flex; gap: .5rem; align-items: baseline; }
.tp-checks .is-ok span, .tp-flags .is-ok span { color: var(--brand-success); font-weight: 800; }
.tp-checks .is-pending { color: var(--brand-muted); }
.tp-flags .is-no { color: var(--brand-muted); }
.tp-meta { padding: 0 .25rem; }
.tp-summary { white-space: pre-line; line-height: 1.7; }
.count { background: var(--brand-surface); color: var(--brand-muted); border-radius: 999px; font-size: .75rem; padding: .1rem .55rem; }
.skill-group + .skill-group { margin-top: 1rem; }
.skill-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-muted); margin-bottom: .45rem; }
.skill-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.skill-chips li { background: var(--brand-accent-soft); color: var(--brand-ink); border-radius: 999px; padding: .3rem .75rem; font-size: .85rem; font-weight: 600; }
.tp-portfolio { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.tp-portfolio figure { margin: 0; border: 1px solid var(--brand-line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.tp-portfolio img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.tp-portfolio figcaption { padding: .6rem .75rem; display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }
.timeline-item { display: grid; grid-template-columns: 1rem 1fr; gap: .9rem; position: relative; padding-bottom: 1.25rem; }
.timeline-item:not(:last-of-type)::before { content: ""; position: absolute; left: .43rem; top: 1rem; bottom: 0; width: 2px; background: var(--brand-line); }
.timeline-dot { width: 1rem; height: 1rem; border-radius: 50%; border: 3px solid var(--brand-accent-bright); background: #fff; margin-top: .2rem; }
.timeline-item h3 { font-size: 1rem; margin: 0 0 .15rem; }
.timeline-item p { margin: 0 0 .2rem; }
.timeline-item .chips { margin: .4rem 0 0; }
.tp-text { margin-top: .5rem !important; white-space: pre-line; font-size: .92rem; }
.mini-verified { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--brand-success); background: color-mix(in srgb, var(--brand-success) 12%, white); border-radius: 999px; padding: .05rem .45rem; vertical-align: middle; }
.cert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.cert-list li { display: flex; gap: .75rem; }
.cert-list p { margin: .1rem 0 0; }
.cert-icon { font-size: 1.3rem; }
.testimonial { margin: 0 0 1rem; padding: 1rem 1.25rem; border-left: 4px solid var(--brand-accent-bright); background: var(--brand-surface); border-radius: 0 var(--radius) var(--radius) 0; }
.testimonial p { font-style: italic; font-size: 1rem; }
.testimonial footer { font-size: .88rem; }
.reserved { display: flex; gap: .75rem; align-items: center; border: 1px dashed var(--brand-accent-bright); background: var(--brand-accent-soft); color: var(--brand-accent); border-radius: var(--radius); padding: 1rem; font-weight: 600; font-size: .92rem; }
.reserved p { margin: 0; }
.card-link { text-decoration: none; color: inherit; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.talent-card { position: relative; transition: box-shadow .15s, border-color .15s; }
.talent-card:hover { border-color: var(--brand-accent-bright); box-shadow: 0 12px 28px -18px rgba(7, 33, 63, .5); }
.card-link:focus-visible { outline: none; }
.talent-card:focus-within { outline: 3px solid var(--brand-accent-bright); outline-offset: 2px; }
.view-profile { display: inline-block; margin-bottom: .4rem; }

.skill-edit-group { border-top: 1px solid var(--brand-line); padding-top: .75rem; margin-top: .75rem; }
.skill-edit-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-muted); margin-bottom: .5rem; }

/* =================== ADMINISTRATION =================== */
.admin-body { background: #F4F5F7; display: block; }
.admin-shell { display: grid; min-height: 100vh; }
@media (min-width: 1000px) { .admin-shell { grid-template-columns: 250px minmax(0, 1fr); } }
.admin-side { background: var(--brand-primary); color: #DCE4EE; display: flex; flex-direction: column; padding: 1rem .75rem; gap: 1rem; }
@media (min-width: 1000px) { .admin-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.admin-brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .02em; padding: .25rem .5rem; }
.admin-brand img { background: #fff; border-radius: 8px; padding: 3px 5px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 999px) { .admin-nav { flex-direction: row; overflow-x: auto; } .admin-nav a span:not(.admin-badge) { white-space: nowrap; } .admin-side-foot { display: none; } }
.admin-nav a { display: flex; align-items: center; gap: .65rem; color: #C9D3E0; text-decoration: none; font-size: .9rem; font-weight: 600; padding: .55rem .7rem; border-radius: 8px; }
.admin-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-nav a[aria-current="page"] { background: rgba(201, 151, 58, .18); color: #fff; box-shadow: inset 3px 0 0 var(--brand-accent-bright); }
.admin-badge { margin-left: auto; background: var(--brand-accent-bright); color: var(--brand-primary); font-size: .72rem; font-weight: 800; border-radius: 999px; padding: .05rem .5rem; min-width: 1.4rem; text-align: center; }
.admin-side-foot { margin-top: auto; padding: .5rem; }
.admin-side-foot a { color: #C9D3E0; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-top { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--brand-line); padding: .9rem 1.5rem; position: sticky; top: 0; z-index: 5; }
.admin-title { font-size: 1.35rem; margin: 0; }
.admin-top-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.admin-content { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.admin-card { padding: 1.25rem; border-radius: 12px; }
.admin-card h2 { font-size: 1.02rem; margin-bottom: .8rem; display: flex; align-items: center; gap: .5rem; }
.admin-h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-muted); margin: 1rem 0 .5rem; }
.admin-grid-2 { display: grid; gap: 1.25rem; }
.admin-grid-3 { display: grid; gap: 1.25rem; }
.admin-grid-side { display: grid; gap: 1.25rem; align-items: start; }
.admin-col { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
@media (min-width: 900px) { .admin-grid-2 { grid-template-columns: 1fr 1fr; } .admin-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .admin-grid-side { grid-template-columns: minmax(0, 1fr) 360px; } }
.mt { margin-top: 1.25rem; }
.alert-warning { background: #FFF6E5; border: 1px solid #F0C36D; color: var(--brand-ink); }
.copy { user-select: all; font-size: 1rem; }

/* Chiffres clés */
.kpi-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.kpi { background: #fff; border: 1px solid var(--brand-line); border-radius: 12px; padding: 1rem; text-decoration: none; color: var(--brand-ink); display: flex; flex-direction: column; gap: .2rem; border-left: 4px solid var(--brand-line); transition: box-shadow .15s; }
.kpi:hover { box-shadow: 0 8px 20px -14px rgba(7, 33, 63, .6); }
.kpi-value { font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: var(--brand-primary); }
.kpi-label { font-size: .82rem; color: var(--brand-muted); font-weight: 600; }
.kpi-ok { border-left-color: var(--brand-success); }
.kpi-info { border-left-color: #2F6DB5; }
.kpi-warn { border-left-color: var(--brand-line); }
.kpi-alert { border-left-color: var(--brand-accent-bright); background: #FFFBF3; }
.kpi-alert .kpi-value { color: var(--brand-accent); }

/* Graphiques (SVG, sans bibliothèque externe) */
.chart { width: 100%; height: auto; }
.bar-a { fill: var(--brand-primary); }
.bar-b { fill: var(--brand-accent-bright); }
.bar-ok { fill: var(--brand-success); }
.bar-muted { fill: #B7BFC9; }
.chart-label { font-size: 10px; fill: var(--brand-muted); }
.chart-axis { stroke: var(--brand-line); }
.legend { font-size: .8rem; color: var(--brand-muted); display: flex; gap: .75rem; align-items: center; margin: .5rem 0 0; }
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; }
.dot-a { background: var(--brand-primary); } .dot-b { background: var(--brand-accent-bright); }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.hbars li { display: grid; grid-template-columns: minmax(8rem, 40%) 1fr 2.5rem; gap: .6rem; align-items: center; font-size: .82rem; }
.hbar { width: 100%; height: 10px; background: var(--brand-surface); border-radius: 3px; }
.hbar-value { text-align: right; font-weight: 700; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Listes */
.todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.todo li { display: flex; flex-direction: column; gap: .1rem; padding: .55rem 0; border-bottom: 1px solid var(--brand-surface); }
.todo li:last-child { border-bottom: 0; }
.todo a { font-weight: 700; color: var(--brand-primary); text-decoration: none; }
.todo a:hover { text-decoration: underline; }
.health { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .9rem; }
.health .ok { color: var(--brand-success); } .health .ko { color: var(--brand-danger); font-weight: 700; }
.audit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .85rem; }
.audit-list code, .admin-table code { font-size: .75rem; background: var(--brand-surface); padding: .05rem .35rem; border-radius: 4px; }

/* Filtres, onglets de statut, tableaux */
.status-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.status-tabs a { text-decoration: none; font-size: .82rem; font-weight: 600; color: var(--brand-muted); background: #fff; border: 1px solid var(--brand-line); border-radius: 999px; padding: .35rem .8rem; }
.status-tabs a span { background: var(--brand-surface); border-radius: 999px; padding: 0 .4rem; margin-left: .2rem; }
.status-tabs a[aria-current="true"] { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.status-tabs a[aria-current="true"] span { background: rgba(255, 255, 255, .2); }
.filters { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; }
.filters .field { min-width: 11rem; flex: 1; }
.filters .field input, .filters .field select { padding: .5rem .6rem; font-size: .9rem; }
.filters-actions { display: flex; gap: .5rem; }
.admin-table th { white-space: nowrap; }
.admin-table td { font-size: .88rem; }
.admin-table tr:hover td { background: #FAFBFC; }
.is-muted td { opacity: .5; }
.nowrap { white-space: nowrap; }
.mini-progress { width: 60px; height: .45rem; vertical-align: middle; }
.actions-cell { display: flex; gap: .35rem; flex-wrap: wrap; }
.inline-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.inline-form input, .inline-form select { padding: .35rem .5rem; font-size: .82rem; border: 1px solid var(--brand-line); border-radius: 6px; font: inherit; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-danger); cursor: pointer; font: inherit; text-decoration: underline; }
.btn-verified { background: color-mix(in srgb, var(--brand-success) 14%, white); color: var(--brand-success); border-color: color-mix(in srgb, var(--brand-success) 35%, white); }
.audit-json { max-width: 28rem; word-break: break-word; color: var(--brand-muted); }
.mono { font-family: "DejaVu Sans Mono", Consolas, monospace; font-size: .85rem; line-height: 1.5; }
.narrow-form { max-width: 48rem; }
.actions-row { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Pastilles de statut (candidats, entreprises, demandes, entretiens) */
.st-draft, .st-archived, .st-cancelled, .st-refused { background: #EEF0F3; color: #5B6573; }
.st-pending_review, .st-pending, .st-under_review, .st-submitted, .st-info_requested, .st-scheduled { background: var(--brand-accent-soft); color: var(--brand-accent); }
.st-active, .st-verified, .st-accepted, .st-hired, .st-completed, .st-company_introduced { background: color-mix(in srgb, var(--brand-success) 13%, white); color: var(--brand-success); }
.st-rejected, .st-suspended, .st-no_show { background: color-mix(in srgb, var(--brand-danger) 10%, white); color: var(--brand-danger); }
.st-introduction_in_preparation, .st-candidate_contacted, .st-interview_in_progress, .st-hiring_in_progress { background: #E7F0FA; color: #1F4F87; }

/* Fiches */
.admin-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: center; }
.admin-head-row .status-pill { margin-right: .5rem; }
.admin-dl { display: grid; gap: .75rem 1.5rem; margin: 0 0 .75rem; }
@media (min-width: 700px) { .admin-dl { grid-template-columns: 1fr 1fr; } .admin-dl.one { grid-template-columns: 1fr; } }
.admin-dl dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-muted); }
.admin-dl dd { margin: .1rem 0 0; font-weight: 600; font-size: .92rem; }
.admin-text { white-space: pre-line; background: var(--brand-surface); border-radius: 8px; padding: .8rem 1rem; font-size: .9rem; margin: .5rem 0 .75rem; }
.admin-entry { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: .65rem 0; border-bottom: 1px solid var(--brand-surface); }
.admin-entry p { margin: .3rem 0 0; }
.admin-thumbs { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.admin-thumbs figure { margin: 0; }
.admin-thumbs img { width: 128px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--brand-line); display: block; }
.decision { border-top: 4px solid var(--brand-accent-bright); }
.decision-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.decision-choice { display: flex; gap: .45rem; align-items: flex-start; border: 1px solid var(--brand-line); border-radius: 8px; padding: .55rem .75rem; cursor: pointer; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; }
.decision-choice:has(input:checked) { border-color: var(--brand-primary); background: var(--brand-surface); }
.decision-reject:has(input:checked), .decision-suspend:has(input:checked) { border-color: var(--brand-danger); background: #FDF1F0; }
.checks-form { border-top: 1px solid var(--brand-line); padding-top: .9rem; margin-top: .9rem; }
.note { border-left: 3px solid var(--brand-accent-bright); padding: .4rem .75rem; margin-bottom: .6rem; background: #FFFBF3; border-radius: 0 6px 6px 0; }
.note-meta { font-size: .78rem; color: var(--brand-muted); margin: 0; }
.note-body { white-space: pre-line; margin: .2rem 0 0; font-size: .9rem; }
.roles-form { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: center; }
.roles-help { padding-left: 1rem; }

/* Kanban des demandes */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: .9rem; overflow-x: auto; padding-bottom: .5rem; }
.kanban-col { background: #EBEEF2; border-radius: 12px; padding: .7rem; display: flex; flex-direction: column; gap: .55rem; min-height: 10rem; }
.kanban-col h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-muted); margin: 0 0 .2rem; display: flex; justify-content: space-between; }
.kanban-card { background: #fff; border-radius: 10px; padding: .7rem .8rem; text-decoration: none; color: var(--brand-ink); display: flex; flex-direction: column; gap: .15rem; border: 1px solid transparent; box-shadow: 0 1px 2px rgba(7, 33, 63, .08); }
.kanban-card:hover { border-color: var(--brand-accent-bright); }
.kanban-ref { font-size: .72rem; font-weight: 800; color: var(--brand-accent); display: flex; align-items: center; gap: .35rem; }
.dot-alert { width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand-danger); display: inline-block; }

/* Messagerie */
.inbox { list-style: none; margin: 0; padding: 0; }
.inbox li { border-bottom: 1px solid var(--brand-surface); }
.inbox li a { display: flex; flex-direction: column; gap: .2rem; padding: .8rem .4rem; text-decoration: none; color: var(--brand-ink); }
.inbox li a:hover { background: #FAFBFC; }
.inbox li.is-waiting a { border-left: 3px solid var(--brand-accent-bright); padding-left: .7rem; }
.inbox-top { display: flex; justify-content: space-between; gap: 1rem; }
.inbox-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; max-height: 34rem; overflow-y: auto; padding-right: .25rem; }
.bubble { max-width: 85%; border-radius: 12px; padding: .65rem .85rem; font-size: .92rem; }
.bubble-staff { background: #E9EEF5; align-self: flex-start; border-top-left-radius: 4px; }
.bubble-user { background: var(--brand-accent-soft); align-self: flex-end; border-top-right-radius: 4px; }
.admin-body .bubble-staff { align-self: flex-end; border-radius: 12px 4px 12px 12px; background: #E9EEF5; }
.admin-body .bubble-user { align-self: flex-start; border-radius: 4px 12px 12px 12px; background: #fff; border: 1px solid var(--brand-line); }
.bubble-flagged { border: 2px solid var(--brand-danger) !important; }
.bubble-meta { font-size: .75rem; color: var(--brand-muted); margin: 0 0 .25rem; }
.bubble-body { white-space: pre-line; }
.flag { color: var(--brand-danger); font-size: .78rem; font-weight: 700; margin: .35rem 0 0; }
.reply-form { border-top: 1px solid var(--brand-line); padding-top: 1rem; }

/* Entretiens & agenda */
.interview { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border: 1px solid var(--brand-line); border-radius: 10px; padding: .75rem .9rem; margin-bottom: .65rem; }
.interview p { margin: .25rem 0 0; }
.interview-cancelled { opacity: .6; }
.interview-actions { display: flex; flex-direction: column; gap: .4rem; align-items: flex-end; }
.timeline-admin { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--brand-line); display: grid; gap: .7rem; font-size: .88rem; }
.timeline-admin li { position: relative; }
.timeline-admin li::before { content: ""; position: absolute; left: -1.38rem; top: .35rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--brand-accent-bright); }
.calendar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.calendar-head h2 { margin: 0; text-transform: capitalize; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-dow { font-size: .72rem; text-transform: uppercase; color: var(--brand-muted); font-weight: 700; padding: .3rem; text-align: center; }
.cal-day { min-height: 5.5rem; background: #fff; border: 1px solid var(--brand-line); border-radius: 6px; padding: .3rem; display: flex; flex-direction: column; gap: 2px; }
.cal-day.is-other { background: #F7F8FA; opacity: .6; }
.cal-day.is-today { border: 2px solid var(--brand-accent-bright); }
.cal-num { font-size: .75rem; font-weight: 700; color: var(--brand-muted); }
.cal-event { font-size: .7rem; text-decoration: none; background: var(--brand-primary); color: #fff; border-radius: 4px; padding: .1rem .3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event.ev-cancelled { background: #B7BFC9; text-decoration: line-through; }
.cal-event.ev-completed { background: var(--brand-success); }
.wide-first { }

/* Côté entreprise / candidat */
.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.quick-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.quick-links .admin-badge { margin-left: .35rem; }
.progress-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; counter-reset: step; }
.progress-steps li { counter-increment: step; font-size: .8rem; font-weight: 600; color: var(--brand-muted); background: var(--brand-surface); border-radius: 999px; padding: .3rem .75rem; }
.progress-steps li::before { content: counter(step) ". "; }
.progress-steps li.is-done { background: color-mix(in srgb, var(--brand-success) 13%, white); color: var(--brand-success); }
.progress-steps li.is-current { background: var(--brand-primary); color: #fff; }
.facts.one { grid-template-columns: 1fr; }

.st-showcase { background: #EDE7FB; color: #5B3FA8; margin-left: .35rem; }
.warn-text { color: var(--brand-accent); font-weight: 700; }
.showcase-card { border-top: 4px solid #8E73D9; }

/* =================== CHAT DE SUPPORT =================== */
.sc { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: .75rem; }
.sc-bubble { position: relative; display: inline-flex; align-items: center; gap: .55rem; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .95rem;
    background: var(--brand-primary); color: #fff; padding: .85rem 1.2rem .85rem 1rem; border-radius: 999px;
    box-shadow: 0 14px 30px -10px rgba(7, 33, 63, .6), 0 0 0 3px rgba(201, 151, 58, .35); transition: transform .15s, background-color .15s; }
.sc-bubble:hover { background: var(--brand-primary-hover); transform: translateY(-2px); }
.sc-bubble svg { color: var(--brand-accent-bright); }
.sc.is-open .sc-bubble-label { display: none; }
.sc.is-open .sc-bubble { padding: .85rem; }
.sc-unread { position: absolute; top: -.35rem; right: -.2rem; background: var(--brand-danger); color: #fff; font-size: .72rem; min-width: 1.35rem; height: 1.35rem; border-radius: 999px; display: grid; place-items: center; border: 2px solid #fff; }
@media (max-width: 640px) { .sc-bubble-label { display: none; } .sc-bubble { padding: .9rem; } }
.sc-panel { width: min(380px, calc(100vw - 2rem)); height: min(560px, calc(100vh - 7rem)); background: #fff; border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column; box-shadow: 0 30px 60px -20px rgba(7, 33, 63, .55); border: 1px solid var(--brand-line); animation: sc-in .18s ease-out; }
@keyframes sc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sc-panel { animation: none; } .sc-bubble { transition: none; } }
.sc-head { display: flex; align-items: center; gap: .7rem; background: var(--brand-primary); color: #fff; padding: .85rem 1rem; }
.sc-logo { background: #fff; border-radius: 8px; padding: 3px 4px; }
.sc-head-text { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.sc-status { font-size: .75rem; color: #C9D3E0; }
.sc-status::before { content: "●"; margin-right: .3rem; color: #9AA5B3; }
.sc-status.is-online::before { color: #4ADE80; }
.sc-x { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 .25rem; }
.sc-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: #F7F8FA; }
.sc-msg { max-width: 85%; display: flex; flex-direction: column; gap: .15rem; }
.sc-text { margin: 0; padding: .6rem .85rem; border-radius: 14px; font-size: .92rem; white-space: pre-line; word-wrap: break-word; }
.sc-from-staff { align-self: flex-start; }
.sc-from-staff .sc-text { background: #fff; border: 1px solid var(--brand-line); border-top-left-radius: 4px; }
.sc-from-me { align-self: flex-end; align-items: flex-end; }
.sc-from-me .sc-text { background: var(--brand-primary); color: #fff; border-top-right-radius: 4px; }
.sc-from-system { align-self: center; max-width: 95%; }
.sc-from-system .sc-text { background: var(--brand-accent-soft); color: var(--brand-ink); font-size: .82rem; text-align: center; }
.sc-author, .sc-time { font-size: .7rem; color: var(--brand-muted); padding: 0 .3rem; }
.sc-intro, .sc-compose, .sc-ended { border-top: 1px solid var(--brand-line); padding: .8rem; display: flex; flex-direction: column; gap: .5rem; background: #fff; }
.sc-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.sc-intro input, .sc-intro textarea, .sc-compose textarea { font: inherit; font-size: .9rem; border: 1px solid var(--brand-line); border-radius: 8px; padding: .55rem .65rem; width: 100%; resize: none; }
.sc-intro input:focus, .sc-intro textarea:focus, .sc-compose textarea:focus { border-color: var(--brand-primary); outline: 2px solid color-mix(in srgb, var(--brand-accent-bright) 45%, transparent); }
.sc-consent { display: flex; gap: .45rem; font-size: .75rem; color: var(--brand-muted); align-items: flex-start; }
.sc-consent input { margin-top: .15rem; }
.sc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sc-error { color: var(--brand-danger); font-size: .8rem; margin: 0; }
.sc-compose { flex-direction: row; align-items: flex-end; }
.sc-compose textarea { max-height: 7rem; }
.sc-send { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: var(--brand-accent-bright); color: var(--brand-primary); cursor: pointer; display: grid; place-items: center; }
.sc-send:hover { background: #D9AA52; }
.sc-ended { align-items: center; text-align: center; }
.sc-ended p { margin: 0; }
.sc-stars { display: flex; gap: .25rem; justify-content: center; }
.sc-stars button { background: none; border: 0; font-size: 1.6rem; color: #CBD2DB; cursor: pointer; padding: 0 .1rem; }
.sc-stars button:hover, .sc-stars button:hover ~ button { color: #CBD2DB; }
.sc-stars:hover button { color: var(--brand-accent-bright); }
.sc-stars button:hover ~ button { color: #CBD2DB; }
.sc-foot { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem .9rem; border-top: 1px solid var(--brand-line); background: #fff; min-height: 1.8rem; }
.sc-link { background: none; border: 0; padding: 0; font: inherit; font-size: .75rem; color: var(--brand-muted); cursor: pointer; text-decoration: underline; }
.site-footer { padding-bottom: 5.5rem; }

/* Administration : conversation en direct */
.live-chat { display: flex; flex-direction: column; }
.live-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; font-size: .85rem; }
.presence { color: var(--brand-muted); font-weight: 600; }
.presence.is-online { color: var(--brand-success); }
.live-thread { max-height: 32rem; min-height: 18rem; background: #F7F8FA; border-radius: 10px; padding: .9rem; }
.bubble-system { align-self: center; background: var(--brand-accent-soft); font-size: .82rem; max-width: 90%; }
.canned { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.canned .btn-ghost { border: 1px solid var(--brand-line); }
