/* Hector Emploi - charte corporate securite, version moderne avec animations
   Palette : bleu nuit + or + gris perle. Typo : Inter via Bunny Fonts. */

:root {
    --c-primary:        #142640;
    --c-primary-2:      #1f3a5f;
    --c-primary-3:      #28507f;
    --c-accent:         #d4a017;
    --c-accent-2:       #e6b937;
    --c-accent-dark:    #a87f0e;
    --c-bg:             #f6f7f9;
    --c-bg-alt:         #eef1f5;
    --c-card:           #ffffff;
    --c-text:           #16202f;
    --c-muted:          #5a6473;
    --c-muted-soft:     #8a93a3;
    --c-border:         #e1e5eb;
    --c-border-strong:  #c8cdd6;
    --c-success:        #1f7d52;
    --c-warning:        #b25e0a;
    --c-danger:         #c0312a;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 22px;
    --shadow-sm: 0 1px 2px rgba(20,38,64,.05);
    --shadow-md: 0 6px 22px rgba(20,38,64,.10);
    --shadow-lg: 0 18px 60px rgba(20,38,64,.18);
    --shadow-glow: 0 0 0 1px rgba(212,160,23,.25), 0 12px 30px rgba(212,160,23,.18);
    --maxw: 1180px;
    --maxw-narrow: 980px;
    --t-fast: 160ms cubic-bezier(.4,0,.2,1);
    --t: 240ms cubic-bezier(.4,0,.2,1);
    --t-slow: 420ms cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--c-primary-2); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-primary); }

h1, h2, h3, h4 {
    color: var(--c-primary);
    line-height: 1.12;
    letter-spacing: -.02em;
    font-weight: 700;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 4.5vw + .2rem, 3.8rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 2vw + .8rem, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.18rem; font-weight: 700; }
h4 { font-size: .95rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
p  { margin: 0 0 1em; }

.muted { color: var(--c-muted); }
.muted.small { font-size: .85rem; }
.muted-light { color: rgba(255,255,255,.78); }
.center { text-align: center; }
.text-accent {
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
    font-weight: 800;
}
.eyebrow {
    display: inline-block;
    color: var(--c-accent-dark);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 1em;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 720px; }

/* ============ Animations ============ */
@keyframes float        { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse-ring   { 0% { box-shadow: 0 0 0 0 rgba(212,160,23,.6); } 70% { box-shadow: 0 0 0 14px rgba(212,160,23,0); } 100% { box-shadow: 0 0 0 0 rgba(212,160,23,0); } }
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes shimmer      { 0% { background-position: -1000px 0; } 100% { background-position: 1000px 0; } }
@keyframes spin-slow    { to { transform: rotate(360deg); } }

/* Reveal au scroll : invisible par defaut, apparait quand .is-visible */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms cubic-bezier(.22,1,.36,1) var(--d, 0s),
                transform 700ms cubic-bezier(.22,1,.36,1) var(--d, 0s);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ============ Header ============ */
.site-header {
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--c-border);
    position: sticky; top: 0; z-index: 50;
}
.header-row {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; color: var(--c-primary); }
.brand-mark {
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
    color: #fff;
    width: 38px; height: 38px;
    border-radius: var(--r-sm);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), 0 4px 10px rgba(20,38,64,.18);
}
.brand-name { letter-spacing: -.01em; font-size: 1.05rem; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
    color: var(--c-text);
    font-weight: 500;
    font-size: .95rem;
    transition: color var(--t-fast);
    position: relative;
}
.site-nav a:not(.btn)::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--c-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--t);
}
.site-nav a:not(.btn):hover { color: var(--c-primary); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav .nav-account { color: var(--c-primary); font-weight: 600; }

/* ============ Boutons ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .82rem 1.4rem;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--t), color var(--t), border-color var(--t),
                transform var(--t), box-shadow var(--t);
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.25), transparent 50%);
    opacity: 0;
    transition: opacity var(--t);
    pointer-events: none;
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(1px); }
.btn-arrow { transition: transform var(--t); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--c-primary-2); color: #fff; box-shadow: var(--shadow-md); }
.btn-accent {
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
    color: #2a1d04;
    box-shadow: 0 6px 18px rgba(212,160,23,.35);
}
.btn-accent:hover {
    box-shadow: 0 12px 32px rgba(212,160,23,.5);
    color: #2a1d04;
}
.btn-outline { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.92); color: var(--c-primary); border: 1px solid rgba(255,255,255,.3); }
.btn-ghost-light:hover { background: #fff; color: var(--c-primary); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }

/* ============ Hero ============ */
.site-main { min-height: calc(100vh - 72px - 160px); }

.hero {
    position: relative;
    min-height: min(720px, 92vh);
    display: flex; align-items: center;
    color: #fff;
    padding: 6rem 0 8rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-2) 60%, var(--c-primary-3) 100%);
}
.hero-video,
.hero-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 35%;
    z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(20,38,64,.86) 0%, rgba(20,38,64,.62) 50%, rgba(31,58,95,.74) 100%),
        radial-gradient(circle at 80% 10%, rgba(212,160,23,.20) 0%, transparent 45%);
}
.hero-inner {
    position: relative; z-index: 2;
    max-width: 860px;
    will-change: transform, opacity;
}
.hero h1 { color: #fff; max-width: 800px; margin-bottom: .5em; line-height: 1.05; }
.hero .lead { font-size: 1.18rem; max-width: 700px; opacity: .95; margin-bottom: 2rem; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    background: rgba(212,160,23,.16);
    color: var(--c-accent-2);
    border: 1px solid rgba(212,160,23,.42);
    padding: .42rem .9rem;
    border-radius: 999px;
    font-size: .75rem;
    letter-spacing: .14em;
    font-weight: 700;
    margin-bottom: 1.4rem;
    backdrop-filter: blur(8px);
}
.dot-pulse {
    width: 8px; height: 8px;
    background: var(--c-accent-2);
    border-radius: 50%;
    animation: pulse-ring 1.8s ease-out infinite;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-trust {
    margin-top: 2.4rem;
    display: flex; gap: 1.6rem; flex-wrap: wrap;
    color: rgba(255,255,255,.78);
    font-size: .85rem;
}
.trust-item { display: inline-flex; align-items: center; gap: .4rem; }
.trust-item svg { color: var(--c-accent-2); flex-shrink: 0; }

.hero-credit {
    position: absolute;
    bottom: 1rem; right: 1.5rem;
    z-index: 2;
    margin: 0;
    font-size: .72rem;
    color: rgba(255,255,255,.5);
}
.hero-credit a { color: rgba(255,255,255,.7); text-decoration: underline; }

/* ============ Stats ============ */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: -4rem auto 4rem;
    position: relative;
    z-index: 5;
}
.stat-card {
    background: var(--c-card);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--c-border);
    transition: transform var(--t), box-shadow var(--t);
    display: flex; flex-direction: column; align-items: flex-start;
    gap: .35rem;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-icon {
    background: linear-gradient(135deg, rgba(212,160,23,.14), rgba(212,160,23,.04));
    color: var(--c-accent-dark);
    width: 46px; height: 46px;
    border-radius: var(--r-sm);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: .4rem;
}
.stat-number {
    font-size: 2.4rem; font-weight: 800;
    color: var(--c-primary);
    letter-spacing: -.025em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--c-muted); font-size: .92rem; font-weight: 500; }

/* ============ Sections communes ============ */
.section-head { text-align: center; max-width: 700px; margin: 0 auto 3rem; }

/* ============ Comment ca marche ============ */
.how { padding: 3.5rem 0 4rem; }
.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
}
.how-step {
    background: var(--c-card);
    border-radius: var(--r-lg);
    padding: 2rem 1.8rem;
    border: 1px solid var(--c-border);
    position: relative;
    transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t-slow);
}
.how-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-accent);
}
.how-num {
    position: absolute; top: -10px; right: 1.5rem;
    background: var(--c-primary);
    color: var(--c-accent-2);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .15em;
    padding: .35rem .7rem;
    border-radius: 999px;
}
.how-icon {
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
    color: #fff;
    width: 56px; height: 56px;
    border-radius: var(--r-md);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1.1rem;
    box-shadow: 0 6px 18px rgba(20,38,64,.22);
}
.how-step h3 { color: var(--c-primary); margin-bottom: .5em; font-size: 1.25rem; }
.how-step p { color: var(--c-muted); margin: 0; font-size: .95rem; line-height: 1.6; }

/* ============ Features 4 cards ============ */
.features { padding: 3.5rem 0 4rem; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.feature {
    background: var(--c-card);
    border-radius: var(--r-md);
    padding: 1.8rem;
    border: 1px solid var(--c-border);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    position: relative;
    overflow: hidden;
}
.feature::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-slow);
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-border-strong);
}
.feature:hover::before { transform: scaleX(1); }
.feature-icon {
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
    color: #fff;
    width: 48px; height: 48px;
    border-radius: var(--r-sm);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    transition: transform var(--t);
}
.feature:hover .feature-icon { transform: rotate(-6deg) scale(1.05); }
.feature h3 { color: var(--c-primary); margin-bottom: .4em; }
.feature p { color: var(--c-muted); margin: 0; font-size: .95rem; }

/* ============ Split section (pour qui) ============ */
.split-section { padding: 4rem 0; }
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.split-content h2 { margin-bottom: .8em; }
.check-list {
    list-style: none; padding: 0;
    margin: 0 0 2rem;
    display: flex; flex-direction: column; gap: .8rem;
}
.check-list li {
    display: flex; align-items: flex-start; gap: .8rem;
    color: var(--c-text);
    font-size: 1rem;
}
.check {
    flex-shrink: 0;
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
    color: #2a1d04;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    box-shadow: 0 3px 8px rgba(212,160,23,.3);
}
.split-media {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
}
.split-media img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.media-badge {
    position: absolute;
    bottom: 1rem; left: 1rem;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    color: var(--c-primary);
    padding: .55rem 1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: .55rem;
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
}
.media-badge .dot-pulse { background: var(--c-accent-dark); }

/* ============ CTA bandeau ============ */
.cta-band {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-2) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 12s ease infinite;
    color: #fff;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 0% 100%, rgba(212,160,23,.22), transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(40,80,127,.45), transparent 50%);
}
.cta-row {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
    padding: 3.5rem 1.5rem;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }
.cta-buttons { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ============ Auth & forms ============ */
.auth-wrap { padding: 3rem 0 4rem; }
.auth-head { text-align: center; max-width: 620px; margin: 0 auto 2rem; }
.auth-head h1 { margin-bottom: .3em; }

.role-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    max-width: 820px; margin: 0 auto;
}
.role-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 2rem;
    text-align: left;
    color: var(--c-text);
    text-decoration: none !important;
    transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t-slow);
    display: flex; flex-direction: column; gap: .5rem;
    position: relative;
    overflow: hidden;
}
.role-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-slow);
}
.role-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--c-primary); }
.role-card:hover::after { transform: scaleX(1); }
.role-icon {
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
    color: #fff;
    width: 56px; height: 56px;
    border-radius: var(--r-md);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: .5rem;
}
.role-card h2 { color: var(--c-primary); margin-bottom: .2em; font-size: 1.4rem; }
.role-card p { color: var(--c-muted); margin: 0; font-size: .95rem; flex: 1; }
.role-cta { color: var(--c-accent-dark); font-weight: 600; margin-top: .8rem; }

.form-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    max-width: 620px;
    margin: 0 auto;
}
.form-card fieldset { border: none; padding: 0; margin: 0 0 1.5rem; }
.form-card legend {
    font-weight: 700;
    color: var(--c-primary);
    text-transform: uppercase;
    font-size: .76rem;
    letter-spacing: .12em;
    margin-bottom: .9rem;
    padding: 0;
}
.form-card label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--c-text);
    font-size: .9rem;
}
.form-card input[type=text],
.form-card input[type=email],
.form-card input[type=password],
.form-card input[type=tel],
.form-card input[type=number] {
    display: block; width: 100%;
    margin-top: .35rem;
    padding: .78rem .95rem;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--r-sm);
    font-size: 1rem;
    font-family: inherit;
    color: var(--c-text);
    background: #fff;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-card input:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(31,58,95,.16);
}
.form-card small {
    display: block;
    margin-top: .35rem;
    color: var(--c-muted);
    font-size: .8rem;
    font-weight: 400;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-row.cols-3 { grid-template-columns: 2fr 2fr 1fr; }
.form-actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.auth-foot { text-align: center; color: var(--c-muted); font-size: .9rem; margin: 0; }

/* SIRET autocomplete */
.siret-status { display: block; margin-top: .35rem; font-size: .8rem; font-weight: 500; }
.siret-status.loading { color: var(--c-muted); }
.siret-status.ok { color: var(--c-success); }
.siret-status.warn { color: var(--c-warning); }
.siret-status.error { color: var(--c-danger); }
.siret-preview {
    margin-top: .9rem; padding: 1rem 1.1rem;
    background: var(--c-bg-alt);
    border-left: 3px solid var(--c-primary);
    border-radius: var(--r-sm);
    font-size: .9rem;
    animation: revealUp 400ms cubic-bezier(.22,1,.36,1);
}
@keyframes revealUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.siret-preview strong { color: var(--c-primary); display: block; margin-bottom: .3rem; }
.siret-meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; color: var(--c-muted); font-size: .85rem; }
.badge {
    display: inline-block;
    background: var(--c-primary);
    color: #fff;
    padding: .22rem .6rem;
    font-size: .72rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Alerts */
.alert {
    padding: .9rem 1.1rem;
    border-radius: var(--r-sm);
    margin-bottom: 1.2rem;
    font-size: .9rem;
    border: 1px solid;
}
.alert ul { margin: 0; padding-left: 1.2rem; }
.alert-error { background: #fdebea; border-color: #f3bdb9; color: var(--c-danger); }
.alert-info { background: #ebf2fb; border-color: #b9d2f1; color: #0f3a72; }
.alert-info strong { display: block; margin-bottom: .3em; }

/* Account */
.account-wrap { padding: 3rem 0 4rem; }
.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.account-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 1.8rem;
    transition: transform var(--t), box-shadow var(--t);
}
.account-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.account-card h3 { color: var(--c-primary); margin-bottom: .8em; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
    display: flex; justify-content: space-between; padding: .55rem 0;
    border-bottom: 1px solid var(--c-border);
    font-size: .92rem;
}
.info-list li:last-child { border: none; }
.info-list span { color: var(--c-muted); }

/* ============ Offres list (P2.E : natives + France Travail) ============ */
.offres-list { padding: 2.5rem 0 4rem; }
.offres-head { margin-bottom: 1.6rem; }
.offres-head h1 { margin: .2em 0 .3em; }
.offres-head p { margin: 0; }

.offres-filters {
    display: flex; align-items: flex-end; gap: .8rem; flex-wrap: wrap;
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--r-lg); padding: 1rem 1.2rem;
    margin-bottom: 1.5rem; box-shadow: var(--shadow-sm);
}
.ofilter { display: flex; flex-direction: column; gap: .3rem; min-width: 130px; flex: 1 1 130px; }
.ofilter span { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); font-weight: 600; }
.ofilter input, .ofilter select {
    padding: .5rem .7rem; border: 1px solid var(--c-border); border-radius: var(--r-sm);
    background: #fff; font: inherit;
}
.ofilter input:focus, .ofilter select:focus { border-color: var(--c-primary-3); outline: none; }

.offres-grid {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}
.offre-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    display: flex; flex-direction: column; gap: .5rem;
    position: relative; overflow: hidden;
}
.offre-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--c-border);
}
.offre-card.offre-native::before { background: linear-gradient(180deg, var(--c-accent), var(--c-accent-2)); }
.offre-card.offre-externe::before { background: var(--c-primary-3); }
.offre-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-border-strong); }

.offre-card-head { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.offre-source {
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    padding: .25em .7em; border-radius: 999px;
}
.offre-source-native { background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2)); color: #fff; }
.offre-source-ft     { background: var(--c-bg-alt); color: var(--c-primary); border: 1px solid var(--c-border); }
.offre-pill {
    font-size: .72rem; font-weight: 600;
    padding: .2em .65em; border-radius: 999px;
    background: var(--c-bg-alt); color: var(--c-primary-2);
}
.offre-pill-alt { background: #fdf0d6; color: var(--c-warning); }

.offre-titre {
    font-size: 1.05rem; font-weight: 700; color: var(--c-primary);
    margin: .1em 0 0; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.offre-entreprise { margin: 0; font-size: .92rem; }
.offre-meta {
    margin: 0; font-size: .9rem; color: var(--c-text);
    display: flex; align-items: center; gap: .35em;
}
.offre-meta.small { font-size: .82rem; color: var(--c-muted); }
.offre-meta svg { flex-shrink: 0; color: var(--c-muted-soft); }
.offre-card-foot { margin-top: auto; padding-top: .6rem; }
.offre-card-foot .btn { width: 100%; justify-content: center; gap: .4em; }

.offres-pagination { margin-top: 2rem; text-align: center; }

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--c-muted);
    background: var(--c-card);
    border: 1px dashed var(--c-border);
    border-radius: var(--r-lg);
}
.empty-state svg { color: var(--c-muted-soft); margin-bottom: 1rem; }
.empty-state h3 { color: var(--c-primary); }

.error-page { padding: 4rem 0 5rem; text-align: center; }
.error-page h1 { font-size: 5rem; color: var(--c-primary); margin-bottom: .2em; }

/* ============ BAN autocomplete ============ */
.ban-dropdown {
    list-style: none;
    margin: 0; padding: 4px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-md);
    max-height: 280px; overflow-y: auto;
    z-index: 30;
    display: none;
    margin-top: 4px;
}
.ban-dropdown.open { display: block; animation: revealUp 200ms cubic-bezier(.22,1,.36,1); }
.ban-dropdown li {
    padding: .55rem .75rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background var(--t-fast);
    font-size: .9rem;
    color: var(--c-text);
}
.ban-dropdown li:hover, .ban-dropdown li.is-selected { background: var(--c-bg-alt); }
.ban-dropdown li strong { display: block; font-weight: 500; }
.ban-meta { color: var(--c-muted); font-size: .8rem; }

/* ============ Layout liste /offres + carte ============ */
.offres-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 1100px) {
    .offres-layout { grid-template-columns: minmax(0, 1fr) 420px; }
    .offres-map-col .offres-map-sticky { position: sticky; top: 1rem; }
}
.offres-map-col { min-width: 0; }
.offres-map-title { font-size: 1rem; color: var(--c-primary); margin: 0 0 .6rem; }
.offres-map { height: 480px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-border); box-shadow: var(--shadow-md); background: var(--c-bg-alt); position: relative; }
.offres-map-empty { display: flex; align-items: center; justify-content: center; }
.offres-map-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; text-align: center; background: rgba(255,255,255,.85); }
.offre-card.is-highlight { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(212,160,23,.18), var(--shadow-md); transform: translateY(-2px); transition: all .2s; }

/* Filtres /offres : adapter pour 6 elements */
.offres-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; align-items: end; }
.offres-filters .ofilter { display: flex; flex-direction: column; gap: .25rem; }
.offres-filters .ofilter span { font-size: .72rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
.offres-filters .ofilter input, .offres-filters .ofilter select { padding: .5rem .7rem; border: 1px solid var(--c-border); border-radius: var(--r-sm); font: inherit; background: #fff; }
.offres-filters .btn { align-self: flex-end; }

/* ============ Carte missions MapTiler ============ */
.missions-map-section { padding: 3rem 0 4rem; }
.missions-map {
    height: 480px;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    background: var(--c-bg-alt);
}
.missions-map .maplibregl-popup-content {
    border-radius: var(--r-md);
    padding: 0;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.missions-map .maplibregl-popup-close-button { font-size: 1.4rem; padding: 0 .4rem; color: var(--c-muted); }
.map-fallback { padding: 2rem; text-align: center; color: var(--c-muted); }

/* Popup contenu */
.map-popup { padding: .9rem 1rem; min-width: 220px; max-width: 300px; }
.map-popup-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .35rem; }
.map-popup-head strong { color: var(--c-primary); font-size: .98rem; }
.map-popup-pill { display: inline-block; padding: 1px 8px; background: var(--c-accent); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 999px; letter-spacing: .04em; }
.map-popup-loc { font-size: .85rem; color: var(--c-muted); margin-bottom: .6rem; }
.map-popup-list { list-style: none; padding: 0; margin: .4rem 0 .8rem; display: flex; flex-direction: column; gap: .25rem; max-height: 200px; overflow-y: auto; font-size: .87rem; }
.map-popup-list li { display: flex; align-items: center; gap: .4rem; padding: .15rem 0; }
.map-popup-btn { display: inline-block; padding: .45rem .9rem; background: var(--c-primary); color: #fff !important; text-decoration: none; border-radius: var(--r-sm); font-size: .85rem; font-weight: 600; transition: background var(--t-fast); }
.map-popup-btn:hover { background: var(--c-primary-2); }
.map-popup-locked { display: flex; flex-direction: column; gap: .4rem; padding: .5rem .7rem; background: rgba(212,160,23,.12); border-left: 3px solid var(--c-accent); border-radius: var(--r-sm); font-size: .82rem; }

/* Marker custom */
.map-marker { position: relative; cursor: pointer; width: 30px; height: 38px; transform: translate(-50%, -100%); }
.map-marker-pin { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 32px; background: var(--c-primary); border: 2px solid #fff; border-radius: 50% 50% 50% 0; rotate: -45deg; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .2s; }
.map-marker:hover .map-marker-pin { transform: translateX(-50%) scale(1.1); }
.map-marker.map-marker-multi .map-marker-pin { background: var(--c-accent); }
.map-marker-count { position: absolute; top: -6px; right: -6px; background: #fff; color: var(--c-primary); font-size: .7rem; font-weight: 800; border-radius: 999px; padding: 1px 6px; min-width: 18px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.2); border: 1.5px solid var(--c-accent); }

@media (max-width: 720px) {
    .missions-map { height: 320px; }
}

/* ============ Footer compact ============ */
.site-footer {
    background: var(--c-primary);
    color: #b9c4d4;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,.06);
}
.footer-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
    padding: 1.6rem 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark {
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
    color: #2a1d04;
    width: 32px; height: 32px;
}
.footer-tag { color: #8a96aa; font-size: .85rem; }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-nav a {
    color: #b9c4d4;
    font-size: .88rem;
    transition: color var(--t-fast);
}
.footer-nav a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: .9rem 1.5rem;
    text-align: center;
    font-size: .8rem;
    color: #6f7c92;
}
.footer-bottom p { margin: 0; }

/* ============ Back-office admin ============ */
.admin-shell { padding: 2.5rem 0 4rem; }
.admin-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem;
    padding-bottom: 1.5rem; border-bottom: 1px solid var(--c-border);
}
.admin-head h1 { font-size: clamp(1.7rem, 2vw + .8rem, 2.2rem); margin: .2em 0 .3em; }
.admin-head p { margin: 0; max-width: 60ch; }
.admin-nav { display: flex; gap: .4rem; flex-wrap: wrap; }
.admin-nav-link {
    padding: .55rem 1rem; border-radius: var(--r-md);
    color: var(--c-muted); font-weight: 600; font-size: .92rem;
    background: var(--c-bg-alt); transition: all var(--t);
}
.admin-nav-link:hover { background: #e3e8ef; color: var(--c-primary); }
.admin-nav-link.active { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-sm); }

.admin-kpis {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem; margin-bottom: 2.5rem;
}
.kpi {
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--r-lg); padding: 1.2rem 1.3rem;
    display: flex; flex-direction: column; gap: .3rem;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    text-decoration: none; color: var(--c-text);
    position: relative; overflow: hidden;
}
.kpi::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--c-border-strong); transition: background var(--t);
}
a.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-border-strong); }
.kpi-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); font-weight: 600; }
.kpi-value { font-size: 2.2rem; font-weight: 800; color: var(--c-primary); line-height: 1; }
.kpi-action { color: var(--c-accent-dark); font-size: .85rem; font-weight: 600; margin-top: .3em; }
.kpi-warning::before { background: var(--c-warning); }
.kpi-warning .kpi-value { color: var(--c-warning); }
.kpi-success::before { background: var(--c-success); }
.kpi-success .kpi-value { color: var(--c-success); }
.kpi-danger::before { background: var(--c-danger); }
.kpi-danger .kpi-value { color: var(--c-danger); }

.admin-card {
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--r-lg); padding: 1.6rem 1.8rem;
    margin-bottom: 1.5rem; box-shadow: var(--shadow-sm);
}
.admin-card-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.2rem; gap: 1rem; flex-wrap: wrap;
}
.admin-card-head h2 { margin: 0; font-size: 1.25rem; }

.admin-table-wrap { overflow-x: auto; margin: 0 -.4rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.admin-table th, .admin-table td { padding: .8rem .7rem; text-align: left; border-bottom: 1px solid var(--c-border); }
.admin-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); font-weight: 700; }
.admin-table tbody tr { transition: background var(--t-fast); }
.admin-table tbody tr:hover { background: var(--c-bg-alt); }
.admin-table .small { font-size: .85rem; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }

.admin-filters {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.admin-tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.admin-tab {
    padding: .55rem 1rem; border-radius: var(--r-md);
    color: var(--c-muted); font-weight: 600; font-size: .92rem;
    background: transparent; border: 1px solid var(--c-border);
    transition: all var(--t);
    display: inline-flex; align-items: center; gap: .5rem;
}
.admin-tab:hover { background: var(--c-bg-alt); color: var(--c-primary); }
.admin-tab.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.badge-count {
    display: inline-block; min-width: 1.6em; padding: .1em .55em;
    border-radius: 999px; background: rgba(255,255,255,.18);
    font-size: .75em; font-weight: 700; text-align: center;
}
.admin-tab:not(.active) .badge-count { background: var(--c-bg-alt); color: var(--c-primary); }

.admin-search {
    display: flex; gap: .5rem; align-items: stretch;
}
.admin-search input[type=search] {
    padding: .55rem .9rem; border-radius: var(--r-md);
    border: 1px solid var(--c-border); background: #fff;
    font: inherit; min-width: 240px;
}
.admin-search input[type=search]:focus { border-color: var(--c-primary-3); outline: none; }

.admin-list { display: flex; flex-direction: column; gap: 1rem; }
.admin-entry {
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--r-lg); padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t);
}
.admin-entry:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.admin-entry-head {
    display: flex; gap: 1.2rem; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap;
}
.admin-entry-head h3 { margin: 0 0 .25em; font-size: 1.1rem; }
.admin-entry-meta { margin: 0 0 .25em; color: var(--c-muted); font-size: .92rem; }
.admin-entry-meta.small { font-size: .85rem; }
.admin-entry-status { flex-shrink: 0; }
.admin-entry-desc {
    margin: .8rem 0 0; padding: .8rem 1rem; background: var(--c-bg-alt);
    border-radius: var(--r-md); font-size: .92rem; color: var(--c-text);
}
.admin-entry-reason {
    margin: .6rem 0 0; padding: .6rem .9rem;
    background: #fdebea; border-left: 3px solid var(--c-danger);
    border-radius: var(--r-sm); font-size: .9rem;
}
.admin-entry-actions {
    margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--c-border);
    display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
}
.admin-entry-actions .inline { display: inline; }

.btn-sm { padding: .45rem .9rem; font-size: .88rem; }
.btn-success { background: var(--c-success); color: #fff; }
.btn-success:hover { background: #186641; color: #fff; }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover { background: #9a261f; color: #fff; }
.btn-outline-danger { background: transparent; color: var(--c-danger); border: 1px solid #f3bdb9; }
.btn-outline-danger:hover { background: #fdebea; color: var(--c-danger); }
.btn-link { background: transparent; color: var(--c-primary-2); padding: .45rem .4rem; }
.btn-link:hover { color: var(--c-primary); text-decoration: underline; }

.admin-refuse { display: inline-block; }
.admin-refuse summary { cursor: pointer; list-style: none; user-select: none; }
.admin-refuse summary::-webkit-details-marker { display: none; }
.admin-refuse[open] summary { background: #fdebea; }
.admin-refuse form {
    display: flex; flex-direction: column; gap: .5rem;
    margin-top: .6rem; padding: .8rem; background: var(--c-bg-alt);
    border-radius: var(--r-md); min-width: 320px; max-width: 480px;
}
.admin-refuse textarea {
    padding: .6rem .8rem; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm);
    font: inherit; resize: vertical; background: #fff;
}

.badge {
    display: inline-block; padding: .2em .7em; border-radius: 999px;
    font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
}
.badge-success { background: #dff5e8; color: var(--c-success); }
.badge-warning { background: #fdf0d6; color: var(--c-warning); }
.badge-danger  { background: #fdebea; color: var(--c-danger); }
.badge-soft    { background: var(--c-bg-alt); color: var(--c-muted); }

.alert-success { background: #dff5e8; border-color: #b0dfc4; color: var(--c-success); padding: .8rem 1rem; border-radius: var(--r-md); margin-bottom: 1.2rem; }

.nav-admin {
    padding: .45rem .8rem; border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
    color: #fff !important; font-weight: 700; font-size: .88rem;
    letter-spacing: .04em; text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(212,160,23,.3);
    transition: transform var(--t), box-shadow var(--t);
}
.nav-admin:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(212,160,23,.45); color: #fff !important; }
.nav-publier { background: var(--c-accent) !important; color: #fff !important; }

/* ============ Profil candidat (P3.B) ============ */
.agent-profil-wrap { padding: 2.5rem 0 4rem; }
.profil-photo-card {
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--r-lg); padding: 1.5rem; margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.profil-photo {
    width: 120px; height: 120px; border-radius: 50%;
    background: var(--c-bg-alt); flex-shrink: 0;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    border: 3px solid var(--c-border);
}
.profil-photo img { width: 100%; height: 100%; object-fit: cover; }
.profil-photo-placeholder { color: var(--c-muted-soft); }
.profil-photo-actions { flex: 1; min-width: 200px; }
.profil-photo-actions h3 { margin: 0 0 .3em; }
.profil-photo-actions p { margin: 0 0 .8em; }
.profil-photo-actions .btn { margin-right: .3em; }
.profil-photo-actions .inline { display: inline; }

.profil-form fieldset textarea {
    padding: .6rem .8rem; border: 1px solid var(--c-border); border-radius: var(--r-sm);
    font: inherit; resize: vertical; background: #fff;
    width: 100%; box-sizing: border-box;
}
.profil-form input:disabled { background: var(--c-bg-alt); color: var(--c-muted); cursor: not-allowed; }

.profil-status {
    margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: var(--r-md);
    text-align: center; font-size: .92rem;
}
.profil-status.is-complete { background: #dff5e8; color: var(--c-success); border: 1px solid #b0dfc4; }
.profil-status.is-incomplete { background: #fdf0d6; color: var(--c-warning); border: 1px solid #f3d48d; }

/* ============ Formulaire publication offre (P3.A) ============ */
.rec-form-wrap { padding: 2.5rem 0 4rem; }
.rec-form fieldset { border: none; padding: 0; margin: 0 0 2rem; border-top: 1px solid var(--c-border); padding-top: 1.5rem; }
.rec-form fieldset:first-of-type { border-top: none; padding-top: 0; }
.rec-form legend { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-accent-dark); margin-bottom: 1rem; padding: 0; }
.ccn-info { padding: .6rem .8rem; background: var(--c-bg-alt); border-radius: var(--r-sm); border-left: 3px solid var(--c-accent); margin: .5rem 0; }
.check-row { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: .6rem; cursor: pointer; padding: .6rem .8rem; border-radius: var(--r-sm); transition: background var(--t-fast); margin-bottom: .5rem; }
.check-row:hover { background: var(--c-bg-alt); }
.check-row input { width: auto; margin: .25em 0 0 0 !important; flex-shrink: 0; }
.check-row span { font-weight: 500; color: var(--c-text); }
.check-row span small { display: block; margin-top: .15em; font-weight: 400; }

.rem-toggle { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.rem-conventionnelle-info { padding: .8rem 1rem; background: var(--c-bg-alt); border-radius: var(--r-md); margin: .5rem 0; }
.rem-conventionnelle-info[hidden] { display: none; }
.rem-conventionnelle-info small.block { display: block; margin-top: .3em; font-size: .82rem; }
.rem-conventionnelle-info span { color: var(--c-accent-dark); font-weight: 700; font-size: 1.1rem; }
.rem-manuelle-fields[hidden] { display: none; }

.prereq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .5rem; }
.prereq-check { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: .5rem; padding: .55rem .7rem; border: 1px solid var(--c-border); border-radius: var(--r-sm); cursor: pointer; transition: all var(--t-fast); margin: 0 !important; }
.prereq-check:hover { border-color: var(--c-primary-3); background: var(--c-bg-alt); }
.prereq-check input { width: auto; margin: .25em 0 0 0 !important; flex-shrink: 0; }
.prereq-check input:checked + span { color: var(--c-primary); }
.prereq-check span { font-size: .85rem; line-height: 1.3; font-weight: 600; }
.prereq-check span small { display: block; font-weight: 400; color: var(--c-muted); margin-top: .1em; }
.prereq-check:has(input:checked) { border-color: var(--c-primary); background: rgba(20,38,64,.04); }

.form-actions-split { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; padding-top: 1rem; border-top: 1px solid var(--c-border); }
.form-actions-split .btn { flex: 1 1 auto; min-width: 200px; }

/* ============ Mes offres (recruteur) ============ */
.rec-shell { padding: 2.5rem 0 4rem; }
.rec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--c-border); }
.rec-head h1 { margin: .2em 0 .3em; font-size: clamp(1.7rem, 2vw + .8rem, 2.2rem); }
.rec-head p { margin: 0; max-width: 60ch; }
.rec-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.rec-entry { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.4rem 1.6rem; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t); }
.rec-entry:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.rec-entry-head { display: flex; gap: 1.2rem; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.rec-entry-head h3 { margin: 0 0 .25em; font-size: 1.1rem; }
.rec-entry-meta { margin: 0 0 .25em; color: var(--c-muted); font-size: .92rem; }
.rec-entry-meta.small { font-size: .85rem; }
.rec-entry-stats { display: flex; gap: 1.2rem; margin: .8rem 0 0; padding: .6rem .9rem; background: var(--c-bg-alt); border-radius: var(--r-sm); font-size: .9rem; }
.rec-entry-stats strong { color: var(--c-primary); font-size: 1.05rem; }
.rec-entry-actions { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--c-border); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.rec-entry-actions .inline { display: inline; }

/* ============ HectorCalendar ============ */
.hcal-wrap { display: block; }
.hcal-wrap[data-mode="edit"] { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 1.4rem; align-items: start; }
.hcal-wrap[data-mode="edit"] .hcal { max-width: none; margin: 0; }

/* Panneau edition (etapes 1 + 2) */
.hcal-wrap { display: flex; flex-direction: column; gap: 1.4rem; }
.hcal-edit-panel { display: flex; flex-direction: column; gap: 1.4rem; position: static; }
.hcal-step { display: block; padding: 1.4rem 1.6rem; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: 0 4px 14px -8px rgba(20,38,64,.12); position: relative; }
.hcal-step::before { content: ''; position: absolute; left: 0; top: 1.4rem; bottom: 1.4rem; width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--c-accent), var(--c-accent-dark)); }
.hcal-step-num { display: inline-flex; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-3)); color: #fff; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; margin-bottom: .6rem; box-shadow: 0 6px 14px -6px rgba(20,38,64,.4); }
.hcal-step-body { flex: 1; min-width: 0; }
.hcal-step-body h4 { margin: 0 0 .9rem; font-size: 1.1rem; color: var(--c-primary); font-weight: 800; }
.hcal-presets { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.hcal-presets .btn { font-size: .82rem; }
.hcal-cur-row { display: grid; grid-template-columns: 1fr 1fr 100px; gap: .8rem; margin: .6rem 0 .8rem; align-items: end; }
.hcal-cur-row label { display: flex; flex-direction: column; font-size: .75rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; gap: .3rem; }
.hcal-cur-row input { padding: .55rem .7rem; border: 1px solid var(--c-border); border-radius: var(--r-sm); font: inherit; background: #fff; box-sizing: border-box; }
.hcal-overnight-label { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-sm); cursor: pointer; font-size: .88rem; }
.hcal-overnight-label input { accent-color: var(--c-primary); }
.hcal-dow-checks { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; margin: .8rem 0; }
.hcal-dow-check { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .45rem .2rem; background: var(--c-bg); border: 2px solid var(--c-border); border-radius: var(--r-sm); cursor: pointer; font-size: .72rem; font-weight: 600; transition: all .15s; }
.hcal-dow-check input { accent-color: var(--c-primary); margin: 0; }
.hcal-dow-check:has(input:checked) { background: linear-gradient(135deg, rgba(20,38,64,.06), rgba(40,80,127,.03)); border-color: var(--c-primary-3); color: var(--c-primary); }
.hcal-range-row { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: .6rem; align-items: end; margin-top: .5rem; }
.hcal-range-row label { display: flex; flex-direction: column; font-size: .72rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; gap: .25rem; }
.hcal-range-row input { padding: .55rem .7rem; border: 1px solid var(--c-border); border-radius: var(--r-sm); font: inherit; background: #fff; }
.hcal-help { margin: 0 0 .6rem; }

/* Calendar shell — step 3 visuel */
.hcal-wrap .hcal { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.4rem; box-shadow: 0 4px 14px -8px rgba(20,38,64,.12); position: relative; }
.hcal-wrap[data-mode="edit"] .hcal::before { content: '3'; position: absolute; top: -16px; left: 1.4rem; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-3)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; box-shadow: 0 6px 14px -6px rgba(20,38,64,.4); }
.hcal-wrap[data-mode="edit"] .hcal::after { content: 'Calendrier — cliquez les dates ou appliquez en auto'; position: absolute; top: -10px; left: 4.4rem; padding: .15rem .65rem; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 999px; color: var(--c-primary); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.hcal-summary { padding: .9rem 1.1rem; background: linear-gradient(135deg, rgba(31,125,82,.08), transparent); border: 1px solid rgba(31,125,82,.2); border-radius: var(--r-md); color: var(--c-text); font-size: .9rem; min-height: 1.5rem; }
.hcal-summary:empty { display: none; }

@media (max-width: 700px) {
    .hcal-cur-row { grid-template-columns: 1fr 1fr; }
    .hcal-cur-row label:last-child { grid-column: 1 / -1; }
    .hcal-range-row { grid-template-columns: 1fr 1fr; }
    .hcal-range-row .btn { grid-column: span 1; }
    .hcal-dow-checks { gap: .25rem; }
    .hcal-step { padding: 1.1rem 1.2rem; }
    .hcal-wrap[data-mode="edit"] .hcal::after { display: none; }
}

.hcal-tabs { display: flex; gap: 0; border: 1px solid var(--c-border); border-radius: var(--r-sm); overflow: hidden; margin-bottom: .8rem; }
.hcal-tab { flex: 1; padding: .55rem .6rem; background: transparent; border: 0; cursor: pointer; font: inherit; font-size: .85rem; color: var(--c-muted); transition: all var(--t-fast); }
.hcal-tab:not(:last-child) { border-right: 1px solid var(--c-border); }
.hcal-tab:hover { background: var(--c-bg-alt); }
.hcal-tab.is-active { background: var(--c-primary); color: #fff; font-weight: 600; }

.hcal-help { margin: 0 0 .6rem; }

.hcal-dow-checks { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; margin-bottom: .8rem; }
.hcal-dow-check { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .35rem .15rem; border: 1px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-bg-alt); cursor: pointer; font-size: .72rem; font-weight: 600; color: var(--c-muted); transition: all var(--t-fast); }
.hcal-dow-check input { margin: 0; cursor: pointer; }
.hcal-dow-check:has(input:checked) { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.hcal-range-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .6rem; align-items: end; }
.hcal-range-row label { display: flex; flex-direction: column; font-size: .75rem; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; gap: .25rem; }
.hcal-range-row input { padding: .45rem .6rem; border: 1px solid var(--c-border); border-radius: var(--r-sm); font: inherit; }
.hcal-range-row .hcal-apply-auto { grid-column: 1 / -1; }
.hcal-range-row .hcal-clear-range { grid-column: 1 / -1; }

.hcal-summary { margin-top: .8rem; min-height: 1.5em; }
.hcal-summary-line { font-size: .9rem; color: var(--c-muted); }
.hcal-flash { padding: .55rem .8rem; border-radius: var(--r-sm); font-size: .88rem; font-weight: 600; margin-bottom: .5rem; animation: hcal-fade-in .25s ease-out; }
.hcal-flash-ok   { background: rgba(31,125,82,.12); color: var(--c-success); border-left: 3px solid var(--c-success); }
.hcal-flash-info { background: rgba(20,38,64,.06); color: var(--c-text); border-left: 3px solid var(--c-primary); }
@keyframes hcal-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 880px) {
    .hcal-wrap[data-mode="edit"] { grid-template-columns: 1fr; gap: 1rem; }
    .hcal-edit-panel { position: static; }
}

.hcal { width: 100%; max-width: 460px; margin: 0 auto; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1rem; box-shadow: var(--shadow-sm); }
.hcal-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; }
.hcal-nav button { background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: var(--r-sm); width: 36px; height: 36px; font-size: 1.4rem; cursor: pointer; transition: all var(--t-fast); }
.hcal-nav button:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.hcal-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--c-primary); text-align: center; flex: 1; text-transform: capitalize; }
.hcal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.hcal-weekdays span { text-align: center; font-size: .72rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; padding: .3em 0; }
.hcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hcal-day { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-sm); min-height: 44px; aspect-ratio: 1/1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15em; cursor: pointer; transition: all var(--t-fast); position: relative; padding: .2em; font-family: inherit; font-size: .9rem; color: var(--c-text); }
.hcal-day:hover { border-color: var(--c-primary-3); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.hcal-day.is-out { opacity: .25; cursor: default; pointer-events: none; }
.hcal-day.is-disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.hcal-day.is-today { border-color: var(--c-accent); border-width: 2px; font-weight: 700; }
.hcal-day.is-selected { background: var(--c-primary); color: #fff; border-color: var(--c-primary); font-weight: 700; }
.hcal-day.is-selected:hover { background: var(--c-primary-2); }
.hcal-day.is-partial { background: rgba(212,160,23,.18); border-color: var(--c-accent); }
.hcal-day.is-green { background: rgba(31,125,82,.15); border-color: var(--c-success); color: var(--c-success); font-weight: 600; }
.hcal-day.is-red { background: rgba(192,49,42,.06); border-color: rgba(192,49,42,.4); color: var(--c-danger); }
.hcal-num { font-size: 1rem; line-height: 1; }
.hcal-badge { font-size: .62rem; font-weight: 700; padding: 1px 4px; border-radius: 3px; background: rgba(255,255,255,.2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hcal-day:not(.is-selected) .hcal-badge { background: var(--c-accent); color: #fff; }
.hcal-badge-success { background: var(--c-success) !important; color: #fff !important; }

/* Sheet horaires (mobile = bottom sheet, desktop = modal centree) */
.hcal-sheet { position: fixed; inset: 0; background: rgba(20,38,64,.4); display: flex; align-items: flex-end; justify-content: center; z-index: 1000; padding: 0; opacity: 0; transition: opacity 200ms; }
.hcal-sheet.is-open { opacity: 1; }
.hcal-sheet[hidden] { display: none !important; }
.hcal-sheet-inner { background: #fff; width: 100%; max-width: 480px; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 1.5rem; transform: translateY(100%); transition: transform 280ms cubic-bezier(.22,1,.36,1); box-shadow: var(--shadow-lg); }
.hcal-sheet.is-open .hcal-sheet-inner { transform: translateY(0); }
.hcal-sheet-inner h4 { margin: 0 0 1rem; font-size: 1.05rem; color: var(--c-primary); }
.hcal-sheet-inner .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: .6rem; }
.hcal-sheet-inner label { display: flex; flex-direction: column; font-size: .82rem; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; gap: .3rem; }
.hcal-sheet-inner input { padding: .5rem .7rem; border: 1px solid var(--c-border); border-radius: var(--r-sm); font: inherit; }
.hcal-overnight-label { flex-direction: row !important; align-items: center; gap: .5rem; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; margin: .8rem 0; }
.hcal-overnight-label input { width: auto; margin: 0; }
.hcal-presets { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.hcal-sheet-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap; }

@media (min-width: 720px) {
    .hcal-sheet { align-items: center; padding: 2rem; }
    .hcal-sheet-inner { border-radius: var(--r-lg); transform: scale(.95); }
    .hcal-sheet.is-open .hcal-sheet-inner { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .hcal-sheet, .hcal-sheet-inner { transition: none !important; }
}

/* ============ Offre detail (P3.C) ============ */
.back-link { display: inline-block; color: var(--c-muted); font-size: .9rem; margin-bottom: 1rem; transition: color var(--t-fast); }
.back-link:hover { color: var(--c-primary); }
.offre-detail-head .od-pills { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.offre-detail-head h1 { margin: 0 0 .3rem; }
.od-entreprise { margin: 0 0 .3rem; }
.od-meta { display: inline-flex; align-items: center; gap: .4rem; color: var(--c-muted); font-size: .92rem; }
.od-grid { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; margin-top: 2rem; align-items: start; }
.od-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); margin-bottom: 1rem; }
.od-card h2 { margin: 0 0 .8rem; font-size: 1.05rem; color: var(--c-primary); }
.od-row { margin: .25rem 0; font-size: .94rem; }
.od-prereq-list { padding-left: 1.2rem; margin: 0; }
.od-prereq-list li { margin: .25rem 0; }
.od-creneau-list { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .4rem; }
.od-creneau-list li { display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; background: var(--c-bg-alt); border-radius: var(--r-sm); font-size: .9rem; }
.od-cdate { font-weight: 600; min-width: 100px; }
.od-chour { color: var(--c-muted); font-size: .85rem; }
.od-cta-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); position: sticky; top: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.od-cta-card h3 { margin: 0 0 .2rem; color: var(--c-primary); font-size: 1.05rem; }
.od-cta-card .btn { width: 100%; justify-content: center; }
.od-meta-side { margin-top: 1rem; line-height: 1.6; }

/* Postuler — choix mode */
.mode-card { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; border: 1px solid var(--c-border); border-radius: var(--r-md); margin-bottom: .6rem; cursor: pointer; transition: all var(--t-fast); }
.mode-card:hover { border-color: var(--c-primary-3); }
.mode-card:has(input:checked) { border-color: var(--c-primary); background: rgba(20,38,64,.04); }
.mode-card input { margin-top: .2rem; }
.mode-card-body { display: flex; flex-direction: column; gap: .2rem; }
.mode-card-body strong { color: var(--c-primary); }

/* Dashboard recruteur candidats */
.dash-grid { display: grid; grid-template-columns: minmax(320px, 480px) 1fr; gap: 2rem; margin-top: 1.5rem; align-items: start; }
.dash-cal-section h2, .dash-list-section h2 { font-size: 1.05rem; color: var(--c-primary); margin: 0 0 .6rem; }
.dash-day-detail { margin-top: 1rem; padding: 1rem; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.dash-day-detail h3 { margin: 0 0 .6rem; font-size: 1rem; color: var(--c-primary); text-transform: capitalize; }
.dash-day-detail ul { list-style: none; padding: 0; margin: 0; }
.ddd-cre { padding: .5rem 0; border-top: 1px dashed var(--c-border); }
.ddd-cre:first-child { border-top: 0; padding-top: 0; }
.ddd-head { font-size: .9rem; }
.ddd-ok strong { color: var(--c-success); }
.ddd-partial strong { color: var(--c-accent); }
.ddd-none strong { color: var(--c-danger); }
.ddd-names { list-style: disc; padding-left: 1.4rem; margin: .25rem 0 0; font-size: .9rem; }
.ddd-names li { margin: .15rem 0; }

.cand-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.cand-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); transition: all var(--t-fast); }
.cand-card:hover { border-color: var(--c-primary-3); box-shadow: var(--shadow-md); }
.cand-card-head { display: flex; align-items: center; gap: .8rem; }
.cand-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--c-border); flex-shrink: 0; }
.cand-photo-fallback { display: flex; align-items: center; justify-content: center; background: var(--c-primary); color: #fff; font-weight: 700; font-size: 1.1rem; text-transform: uppercase; }
.cand-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.cand-id strong { font-size: 1rem; }
.cand-card-meta { margin: .5rem 0 .3rem; font-size: .9rem; }
.cand-card-meta a { color: var(--c-primary); }
.cand-card-mode { margin: .25rem 0 0; }
.cand-card-msg { margin: .5rem 0 0; padding: .5rem .8rem; background: var(--c-bg-alt); border-left: 3px solid var(--c-accent); border-radius: var(--r-sm); font-size: .9rem; font-style: italic; color: var(--c-text); }

@media (max-width: 880px) {
    .od-grid { grid-template-columns: 1fr; }
    .od-cta-card { position: static; }
    .dash-grid { grid-template-columns: 1fr; }
}

/* ============ Admin agents fiche ============ */
.admin-entry-agent .admin-entry-head { display: flex; gap: 1rem; align-items: flex-start; }
.admin-entry-agent .admin-entry-photo { flex-shrink: 0; }
.admin-entry-agent .admin-entry-photo .cand-photo { width: 56px; height: 56px; }
.admin-entry-agent .admin-entry-body { flex: 1; min-width: 0; }
.admin-entry-agent .admin-entry-status { flex-shrink: 0; display: flex; flex-direction: column; gap: .35rem; align-items: flex-end; }
.admin-qualifs { display: flex; flex-wrap: wrap; gap: .3rem; margin: .35rem 0; }
.admin-entry-meta a { color: var(--c-primary); }

/* ============ Offline (PWA) ============ */
.offline-wrap { padding: 4rem 1rem; min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.offline-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 2rem 2.5rem; box-shadow: var(--shadow-md); text-align: center; max-width: 420px; }
.offline-card svg { color: var(--c-muted); margin-bottom: 1rem; }
.offline-card h1 { color: var(--c-primary); margin: 0 0 .5rem; }
.offline-card p { margin-bottom: 1.5rem; }

/* ============ Amis (P4.B) ============ */
.amis-wrap { padding-bottom: 4rem; }
.amis-search { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; }
.amis-search h2 { font-size: 1rem; color: var(--c-primary); margin: 0 0 .8rem; }
.amis-search input { width: 100%; padding: .65rem 1rem; border: 1px solid var(--c-border); border-radius: var(--r-md); font: inherit; }
.amis-search input:focus { border-color: var(--c-primary); outline: 0; box-shadow: 0 0 0 3px rgba(20,38,64,.1); }
.amis-search-results { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-direction: column; gap: .4rem; max-height: 360px; overflow-y: auto; }
.amis-search-result { display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem; background: var(--c-bg-alt); border-radius: var(--r-md); }
.amis-search-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.amis-section { margin-bottom: 2rem; }
.amis-section h2 { font-size: 1rem; color: var(--c-primary); margin: 0 0 .8rem; }
.amis-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.amis-card { display: flex; align-items: center; gap: .8rem; padding: .8rem 1.1rem; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.amis-card-pending { opacity: .85; }
.amis-card-blocked { background: rgba(192,49,42,.04); }
.amis-user-mini { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; }
.amis-user-info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.amis-user-info strong { font-size: .98rem; }
.amis-actions { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }

/* ============ Messages (P4.B DM) ============ */
.msg-wrap { padding-bottom: 4rem; }
.msg-thread-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.msg-thread-card { display: flex; gap: .8rem; padding: .9rem 1.1rem; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: all var(--t-fast); color: inherit; text-decoration: none; }
.msg-thread-card:hover { border-color: var(--c-primary-3); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.msg-thread-body { flex: 1; min-width: 0; }
.msg-thread-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.msg-thread-head strong { color: var(--c-primary); }
.msg-thread-date { font-variant-numeric: tabular-nums; }
.msg-thread-preview { margin: .25rem 0 0; color: var(--c-muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.conv-wrap { padding-bottom: 4rem; }
.conv-head { display: flex; align-items: center; gap: .8rem; margin: 1rem 0 1.2rem; padding: 1rem 1.2rem; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.conv-head h1 { margin: 0; font-size: 1.15rem; color: var(--c-primary); line-height: 1.2; }
.conv-head small { display: block; }
.conv-messages { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; height: 60vh; min-height: 360px; max-height: 600px; overflow-y: auto; background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: var(--r-lg); }
.conv-msg { display: flex; flex-direction: column; max-width: 75%; }
.conv-msg.is-mine { align-self: flex-end; align-items: flex-end; }
.conv-msg.is-other { align-self: flex-start; align-items: flex-start; }
.conv-msg-bubble { padding: .55rem .9rem; border-radius: var(--r-md); white-space: pre-wrap; word-wrap: break-word; line-height: 1.45; font-size: .95rem; }
.conv-msg.is-mine .conv-msg-bubble { background: var(--c-primary); color: #fff; border-bottom-right-radius: 4px; }
.conv-msg.is-other .conv-msg-bubble { background: #fff; color: var(--c-text); border: 1px solid var(--c-border); border-bottom-left-radius: 4px; }
.conv-msg-date { margin-top: .15rem; font-size: .72rem; }

.conv-form { display: flex; gap: .6rem; margin-top: 1rem; align-items: flex-end; }
.conv-form textarea { flex: 1; padding: .7rem 1rem; border: 1px solid var(--c-border); border-radius: var(--r-md); font: inherit; resize: vertical; min-height: 60px; max-height: 200px; }
.conv-form textarea:focus { border-color: var(--c-primary); outline: 0; box-shadow: 0 0 0 3px rgba(20,38,64,.1); }
.conv-form button { flex-shrink: 0; }

/* ============ Chat département (P4.C) — refonte 2026-05-11 ============ */
.chatd-page { max-width: 1100px; margin: 0 auto; padding: 1.2rem 1rem 6rem; }

/* Hero */
.chatd-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #142640 0%, #1f3a5f 55%, #28507f 100%);
    color: #fff; box-shadow: 0 18px 50px -20px rgba(20,38,64,.55); }
.chatd-hero-bg { position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background:
        radial-gradient(circle at 12% 18%, rgba(212,160,23,.35), transparent 42%),
        radial-gradient(circle at 88% 88%, rgba(40,80,127,.6), transparent 50%),
        radial-gradient(circle at 65% 10%, rgba(255,255,255,.08), transparent 35%); }
.chatd-hero-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.6rem 1.8rem; flex-wrap: wrap; }
.chatd-hero-left { display: flex; align-items: center; gap: 1.1rem; }
.chatd-dept-badge { width: 78px; height: 78px; border-radius: 22px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
    color: var(--c-primary); font-weight: 900; font-size: 1.9rem; letter-spacing: -1px;
    box-shadow: 0 12px 30px -10px rgba(212,160,23,.7), inset 0 0 0 2px rgba(255,255,255,.4);
    flex-shrink: 0; }
.chatd-dept-num { line-height: 1; }
.chatd-eyebrow { display: inline-flex; align-items: center; gap: .45rem; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.82); margin-bottom: .35rem; }
.chatd-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ee07a; box-shadow: 0 0 0 0 rgba(46,224,122,.7); animation: chatd-pulse 1.8s infinite; }
@keyframes chatd-pulse { 0% { box-shadow: 0 0 0 0 rgba(46,224,122,.7);} 70% { box-shadow: 0 0 0 10px rgba(46,224,122,0);} 100% { box-shadow: 0 0 0 0 rgba(46,224,122,0);} }
.chatd-title { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0; font-weight: 800; line-height: 1.1; letter-spacing: -.5px; }
.chatd-sub { margin: .35rem 0 0; color: rgba(255,255,255,.78); font-size: .92rem; max-width: 50ch; }
.chatd-sub strong { color: var(--c-accent-2); font-weight: 600; }
.chatd-hero-stats { display: flex; gap: .8rem; }
.chatd-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); padding: .7rem 1.1rem; border-radius: var(--r-md); text-align: center; min-width: 78px; }
.chatd-stat-n { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.chatd-stat-l { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7); margin-top: .25rem; }
.chatd-stat-accent .chatd-stat-n { color: var(--c-accent-2); }

/* Toolbar — pills + select */
.chatd-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chatd-pills { display: flex; gap: .4rem; flex-wrap: wrap; }
.chatd-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border-radius: 999px;
    background: var(--c-card); border: 1px solid var(--c-border); color: var(--c-text);
    text-decoration: none; font-weight: 600; font-size: .82rem; transition: all .2s ease;
    box-shadow: 0 1px 2px rgba(20,38,64,.04); }
.chatd-pill:hover { transform: translateY(-1px); border-color: var(--c-primary-3); box-shadow: 0 6px 14px -6px rgba(20,38,64,.25); }
.chatd-pill.is-active { background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-3) 100%); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -8px rgba(20,38,64,.6); }
.chatd-pill.is-mine::before { content: '📍'; font-size: .85rem; }
.chatd-pill-num { font-variant-numeric: tabular-nums; }
.chatd-pill-count { font-size: .68rem; padding: .08rem .42rem; border-radius: 999px; background: rgba(212,160,23,.18); color: var(--c-accent-dark); font-weight: 700; }
.chatd-pill.is-active .chatd-pill-count { background: rgba(255,255,255,.22); color: #fff; }

.chatd-toolbar-right { display: flex; align-items: center; gap: .6rem; }
.chatd-select-wrap { position: relative; }
.chatd-select-wrap::after { content: '▾'; position: absolute; right: .85rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--c-muted); font-size: .8rem; }
.chatd-select-wrap select { appearance: none; -webkit-appearance: none; padding: .55rem 2rem .55rem .9rem; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-card); font: inherit; font-size: .88rem; cursor: pointer; min-width: 220px; }
.chatd-select-wrap select:focus { outline: 0; border-color: var(--c-primary-3); box-shadow: 0 0 0 3px rgba(40,80,127,.15); }
.chatd-back-mine { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .85rem; border-radius: var(--r-md); background: var(--c-accent); color: var(--c-primary); text-decoration: none; font-weight: 700; font-size: .82rem; transition: all .2s; box-shadow: 0 6px 16px -6px rgba(212,160,23,.6); }
.chatd-back-mine:hover { background: var(--c-accent-2); transform: translateY(-1px); }

/* Board (messages + composer) */
.chatd-board { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 12px 36px -16px rgba(20,38,64,.18); }

.chatd-messages { display: flex; flex-direction: column; gap: .55rem; padding: 1.4rem 1.2rem; height: 62vh; min-height: 420px; max-height: 680px; overflow-y: auto; scroll-behavior: smooth;
    background: linear-gradient(180deg, #f8fafc 0%, #eef1f5 100%);
    background-attachment: local; }
.chatd-messages::-webkit-scrollbar { width: 10px; }
.chatd-messages::-webkit-scrollbar-track { background: transparent; }
.chatd-messages::-webkit-scrollbar-thumb { background: rgba(20,38,64,.18); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.chatd-messages::-webkit-scrollbar-thumb:hover { background: rgba(20,38,64,.3); background-clip: padding-box; border: 2px solid transparent; }

/* Day separator */
.chatd-day-sep { display: flex; align-items: center; gap: .8rem; margin: .8rem 0 .4rem; color: var(--c-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.chatd-day-sep::before, .chatd-day-sep::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--c-border), transparent); }
.chatd-day-sep span { padding: .25rem .8rem; background: var(--c-card); border: 1px solid var(--c-border); border-radius: 999px; box-shadow: 0 2px 6px rgba(20,38,64,.04); }

/* Empty state */
.chatd-empty { margin: auto; text-align: center; padding: 2rem 1rem; max-width: 360px; }
.chatd-empty-icon { font-size: 3.2rem; margin-bottom: .8rem; opacity: .5; }
.chatd-empty-title { font-weight: 700; color: var(--c-primary); margin-bottom: .3rem; }
.chatd-empty-sub { color: var(--c-muted); font-size: .9rem; }

/* Messages */
.chatd-msg { display: flex; gap: .55rem; max-width: 78%; align-items: flex-end; }
.chatd-msg.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.chatd-msg.is-other { align-self: flex-start; }
.chatd-msg-body { display: flex; flex-direction: column; min-width: 0; gap: .18rem; }
.chatd-msg.is-mine .chatd-msg-body { align-items: flex-end; }
.chatd-msg-author { font-weight: 700; color: var(--c-primary); font-size: .76rem; padding: 0 .3rem; display: inline-flex; align-items: center; gap: .35rem; }
.chatd-msg.is-mine .chatd-msg-author { color: var(--c-accent-dark); }
.chatd-me-tag { display: inline-block; padding: .05rem .42rem; border-radius: 999px; background: rgba(212,160,23,.18); color: var(--c-accent-dark); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.chatd-author-employer { font-style: italic; font-weight: 500; color: var(--c-muted); font-size: .94em; }

/* Favoris salons (4 max) */
.chatd-favs { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: .9rem 1.1rem; margin-bottom: .8rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; box-shadow: 0 4px 12px -8px rgba(20,38,64,.15); }
.chatd-favs.is-empty .chatd-favs-list { display: none; }
.chatd-favs-head { display: flex; flex-direction: column; line-height: 1.2; flex-shrink: 0; }
.chatd-favs-label { color: var(--c-primary); font-weight: 700; font-size: .92rem; }
.chatd-favs-list { display: flex; gap: .5rem; flex-wrap: wrap; flex: 1; }
.chatd-fav-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem .35rem .55rem; border-radius: 999px; background: var(--c-bg); border: 1px solid var(--c-border); color: var(--c-text); text-decoration: none; font-size: .85rem; transition: all .15s; }
.chatd-fav-pill:hover { border-color: var(--c-primary-3); transform: translateY(-1px); }
.chatd-fav-pill.is-active { background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2)); color: var(--c-primary); border-color: transparent; box-shadow: 0 6px 14px -6px rgba(212,160,23,.55); font-weight: 700; }
.chatd-fav-num { background: rgba(20,38,64,.1); padding: .1rem .45rem; border-radius: 999px; font-weight: 800; font-size: .75rem; font-variant-numeric: tabular-nums; }
.chatd-fav-pill.is-active .chatd-fav-num { background: rgba(20,38,64,.18); }
.chatd-fav-name { font-weight: 500; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatd-fav-x { background: none; border: 0; cursor: pointer; padding: 0 .2rem; font-size: .75rem; color: inherit; opacity: .6; border-radius: 50%; line-height: 1; }
.chatd-fav-x:hover { opacity: 1; background: rgba(0,0,0,.08); }
.chatd-fav-toggle { background: var(--c-accent); color: var(--c-primary); border: 0; padding: .45rem .9rem; border-radius: var(--r-md); cursor: pointer; font-weight: 700; font-size: .82rem; transition: all .15s; flex-shrink: 0; }
.chatd-fav-toggle:hover:not(:disabled) { background: var(--c-accent-2); transform: translateY(-1px); }
.chatd-fav-toggle:disabled { background: var(--c-bg-alt); color: var(--c-warning); cursor: not-allowed; }
@media (max-width: 720px) {
    .chatd-favs { padding: .7rem .9rem; gap: .6rem; }
    .chatd-fav-name { max-width: 80px; }
}
.chatd-avatar-link { display: inline-block; line-height: 0; flex-shrink: 0; transition: transform .15s; }
.chatd-avatar-link:hover { transform: scale(1.08); }
.chatd-msg-author-link { color: inherit; text-decoration: none; }
.chatd-msg-author-link:hover { text-decoration: underline; }
.post-author-link { display: inline-block; line-height: 0; flex-shrink: 0; transition: transform .15s; }
.post-author-link:hover { transform: scale(1.05); }
.post-author-name { color: inherit; text-decoration: none; }
.post-author-name:hover { text-decoration: underline; }
.post-author-employer { font-style: italic; font-weight: 500; color: var(--c-muted); font-size: .92em; }
.chatd-avatar, img.chatd-avatar, span.chatd-avatar {
    width: 36px !important; height: 36px !important; min-width: 36px; min-height: 36px;
    max-width: 36px; max-height: 36px;
    border-radius: 50%; object-fit: cover; flex-shrink: 0; display: block;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(212,160,23,.35), 0 4px 10px -2px rgba(20,38,64,.25);
}
.chatd-avatar-fallback { display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .92rem;
    background: linear-gradient(135deg, var(--c-primary-2) 0%, var(--c-primary-3) 100%); }

.chatd-msg-bubble { padding: .65rem 1rem; border-radius: 18px; white-space: pre-wrap; word-wrap: break-word; line-height: 1.5; font-size: .94rem;
    box-shadow: 0 2px 8px rgba(20,38,64,.06); position: relative; }
.chatd-msg.is-mine .chatd-msg-bubble {
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
    color: var(--c-primary); font-weight: 500;
    border-bottom-right-radius: 6px;
    box-shadow: 0 6px 18px -6px rgba(212,160,23,.5);
}
.chatd-msg.is-other .chatd-msg-bubble {
    background: #fff; color: var(--c-text); border: 1px solid var(--c-border);
    border-bottom-left-radius: 6px;
}
.chatd-msg-date { font-size: .68rem; color: var(--c-muted-soft); padding: 0 .3rem; }

/* Animation entrée nouveau message */
.chatd-msg-new { animation: chatd-msg-in .35s cubic-bezier(.2,.7,.3,1.2) both; }
@keyframes chatd-msg-in {
    0% { opacity: 0; transform: translateY(8px) scale(.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Composer */
.chatd-composer { background: #fff; border-top: 1px solid var(--c-border); padding: .9rem 1rem .8rem;
    position: sticky; bottom: 0; backdrop-filter: blur(10px); }
.chatd-composer-inner { display: flex; gap: .6rem; align-items: flex-end;
    background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 22px;
    padding: .35rem .35rem .35rem .9rem; transition: border-color .2s, box-shadow .2s; }
.chatd-composer-inner:focus-within { border-color: var(--c-primary-3); box-shadow: 0 0 0 3px rgba(40,80,127,.12); background: #fff; }
.chatd-composer textarea { flex: 1; border: 0; background: transparent; font: inherit; font-size: .95rem; resize: none; outline: 0; padding: .55rem 0; line-height: 1.45; max-height: 160px; }
.chatd-send { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%); color: var(--c-primary);
    box-shadow: 0 6px 16px -6px rgba(212,160,23,.7); transition: transform .15s, box-shadow .2s; }
.chatd-send:hover:not(:disabled) { transform: translateY(-1px) scale(1.04); box-shadow: 0 10px 20px -8px rgba(212,160,23,.8); }
.chatd-send:active { transform: scale(.96); }
.chatd-send:disabled { opacity: .55; cursor: wait; }
.chatd-send.is-sending svg { animation: chatd-send-spin .6s linear infinite; }
@keyframes chatd-send-spin { to { transform: rotate(360deg); } }
.chatd-send svg { transform: translate(-1px, 1px); }
.chatd-hint { display: flex; justify-content: space-between; gap: .5rem; padding: .35rem .3rem 0; font-size: .72rem; color: var(--c-muted-soft); }
.chatd-hint-counter.is-warn { color: var(--c-warning); font-weight: 700; }

/* Mobile */
@media (max-width: 720px) {
    .chatd-page { padding: .6rem .6rem 5rem; }
    .chatd-hero-inner { padding: 1.1rem 1.1rem; gap: 1rem; }
    .chatd-dept-badge { width: 60px; height: 60px; border-radius: 18px; font-size: 1.4rem; }
    .chatd-title { font-size: 1.4rem; }
    .chatd-hero-stats { width: 100%; }
    .chatd-stat { flex: 1; }
    .chatd-msg { max-width: 88%; }
    .chatd-messages { height: 68vh; min-height: 320px; padding: 1rem .8rem; }
    .chatd-select-wrap select { min-width: 0; width: 100%; }
    .chatd-toolbar-right { width: 100%; }
    .chatd-hint-tip { display: none; }
}

/* ============ Feed social P4.A ============ */
.feed-wrap { padding-bottom: 4rem; }
.feed-head { text-align: center; margin-bottom: 2rem; }

/* Composer */
.post-composer { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.2rem; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: .8rem; }
.post-composer-head { display: flex; align-items: center; gap: .6rem; }
.post-composer textarea { width: 100%; padding: .8rem 1rem; border: 1px solid var(--c-border); border-radius: var(--r-md); font: inherit; resize: vertical; min-height: 90px; transition: border var(--t-fast); }
.post-composer textarea:focus { border-color: var(--c-primary); outline: 0; box-shadow: 0 0 0 3px rgba(20,38,64,.1); }
.post-composer-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.post-composer-row .btn { margin-left: auto; }
.post-composer-row .post-images-btn { margin-left: 0; cursor: pointer; }
.post-counter { font-variant-numeric: tabular-nums; }
.post-counter.over { color: var(--c-danger); font-weight: 600; }
.post-images-info.error { color: var(--c-danger); }

/* Liste posts */
.post-feed { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.post-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); transition: box-shadow var(--t-fast); }
.post-card:hover { box-shadow: var(--shadow-md); }
.post-card-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.post-author { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; line-height: 1.3; }
.post-author strong { font-size: .98rem; }
.post-author small { font-size: .8rem; }
.post-date { color: var(--c-muted); }
.post-delete button { padding: 0 .4rem; font-size: 1.4rem; line-height: 1; color: var(--c-muted); }
.post-delete button:hover { color: var(--c-danger); }
.post-content { white-space: pre-wrap; word-wrap: break-word; line-height: 1.55; font-size: .98rem; margin-bottom: .8rem; }

/* Images */
.post-images { display: grid; gap: .35rem; margin: .6rem 0 1rem; border-radius: var(--r-md); overflow: hidden; max-height: 420px; }
.post-images-1 { grid-template-columns: 1fr; }
.post-images-2 { grid-template-columns: 1fr 1fr; }
.post-images-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-images-3 a:first-child { grid-row: span 2; }
.post-images img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; cursor: zoom-in; transition: opacity var(--t-fast); }
.post-images img:hover { opacity: .92; }

/* Actions */
.post-actions { display: flex; gap: .8rem; padding: .6rem 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.post-like-btn, .post-comment-btn { display: inline-flex; align-items: center; gap: .35rem; background: transparent; border: 0; padding: .35rem .7rem; border-radius: var(--r-sm); cursor: pointer; font: inherit; font-size: .9rem; color: var(--c-muted); transition: all var(--t-fast); }
.post-like-btn:hover, .post-comment-btn:hover { background: var(--c-bg-alt); color: var(--c-primary); }
.post-like-btn.is-liked { color: var(--c-danger); font-weight: 600; }
.post-like-btn.is-liked svg { color: var(--c-danger); }
.post-like-btn:disabled, .post-comment-btn:disabled { opacity: .5; cursor: wait; }

/* Commentaires */
.post-comments { margin-top: .8rem; }
.post-comment-list { list-style: none; padding: 0; margin: 0 0 .6rem; display: flex; flex-direction: column; gap: .5rem; }
.post-comment { display: flex; align-items: flex-start; gap: .5rem; padding: .5rem .8rem; background: var(--c-bg-alt); border-radius: var(--r-md); position: relative; }
.cand-photo-sm { width: 28px; height: 28px; font-size: .85rem; flex-shrink: 0; }
.comment-body { flex: 1; min-width: 0; line-height: 1.4; font-size: .9rem; }
.comment-body strong { display: inline-block; margin-right: .4rem; }
.comment-content { word-wrap: break-word; }
.comment-del { position: absolute; top: .25rem; right: .35rem; background: transparent; border: 0; cursor: pointer; font-size: 1rem; color: var(--c-muted); padding: 0 .3rem; line-height: 1; }
.comment-del:hover { color: var(--c-danger); }

.post-comment-form { display: flex; gap: .5rem; }
.post-comment-form input { flex: 1; padding: .5rem .8rem; border: 1px solid var(--c-border); border-radius: var(--r-md); font: inherit; font-size: .9rem; }
.post-comment-form input:focus { border-color: var(--c-primary); outline: 0; }

.feed-pagination { display: flex; justify-content: center; margin-top: 1.5rem; }

/* ============ Responsive ============ */
@media (max-width: 880px) {
    .split-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .split-media { aspect-ratio: 16/10; }
    .footer-row { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
    .admin-head { flex-direction: column; align-items: flex-start; }
    .admin-filters { flex-direction: column; align-items: stretch; }
    .admin-search input[type=search] { min-width: 0; flex: 1; }
}
@media (max-width: 720px) {
    .stats { grid-template-columns: 1fr; margin-top: -2rem; gap: .8rem; }
    .form-row { grid-template-columns: 1fr; }
    .site-nav { gap: .6rem; }
    .site-nav a:not(.btn):not(.nav-account) { display: none; }
    .hero { padding: 4rem 0 5rem; min-height: 0; }
    .hero h1 { font-size: 2rem; }
    .hero .lead { font-size: 1.02rem; }
    .hero-trust { gap: 1rem; }
    .cta-row { flex-direction: column; align-items: flex-start; }
    .check-list li { font-size: .94rem; }
}

/* ============ Pub Planning Pro (home, 2026-05-11) ============ */
.psp-ad-band { margin: 4rem auto 3rem; }
.psp-ad { position: relative; border-radius: var(--r-xl); overflow: hidden;
    background: linear-gradient(135deg, #142640 0%, #1f3a5f 50%, #28507f 100%);
    color: #fff; box-shadow: 0 24px 60px -24px rgba(20,38,64,.6); }
.psp-ad-bg { position: absolute; inset: 0; pointer-events: none; opacity: .8;
    background:
        radial-gradient(circle at 88% 12%, rgba(212,160,23,.35), transparent 42%),
        radial-gradient(circle at 12% 88%, rgba(40,80,127,.55), transparent 50%); }
.psp-ad-inner { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1.6rem; padding: 2.2rem 2.4rem; align-items: center; }
.psp-ad-icon { width: 80px; height: 80px; border-radius: 22px; display: grid; place-items: center; flex-shrink: 0;
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
    color: var(--c-primary); box-shadow: 0 12px 30px -10px rgba(212,160,23,.6), inset 0 0 0 2px rgba(255,255,255,.3); }
.psp-ad-body { min-width: 0; }
.psp-ad-eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 800; color: var(--c-accent-2); margin-bottom: .35rem; }
.psp-ad-title { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 0 0 .6rem; font-weight: 900; letter-spacing: -.6px; color: #fff; }
.psp-ad-title .text-accent { color: var(--c-accent-2); }
.psp-ad-text { margin: 0 0 .9rem; color: rgba(255,255,255,.88); line-height: 1.55; max-width: 60ch; font-size: .96rem; }
.psp-ad-text strong { color: var(--c-accent-2); font-weight: 600; }
.psp-ad-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.psp-ad-feats li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); padding: .35rem .75rem; border-radius: 999px; font-size: .82rem; }
.psp-ad-cta { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; flex-shrink: 0; }
.psp-ad-cta small { color: rgba(255,255,255,.55); font-size: .78rem; }

@media (max-width: 800px) {
    .psp-ad-inner { grid-template-columns: 1fr; padding: 1.6rem 1.4rem; text-align: center; gap: 1.2rem; }
    .psp-ad-icon { margin: 0 auto; }
    .psp-ad-feats { justify-content: center; }
    .psp-ad-cta { align-items: center; }
}

/* ============ Edition profil V4 — sidebar + sections (2026-05-11) ============ */
.profed-page { max-width: 1200px; margin: 0 auto; padding: 1.2rem 1rem 5rem; display: grid;
    grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }

/* Sidebar */
.profed-sidebar { position: sticky; top: 80px; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.2rem; box-shadow: 0 6px 24px -14px rgba(20,38,64,.18); align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; }
.profed-side-head { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--c-border); }
.profed-side-avatar { width: 52px; height: 52px; min-width: 52px; max-width: 52px; min-height: 52px; max-height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--c-accent), 0 0 0 4px #fff; display: block; }
.profed-side-avatar-fallback { display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1.4rem;
    background: linear-gradient(135deg, var(--c-primary-2), var(--c-primary-3)); }
.profed-side-meta { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.profed-side-meta strong { color: var(--c-primary); font-size: .96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profed-side-badge { display: inline-flex; align-self: flex-start; padding: .1rem .5rem; border-radius: 999px; font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.profed-side-badge-ok { background: rgba(31,125,82,.14); color: var(--c-success); }
.profed-side-badge-warn { background: rgba(178,94,10,.14); color: var(--c-warning); }

.profed-nav { display: flex; flex-direction: column; gap: .15rem; margin-bottom: 1rem; }
.profed-nav-item { display: flex; align-items: center; gap: .55rem; padding: .55rem .75rem; border-radius: var(--r-md); text-decoration: none; color: var(--c-text); font-size: .92rem; font-weight: 500; transition: background .15s, color .15s, transform .15s; }
.profed-nav-item small { font-size: .68rem; color: var(--c-muted-soft); margin-left: auto; }
.profed-nav-item:hover { background: var(--c-bg); }
.profed-nav-item.is-active { background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-3) 100%); color: #fff; box-shadow: 0 6px 16px -8px rgba(20,38,64,.55); }
.profed-nav-item.is-active small { color: rgba(255,255,255,.7); }
.profed-nav-icon { display: inline-flex; width: 22px; justify-content: center; font-size: 1rem; line-height: 1; }
.profed-side-foot { padding-top: 1rem; border-top: 1px solid var(--c-border); }

/* Main */
.profed-main { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.profed-head { background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-3) 100%); color: #fff; padding: 1.4rem 1.6rem; border-radius: var(--r-lg); box-shadow: 0 10px 30px -18px rgba(20,38,64,.5); margin-bottom: .4rem; position: relative; overflow: hidden; }
.profed-head::after { content: ''; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(212,160,23,.25), transparent 65%); pointer-events: none; }
.profed-head .eyebrow { color: rgba(255,255,255,.75); }
.profed-head h1 { font-size: 1.85rem; margin: .2rem 0 .35rem; color: #fff; }
.profed-head h1 .text-accent { color: var(--c-accent-2); }
.profed-head p { color: rgba(255,255,255,.85); margin: 0; max-width: 60ch; font-size: .92rem; }

.profed-section { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.4rem 1.6rem; box-shadow: 0 4px 14px -8px rgba(20,38,64,.12); scroll-margin-top: 90px; }
.profed-section-head { margin-bottom: 1rem; }
.profed-section-head h2 { margin: 0 0 .25rem; font-size: 1.15rem; color: var(--c-primary); font-weight: 800; display: flex; align-items: center; gap: .5rem; }
.profed-section-head p { margin: 0; }
.profed-section .form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.profed-section .form-row > label { flex: 1; min-width: 200px; }
.profed-section label { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; color: var(--c-text); margin-bottom: .9rem; }
.profed-section input[type=text], .profed-section input[type=tel], .profed-section input[type=email], .profed-section input[type=date], .profed-section input[type=number], .profed-section input[type=url], .profed-section select, .profed-section textarea {
    padding: .6rem .85rem; border: 1px solid var(--c-border); border-radius: var(--r-md);
    font: inherit; background: #fff; box-sizing: border-box; width: 100%;
}
.profed-section input:focus, .profed-section select:focus, .profed-section textarea:focus { border-color: var(--c-primary-3); outline: 0; box-shadow: 0 0 0 3px rgba(40,80,127,.15); }
.profed-section textarea { resize: vertical; min-height: 70px; }
.profed-section input:disabled { background: var(--c-bg-alt); color: var(--c-muted); }
.profed-private-tag { display: inline-block; padding: .12rem .55rem; border-radius: 999px; background: rgba(192,49,42,.14); color: var(--c-danger); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; vertical-align: middle; }
.profed-side-avatar-square { border-radius: 12px; }
.profed-side-badge-danger { background: rgba(192,49,42,.14); color: var(--c-danger); }

/* Autocomplete */
.autocompl-wrap { position: relative; }
.autocompl-input { padding-right: 2.4rem !important; }
.autocompl-clear { position: absolute; right: .6rem; top: .55rem; background: none; border: 0; cursor: pointer; color: var(--c-muted); font-size: .9rem; padding: .25rem .4rem; border-radius: var(--r-sm); }
.autocompl-clear:hover { background: var(--c-bg-alt); }
.autocompl-list { position: absolute; left: 0; right: 0; top: 100%; margin: .25rem 0 0; padding: .3rem; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: 0 14px 32px -10px rgba(20,38,64,.25); max-height: 280px; overflow-y: auto; list-style: none; z-index: 20; }
.autocompl-item { padding: .55rem .75rem; cursor: pointer; border-radius: var(--r-sm); display: flex; align-items: center; gap: .5rem; font-size: .92rem; transition: background .1s; }
.autocompl-item:hover, .autocompl-item.is-active { background: var(--c-bg); }
.autocompl-item strong { color: var(--c-primary); font-weight: 600; }
.autocompl-empty { position: absolute; left: 0; right: 0; top: 100%; margin: .25rem 0 0; padding: .8rem 1rem; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); color: var(--c-muted); font-size: .88rem; z-index: 20; }
.autocompl-empty small { display: block; margin-top: .3rem; font-size: .8rem; }

/* Photo/cover blocks */
.profed-photo-row { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.profed-photo-thumb { width: 110px; height: 110px; border-radius: 50%; background: var(--c-bg-alt); overflow: hidden; display: flex; align-items: center; justify-content: center; border: 3px solid var(--c-border); flex-shrink: 0; }
.profed-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.profed-photo-empty { color: var(--c-muted-soft); }
.profed-photo-actions { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.profed-photo-actions .btn { margin-right: .3rem; }
.profed-photo-actions p { margin: 0; }
.profed-cover-block { height: 180px; border-radius: var(--r-md); background-size: cover; background-position: center; background-color: var(--c-bg-alt); display: flex; align-items: center; justify-content: center; color: var(--c-muted); font-size: .9rem; margin-bottom: .8rem; border: 2px dashed transparent; }
.profed-cover-block.is-empty { border-color: var(--c-border-strong); }
.profed-actions-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* Form footer */
.profed-form-foot { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.2rem; position: sticky; bottom: 1rem; box-shadow: 0 -6px 18px -10px rgba(20,38,64,.2); z-index: 5; }
.profed-form-foot .btn { font-size: 1rem; }

/* Listes diplomes/experiences/specialites/refs */
.profed-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .6rem; }
.profed-list-item { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; padding: .9rem 1.1rem; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-md); transition: border-color .15s; }
.profed-list-item:hover { border-color: var(--c-primary-3); }
.profed-list-item-body { flex: 1; min-width: 0; }
.profed-list-item-body strong { color: var(--c-text); font-size: .96rem; display: block; margin-bottom: .15rem; }
.profed-list-desc { margin: .3rem 0 0; font-size: .88rem; color: var(--c-text); white-space: pre-wrap; line-height: 1.45; }
.profed-empty { text-align: center; padding: 1.5rem; background: var(--c-bg); border-radius: var(--r-md); border: 1px dashed var(--c-border); }

.btn-icon { background: none; border: 0; cursor: pointer; padding: .35rem .5rem; border-radius: var(--r-sm); font-size: 1rem; line-height: 1; transition: background .15s; }
.btn-icon:hover { background: var(--c-bg-alt); }
.btn-icon-danger:hover { background: rgba(192,49,42,.12); }

/* Add forms (details/summary) */
.profed-add { background: var(--c-bg); border: 1px dashed var(--c-border-strong); border-radius: var(--r-md); padding: 0; }
.profed-add summary { cursor: pointer; padding: .8rem 1rem; font-weight: 700; color: var(--c-primary); list-style: none; user-select: none; transition: color .15s; }
.profed-add summary::-webkit-details-marker { display: none; }
.profed-add summary::before { content: '+ '; }
.profed-add[open] summary::before { content: '− '; }
.profed-add summary:hover { color: var(--c-primary-3); }
.profed-add-form { padding: 0 1rem 1rem; display: flex; flex-direction: column; gap: .7rem; }
.profed-add-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; margin: 0; }
.profed-add-form .form-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.profed-add-form .form-row > label { flex: 1; min-width: 140px; }
.profed-add-form input, .profed-add-form textarea, .profed-add-form select {
    padding: .55rem .8rem; border: 1px solid var(--c-border); border-radius: var(--r-sm); background: #fff; font: inherit; box-sizing: border-box; width: 100%;
}
.profed-add-form .btn { align-self: flex-start; }

/* Toggle switch (confidentialité) */
.profed-toggle { display: flex; align-items: center; gap: 1rem; cursor: pointer; user-select: none; padding: .8rem; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-md); transition: border-color .15s; flex-direction: row !important; }
.profed-toggle:hover { border-color: var(--c-primary-3); }
.profed-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.profed-toggle-track { position: relative; width: 52px; height: 28px; background: var(--c-border-strong); border-radius: 999px; flex-shrink: 0; transition: background .2s; }
.profed-toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .2s; }
.profed-toggle input:checked + .profed-toggle-track { background: var(--c-primary-3); }
.profed-toggle input:checked + .profed-toggle-track::after { transform: translateX(24px); }
.profed-toggle-text { flex: 1; min-width: 0; font-size: .9rem; display: flex; flex-direction: column; gap: .2rem; }
.profed-toggle-text strong { color: var(--c-text); }
.profed-toggle-text small { font-size: .82rem; }

/* Mobile - sidebar passe en drawer */
@media (max-width: 900px) {
    .profed-page { grid-template-columns: 1fr; gap: 1rem; padding: .6rem; }
    .profed-sidebar { position: relative; top: auto; max-height: none; overflow: visible; padding: 1rem; }
    .profed-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; max-height: 260px; overflow-y: auto; }
    .profed-nav-item { font-size: .85rem; padding: .45rem .55rem; }
    .profed-form-foot { bottom: 0; border-radius: var(--r-md) var(--r-md) 0 0; margin: 0 -.6rem -.6rem; }
}

/* ============ Postuler — summary box (V4) ============ */
.cand-summary-box { display: flex; align-items: center; gap: .6rem; padding: .8rem 1.1rem; margin-top: 1rem; background: linear-gradient(135deg, rgba(212,160,23,.12), rgba(40,80,127,.06)); border: 1px solid var(--c-border); border-radius: var(--r-md); font-size: .95rem; }
.cand-summary-box strong { color: var(--c-primary); font-size: 1.1em; }
#cand-summary-icon { font-size: 1.4rem; line-height: 1; }

/* ============ Publier offre — composants spécifiques (V4) ============ */
.profed-page-publier .profed-section-wide { grid-column: 1 / -1; }
.profed-info-chip { background: linear-gradient(135deg, rgba(212,160,23,.08), rgba(40,80,127,.08)); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: .8rem 1rem; margin: .8rem 0; font-size: .92rem; }
.profed-info-chip strong { color: var(--c-primary); }
.profed-info-chip .block { display: block; margin-top: .25rem; font-size: .82rem; }

.profed-radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: 1rem; }
.profed-radio-card { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--c-bg); border: 2px solid var(--c-border); border-radius: var(--r-md); cursor: pointer; transition: all .15s; }
.profed-radio-card:hover { border-color: var(--c-primary-3); transform: translateY(-1px); }
.profed-radio-card:has(input:checked) { border-color: var(--c-accent); background: linear-gradient(135deg, rgba(212,160,23,.08), rgba(212,160,23,.02)); box-shadow: 0 6px 18px -10px rgba(212,160,23,.4); }
.profed-radio-card input { accent-color: var(--c-accent); margin-top: .25rem; flex-shrink: 0; }
.profed-radio-card div { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.profed-radio-card strong { color: var(--c-text); font-size: .96rem; }
.profed-radio-card small { font-size: .82rem; }

.rec-calendar-wrap { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 1rem; overflow-x: auto; min-width: 0; }
#rec-calendar { min-width: 0; max-width: 100%; }
#rec-calendar table, #rec-calendar .cal-grid { max-width: 100%; }

.profed-form-foot-split { display: flex; gap: .8rem; justify-content: space-between; flex-wrap: wrap; }
.profed-form-foot-split .btn { flex: 1; min-width: 200px; }

/* prereq-grid déjà existant, on s'assure qu'il passe en mobile */
.prereq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .55rem; }

/* Override sections en publier-offre pour donner le full width au calendrier */
@media (max-width: 700px) {
    .profed-radio-cards { grid-template-columns: 1fr; }
    .profed-form-foot-split { flex-direction: column; }
    .profed-form-foot-split .btn { min-width: 0; }
}

/* ============ Messagerie tabs (V3.1) ============ */
.msg-tabs { display: flex; gap: .4rem; padding: .35rem; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 999px; margin-bottom: 1.4rem; }
.msg-tab { flex: 1; display: flex; justify-content: center; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; text-decoration: none; color: var(--c-text); font-weight: 600; font-size: .9rem; transition: all .15s; }
.msg-tab:hover { background: var(--c-card); }
.msg-tab.is-active { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-3)); color: #fff; box-shadow: 0 6px 14px -6px rgba(20,38,64,.4); }
.msg-tab-count { background: rgba(0,0,0,.08); padding: .1rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.msg-tab.is-active .msg-tab-count { background: rgba(255,255,255,.22); color: #fff; }
.msg-thread-card.is-spam { background: linear-gradient(90deg, rgba(178,94,10,.06), transparent 30%); border-left: 3px solid var(--c-warning); }
.msg-spam-tag { display: inline-block; margin-top: .3rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(178,94,10,.16); color: var(--c-warning); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* ============ rec-entry upgrade — bande lat statut (V4) ============ */
.rec-entry { position: relative; padding-left: 1.8rem; border-left: 0; }
.rec-entry::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c-border-strong); border-radius: 4px 0 0 4px; transition: background .2s; }
.rec-entry .badge-success ~ * .badge-success, .rec-entry:has(.badge-success)::before { background: linear-gradient(180deg, var(--c-success), #2ea564); }
.rec-entry:has(.badge-warning)::before { background: linear-gradient(180deg, var(--c-accent-2), var(--c-warning)); }
.rec-entry:has(.badge-soft)::before { background: var(--c-border-strong); }
.rec-entry h3 a { color: var(--c-primary); text-decoration: none; }
.rec-entry h3 a:hover { color: var(--c-primary-3); text-decoration: underline; }
.profil-cover-card {
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--r-lg); padding: 1.2rem; margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.profil-cover-preview {
    height: 160px; border-radius: var(--r-md); background-size: cover; background-position: center;
    background-color: var(--c-bg-alt); margin-bottom: 1rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-muted); font-size: .9rem; text-align: center; padding: 1rem;
    border: 2px dashed transparent;
}
.profil-cover-preview.is-empty { border-color: var(--c-border-strong); background-color: var(--c-bg-alt); }
.profil-cover-actions h3 { margin: 0 0 .3em; }
.profil-cover-actions p { margin: 0 0 .8em; }
.profil-cover-actions .btn { margin-right: .3em; }

.profil-list-card {
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--r-lg); padding: 1.5rem; margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.profil-list-head { margin-bottom: 1rem; }
.profil-list-head h2 { font-size: 1.15rem; margin: 0 0 .2rem; color: var(--c-primary); }
.profil-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-direction: column; gap: .55rem; }
.profil-list-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .75rem 1rem; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-md); }
.profil-list-item strong { color: var(--c-text); }
.profil-list-desc { margin: .3rem 0 0; color: var(--c-text); font-size: .9rem; white-space: pre-wrap; }
.profil-add-form { border-top: 1px dashed var(--c-border); padding-top: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.profil-add-form .form-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.profil-add-form .form-row label { flex: 1; min-width: 160px; }
.profil-add-form input, .profil-add-form textarea, .profil-add-form select {
    width: 100%; padding: .55rem .8rem; border: 1px solid var(--c-border); border-radius: var(--r-sm);
    background: #fff; font: inherit; box-sizing: border-box;
}
.profil-add-form textarea { resize: vertical; }
.profil-add-form .btn { align-self: flex-start; }
.btn-danger-link { color: var(--c-danger) !important; }

.account-profil-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 2.5rem 0 1rem; flex-wrap: wrap; }
.account-profil-head h2 { margin: 0; color: var(--c-primary); font-size: 1.5rem; }

/* ============ Profils consultables (V3, 2026-05-11) ============ */
.profilp-page { max-width: 1100px; margin: 0 auto; padding: 1rem .8rem 5rem; }

/* Hero avec cover */
.profilp-hero { position: relative; border-radius: var(--r-xl); overflow: hidden;
    background: var(--c-card); box-shadow: 0 18px 50px -22px rgba(20,38,64,.35);
    margin-bottom: 1.4rem; }
.profilp-cover { height: 240px; background-size: cover; background-position: center; background-color: var(--c-primary-2); }
.profilp-cover-default {
    background: linear-gradient(135deg, #142640 0%, #1f3a5f 45%, #28507f 100%);
    position: relative;
}
.profilp-cover-default::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(212,160,23,.35), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(40,80,127,.6), transparent 50%);
}
.profilp-cover-default-ent {
    background: linear-gradient(135deg, #d4a017 0%, #b8881e 50%, #142640 100%);
}
.profilp-hero-inner { display: grid; grid-template-columns: 160px 1fr auto; align-items: end; gap: 1.4rem; padding: 0 1.6rem 1.4rem; margin-top: -70px; position: relative; }
.profilp-avatar-wrap { display: flex; }
.profilp-avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; background: var(--c-card);
    box-shadow: 0 0 0 5px #fff, 0 16px 36px -10px rgba(20,38,64,.5);
    flex-shrink: 0; }
.profilp-avatar-square { border-radius: 20px; }
.profilp-avatar-fallback {
    display: grid; place-items: center; font-size: 3.6rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--c-primary-2) 0%, var(--c-primary-3) 100%);
}
.profilp-headline { padding-bottom: .3rem; min-width: 0; color: #fff; }
.profilp-hero-inner > .profilp-headline { color: var(--c-text); }
.profilp-name { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; line-height: 1.1; margin: 0; color: var(--c-primary); letter-spacing: -.5px; }
.profilp-employer { font-style: italic; font-weight: 600; color: var(--c-accent-dark); font-size: .9em; margin-left: .3rem; }
.profilp-sub { margin: .5rem 0 0; color: var(--c-muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; }
.profilp-badge { display: inline-flex; align-items: center; padding: .2rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.profilp-badge-ok { background: rgba(31,125,82,.14); color: var(--c-success); }
.profilp-tagline { margin: .8rem 0 0; color: var(--c-text); font-size: .98rem; line-height: 1.55; max-width: 60ch; }
.profilp-actions { display: flex; flex-direction: column; gap: .4rem; padding-bottom: .3rem; }
.profilp-actions .btn { white-space: nowrap; }
.profilp-actions form.inline { display: inline-flex; }

/* Stats bar (entreprise) */
.profilp-stats { display: flex; gap: .8rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.profilp-stat-mini { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: .7rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; box-shadow: 0 2px 8px rgba(20,38,64,.05); min-width: 120px; }
.profilp-stat-mini strong { font-size: 1.4rem; color: var(--c-primary); font-weight: 800; }
.profilp-stat-mini span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 600; }
.profilp-stat-link { text-decoration: none; color: var(--c-primary); }
.profilp-stat-link:hover { border-color: var(--c-primary-3); }

/* Grid (main + sidebar) */
.profilp-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.4rem; }
.profilp-main, .profilp-side { display: flex; flex-direction: column; gap: 1.4rem; }

.profilp-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; box-shadow: 0 6px 18px -10px rgba(20,38,64,.15); }
.profilp-h2 { font-size: 1.1rem; font-weight: 800; color: var(--c-primary); margin: 0 0 .9rem; letter-spacing: -.2px; position: relative; padding-left: .7rem; }
.profilp-h2::before { content: ''; position: absolute; left: 0; top: .25em; bottom: .25em; width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--c-accent), var(--c-accent-dark)); }

.profilp-bio { color: var(--c-text); line-height: 1.65; font-size: .96rem; }
.profilp-bio p { margin: 0 0 .7rem; }
.profilp-bio p:last-child { margin: 0; }
.profilp-bio strong { color: var(--c-primary); }
.profilp-bio a { color: var(--c-primary-3); }
.profilp-bio ul { margin: .4rem 0; padding-left: 1.2rem; }

/* Timeline experiences */
.profilp-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.profilp-timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--c-accent) 0%, var(--c-border) 100%); }
.profilp-tl-item { position: relative; padding-left: 2rem; padding-bottom: 1.2rem; }
.profilp-tl-item:last-child { padding-bottom: 0; }
.profilp-tl-dot { position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--c-border); }
.profilp-tl-title { margin: 0 0 .15rem; font-size: 1rem; font-weight: 700; color: var(--c-text); }
.profilp-tl-meta { color: var(--c-primary-3); font-weight: 600; font-size: .88rem; }
.profilp-tl-dates { color: var(--c-muted); font-size: .78rem; margin: .15rem 0; font-variant-numeric: tabular-nums; }
.profilp-tl-desc { margin: .35rem 0 0; color: var(--c-text); font-size: .9rem; line-height: 1.5; white-space: pre-wrap; }

/* Diplômes / spécialités */
.profilp-diplist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.profilp-dip { display: flex; gap: .8rem; align-items: flex-start; padding: .65rem .8rem; background: var(--c-bg); border-radius: var(--r-md); border: 1px solid var(--c-border); }
.profilp-dip-icon { font-size: 1.4rem; line-height: 1; padding-top: .15rem; flex-shrink: 0; }
.profilp-dip strong { display: block; color: var(--c-text); font-size: .94rem; }
.profilp-dip-meta { color: var(--c-muted); font-size: .82rem; margin-top: .1rem; }

/* Tags qualifs */
.profilp-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.profilp-tag { background: rgba(212,160,23,.14); color: var(--c-accent-dark); padding: .25rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; cursor: help; }

/* Employer link */
.profilp-employer-link { display: flex; gap: .7rem; align-items: center; text-decoration: none; color: var(--c-text); padding: .55rem; border-radius: var(--r-md); transition: background .15s; }
.profilp-employer-link:hover { background: var(--c-bg); }
.profilp-employer-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.profilp-employer-logo-fallback { display: grid; place-items: center; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--c-primary-2), var(--c-primary-3)); }

/* Mobile */
@media (max-width: 880px) {
    .profilp-grid { grid-template-columns: 1fr; }
    .profilp-hero-inner { grid-template-columns: 1fr; text-align: center; padding: 0 1rem 1.1rem; gap: .8rem; margin-top: -56px; }
    .profilp-avatar-wrap { justify-content: center; }
    .profilp-avatar { width: 112px; height: 112px; }
    .profilp-cover { height: 180px; }
    .profilp-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; }
    .profilp-sub { justify-content: center; }
    .profilp-tagline { text-align: center; margin-left: auto; margin-right: auto; }
}

/* ============================================================
   HECTOR SOLUTION PROMO — modal one-shot + tooltip contextuel
   ============================================================ */
.hpromo-modal {
    position: fixed; inset: 0; z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; animation: hpromo-fadein 0.25s ease;
}
.hpromo-modal[hidden] { display: none; }
@keyframes hpromo-fadein { from { opacity: 0; } to { opacity: 1; } }

.hpromo-backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}
.hpromo-card {
    position: relative; z-index: 1;
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 32px 24px;
    max-width: 460px; width: 100%;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    text-align: center;
    animation: hpromo-rise 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes hpromo-rise { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.hpromo-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: 0; cursor: pointer;
    width: 32px; height: 32px; border-radius: 50%;
    font-size: 24px; line-height: 1; color: #94a3b8;
    transition: background 0.15s;
}
.hpromo-close:hover { background: #f1f5f9; color: #1f3a5f; }

.hpromo-icon {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1f3a5f 0%, #2d5a8e 100%);
    color: #f5d572;
    display: flex; align-items: center; justify-content: center;
}

.hpromo-title {
    margin: 0 0 12px 0;
    font-size: 22px; font-weight: 700;
    color: #1f3a5f;
}
.hpromo-body {
    margin: 0 0 24px 0;
    font-size: 15px; line-height: 1.55;
    color: #475569;
}
.hpromo-body strong { color: #1f3a5f; }

.hpromo-actions {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 16px;
}
.hpromo-btn {
    display: block; width: 100%;
    padding: 13px 20px;
    border-radius: 10px; border: 0;
    font-size: 15px; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: center;
}
.hpromo-btn:active { transform: scale(0.98); }
.hpromo-btn-primary {
    background: linear-gradient(135deg, #1f3a5f 0%, #2d5a8e 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(31, 58, 95, 0.3);
}
.hpromo-btn-primary:hover { box-shadow: 0 6px 20px rgba(31, 58, 95, 0.4); }
.hpromo-btn-ghost {
    background: transparent;
    color: #64748b;
}
.hpromo-btn-ghost:hover { background: #f1f5f9; color: #1f3a5f; }

.hpromo-foot {
    margin: 0; font-size: 12px; color: #94a3b8;
}

/* Tooltip contextuel (badge cliquable) */
.hpromo-tip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #fef9e7 0%, #fcefc0 100%);
    border: 1px solid #d4a017;
    border-radius: 999px;
    color: #92400e; font-size: 13px; font-weight: 500;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.hpromo-tip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.25);
}

@media (max-width: 540px) {
    .hpromo-card { padding: 28px 22px 20px; }
    .hpromo-title { font-size: 19px; }
    .hpromo-body { font-size: 14px; }
}

/* ============================================================
   DASHBOARD DAY DETAIL — détail créneau cliqué (recruteur candidats)
   ============================================================ */
.ddd-cre {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.ddd-head {
    font-size: 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ddd-head.ddd-ok       { color: #059669; }
.ddd-head.ddd-partial  { color: #d97706; }
.ddd-head.ddd-none     { color: #dc2626; }
.ddd-names {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #475569;
}
.ddd-names li {
    padding: 4px 0;
    border-bottom: 1px dashed #e5e7eb;
}
.ddd-names li:last-child { border-bottom: 0; }

/* ============================================================
   QUALIFICATIONS — input date conditionnel + état expiré
   ============================================================ */
.qualif-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    background: transparent;
    transition: background 0.15s;
}
.qualif-row.is-active {
    background: #fef9e7;
}
.qualif-row .qualif-date {
    display: none;
    margin-left: 26px;
    font-size: 12px;
    color: #6b7280;
    align-items: center;
    gap: 8px;
}
.qualif-row.is-active .qualif-date {
    display: flex;
}
.qualif-row .qualif-date input[type="date"] {
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #d4a017;
    background: #fff;
}

/* Badge qualif expirée (affichage public profil) */
.qualif-expired {
    opacity: 0.5;
    text-decoration: line-through;
}
.qualif-warning {
    color: #d97706;
    font-size: 11px;
    margin-left: 4px;
}

/* ============================================================
   BANNIÈRE BÊTA (haut du site)
   ============================================================ */
.beta-banner {
    background: linear-gradient(90deg, #fef9e7 0%, #fcefc0 100%);
    border-bottom: 1px solid #d4a017;
    color: #7c2d12;
    font-size: 13px;
    text-align: center;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.2px;
}
.beta-banner-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #d4a017;
    box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.5);
    animation: betaPulse 2s ease infinite;
}
@keyframes betaPulse {
    0%   { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(212, 160, 23, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0); }
}

/* ============================================================
   PWA INSTALL — Bannière mobile + FAB desktop + tuto iOS
   ============================================================ */

/* === Bannière sticky en haut, mobile (impossible à manquer) === */
.pwa-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    background: linear-gradient(135deg, #d4a017 0%, #f5d572 60%, #d4a017 100%);
    color: #1f3a5f;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: pwaBannerSlideDown 0.35s ease-out;
}
.pwa-banner[hidden] { display: none; }

@keyframes pwaBannerSlideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

.pwa-banner-icon {
    font-size: 28px;
    flex-shrink: 0;
    animation: pwaBannerBounce 1.6s ease-in-out infinite;
}
@keyframes pwaBannerBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

.pwa-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}
.pwa-banner-text strong {
    font-size: 14px;
    font-weight: 800;
    color: #1f3a5f;
}
.pwa-banner-sub {
    font-size: 11px;
    color: #4a3500;
    opacity: 0.85;
    margin-top: 2px;
}

.pwa-banner-cta {
    flex-shrink: 0;
    background: #1f3a5f;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(31, 58, 95, 0.4);
    transition: transform 0.12s, box-shadow 0.12s;
    -webkit-tap-highlight-color: transparent;
}
.pwa-banner-cta:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(31, 58, 95, 0.4);
}

.pwa-banner-close {
    flex-shrink: 0;
    background: transparent;
    border: 0;
    color: #1f3a5f;
    font-size: 24px;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    -webkit-tap-highlight-color: transparent;
}
.pwa-banner-close:hover, .pwa-banner-close:active { opacity: 1; background: rgba(31, 58, 95, 0.1); }

/* Pousse le contenu pour qu'il ne soit pas masqué par la bannière */
body:has(#pwa-install-banner:not([hidden])) {
    padding-top: 64px;
}
body:has(#pwa-install-banner:not([hidden])) header.site-header,
body:has(#pwa-install-banner:not([hidden])) .site-header {
    top: 64px !important;
}

/* === FAB desktop (doré pulsant, bien visible) === */
.pwa-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 7500;
}
.pwa-fab[hidden] { display: none; }

.pwa-fab-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #d4a017 0%, #f5d572 100%);
    color: #1f3a5f;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(212, 160, 23, 0.5);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
    animation: pwaFabPulse 2s ease-in-out infinite;
}
.pwa-fab-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 14px 36px rgba(212, 160, 23, 0.65);
    animation-play-state: paused;
}
.pwa-fab-btn:active { transform: scale(0.97); }
.pwa-fab-btn svg { color: #1f3a5f; flex-shrink: 0; }

@keyframes pwaFabPulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(212, 160, 23, 0.5); }
    50%      { box-shadow: 0 10px 28px rgba(212, 160, 23, 0.5), 0 0 0 8px rgba(245, 213, 114, 0.4); }
}

@media (max-width: 720px) {
    /* Sur mobile c'est la bannière qui prime, on cache le FAB */
    .pwa-fab { display: none !important; }
}

/* Tuto iOS modal */
.pwa-ios-tip {
    position: fixed;
    inset: 0;
    z-index: 8500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    padding: 16px;
    animation: hpromo-fadein 0.25s ease;
}
.pwa-ios-tip[hidden] { display: none; }

.pwa-ios-tip-card {
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 24px 22px 32px;
    max-width: 460px;
    width: 100%;
    position: relative;
    animation: hpromo-rise 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 640px) {
    .pwa-ios-tip { align-items: center; }
    .pwa-ios-tip-card { border-radius: 16px; }
}
.pwa-ios-tip-close {
    position: absolute;
    top: 10px; right: 14px;
    background: none; border: 0; cursor: pointer;
    width: 32px; height: 32px;
    font-size: 26px; line-height: 1;
    color: #94a3b8;
    border-radius: 50%;
}
.pwa-ios-tip-close:hover { background: #f1f5f9; color: #1f3a5f; }

.pwa-ios-tip-card h3 {
    margin: 0 0 14px 0;
    color: #1f3a5f;
    font-size: 18px;
    font-weight: 700;
}
.pwa-ios-tip-steps {
    margin: 0 0 12px 0;
    padding-left: 22px;
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}
.pwa-ios-tip-steps li svg {
    vertical-align: middle;
    margin-left: 4px;
    color: #1f3a5f;
}

/* ============================================================
   MAP AGENT BADGES — count agents inscrits par département
   ============================================================ */
.map-agent-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 6px;
    background: linear-gradient(135deg, #1f3a5f 0%, #2d5a8e 100%);
    color: #fff;
    border-radius: 999px;
    border: 2px solid #f5d572;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(31, 58, 95, 0.35);
    cursor: default;
    white-space: nowrap;
    pointer-events: auto;
    transition: transform 0.15s;
}
.map-agent-badge:hover { transform: scale(1.08); }
.map-agent-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px; height: 20px;
    border-radius: 50%;
    background: #f5d572;
    color: #1f3a5f;
    font-weight: 800;
    font-size: 12px;
    padding: 0 5px;
}
.map-agent-lbl {
    font-size: 10px;
    letter-spacing: 0.3px;
    opacity: 0.92;
}

/* Tagline "Bientôt le lancement officiel" à côté de Hector Emploi */
.brand-tagline {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 10px;
    background: rgba(212, 160, 23, 0.15);
    border: 1px solid #d4a017;
    border-radius: 999px;
    color: #d4a017;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    vertical-align: middle;
}
@media (max-width: 720px) {
    .brand-tagline { display: none; }
}
