/* ==========================================================================
   EXPORTIDIA — Portail client · Feuille de styles principale
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: rgba(21,23,29,.06); padding: .1em .4em; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.ico { width: 1.15em; height: 1.15em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.hint { font-size: .85rem; color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s; }
.link:hover { border-color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow--light { color: var(--on-ink-muted); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--accent); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-title); font-size: 1.15rem; letter-spacing: -.03em; line-height: 1; text-decoration: none; }
.wordmark--light { color: #fff; }
.wordmark--dark { color: var(--ink); }
.wordmark__dot { width: .62em; height: .62em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 .2em rgba(19, 60, 248, .22); }
.brand-img { height: 30px; width: auto; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--surface); --fg: var(--ink); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: .65rem 1.2rem; border-radius: 999px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 500; font-size: .95rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico:last-child:not(:first-child) { transform: translateX(3px); }
.btn--primary { --bg: var(--accent); --fg: var(--on-accent); --bd: var(--accent); box-shadow: 0 8px 22px -8px rgba(19, 60, 248, .7); }
.btn--primary:hover { --bg: #2A50FF; box-shadow: 0 12px 28px -8px rgba(19, 60, 248, .8); }
.btn--ink { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }
.btn--ghost:hover { --bd: var(--ink); }
.btn--glass { --bg: rgba(255,255,255,.08); --fg: #fff; --bd: rgba(255,255,255,.16); backdrop-filter: blur(8px); }
.btn--glass:hover { --bg: rgba(255,255,255,.14); }
.btn--danger { --bg: transparent; --fg: var(--danger); --bd: rgba(217,68,58,.35); }
.btn--danger:hover { --bg: var(--danger); --fg: #fff; --bd: var(--danger); }
.btn--sm { min-height: 38px; padding: .5rem .95rem; font-size: .88rem; }
.btn--xs { min-height: 30px; padding: .35rem .7rem; font-size: .8rem; gap: .35rem; }
.btn--lg { min-height: 54px; padding: .9rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: background .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn--light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.14); }
.icon-btn--light:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.icon-btn--sm { width: 32px; height: 32px; border-radius: 9px; }

.avatar {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--accent), #6F8BFF); color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .02em;
}
.avatar--sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar--lg { width: 52px; height: 52px; font-size: 1.05rem; background: linear-gradient(135deg, var(--ink-3), var(--ink)); }

/* ---------- Statuts ---------- */
.badge {
  --c: var(--st-planifie);
  display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .65rem; border-radius: 999px;
  font-size: .76rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  color: color-mix(in srgb, var(--c) 82%, #000); background: color-mix(in srgb, var(--c) 13%, transparent);
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.badge--planifie { --c: var(--st-planifie); }
.badge--confirme { --c: var(--st-confirme); }
.badge--realise  { --c: var(--st-realise); }
.badge--reporte  { --c: var(--st-reporte); }
.badge--annule   { --c: var(--st-annule); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--st-planifie); }
.dot--confirme { background: var(--st-confirme); } .dot--realise { background: var(--st-realise); }
.dot--reporte { background: var(--st-reporte); } .dot--annule { background: var(--st-annule); }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: .4rem; font-size: .88rem; }
.field > span { font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: .7rem .9rem; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(21,23,29,.07); }
.field small { color: var(--muted); }
.field--full { grid-column: 1 / -1; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.2rem; }

.alert { display: flex; align-items: flex-start; gap: .6rem; padding: .8rem 1rem; border-radius: 12px; font-size: .9rem; margin-bottom: 1rem; }
.alert--error { background: #FDECEA; color: #9C2A22; }
.alert--success { background: #E6F6EE; color: #146B43; }
.alert--info { background: #ECEFFE; color: #2C3E9A; }

.search { position: relative; display: flex; align-items: center; }
.search .ico { position: absolute; left: .85rem; color: var(--muted); }
.search input { min-height: 42px; width: 100%; padding: .55rem 1rem .55rem 2.5rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .9rem; }
.search input:focus { outline: none; border-color: var(--ink); }

.chips { display: flex; gap: .35rem; flex-wrap: wrap; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.chip { border: 0; background: transparent; padding: .45rem .85rem; border-radius: 999px; font-size: .84rem; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.chip:hover { color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; }

.switch { display: flex; align-items: center; gap: .8rem; font-size: .92rem; cursor: pointer; margin: 1.2rem 0; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--line-2); flex: none; transition: background .25s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.segmented { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: .75rem 1rem; border: 1px solid var(--line-2); border-radius: 12px; font-weight: 500; transition: all .2s; }
.segmented small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.segmented input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface-2); }

/* ---------- Notifications ---------- */
.toasts { position: fixed; top: 1rem; right: 1rem; z-index: 90; display: grid; gap: .5rem; max-width: min(380px, calc(100vw - 2rem)); }
.toast {
  display: flex; align-items: center; gap: .65rem; padding: .85rem 1.1rem; border-radius: 14px;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: .92rem;
  animation: toastIn .5s var(--ease) both;
}
.toast .ico { color: var(--accent-2); }
.toast--success .ico { color: #5BE0A3; }
.toast--error { background: #3A1311; }
.toast.is-out { animation: toastOut .4s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }
.login .toasts, .login__card .toasts { position: static; max-width: none; margin-bottom: 1rem; }
.login__card .toast { background: var(--surface-2); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }

/* ==========================================================================
   CONNEXION CLIENT
   ========================================================================== */
.page-login { background: var(--ink); }
.login { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; min-height: 100dvh; }
.login__stage {
  position: relative; overflow: hidden; color: var(--on-ink); padding: clamp(1.5rem, 4vw, 3.5rem);
  display: flex; flex-direction: column; gap: 2.5rem;
  background: radial-gradient(120% 90% at 0% 0%, var(--ink-3) 0%, var(--ink) 55%);
}
.login__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 70% at 30% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(80% 70% at 30% 40%, #000 30%, transparent 85%);
}
.login__glow { position: absolute; width: 560px; height: 560px; right: -180px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(19,60,248,.42), transparent 65%); filter: blur(20px); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { to { transform: translate(-80px, -60px) scale(1.1); } }
.login__brand, .login__pitch, .feed, .login__promise { position: relative; }
.login__pitch { margin-top: auto; display: grid; gap: 1.4rem; max-width: 560px; }
.login__title { font-size: clamp(2.1rem, 4.4vw, 3.7rem); line-height: 1.04; letter-spacing: -.045em; color: #fff; }
.login__title em { font-style: normal; color: var(--accent); }
.login__lead { font-size: 1.1rem; font-weight: 300; color: var(--on-ink-muted); max-width: 470px; }
.login__promise { font-size: .85rem; color: var(--on-ink-muted); display: flex; align-items: center; gap: .6rem; }
.login__promise::before { content: ""; width: 26px; height: 1px; background: var(--accent); }

.feed { display: grid; gap: .7rem; max-width: 470px; margin-bottom: auto; }
.feed__item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem;
  padding: .85rem 1rem; border-radius: 16px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(10px); font-size: .9rem; opacity: 0; transform: translateY(14px);
  animation: feedIn .8s var(--ease) forwards, feedFloat 6s ease-in-out infinite;
}
.feed__item:nth-child(1) { animation-delay: .5s, 1.3s; }
.feed__item:nth-child(2) { animation-delay: 1.1s, 1.9s; margin-left: 2.2rem; }
.feed__item:nth-child(3) { animation-delay: 1.7s, 2.5s; margin-left: 1.1rem; }
@keyframes feedIn { to { opacity: 1; transform: none; } }
@keyframes feedFloat { 50% { translate: 0 -4px; } }
.feed__item strong { display: block; color: #fff; font-weight: 500; }
.feed__item small { color: var(--on-ink-muted); font-size: .8rem; }
.feed__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(19,60,248,.16); color: var(--accent-2); }
.feed__tag { font-size: .72rem; font-weight: 600; padding: .25rem .55rem; border-radius: 99px; background: rgba(76,111,255,.2); color: #AFC0FF; }
.feed__tag--ok { background: rgba(18,163,160,.2); color: #7FE3DF; }
.feed__tag--done { background: rgba(30,158,98,.22); color: #86E5B5; }

.login__panel { background: var(--paper); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); position: relative; }
.login__mobile-brand { display: none; }
.login__card { width: min(420px, 100%); display: grid; gap: 1rem; animation: rise .8s var(--ease) both .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.login__lock { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: #fff; margin-bottom: .4rem; }
.login__lock .ico { width: 22px; height: 22px; }
.login__card h2 { font-size: 1.55rem; color: var(--ink); }
.code-form { display: grid; gap: .8rem; margin-top: .6rem; }
.code-field { position: relative; display: block; }
.code-field input {
  width: 100%; border: 0; border-bottom: 2px solid var(--line-2); background: transparent; padding: .5rem 0 .7rem;
  font-family: var(--font-title); font-size: clamp(1.9rem, 5vw, 2.5rem); letter-spacing: .32em; color: var(--ink); text-transform: uppercase;
}
.code-field input::placeholder { color: var(--line-2); letter-spacing: .3em; }
.code-field input:focus { outline: none; }
.code-field__line { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.code-field input:focus ~ .code-field__line { transform: scaleX(1); }
.code-field input.is-invalid { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.login__divider { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .84rem; margin-top: .8rem; }
.login__divider::before, .login__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login__foot { position: absolute; bottom: 1.4rem; left: 0; right: 0; display: flex; justify-content: space-between; gap: 1rem; padding: 0 clamp(1.5rem, 4vw, 3rem); font-size: .8rem; color: var(--muted); }
.login__foot span { display: inline-flex; align-items: center; gap: .4rem; }
.login__foot a { color: var(--muted); text-decoration: none; }
.login__foot a:hover { color: var(--ink); }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .ico { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   ESPACE CLIENT — AGENDA
   ========================================================================== */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
}
.topbar__brand { text-decoration: none; }
.topbar__right { display: flex; align-items: center; gap: .8rem; }
.me { display: flex; align-items: center; gap: .65rem; color: #fff; }
.me__txt { display: grid; line-height: 1.2; }
.me__txt strong { font-weight: 500; font-size: .92rem; }
.me__txt small { color: var(--on-ink-muted); font-size: .78rem; }

.hero { position: relative; color: var(--on-ink); background: var(--ink); padding: 7rem 0 7.5rem; overflow: hidden; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.hero__bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 80% at 85% 10%, rgba(19,60,248,.30), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(76,111,255,.22), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
}
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 22px);
  mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.hero__copy { display: grid; gap: 1.2rem; }
.hero__title { font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.02; letter-spacing: -.05em; color: #fff; }
.hero__lead { font-size: 1.08rem; font-weight: 300; color: var(--on-ink-muted); max-width: 470px; }
.hero__lead strong { color: #fff; font-weight: 500; }

.next {
  position: relative; border-radius: var(--r-lg); padding: 1.4rem; display: grid; gap: 1.2rem;
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(18px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
.next::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(19,60,248,.8), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.next__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.next__label { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-ink-muted); }
.next__count { font-size: .82rem; font-weight: 600; padding: .3rem .7rem; border-radius: 99px; background: var(--accent); color: #fff; font-variant-numeric: tabular-nums; }
.next__body { display: flex; gap: 1.1rem; align-items: center; }
.next__info { min-width: 0; }
.next__info h2 { font-size: 1.25rem; color: #fff; margin-bottom: .25rem; overflow-wrap: anywhere; }
.next__info > p { color: var(--on-ink-muted); font-size: .92rem; }
.next__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.next__empty { display: grid; gap: .7rem; justify-items: start; padding: .5rem 0; }
.next__empty h2 { font-size: 1.2rem; color: #fff; }
.next__empty p { color: var(--on-ink-muted); font-size: .93rem; }

.datechip { flex: none; display: grid; justify-items: center; width: 74px; padding: .55rem 0 .65rem; border-radius: 18px; background: #fff; color: var(--ink); line-height: 1; box-shadow: 0 12px 24px -12px rgba(0,0,0,.5); }
.datechip__d { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.datechip__n { font-family: var(--font-title); font-size: 1.9rem; margin: .3rem 0 .2rem; letter-spacing: -.05em; }
.datechip__m { font-size: .75rem; color: var(--muted); }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .7rem 0 0; padding: 0; font-size: .85rem; color: var(--on-ink-muted); }
.meta li { display: inline-flex; align-items: center; gap: .35rem; }

.radar { position: relative; display: block; width: 46px; height: 46px; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--accent); animation: radar 2.8s var(--ease) infinite; opacity: 0; }
.radar i:nth-child(2) { animation-delay: .9s; } .radar i:nth-child(3) { animation-delay: 1.8s; }
.radar::after { content: ""; position: absolute; inset: 40%; border-radius: 50%; background: var(--accent); }
@keyframes radar { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.2); opacity: 0; } }

.portal { position: relative; margin-top: -3.6rem; display: grid; gap: 1.5rem; padding-bottom: 2rem; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.kpi {
  position: relative; display: grid; gap: .3rem; align-content: start; padding: 1.25rem 1.3rem 1.2rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.kpi__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: .55rem; }
.kpi__val { font-family: var(--font-title); font-size: 2rem; letter-spacing: -.05em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi__val small { font-size: .55em; color: var(--muted); margin-left: .1em; letter-spacing: -.02em; }
.kpi__lbl { font-size: .86rem; color: var(--muted); }
.kpi--ring { padding-top: 1.25rem; }
.ring { width: 38px; height: 38px; margin-bottom: .55rem; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--accent-soft); stroke-width: 5; }
.ring .ring__val { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s var(--ease) .4s; }

/* Calendrier + journée */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.board { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
.cal { padding: 1.4rem; display: grid; gap: 1rem; align-content: start; }
.cal__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.cal__title { font-size: 1.35rem; color: var(--ink); margin-top: .3rem; text-transform: capitalize; }
.cal__nav { display: flex; gap: .4rem; align-items: center; }
.cal__dow { display: grid; grid-template-columns: repeat(7, 1fr); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__grid.is-anim { animation: calIn .45s var(--ease); }
@keyframes calIn { from { opacity: 0; transform: translateX(var(--dir, 12px)); } }
.cday {
  position: relative; aspect-ratio: 1 / .92; min-height: 54px; border-radius: 14px; border: 1px solid transparent; background: var(--surface-2);
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: .5rem .55rem; text-align: left;
  font-size: .9rem; font-weight: 500; color: var(--ink); transition: border-color .2s, background .2s, transform .2s;
}
.cday:hover { border-color: var(--line-2); background: #fff; }
.cday.is-out { background: transparent; color: var(--line-2); }
.cday.is-weekend:not(.is-out) { background: transparent; }
.cday.is-today .cday__n { background: var(--ink); color: #fff; }
.cday.is-selected { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.cday.has-rdv:not(.is-out) { background: #fff; border-color: var(--line); }
.cday__n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.cday__dots { display: flex; gap: 3px; flex-wrap: wrap; }
.cday__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--st-planifie); }
.cday__dots i.s-confirme { background: var(--st-confirme); } .cday__dots i.s-realise { background: var(--st-realise); }
.cday__dots i.s-reporte { background: var(--st-reporte); } .cday__dots i.s-annule { background: var(--st-annule); }
.cday__more { font-size: .68rem; color: var(--muted); }
.cday__pill { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .8rem; color: var(--muted); padding-top: .4rem; border-top: 1px dashed var(--line); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; padding-top: .5rem; }

.day { padding: 1.4rem; display: flex; flex-direction: column; gap: 1rem; min-height: 100%; }
.day__title { font-size: 1.2rem; color: var(--ink); margin-top: .3rem; }
.day__list { display: grid; gap: .6rem; align-content: start; }
.slot {
  display: grid; grid-template-columns: 58px 1fr; gap: .9rem; width: 100%; text-align: left; padding: .9rem; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface-2); transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
  animation: rise .45s var(--ease) both;
}
.slot:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow); background: #fff; }
.slot__time { font-family: var(--font-title); font-size: .95rem; color: var(--ink); letter-spacing: -.03em; line-height: 1.2; }
.slot__time small { display: block; font-family: var(--font-body); font-size: .75rem; color: var(--muted); letter-spacing: 0; margin-top: .2rem; }
.slot__main { min-width: 0; display: grid; gap: .3rem; }
.slot__main strong { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot__main small { color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot__tags { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-top: .2rem; }
.slot__chan { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; color: var(--muted); }
.slot__admin-client { font-size: .74rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.day__empty { display: grid; place-items: center; gap: .8rem; text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: .92rem; border: 1px dashed var(--line-2); border-radius: 16px; }
.day__empty .radar { width: 38px; height: 38px; }
.day__upnext { margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .85rem; color: var(--muted); }
.day__upnext button { border: 0; background: none; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* Historique */
.history { padding: 1.4rem; display: grid; gap: 1.1rem; }
.history__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.history__head h2 { font-size: 1.3rem; color: var(--ink); margin-top: .3rem; }
.history__tools { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.history__tools .search { width: 250px; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; }
.row + .row { border-top: 1px solid var(--line); }
.row__btn {
  width: 100%; display: grid; grid-template-columns: 72px minmax(0, 1fr) 80px 150px 120px 110px 24px; align-items: center; gap: 1rem;
  padding: .85rem .6rem; border: 0; background: transparent; text-align: left; border-radius: 12px; transition: background .2s;
}
.row__btn:hover { background: var(--surface-2); }
.row__btn:hover .row__go { color: var(--accent); transform: translateX(3px); }
.row__date { display: grid; line-height: 1.1; }
.row__date strong { font-family: var(--font-title); font-size: 1.25rem; color: var(--ink); letter-spacing: -.04em; }
.row__date small { color: var(--muted); font-size: .76rem; }
.row__main { min-width: 0; display: grid; }
.row__main strong { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__main small { color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__meta { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; }
.row__go { color: var(--line-2); transition: transform .25s var(--ease), color .2s; display: grid; }
.row--up .row__date strong { color: var(--accent); }
.history__foot { padding-top: .4rem; }
.empty { display: grid; justify-items: center; gap: .8rem; padding: 2.5rem 1rem; color: var(--muted); text-align: center; }

/* Bandeau CTA */
.cta {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: clamp(1.5rem, 4vw, 2.4rem); border-radius: var(--r-lg); color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(70% 140% at 100% 0%, rgba(19,60,248,.5), transparent 60%), var(--ink);
}
.cta h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: .4rem; }
.cta p { color: var(--on-ink-muted); }
.site-foot { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem .2rem .5rem; font-size: .82rem; color: var(--muted); }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* ---------- Tiroir détail ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(21,23,29,.45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s var(--ease); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(500px, 100%); background: var(--surface); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .45s var(--ease); outline: none;
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.6rem 1.4rem; display: grid; gap: 1.4rem; align-content: start; }
.drawer__title { font-size: 1.6rem; color: var(--ink); margin-top: -.6rem; overflow-wrap: anywhere; }
.drawer__sub { color: var(--muted); margin-top: -1rem; }
.drawer__foot { display: flex; gap: .6rem; flex-wrap: wrap; padding: 1.1rem 1.4rem calc(1.1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface-2); }
.drawer__foot .btn { flex: 1; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.facts li { display: grid; gap: .5rem; padding: .85rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.facts .ico { color: var(--accent); }
.facts span { display: grid; min-width: 0; }
.facts small { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.facts strong { font-weight: 500; font-size: .92rem; color: var(--ink); overflow-wrap: anywhere; }
.contact h3, .brief h3 { font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; display: flex; align-items: center; gap: .45rem; }
.contact__card { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border-radius: 16px; border: 1px solid var(--line); }
.contact__card > div { display: grid; gap: .1rem; min-width: 0; }
.contact__card strong { font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.contact__card small { color: var(--muted); }
.contact__links { display: grid; gap: .3rem; margin-top: .6rem; }
.contact__links a { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; font-size: .9rem; overflow-wrap: anywhere; }
.contact__links a:hover { color: var(--accent); }
.contact__links .ico { color: var(--muted); }
.brief { padding: 1.1rem 1.2rem; border-radius: 16px; background: linear-gradient(135deg, var(--accent-soft), #F2F4FF); border: 1px solid #C9D3FF; }
.brief h3 { color: #133CF8; }
.brief p { color: var(--text); white-space: pre-line; }

/* ---------- Animations d'entrée ---------- */
.reveal { animation: rise .8s var(--ease) both; }
.reveal--2 { animation-delay: .12s; } .reveal--3 { animation-delay: .22s; } .reveal--4 { animation-delay: .32s; } .reveal--5 { animation-delay: .42s; }

/* ==========================================================================
   ADMINISTRATION
   ========================================================================== */
.admin { background: var(--paper); }
.admin-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2rem; padding: 1.6rem 1.1rem;
  background: var(--ink); color: var(--on-ink);
  background-image: radial-gradient(90% 40% at 0% 100%, rgba(19,60,248,.18), transparent 70%);
}
.sidebar__brand { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 0 .6rem; text-decoration: none; }
.sidebar__tag { font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: .25rem .5rem; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--on-ink-muted); }
.sidebar__nav { display: grid; gap: .25rem; }
.sidebar__nav a { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 12px; color: var(--on-ink-muted); text-decoration: none; font-weight: 500; font-size: .95rem; transition: background .2s, color .2s; }
.sidebar__nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar__nav a.is-active { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.sidebar__nav a.is-active .ico { color: var(--accent); }
.sidebar__foot { margin-top: auto; display: grid; gap: .6rem; }
.sidebar__me { display: flex; align-items: center; gap: .7rem; padding: .7rem; border-radius: 14px; background: rgba(255,255,255,.05); }
.sidebar__me-txt { display: grid; min-width: 0; line-height: 1.25; }
.sidebar__me-txt strong { font-weight: 500; font-size: .88rem; color: #fff; }
.sidebar__me-txt small { font-size: .76rem; color: var(--on-ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__logout { width: 100%; display: flex; align-items: center; gap: .8rem; padding: .65rem .8rem; border: 0; border-radius: 12px; background: transparent; color: var(--on-ink-muted); font-size: .9rem; }
.sidebar__logout:hover { background: rgba(255,255,255,.06); color: #fff; }

.admin-main { padding: clamp(1.25rem, 3vw, 2.5rem); display: grid; gap: 1.5rem; align-content: start; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ink); margin-top: .35rem; }
.page-head p.muted { margin-top: .4rem; }
.page-head__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); text-decoration: none; font-size: .88rem; }
.back:hover { color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat { padding: 1.2rem 1.3rem; display: grid; gap: .25rem; }
.stat__lbl { font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: .45rem; }
.stat__lbl .ico { color: var(--accent); }
.stat__val { font-family: var(--font-title); font-size: 1.9rem; letter-spacing: -.05em; color: var(--ink); }
.stat--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.stat--ink .stat__val { color: #fff; } .stat--ink .stat__lbl { color: var(--on-ink-muted); }

.panel { padding: 1.4rem; display: grid; gap: 1rem; align-content: start; min-width: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.panel__head h2 { font-size: 1.1rem; color: var(--ink); }
.cols-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.cols-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }

.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.filters select, .filters input[type="date"] { min-height: 42px; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .88rem; }
.filters .search { min-width: 220px; flex: 1; max-width: 320px; }

.table-wrap { overflow-x: auto; margin: 0 -1.4rem -1.4rem; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .7rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.table th:first-child, .table td:first-child { padding-left: 1.4rem; }
.table th:last-child, .table td:last-child { padding-right: 1.4rem; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .t-strong { font-weight: 600; color: var(--ink); }
.table .t-sub { display: block; font-size: .82rem; color: var(--muted); }
.table .t-actions { display: flex; gap: .35rem; justify-content: flex-end; white-space: nowrap; }
.table a.t-strong { text-decoration: none; }
.table a.t-strong:hover { color: var(--accent); }
.t-date { font-variant-numeric: tabular-nums; white-space: nowrap; }
.inline-status select { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .6rem; font-size: .8rem; background: var(--surface); }

.code-pill {
  display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .3rem .25rem .7rem; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem; letter-spacing: .12em;
}
.code-pill button { border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; }
.code-pill button:hover { background: #fff; color: var(--ink); }
.code-big { font-family: var(--font-title); font-size: 1.9rem; letter-spacing: .25em; color: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600; padding: .25rem .6rem; border-radius: 99px; }
.tag--on { background: #E6F6EE; color: #146B43; }
.tag--off { background: #EEF0F4; color: #6A6F86; }

.list-plain { list-style: none; margin: 0; padding: 0; display: grid; }
.list-plain li + li { border-top: 1px solid var(--line); }
.mini { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .75rem 0; text-decoration: none; }
.mini__date { display: grid; justify-items: center; line-height: 1.05; padding: .4rem 0; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.mini__date strong { font-family: var(--font-title); font-size: 1.05rem; color: var(--ink); }
.mini__date small { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mini__main { min-width: 0; display: grid; }
.mini__main strong { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__main small { color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini:hover .mini__main strong { color: var(--accent); }

.bar { height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 0; transition: width 1s var(--ease); }

.form-card { padding: 1.6rem; display: grid; gap: 1.4rem; }
.form-section { display: grid; gap: 1rem; }
.form-section + .form-section { padding-top: 1.4rem; border-top: 1px dashed var(--line); }
.form-section h2 { font-family: var(--font-body); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.form-actions { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; align-items: center; }
.form-actions__main { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Boîtes de dialogue */
dialog.modal { border: 0; padding: 0; border-radius: var(--r-lg); width: min(560px, calc(100% - 2rem)); box-shadow: var(--shadow-lg); background: var(--surface); color: var(--text); }
dialog.modal::backdrop { background: rgba(21,23,29,.5); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: rise .4s var(--ease); }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 1.15rem; color: var(--ink); }
.modal__body { padding: 1.4rem; display: grid; gap: 1rem; }
.modal__foot { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.4rem; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* Connexion administrateur */
.page-admin-login { background: var(--ink); min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; position: relative; overflow: hidden; }
.page-admin-login::before { content: ""; position: absolute; width: 700px; height: 700px; left: 50%; top: -360px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, rgba(19,60,248,.35), transparent 65%); filter: blur(10px); }
.alogin { position: relative; width: min(420px, 100%); display: grid; gap: 1.5rem; }
.alogin__brand { display: flex; justify-content: center; align-items: center; gap: .7rem; }
.alogin__card { padding: 2rem; display: grid; gap: 1rem; border-radius: var(--r-lg); }
.alogin__card h1 { font-size: 1.35rem; color: var(--ink); }
.alogin__back { text-align: center; font-size: .85rem; }
.alogin__back a { color: var(--on-ink-muted); text-decoration: none; }
.alogin__back a:hover { color: #fff; }

/* Installation */
.install { padding: 2rem 1rem 4rem; }
.install__wrap { width: min(760px, 100%); margin: 0 auto; display: grid; gap: 1.4rem; }
.install__head { display: grid; gap: .8rem; padding: 1rem 0; }
.install__head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--ink); }
.install__card { padding: 1.8rem; display: grid; gap: 1rem; }
.install__card h2 { font-size: 1rem; color: var(--ink); margin-top: .6rem; }
.install__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; }
.install__done { text-align: left; }
.install__check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--st-realise); color: #fff; font-size: 1.6rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.checklist li { display: flex; align-items: center; gap: .6rem; font-size: .93rem; }
.checklist span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .75rem; color: #fff; background: var(--st-realise); }
.checklist .ko span { background: var(--danger); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .row__btn { grid-template-columns: 64px minmax(0, 1fr) 70px 110px 24px; }
  .hide-md { display: none !important; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .login { grid-template-columns: 1fr; }
  .login__stage { min-height: auto; padding-bottom: 2.5rem; gap: 2rem; }
  .login__pitch { margin-top: 1rem; }
  .feed { display: none; }
  .login__panel { padding-bottom: 5rem; }
  .hero__inner { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; gap: .8rem; padding: .7rem 1rem; overflow-x: auto; }
  .sidebar__brand .sidebar__tag { display: none; }
  .sidebar__nav { display: flex; gap: .2rem; }
  .sidebar__nav a { padding: .55rem .7rem; white-space: nowrap; font-size: .88rem; }
  .sidebar__nav a.is-active { box-shadow: inset 0 -2px 0 var(--accent); }
  .sidebar__foot { margin: 0 0 0 auto; }
  .sidebar__me { display: none; }
  .sidebar__logout span { display: none; }
  .cols-even { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 1.5rem); }
  .hide-sm { display: none !important; }
  .login__stage { display: none; }
  .login__panel { min-height: 100vh; min-height: 100dvh; justify-content: flex-start; padding-top: 2.5rem; }
  .login__mobile-brand { display: block; align-self: flex-start; margin-bottom: 3rem; }
  .login__foot { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .topbar { padding: 1rem .9rem; }
  .hero { padding: 5.5rem 0 6rem; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .next { padding: 1.1rem; }
  .next__actions .btn { flex: 1 1 auto; }
  .kpis { gap: .7rem; }
  .kpi { padding: 1rem; }
  .kpi__val { font-size: 1.6rem; }
  .cal, .day, .history, .panel { padding: 1.05rem; }
  .cal__grid { gap: 4px; }
  .cday { min-height: 44px; aspect-ratio: 1; border-radius: 11px; padding: .3rem; align-items: center; }
  .cday__n { min-width: 24px; height: 24px; font-size: .85rem; }
  .cday__dots i { width: 5px; height: 5px; }
  .cday__more { display: none; }
  .history__tools, .history__tools .search { width: 100%; }
  .chips { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .chip { white-space: nowrap; }
  .row__btn { grid-template-columns: 52px minmax(0, 1fr) auto; gap: .7rem; padding: .8rem .2rem; }
  .row__go { display: none; }
  .row__date strong { font-size: 1.1rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats { gap: .7rem; }
  .stat__val { font-size: 1.5rem; }
  .table-wrap { margin: 0 -1.05rem -1.05rem; }
  .table th:first-child, .table td:first-child { padding-left: 1.05rem; }
  .hide-xs { display: none !important; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta .btn { width: 100%; }
  .site-foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .feed__item { opacity: 1; transform: none; }
}

/* Ajustements */
a.slot { text-decoration: none; color: inherit; }
.inline-field { display: flex; gap: .4rem; align-items: center; }
.inline-field input { flex: 1; min-width: 0; }
.inline-field .icon-btn { height: 46px; width: 46px; flex: none; }
.code-pill:has(.code-big) { padding: .6rem .5rem .6rem 1rem; justify-content: space-between; }

/* WhatsApp */
.btn--wa { --bg: #25D366; --fg: #fff; --bd: #25D366; box-shadow: 0 8px 20px -10px rgba(37, 211, 102, .8); }
.btn--wa:hover { --bg: #1EBE5A; --bd: #1EBE5A; }
.btn.is-disabled, .icon-btn.is-disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.icon-btn--wa { color: #1A9E4B; }
.icon-btn--wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.wa-prompt {
  display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem .9rem 1.1rem; border-radius: var(--r);
  background: linear-gradient(120deg, #E9FBF0, #fff 70%); border: 1px solid #BDEFD0; box-shadow: var(--shadow-sm);
  animation: rise .5s var(--ease) both;
}
.wa-prompt__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #25D366; color: #fff; flex: none; }
.wa-prompt__ico .ico { width: 22px; height: 22px; }
.wa-prompt__txt { flex: 1; display: grid; min-width: 0; }
.wa-prompt__txt strong { color: var(--ink); font-weight: 600; }
.wa-prompt__txt small { color: var(--muted); font-size: .86rem; }
@media (max-width: 720px) { .wa-prompt { flex-wrap: wrap; } .wa-prompt .btn { flex: 1; } }

.admin .toasts { top: auto; bottom: 1rem; }


/* ==========================================================================
   CHARTE EXPORTIDIA (www.exportidia.com)
   ========================================================================== */
/* Logotype : « Exportidia » en Krona One, comme sur le site */
.wordmark { font-size: 1.3rem; letter-spacing: -.01em; gap: 0; }
.wordmark__dot { display: none; }
.wordmark--dark { color: #000; }

/* Boutons : pilules en Krona One, comme le site */
.btn { font-family: var(--font-title); font-size: .76rem; font-weight: 400; letter-spacing: .01em; border-radius: 25px; }
.btn--sm { font-size: .7rem; }
.btn--xs { font-size: .64rem; }
.btn--lg { font-size: .84rem; }
.btn--ink { --bg: #1A1A1A; --bd: #1A1A1A; }
.btn--primary { box-shadow: 0 10px 24px -12px rgba(19, 60, 248, .9); }

/* Motifs du site : barre épaisse + soleil */
.dash { display: block; width: 90px; height: 14px; background: currentColor; }
.burst { position: absolute; pointer-events: none; user-select: none; }

/* Connexion : grand aplat bleu */
.login__stage { background: var(--accent); }
.login__grid { opacity: .35; }
.login__glow { background: radial-gradient(circle, rgba(255,255,255,.22), transparent 65%); }
.login__title em { color: #fff; opacity: .55; }
.login__pitch .dash { color: #fff; margin-top: .2rem; }
.login__stage .burst { width: 150px; right: 9%; top: 9%; animation: spinSlow 60s linear infinite; opacity: .95; }
.feed__item { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.feed__ico { background: rgba(255,255,255,.16); color: #fff; }
.feed__tag { background: rgba(255,255,255,.18); color: #fff; }
.feed__tag--ok, .feed__tag--done { background: #fff; color: var(--accent); }
.login__promise::before { background: #fff; }
.eyebrow--light .pulse { background: #fff; }
.eyebrow--light .pulse::after { border-color: #fff; }
.code-field__line { background: var(--accent); }
.login__lock { background: var(--accent); }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* Agenda : bandeau bleu */
.hero { background: var(--accent); }
.hero__bg { background:
    radial-gradient(55% 90% at 90% 0%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(11,43,196,.75), transparent 65%),
    var(--accent); }
.hero__bg::after { background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 1px, transparent 1px 22px); }
.hero .burst { width: 120px; left: 46%; top: 22%; opacity: .9; animation: spinSlow 80s linear infinite; }
.hero__copy .dash { color: #fff; }
.hero .btn--primary { --bg: #fff; --fg: var(--accent); --bd: #fff; box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.hero .btn--primary:hover { --bg: #fff; }
.next { background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.07)); border-color: rgba(255,255,255,.28); }
.next::before { background: linear-gradient(140deg, rgba(255,255,255,.9), transparent 45%); }
.next__count { background: #fff; color: var(--accent); }
.topbar .avatar { background: #fff; color: var(--accent); }
.topbar .btn--glass:hover { --bg: rgba(255,255,255,.2); }
.radar i { border-color: #fff; } .radar::after { background: #fff; }
.card .radar i, .empty .radar i { border-color: var(--accent); } .card .radar::after, .empty .radar::after { background: var(--accent); }
.datechip__d { color: var(--accent); }
.kpi__ico { background: var(--accent-soft); color: var(--accent); }
.cday.is-today .cday__n { background: var(--accent); }
.cday.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.chip.is-active { background: #1A1A1A; }

/* Bandeau d'appel à l'action : noir + soleil blanc */
.cta { background: #1A1A1A; }
.cta .burst { width: 160px; right: -30px; top: -40px; opacity: .14; }
.cta > *:not(.burst) { position: relative; }

/* Administration */
.sidebar { background: #1A1A1A; background-image: radial-gradient(90% 40% at 0% 100%, rgba(19,60,248,.35), transparent 70%); }
.sidebar__nav a.is-active { background: rgba(255,255,255,.08); box-shadow: inset 3px 0 0 var(--accent); }
.sidebar__nav a.is-active .ico { color: #6F8BFF; }
.stat--ink { background: var(--accent); border-color: var(--accent); }
.stat--ink .stat__lbl .ico { color: #fff; }
.page-admin-login { background: var(--accent); }
.page-admin-login::before { background: radial-gradient(circle, rgba(255,255,255,.22), transparent 65%); }
.alogin .sidebar__tag { background: rgba(255,255,255,.18); color: #fff; }
.toast { background: #1A1A1A; }
.brief h3 { color: var(--accent); }
.portal, .admin-main { grid-template-columns: minmax(0, 1fr); }
.login__stage .burst { width: 120px; right: 7%; top: 6%; }
@media (max-width: 720px) { .cal__nav .btn { padding-inline: .7rem; } .kpi__lbl { font-size: .8rem; } }
.history, .cal, .panel, .form-card { grid-template-columns: minmax(0, 1fr); }

/* ==========================================================================
   v1.3 — Moins de bleu : grandes surfaces en anthracite, bleu réservé aux accents
   ========================================================================== */
.login__stage { background: radial-gradient(110% 90% at 0% 0%, #23252D 0%, #15171D 60%); }
.login__glow { background: radial-gradient(circle, rgba(19,60,248,.28), transparent 65%); }
.login__grid { opacity: .5; }
.login__title em { color: var(--accent-2); opacity: 1; }
.login__pitch .dash { color: var(--accent); }
.login__stage .burst { opacity: .55; }
.feed__ico { background: rgba(19,60,248,.22); color: #9DB0FF; }
.feed__tag { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.feed__tag--ok, .feed__tag--done { background: rgba(19,60,248,.25); color: #B7C5FF; }
.login__promise::before { background: var(--accent); }
.eyebrow--light .pulse { background: var(--accent-2); }
.eyebrow--light .pulse::after { border-color: var(--accent-2); }

.hero { background: #15171D; }
.hero__bg { background:
    radial-gradient(45% 80% at 92% 0%, rgba(19,60,248,.30), transparent 62%),
    radial-gradient(50% 80% at 0% 100%, rgba(19,60,248,.12), transparent 60%),
    linear-gradient(180deg, #1D1F26, #15171D); }
.hero__bg::after { background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 1px, transparent 1px 22px); }
.hero .burst { opacity: .35; }
.hero__copy .dash { color: var(--accent); }
.hero .btn--primary { --bg: var(--accent); --fg: #fff; --bd: var(--accent); box-shadow: 0 10px 24px -12px rgba(19,60,248,.9); }
.hero .btn--primary:hover { --bg: #2A50FF; --bd: #2A50FF; }
.next { background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border-color: rgba(255,255,255,.12); }
.next::before { background: linear-gradient(140deg, rgba(19,60,248,.9), transparent 45%); }
.next__count { background: var(--accent); color: #fff; }
.topbar .avatar { background: var(--accent); color: #fff; }
.radar i { border-color: var(--accent-2); } .radar::after { background: var(--accent-2); }

.stat--ink { background: #1A1A1A; border-color: #1A1A1A; }
.stat--ink .stat__lbl .ico { color: var(--accent-2); }
.page-admin-login { background: #15171D; }
.page-admin-login::before { background: radial-gradient(circle, rgba(19,60,248,.3), transparent 65%); }
.alogin .sidebar__tag { background: rgba(255,255,255,.08); color: var(--on-ink-muted); }

/* ==========================================================================
   v1.3 — Version épurée
   ========================================================================== */
/* Connexion : une colonne, fond clair */
.page-login { background: var(--paper); }
.signin { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 1.5rem; }
.signin__brand { align-self: stretch; max-width: 1100px; width: 100%; margin: 0 auto; padding: .5rem 0; }
.signin__card {
  margin: auto 0; width: min(420px, 100%); display: grid; gap: .9rem; padding: 2.2rem 2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  animation: rise .6s var(--ease) both;
}
.signin__card h1 { font-size: 1.35rem; color: var(--ink); }
.signin__card .code-form { margin-top: .4rem; gap: 1.2rem; }
.signin__card .toasts { position: static; max-width: none; }
.signin__card .toast { background: var(--surface-2); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.signin__foot { display: flex; gap: 1.5rem; justify-content: center; font-size: .86rem; padding-top: 1.5rem; }
.signin__foot a { color: var(--muted); text-decoration: none; }
.signin__foot a:hover { color: var(--accent); }

/* Agenda : en-tête clair, une seule carte sombre pour le prochain RDV */
.page-portal .topbar { position: static; padding-bottom: 0; }
.page-portal .me { color: var(--ink); }
.page-portal .me__txt small { color: var(--muted); }
.hero { background: transparent; color: var(--text); padding: 2.5rem 0 1.5rem; border-radius: 0; overflow: visible; }
.hero__bg { display: none; }
.hero__inner { align-items: center; }
.hero__title { color: var(--ink); font-size: clamp(1.9rem, 4vw, 2.9rem); }
.hero__lead { color: var(--muted); font-weight: 400; }
.hero__lead strong { color: var(--ink); }
.next { background: #15171D; border: 0; box-shadow: var(--shadow); backdrop-filter: none; }
.next::before { display: none; }
.portal { margin-top: 0; }
.kpi { padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm); }
.kpi__val { font-size: 1.8rem; }
.reveal { animation-duration: .5s; }
.sidebar { background-image: none; }
.page-admin-login::before { display: none; }
@media (max-width: 720px) {
  .hero { padding: 1.5rem 0 1rem; }
  .signin__card { padding: 1.6rem 1.3rem; }
}

/* Connexion v1.4 : identité + explication */
.signin { justify-content: center; gap: 1.8rem; padding: 3rem 1.25rem 2rem; }
.signin__head { display: grid; justify-items: center; text-align: center; gap: .9rem; max-width: 640px; animation: rise .6s var(--ease) both; }
.signin__logo { text-decoration: none; margin-bottom: 1rem; }
.signin__logo .wordmark { font-size: 2.1rem; }
.signin__logo .brand-img { height: 48px; }
.signin__kicker { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.signin__title { font-size: clamp(1.45rem, 3.2vw, 2.1rem); line-height: 1.2; color: var(--ink); }
.signin__lead { color: var(--muted); font-size: 1.02rem; max-width: 520px; }
.signin__card { margin: 0; }
.signin__card h2 { font-size: 1.1rem; color: var(--ink); }
.signin__points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; width: min(760px, 100%); }
.signin__points li { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.signin__points .ico { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
.signin__points strong { display: block; color: var(--ink); font-weight: 600; font-size: .9rem; }
.signin__foot { flex-wrap: wrap; color: var(--muted); padding-top: .5rem; }
.signin__foot span a { color: var(--accent); }
@media (max-width: 720px) {
  .signin { padding-top: 2rem; gap: 1.4rem; }
  .signin__logo .wordmark { font-size: 1.7rem; }
  .signin__points { grid-template-columns: 1fr; gap: .8rem; }
}

/* Connexion v1.5 : deux parties, version calme */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100dvh; }
.split__info { background: #15171D; color: #fff; padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; gap: 2rem; }
.split__logo { text-decoration: none; }
.split__logo .wordmark { font-size: 1.6rem; }
.split__pitch { margin: auto 0; display: grid; gap: 1.2rem; max-width: 520px; }
.split__kicker { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8EA2FF; }
.split__title { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; color: #fff; }
.split__lead { color: rgba(255,255,255,.7); font-size: 1.02rem; }
.split__points { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: 1rem; }
.split__points li { display: flex; gap: .85rem; align-items: center; font-size: .9rem; color: rgba(255,255,255,.62); }
.split__points .ico { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: rgba(255,255,255,.07); color: #8EA2FF; flex: none; }
.split__points strong { display: block; color: #fff; font-weight: 500; }
.split__promise { font-size: .85rem; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: .6rem; }
.split__promise::before { content: ""; width: 24px; height: 2px; background: var(--accent); }
.split__form { background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.5rem 4.5rem; position: relative; }
.split__card { width: min(420px, 100%); display: grid; gap: .9rem; padding: 2.2rem 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.split__card h2 { font-size: 1.25rem; color: var(--ink); }
.split__card .code-form { margin-top: .4rem; gap: 1.2rem; }
.split__card .toasts { position: static; max-width: none; }
.split__card .toast { background: var(--surface-2); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.split__alt { font-size: .88rem; color: var(--muted); text-align: center; padding-top: .4rem; }
.split__alt a { color: var(--accent); }
.split__foot { position: absolute; bottom: 1.4rem; left: 2rem; right: 2rem; display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.split__foot span { display: inline-flex; align-items: center; gap: .4rem; }
.split__foot a { color: var(--muted); text-decoration: none; }
.split__foot a:hover { color: var(--ink); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__info { padding: 1.8rem 1.4rem 2rem; gap: 1.5rem; }
  .split__pitch { margin: 0; }
  .split__points, .split__promise { display: none; }
  .split__form { padding: 2rem 1rem 5rem; justify-content: flex-start; }
  .split__card { padding: 1.6rem 1.3rem; }
}
.nowrap { white-space: nowrap; }

/* Connexion v1.6 : bloc gauche bleu, doux */
.split__info { background: linear-gradient(160deg, #1E45F2 0%, #1233C9 55%, #0D2699 100%); }
.split__kicker { color: rgba(255,255,255,.75); }
.split__lead { color: rgba(255,255,255,.82); }
.split__points li { color: rgba(255,255,255,.75); }
.split__points .ico { background: rgba(255,255,255,.12); color: #fff; }
.split__promise { color: rgba(255,255,255,.7); }
.split__promise::before { background: #fff; }

/* Logo officiel (symbole + nom) */
.wordmark { gap: .5em; }
.wordmark__mark { height: 1.35em; width: auto; display: block; }
.split__logo .wordmark { font-size: 1.7rem; }
.split__pitch { gap: 1.5rem; }
.sidebar__brand { justify-content: flex-start; gap: .7rem; padding: 0 .4rem; }
.sidebar .wordmark { font-size: 1.05rem; }
.sidebar__tag { font-size: .6rem; padding: .2rem .45rem; }
.btn--support .ico { color: var(--accent); }

/* ==========================================================================
   v2 — Équipe, journal, prospects, écran d'appel
   ========================================================================== */
.tag--admin { background: var(--accent-soft); color: var(--accent); }
.table tr.is-off td { opacity: .55; }
.chipset { display: flex; flex-wrap: wrap; gap: .3rem; }
.mini-chip { display: inline-block; font-size: .76rem; font-weight: 500; padding: .18rem .55rem; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.mini-chip--client { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .45rem; max-height: 220px; overflow: auto; padding: .2rem; }
.check { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: .9rem; }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline__day { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 1rem 0 .4rem; }
.timeline__item { display: grid; grid-template-columns: 34px 1fr auto; gap: .8rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line); }
.timeline__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--accent); }
.timeline__txt { font-size: .93rem; min-width: 0; }
.timeline__txt strong { font-weight: 600; color: var(--ink); }
.timeline__time { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.pstatus { display: inline-flex; align-items: center; font-size: .74rem; font-weight: 600; padding: .25rem .6rem; border-radius: 99px; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.pstatus--nouveau { background: var(--accent-soft); color: var(--accent); }
.pstatus--rappeler { background: #FFF3DA; color: #9A6406; }
.pstatus--pas_reponse { background: #EEF0F4; color: #555B6E; }
.pstatus--rdv { background: #E3F6EC; color: #157049; }
.pstatus--pas_interesse, .pstatus--faux_numero, .pstatus--injoignable { background: #F4F4F5; color: #8A8E9B; }

.stats--calls .stat__val { font-size: 1.7rem; }
.chips--clients { align-self: start; justify-self: start; }
a.chip { text-decoration: none; }

.call-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.call { padding: clamp(1.3rem, 3vw, 2rem); display: grid; gap: 1.3rem; }
.call__top { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; align-items: center; }
.call__who h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--ink); overflow-wrap: anywhere; }
.call__who p { color: var(--muted); margin-top: .35rem; font-size: 1.02rem; }
.call__phone { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.call__dial { font-size: 1rem; letter-spacing: .02em; min-height: 58px; padding-inline: 1.6rem; }
.call__dial .ico { width: 20px; height: 20px; }
.call__dial.is-called { background: #1A1A1A; border-color: #1A1A1A; box-shadow: none; }
.call__note { padding: .9rem 1rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: .3rem; font-size: .93rem; }
.outcomes { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.outcomes legend { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; padding: 0; }
.outcome { cursor: pointer; }
.outcome input { position: absolute; opacity: 0; pointer-events: none; }
.outcome span { display: grid; justify-items: center; gap: .45rem; text-align: center; padding: .95rem .4rem; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 500; font-size: .9rem; line-height: 1.2; transition: all .2s var(--ease); }
.outcome span .ico { width: 22px; height: 22px; color: var(--muted); }
.outcome:hover span { border-color: var(--line-2); transform: translateY(-1px); }
.outcome input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.outcome input:checked + span .ico { color: #fff; }
.outcome--rdv input:checked + span { border-color: var(--st-realise); background: var(--st-realise); }
.outcome--rappeler input:checked + span { border-color: var(--st-reporte); background: var(--st-reporte); }
.outcome input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.when { display: grid; gap: .8rem; padding: 1.1rem; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.when.is-open { animation: rise .35s var(--ease); }
.when__title { font-weight: 600; color: var(--ink); }
.when__row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.quick { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.quick__sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 .3rem; }
.qchip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: .38rem .75rem; font-size: .84rem; font-weight: 500; cursor: pointer; }
.qchip:hover { border-color: var(--ink); }
.qchip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.when__rdv { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.when__lbl { font-size: .88rem; font-weight: 500; color: var(--ink); }
.segmented--sm { margin: 0; }
.segmented--sm span { padding: .45rem .85rem; border-radius: 99px; font-size: .86rem; }
.call__actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: .3rem; }
.call__history summary { cursor: pointer; font-size: .88rem; color: var(--muted); }
.call__history ul { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; font-size: .88rem; }
.call__history time { color: var(--muted); font-variant-numeric: tabular-nums; }
.upnext__item { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem 0; text-decoration: none; }
.upnext__item:hover strong { color: var(--accent); }
.call-empty { justify-items: center; text-align: center; padding: 3rem 1.5rem; }
.call-empty h2 { font-size: 1.3rem; }

.import-drop { display: grid; place-items: center; gap: .6rem; padding: 2rem 1rem; border: 2px dashed var(--line-2); border-radius: 18px; text-align: center; background: var(--surface-2); }
.import-drop input[type=file] { max-width: 100%; }
.map-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem 1rem; }
.preview-table td, .preview-table th { font-size: .84rem; white-space: nowrap; }
.bulkbar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding: .7rem .9rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.bulkbar select { min-height: 38px; border-radius: 99px; border: 1px solid var(--line-2); padding: .35rem .8rem; background: var(--surface); }
.table input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }

@media (max-width: 1100px) { .call-layout { grid-template-columns: 1fr; } .map-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .outcomes { grid-template-columns: 1fr 1fr; }
  .outcome--rdv { grid-column: 1 / -1; }
  .when__row { grid-template-columns: 1fr 1fr; }
  .call__dial { width: 100%; }
  .map-grid { grid-template-columns: 1fr; }
}
.table-wrap--flat { margin: 0; }
@media (max-width: 960px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { max-width: 100vw; }
  .sidebar__nav a span { white-space: nowrap; }
}
@media (max-width: 1100px) { .call-layout { grid-template-columns: minmax(0, 1fr); } }
.call, .when, .when__row > * { min-width: 0; }
.when input[type=date], .when input[type=time] { min-width: 0; }
@media (max-width: 720px) {
  .stats--calls { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
  .stats--calls .stat { padding: .6rem .55rem; border-radius: 14px; }
  .stats--calls .stat__lbl { font-size: .66rem; line-height: 1.2; }
  .stats--calls .stat__lbl .ico { display: none; }
  .stats--calls .stat__val { font-size: 1.2rem; }
}
.testaccounts { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.testaccounts > div { display: grid; gap: .3rem; padding: 1rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; }
.testaccounts strong { color: var(--ink); }
@media (max-width: 640px) { .testaccounts { grid-template-columns: 1fr; } }
.split__foot { justify-content: center; }
.split__foot { justify-content: space-between; }
.switch-access { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255,255,255,.08); }
.switch-access a, .switch-access span { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; border-radius: 99px; font-family: var(--font-title); font-size: .72rem; text-decoration: none; color: rgba(255,255,255,.7); transition: background .2s, color .2s; }
.switch-access a:hover { color: #fff; background: rgba(255,255,255,.08); }
.switch-access .is-active { background: #fff; color: var(--ink); }
.switch-access .ico { width: 16px; height: 16px; }
.alogin__alt { display: block; text-align: center; font-size: .84rem; color: var(--muted); margin-top: .2rem; } .alogin__alt:hover { color: var(--accent); }
.table--compact th, .table--compact td { padding-left: .55rem; padding-right: .55rem; } .table--compact .t-actions { gap: .25rem; }
.busy { font-size: .86rem; padding: .55rem .8rem; border-radius: 10px; }
.busy--ok { background: #E6F6EE; color: #146B43; }
.busy--warn { background: #FFF3DA; color: #8A5A05; }
.notice { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: 14px; background: #E6F6EE; color: #1B5E3E; font-size: .93rem; border: 1px solid #C3EBD5; }
.notice .ico { color: var(--st-realise); margin-top: 2px; }
.tabs-status { display: flex; gap: .4rem; flex-wrap: wrap; }
.tab-status { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: .88rem; font-weight: 500; color: var(--text); }
.tab-status span { font-size: .75rem; font-weight: 600; padding: .05rem .45rem; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.tab-status:hover { border-color: var(--ink); }
.tab-status.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab-status.is-active span { background: rgba(255,255,255,.15); color: #fff; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; }
.plist li + li { border-top: 1px solid var(--line); }
.plist__item { display: grid; grid-template-columns: minmax(0, 1fr) 160px 190px 36px; gap: 1rem; align-items: center; padding: .85rem .5rem; text-decoration: none; border-radius: 12px; transition: background .15s; }
.plist__item:hover { background: var(--surface-2); }
.plist__main { display: grid; min-width: 0; }
.plist__main strong { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist__main small { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist__main em { font-style: normal; font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.plist__phone { font-variant-numeric: tabular-nums; font-size: .9rem; color: var(--text); white-space: nowrap; }
.plist__status { display: grid; justify-items: start; gap: .2rem; }
.plist__status small { font-size: .76rem; color: var(--muted); }
.plist__go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
@media (max-width: 720px) {
  .plist__item { grid-template-columns: minmax(0, 1fr) auto; }
  .plist__phone { grid-column: 1; grid-row: 2; font-size: .85rem; color: var(--muted); }
  .plist__status { grid-column: 2; grid-row: 1 / span 2; justify-items: end; }
  .plist__go { display: none; }
}
.alogin__form { display: grid; gap: 1rem; margin-top: .4rem; } .alogin__back a { display: inline-flex; gap: .3rem; }

/* ===================== v2.4 : import par colonne, bases, accès agents ===================== */
.colmap td { vertical-align: middle; }
.colmap select, .colmap input { width: 100%; min-height: 38px; border-radius: 10px; border: 1px solid var(--line-2); padding: .35rem .6rem; background: var(--surface); font: inherit; font-size: .9rem; }
.colmap .t-sub { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.colmap__row.is-ignored td:not(:nth-child(3)) { opacity: .45; text-decoration: line-through; text-decoration-color: var(--line-2); }
.colmap__row.is-ignored select { color: var(--muted); }

.call__extra { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; margin: 0; }
.call__extra div { padding: .6rem .8rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.call__extra dt { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.call__extra dd { margin: .15rem 0 0; font-size: .93rem; overflow-wrap: anywhere; }

.import-banner { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--accent-soft); }
.import-banner h2 { margin: .1rem 0 .2rem; }
.import-banner.is-off { opacity: .6; }
.select-all { margin: .6rem 0 0; padding: .6rem .9rem; border-radius: 12px; background: var(--accent-soft); font-size: .9rem; display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.select-all .link { background: none; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; font: inherit; color: var(--accent); padding: 0; }
.pager { display: flex; gap: .8rem; align-items: center; justify-content: center; padding-top: 1rem; }

.bases { display: grid; gap: .45rem; max-height: 240px; overflow: auto; padding: .2rem; }
.base-row { display: grid; grid-template-columns: 1fr 96px; gap: .5rem; align-items: center; }
.base-row .check { margin: 0; }
.base-qty { min-height: 38px; border-radius: 10px; border: 1px solid var(--line-2); padding: .35rem .6rem; font: inherit; width: 100%; }
.check--sm { padding: .3rem .55rem; font-size: .82rem; }

.online { display: block; font-size: .8rem; line-height: 1.5; color: #146B43; margin-top: .35rem; }
.online i { display: inline-block; margin-right: .35rem; vertical-align: middle; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px #22C55E33; }
.online form { display: inline; margin-left: .3rem; }
.online .link { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0; font: inherit; color: var(--danger, #B42318); cursor: pointer; }

.access-alert { display: flex; gap: 1rem; padding: 1rem 1.1rem; margin-bottom: 1.2rem; border-radius: var(--r); background: #FFF6E5; border: 1px solid #F5C77A; box-shadow: var(--shadow-sm); animation: rise .5s var(--ease) both; }
.access-alert__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #F59E0B; color: #fff; flex: none; }
.access-alert__body { display: grid; gap: .55rem; flex: 1; min-width: 0; }
.access-alert__row { display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: .55rem; border-top: 1px solid #F5C77A80; font-size: .92rem; }
.access-alert__row small { display: block; color: var(--muted); }
.access-alert__row form { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }

.toast--alert { background: #3A2A0B; align-items: flex-start; }
.toast--alert > div { display: grid; gap: .2rem; }
.toast--alert .link { color: #FFD48A; border-color: #FFD48A80; width: fit-content; }
.toast__x { background: none; border: 0; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: .7; margin-left: auto; }
.panel--alert { border: 1px solid #F5C77A; }
.timeline__item--alert .timeline__ico { background: #FFF6E5; color: #B45309; }

/* Espace agent : pas de sélection, pas d'impression, filigrane nominatif */
.is-agent .admin-main { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.is-agent .admin-main input, .is-agent .admin-main textarea, .is-agent .admin-main select { -webkit-user-select: text; user-select: text; }
.is-shielded .admin-main { filter: blur(14px); }
@media print {
  body.is-agent * { display: none !important; }
  body.is-agent::after { content: "Impression désactivée."; display: block; padding: 2rem; font-size: 18px; }
}

/* ===================== v2.5 ===================== */
.pstatus--ne_plus_appeler { background: #FDECEA; color: #9C2A22; }
.outcome--stop input:checked + span { border-color: #C2410C; background: #FDECEA; color: #9C2A22; }
.hours { display: grid; gap: .5rem; margin-top: .4rem; }
.hours__days { display: flex; flex-wrap: wrap; gap: .35rem; }
.hours__time { display: flex; gap: 1rem; align-items: center; font-size: .9rem; }
.hours__time input { min-height: 36px; border-radius: 10px; border: 1px solid var(--line-2); padding: .25rem .5rem; font: inherit; margin-left: .3rem; }
.twofa { margin-top: 1.2rem; }
.twofa h2 { display: flex; gap: .6rem; align-items: center; }
.qr { margin: .6rem 0; }
.qr img { display: block; border-radius: 12px; border: 1px solid var(--line); background: #fff; image-rendering: pixelated; }
.secret { font-size: .95rem; letter-spacing: .08em; background: var(--surface-2); padding: .15rem .45rem; border-radius: 6px; }
.backup-codes { display: grid; grid-template-columns: repeat(4, auto); gap: .3rem 1rem; list-style: none; padding: 0; margin: .6rem 0 0; }
.backup-codes code { font-size: 1rem; letter-spacing: .06em; }
.steps-list { margin: 0 0 .4rem; padding-left: 1.2rem; display: grid; gap: .3rem; }
.inline-form { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin: 0; min-width: 200px; }
.storage-alert { margin-bottom: 1.2rem; }

/* ===================== v2.6 ===================== */
.vis { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; cursor: pointer; white-space: nowrap; }
.vis input { accent-color: var(--accent); width: 16px; height: 16px; }
.checks--fields { max-height: 260px; }
.check.is-locked { opacity: .6; cursor: default; }
.filters + .colpick { margin-top: -.2rem; }
.colpick { position: relative; display: inline-block; margin: 0 0 .8rem; }
.colpick > summary { list-style: none; cursor: pointer; }
.colpick > summary::-webkit-details-marker { display: none; }
.colpick__menu { position: absolute; z-index: 30; top: calc(100% + .4rem); left: 0; width: 280px; max-height: 380px; overflow: auto; display: grid; gap: .35rem; padding: .8rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.preview-bar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .8rem 1rem; margin-bottom: 1.2rem; border-radius: var(--r); background: var(--accent-soft); color: var(--ink); font-size: .93rem; }
.preview-bar .btn { margin-left: auto; }
.call__extra a { color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }

/* ===================== v2.7 ===================== */
.table--resizable th { position: relative; overflow: hidden; text-overflow: ellipsis; }
.table--resizable td { overflow: hidden; overflow-wrap: anywhere; vertical-align: top; }
.table--resizable td .t-sub, .table--resizable td .t-strong { overflow-wrap: anywhere; }
.col-grip { position: absolute; top: 0; right: 0; bottom: 0; width: 10px; cursor: col-resize; touch-action: none; z-index: 2; }
.col-grip::after { content: ""; position: absolute; top: 25%; bottom: 25%; right: 4px; width: 2px; border-radius: 2px; background: var(--line-2); transition: background .15s; }
.col-grip:hover::after, .is-resizing .col-grip::after { background: var(--accent); top: 0; bottom: 0; }
.table--resizable.is-resizing { cursor: col-resize; user-select: none; }
.table tr.is-new td { background: var(--accent-soft); }
.import-foot { display: flex; align-items: center; gap: .4rem; margin-top: 1rem; }
.table--bases td:first-child { min-width: 190px; }
.table--bases td:last-child { width: 1%; }
.table--bases .t-actions { flex-wrap: wrap; justify-content: flex-end; gap: .35rem; min-width: 230px; }
.table--bases .t-actions form { display: contents; }
.menu-prefs { margin-top: 1.2rem; }
.nav-order { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; max-width: 460px; }
.nav-order__row { display: grid; grid-template-columns: 1fr auto auto; gap: .35rem; align-items: center; }
.nav-order__row .check { margin: 0; }
.nav-order__row .check .ico { width: 18px; height: 18px; color: var(--muted); }

/* ===================== v2.9 : ventes & commissions ===================== */
.badge--sale { --c: #16A34A; background: #E6F6EE; color: #146B43; }
.kpis--sales { margin-top: 1rem; }
.kpi--ink { background: var(--ink); }
.kpi--ink .kpi__val, .kpi--ink .kpi__lbl { color: #fff; }
.kpi--ink .kpi__lbl small { color: rgba(255,255,255,.65); }
.kpi__val--money, .stat__val--money { font-size: 1.45rem !important; letter-spacing: -.03em; white-space: nowrap; }
.sale { margin: 1.2rem 0; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); display: grid; gap: .6rem; }
.sale[hidden] { display: none; }
.sale h3 { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .95rem; }
.sale__done { display: flex; align-items: center; gap: .5rem; margin: 0; color: #146B43; font-weight: 500; }
.sale__form { display: grid; gap: .6rem; }
.sale__form[hidden] { display: none; }
.sale .link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); border-bottom: 1px solid var(--line-2); cursor: pointer; font-size: .85rem; }
.comm-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: .8rem; }
.comm-grid .field { margin: 0; }
.comm-grid select { min-height: 42px; border-radius: 12px; border: 1px solid var(--line-2); padding: 0 .6rem; background: var(--surface); font: inherit; }
.comm-fields { display: grid; gap: .55rem; }
.month-nav { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.month-nav strong { font-family: var(--font-title); font-size: 1.15rem; min-width: 170px; text-align: center; }
.table tfoot td { border-top: 2px solid var(--line); padding: .8rem 1rem; }
@media (max-width: 700px) { .comm-grid { grid-template-columns: 1fr; } }
.comm-rows { display: grid; gap: .7rem; }
.comm-rows .field { margin: 0; }
.comm-rows select, .comm-fields select { min-height: 42px; border-radius: 12px; border: 1px solid var(--line-2); padding: 0 .5rem; background: var(--surface); font: inherit; font-size: .88rem; }
.sim { padding: .8rem .9rem; border-radius: 14px; background: var(--accent-soft); display: grid; gap: .5rem; }
.sim[hidden] { display: none; }
.sim__title { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; font-weight: 600; font-size: .9rem; }
.sim__title select, .sim__title input { min-height: 34px; border-radius: 10px; border: 1px solid var(--line-2); padding: 0 .5rem; font: inherit; font-size: .85rem; background: var(--surface); }
.sim__title input { width: 90px; }
.sim__title span { font-weight: 400; display: inline-flex; align-items: center; gap: .3rem; }
.sim__out { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .88rem; }
.sim__warn { color: #9C2A22; font-weight: 600; }
.sale-alert { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; margin-bottom: 1.2rem; border-radius: var(--r); background: linear-gradient(120deg, #E9FBF0, #fff 75%); border: 1px solid #BDEFD0; box-shadow: var(--shadow-sm); }
.sale-alert__ico { font-size: 1.8rem; }
.sale-alert__body { display: grid; gap: .25rem; flex: 1; font-size: .92rem; }
.comm-rows .inline-field, .comm-grid .inline-field { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.comm-rows .inline-field input, .comm-grid .inline-field input { flex: 0 0 110px; width: 110px; min-width: 90px; }
.comm-rows .inline-field select, .comm-grid .inline-field select { flex: 1 1 150px; min-width: 0; }
.pick { border-bottom: 1px dashed var(--line-2); }
.pick__search { max-width: 560px; }
.pick__list { list-style: none; margin: .4rem 0 0; padding: .3rem; max-width: 560px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); display: grid; gap: .15rem; max-height: 320px; overflow: auto; }
.pick__list[hidden] { display: none; }
.pick__item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .55rem .7rem; border: 0; border-radius: 10px; background: none; text-align: left; font: inherit; cursor: pointer; }
.pick__item:hover, .pick__item:focus { background: var(--accent-soft); outline: none; }
.pick__main { display: grid; min-width: 0; }
.pick__main small { color: var(--muted); }
.pick__empty { padding: .6rem .7rem; color: var(--muted); font-size: .9rem; }
.pick__chosen { display: flex; align-items: center; gap: .8rem; margin: .5rem 0 0; padding: .6rem .8rem; border-radius: 12px; background: #E6F6EE; color: #146B43; font-weight: 500; max-width: 560px; }
.pick__chosen[hidden] { display: none; }
.pick__chosen .link { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0; font: inherit; color: inherit; cursor: pointer; margin-left: auto; }
.rdv-grid { display: grid; grid-template-columns: 2fr 1fr; gap: .8rem 1rem; margin-bottom: .8rem; }
.rdv-grid .field { margin: 0; }
.rdv-grid__wide { grid-column: auto; }
@media (min-width: 900px) { .rdv-grid { grid-template-columns: 2fr 1fr 1fr; } .rdv-grid__wide:first-child { grid-column: span 2; } }
.more { border-top: 1px solid var(--line); }
.more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; padding: 1rem 1.6rem; font-weight: 600; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "▸"; color: var(--muted); transition: transform .2s; }
.more[open] > summary::before { transform: rotate(90deg); }
.more > summary small { font-weight: 400; }
.rdv-form .pick { padding-bottom: .4rem; }
.rdv-form .pick { border-bottom: 0; }

/* ===================== v2.13 : démo WhatsApp ===================== */
.demo-cell { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.demo-state { font-size: .78rem; color: #146B43; }
.demo-state--off { color: var(--muted); }
.call__phone .demo-cell { margin-left: .2rem; }
.demo-fields__body { display: grid; gap: .6rem; }
.demo-fields__body[hidden] { display: none; }
.demo-fields textarea { min-height: 150px; }
.demo-confirm .modal__body { display: grid; gap: .5rem; }
.demo-confirm__q { font-weight: 600; font-size: 1.02rem; margin: 0; }

/* ===================== v2.15 : messages modifiables ===================== */
.msg-nav { display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; margin-bottom: 1.2rem; }
.msg-nav a { font-size: .86rem; padding: .3rem .7rem; border-radius: 99px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); background: var(--surface); }
.msg-nav a:hover { border-color: var(--accent); }
.msg-nav a i { font-style: normal; color: var(--accent); font-size: .7rem; }
.msg-nav__group { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: .4rem; }
.msg { margin-bottom: 1rem; scroll-margin-top: 1rem; }
.msg__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.msg__head h2 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .1rem 0; }
.msg__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.2rem; align-items: start; }
.msg__grid textarea { width: 100%; min-height: 230px; border-radius: 14px; border: 1px solid var(--line-2); padding: .8rem .9rem; font: inherit; font-size: .92rem; line-height: 1.5; resize: vertical; }
.msg__vars { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.msg__vars .qchip { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; }
.msg__preview { background: #E7DED4; border-radius: 16px; padding: .9rem; display: grid; gap: .5rem; }
.msg__preview-lbl { display: flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; color: #4B5563; text-transform: uppercase; letter-spacing: .08em; }
.bubble { background: #fff; border-radius: 0 12px 12px 12px; padding: .7rem .85rem; white-space: pre-wrap; font-size: .9rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.08); overflow-wrap: anywhere; }
.msg-save { position: sticky; bottom: 1rem; display: flex; justify-content: flex-end; z-index: 5; }
.msg-save .btn { box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .msg__grid { grid-template-columns: 1fr; } }

/* ---- Espace client : prospection + offres (v2.16) ---- */
.prosp{padding:1.4rem 1.6rem;margin:0 0 1.5rem}
.prosp__head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.4rem 1rem;margin-bottom:.9rem}
.prosp__head h2{margin:0;font-size:1.15rem}
.prosp__head p{margin:0}
.prosp__bar{display:block;width:100%;height:10px;border:0;border-radius:99px;background:var(--line);overflow:hidden;appearance:none;-webkit-appearance:none}
.prosp__bar::-webkit-progress-bar{background:var(--line);border-radius:99px}
.prosp__bar::-webkit-progress-value{background:var(--accent);border-radius:99px}
.prosp__bar::-moz-progress-bar{background:var(--accent);border-radius:99px}
.prosp__nums{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-top:1.1rem}
.prosp__nums div{display:flex;flex-direction:column;gap:.15rem}
.prosp__nums strong{font-size:1.6rem;line-height:1.1}
.prosp__nums span{color:var(--muted);font-size:.85rem}
.offers{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:1rem;margin:1.5rem 0}
.offer{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem 1rem;padding:1.1rem 1.3rem;margin:0}
.offer__ico{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--accent-soft,#eef1ff);color:var(--accent)}
.offer__ico svg{width:22px;height:22px}
.offer__txt{flex:1;min-width:0}
.offer__txt h3{margin:0 0 .2rem;font-size:1rem}
.offer__txt p{margin:0;font-size:.88rem}
.offer .btn{flex:none;white-space:normal;text-align:center;max-width:15rem}
.offer__done{flex:none;display:inline-flex;align-items:center;gap:.35rem;color:#127a43;font-weight:600;font-size:.9rem}
.offer__done svg{width:18px;height:18px}
.panel--req{border-left:4px solid var(--accent)}
.panel--req .timeline__item form{margin-left:.5rem}
@media (max-width:820px){.prosp__nums{grid-template-columns:repeat(2,minmax(0,1fr))}.offers{grid-template-columns:1fr}.offer{flex-wrap:wrap}.offer .btn{max-width:none;width:100%}}

/* ---- Messagerie client <-> Exportidia (v2.17) ---- */
.dot-count{display:inline-grid;place-items:center;min-width:1.25rem;height:1.25rem;padding:0 .35rem;border-radius:99px;background:#E5484D;color:#fff;font-size:.72rem;font-weight:700;line-height:1;margin-left:.35rem}
.sidebar__nav a .dot-count{margin-left:auto}
.btn--msg{position:relative}
.portal--msg{padding-top:2rem;padding-bottom:3rem;max-width:860px}
.chat{display:flex;flex-direction:column;padding:0;overflow:hidden;min-height:0}
.chat__head{padding:1.2rem 1.4rem;border-bottom:1px solid var(--line)}
.chat__head h1,.chat__head h2{margin:0 0 .2rem;font-size:1.2rem}
.chat__head p{margin:0}
.chat__head--row{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.chat__tools{display:flex;gap:.5rem;flex-wrap:wrap}
.thread{display:flex;flex-direction:column;gap:.55rem;padding:1.2rem 1.4rem;max-height:58vh;min-height:240px;overflow-y:auto;background:var(--surface-2)}
.thread__empty{margin:auto;text-align:center;max-width:28rem}
.thread__day{align-self:center;margin:.6rem 0 .2rem;font-size:.75rem;color:var(--muted);text-transform:capitalize}
.msg{display:flex;flex-direction:column;max-width:78%}
.msg--me{align-self:flex-end;align-items:flex-end}
.msg--them{align-self:flex-start;align-items:flex-start}
.msg__bubble{padding:.65rem .9rem;border-radius:16px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
.msg--me .msg__bubble{background:var(--accent);color:#fff;border-bottom-right-radius:5px}
.msg--them .msg__bubble{background:#fff;border:1px solid var(--line);border-bottom-left-radius:5px}
.msg__meta{font-size:.72rem;color:var(--muted);margin-top:.2rem}
.chat__form{display:flex;gap:.7rem;align-items:flex-end;padding:1rem 1.4rem;border-top:1px solid var(--line);background:#fff}
.chat__form textarea{flex:1;resize:vertical;min-height:3rem}
.inbox{display:grid;grid-template-columns:300px minmax(0,1fr);gap:1.2rem;align-items:start}
.inbox__list{padding:.4rem;max-height:75vh;overflow-y:auto}
.inbox__none{padding:1.2rem}
.inbox__item{display:flex;flex-direction:column;gap:.15rem;padding:.75rem .85rem;border-radius:12px;color:inherit;text-decoration:none}
.inbox__item:hover{background:var(--surface-2)}
.inbox__item.is-active{background:var(--accent-soft)}
.inbox__top{display:flex;align-items:center;justify-content:space-between}
.inbox__item.is-unread .inbox__last{color:var(--ink);font-weight:600}
.inbox__last{font-size:.85rem;color:var(--muted)}
.inbox__time{font-size:.72rem;color:var(--muted)}
@media (max-width:900px){.inbox{grid-template-columns:1fr}.inbox__list{max-height:none}.msg{max-width:92%}.chat__form{flex-direction:column;align-items:stretch}}
.chat__form textarea{font:inherit;padding:.7rem .9rem;border:1px solid var(--line-2);border-radius:14px;background:#fff;color:var(--ink);outline:none}
.chat__form textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.page-head__actions select{font:inherit;padding:.45rem .8rem;border:1px solid var(--line-2);border-radius:99px;background:#fff}
/* Textes d'aide masquables (Mon compte → Textes d'aide) */
.no-help .help, .no-help .page-head > div > p.muted { display: none !important; }

/* Logo : le « A » bleu fait office de première lettre */
.wordmark { gap: .4em !important; align-items: center; }
.wordmark .wordmark__mark { height: 1.25em; width: auto; display: block; }
.wordmark__txt { line-height: 1; }
/* Menu latéral : tout reste visible (défilement interne si l'écran est petit) */
@media (min-width: 961px) {
  .sidebar { overflow-y: auto; overscroll-behavior: contain; gap: 1.4rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
  .sidebar__nav a { padding: .6rem .8rem; }
  .sidebar__foot { padding-bottom: .4rem; }
  .sidebar__logout { color: rgba(255,255,255,.85) !important; }
}
/* Lien de démo propre à un prospect */
.demo-link { display: inline-block; font-size: .8rem; }
.demo-link summary { cursor: pointer; color: var(--accent); list-style: none; white-space: nowrap; }
.demo-link summary::-webkit-details-marker { display: none; }
.demo-link__row { display: flex; gap: .35rem; margin-top: .35rem; }
.demo-link input { min-width: 14rem; font: inherit; padding: .35rem .55rem; border: 1px solid var(--line-2); border-radius: 8px; }
/* Mot de passe oublié */
.alogin__forgot { margin: 1rem 0 0; text-align: center; font-size: .9rem; }
.reset-steps { margin: .5rem 0 1.2rem; padding-left: 1.2rem; display: grid; gap: .55rem; line-height: 1.5; }
.reset-steps code.secret { display: inline-block; margin-top: .35rem; font-size: 1.15rem; letter-spacing: .08em; padding: .35rem .7rem; border-radius: 8px; background: var(--surface-2); user-select: all; }
.reset-alt { margin-top: 1.3rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.reset-alt summary { cursor: pointer; font-weight: 500; }

/* Prospection export : pays + activité (v3) */
.prosp__more{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:1.4rem 2rem;margin-top:1.4rem;padding-top:1.2rem;border-top:1px solid var(--line)}
.prosp__col h3{margin:0 0 .7rem;font-size:.95rem}
.cbar{display:grid;grid-template-columns:8.5rem 1fr 2.2rem;gap:.6rem;align-items:center;font-size:.9rem;margin:.35rem 0}
.cbar meter{width:100%;height:8px;border:0;border-radius:99px;background:var(--accent-soft)}
.cbar meter::-webkit-meter-bar{background:var(--accent-soft);border:0;border-radius:99px;height:8px}
.cbar meter::-webkit-meter-optimum-value{background:var(--accent);border-radius:99px}
.cbar meter::-moz-meter-bar{background:var(--accent);border-radius:99px}
.cbar b{text-align:right}
.activity{list-style:none;margin:0;padding:0;display:grid;gap:.45rem;font-size:.9rem}
.activity li{display:flex;justify-content:space-between;gap:1rem;border-top:1px solid var(--line);padding-top:.45rem}
.activity time{color:var(--muted);white-space:nowrap;font-size:.82rem}
.offers__title{margin:2rem 0 .8rem;font-size:1.15rem}
.offers__title + .offers{margin-top:0}
.offer{flex-direction:column;align-items:flex-start}
.offer__txt{flex:1 1 auto}
.offer .btn{margin-left:0;align-self:stretch;max-width:none}
.offer__done{align-self:flex-start}
/* Écran d'appel : pays, heure locale, canal */
.call__country { margin: .25rem 0 0; color: var(--muted); font-size: .92rem; }
.call__country strong { color: var(--ink); }
.via { border: 0; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.via legend { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; padding: 0; }
.via legend { width: 100%; }
.via__opt input { position: absolute; opacity: 0; pointer-events: none; }
.via__opt span { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--line-2); border-radius: 99px; font-size: .85rem; cursor: pointer; }
.via__opt input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.via__opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.stat__val--multi { font-size: 1.35rem !important; line-height: 1.3; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .4rem .8rem; }
.contacts { margin: 0 0 1.5rem; }
.contacts .btn { margin-top: .8rem; }
.wa-langs { display: inline-flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.btn--wa-alt { min-width: 2.4rem; justify-content: center; opacity: .85; }

/* ---- Contrats (v3.5) ---- */
.contract-tabs { margin: 0 0 1.2rem; }
.tab-status.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.contract-new { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; }
.contract-new select { min-width: 14rem; }
.contract-editor { width: 100%; font: 400 .92rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 1rem; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
.ctag { display: inline-block; padding: .15rem .6rem; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.ctag--sent { background: #FFF4D6; color: #8A5A00; }
.ctag--returned { background: var(--accent-soft); color: var(--accent); }
.ctag--signed { background: #DDF5E6; color: #127A43; }
.contract-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; counter-reset: cs; }
.contract-steps li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.contract-steps li > strong { flex: 1 1 100%; }
.contract-steps li.is-done { border-color: #BFE8CF; background: #F4FBF7; }
.contract-steps .help { flex: 1 1 100%; }
.contract-upload { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.contract-upload input[type=file] { font-size: .85rem; max-width: 100%; }
.contract-notify { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.contract-card { padding: 1.3rem 1.5rem; margin: 0 0 1.2rem; }
.contract-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.contract-card__head h2 { margin: 0 0 .2rem; font-size: 1.1rem; }
.contract-card__head p { margin: 0; }
.contract-page-head h1 { margin: 0 0 1rem; font-size: 1.4rem; }
.contract-alert { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .9rem 1.1rem; margin: 0 0 1.2rem; border-radius: 14px; background: #FFF4D6; color: #5C3D00; }
.contract-alert .ico { width: 20px; height: 20px; }
.contract-alert span { flex: 1 1 16rem; }
.danger-zone { margin: 1rem 0 2rem; text-align: right; }
.contract-print { max-width: 800px; margin: 2rem auto; padding: 0 1.5rem 3rem; }
.contract-print__tools { text-align: right; margin: 0 0 1rem; }
.contract-print__body { background: #fff; padding: 3rem 3.2rem; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.08); font: 400 11.5pt/1.65 "Times New Roman", Georgia, serif; color: #111; white-space: normal; }
@media print {
  @page { size: A4; margin: 18mm 18mm 20mm; }
  body.page-contract { background: #fff !important; }
  .no-print { display: none !important; }
  .contract-print { margin: 0; padding: 0; max-width: none; }
  .contract-print__body { box-shadow: none; padding: 0; border-radius: 0; }
}
/* Page Confidentialité */
.legal { max-width: 760px; padding-top: 2.5rem; padding-bottom: 4rem; line-height: 1.65; }
.legal h1 { font-size: 1.8rem; margin: .5rem 0 .3rem; }
.legal h2 { font-size: 1.1rem; margin: 2rem 0 .5rem; }
.legal ul { padding-left: 1.2rem; }
.contract-print__h { display: inline-block; margin-top: .3rem; letter-spacing: .02em; }
.btn-pair { display: flex; gap: .5rem; flex-wrap: nowrap; }
.btn-pair > .btn { flex: 1 1 auto; width: auto !important; min-width: 0; padding-left: .8rem; padding-right: .8rem; white-space: nowrap; }
.btn-pair > .btn:last-child { flex: 0 0 auto; }
@media (max-width: 480px) { .btn-pair { flex-wrap: wrap; } .btn-pair > .btn, .btn-pair > .btn:last-child { flex: 1 1 100%; } }
.purge-form .field { margin-bottom: .6rem; }

.btn-pair > .btn:first-child { white-space: normal; line-height: 1.2; text-align: center; }

/* ==========================================================================
   v3.6 — Charte de www.exportidia.com (novembre 2026)
   Titres : Instrument Serif (italique bleu pour les mots mis en avant)
   Texte et boutons : Inter Tight
   Bleu nuit #0B1026, beige #F5F2EC, gris bleuté #5D6075, bleu #133CF8,
   bleu doux #E3E8FF, vert #1C7A4E / #DFF2E7, filets #DCD6CA.
   ========================================================================== */
@font-face { font-family: "DINish Expanded"; src: url("../fonts/DINishExpanded-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DINish Expanded"; src: url("../fonts/DINishExpanded-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --font-title: "DINish Expanded", "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter Tight", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ink: #0B1026; --ink-2: #151B36; --ink-3: #232A4A;
  --accent: #133CF8; --accent-2: #8FA4FF; --accent-deep: #0B2BC4; --accent-soft: #E3E8FF;
  --paper: #F5F2EC; --surface: #FFFFFF; --surface-2: #F4F4F6;
  --line: #E7E2D8; --line-2: #DCD6CA;
  --text: #0B1026; --muted: #5D6075;
  --on-ink-muted: #A3A7BD;
  --st-realise: #1C7A4E; --st-annule: #A3A7BD;
  --shadow-sm: 0 1px 2px rgba(11, 16, 38, .04);
  --shadow: 0 1px 2px rgba(11, 16, 38, .04), 0 14px 34px -18px rgba(11, 16, 38, .18);
  --shadow-lg: 0 30px 80px -24px rgba(11, 16, 38, .35);
}
body { font-size: 15.5px; }

/* Titres en Instrument Serif : plus grands (la police est plus étroite que Krona One) */
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 400; letter-spacing: -.01em; line-height: 1.05; }
h1 { font-size: clamp(2.3rem, 4.2vw, 3.3rem); }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.35rem; }
h1 em, h2 em, .hero__title em, .split__title em { font-style: italic; color: var(--accent); }
.hero__title { font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; }
.split__title { font-size: clamp(2.3rem, 4vw, 3.4rem); line-height: 1.02; }
.split__card h2 { font-size: 1.75rem; }
.kpi__val, .stat__val, .datechip__n { font-family: var(--font-title); letter-spacing: -.01em; }
.kpi__val { font-size: 2.4rem; }
.slot__time, .row__date strong { font-family: var(--font-title); letter-spacing: 0; font-size: 1.25rem; }

/* Petits titres : majuscules grises précédées d'un tiret, comme « — PROSPECTION EXPORT B2B » */
.eyebrow, .split__kicker, .signin__kicker { font-family: var(--font-body); font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before, .split__kicker::before { content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-right: .6rem; }
.eyebrow .pulse { display: none; }
.eyebrow--light, .split__kicker { color: var(--on-ink-muted); }

/* Logo : le nom en Instrument Serif, comme en haut du site */
.wordmark { font-family: var(--font-title); letter-spacing: -.01em; font-size: 1.45rem; }
.sidebar .wordmark { font-size: 1.4rem; }
.split__logo .wordmark { font-size: 2.1rem; }

/* Boutons : Inter Tight, pilules ; bleu ou bleu nuit à plat */
.btn { font-family: var(--font-body); font-weight: 500; font-size: .9rem; letter-spacing: 0; }
.btn--sm { font-size: .84rem; } .btn--xs { font-size: .78rem; } .btn--lg { font-size: .98rem; }
.btn--primary, .split__card .btn--primary, .next .btn--primary, .hero .btn--primary { box-shadow: none; }
.btn--primary:hover { --bg: var(--accent-deep); --bd: var(--accent-deep); }
.btn--ink { --bg: #0B1026; --bd: #0B1026; }
.btn:not(.btn--primary):not(.btn--ink):not(.btn--wa):not(.btn--danger) { --bd: var(--line-2); }
.chip.is-active, .toast { background: #0B1026; }

/* Cartes blanches, filet beige léger */
.card, .kpi, .stat, .split__card, .signin__card { border-color: var(--line); border-radius: 24px; }

/* Surfaces sombres : bleu nuit du site */
.sidebar { background: #0B1026; background-image: none; }
.sidebar__nav a { color: #C9CCDA; }
.sidebar__nav a.is-active { background: rgba(255,255,255,.07); box-shadow: inset 3px 0 0 var(--accent); color: #fff; }
.sidebar__nav a.is-active .ico { color: #fff; }
.page-admin-login { background: #0B1026; }
.next, .kpi--ink, .stat--ink { background: #0B1026; border-color: #0B1026; box-shadow: none; }
.stat--ink .stat__lbl .ico { color: #fff; }
.split__info { background: #0B1026; }
.split__points .ico { background: rgba(255,255,255,.08); color: #fff; }

/* Statuts : pastilles douces du site */
.badge--planifie { background: #E3E8FF; color: #133CF8; }
.badge--realise, .badge--sale { background: #DFF2E7; color: #1C7A4E; }
.badge--realise i, .badge--sale i { background: #1C7A4E; }
.pstatus--rdv { background: #DFF2E7; color: #1C7A4E; }
.bar i { background: var(--accent); }
.page-head h1, .contract-page-head h1 { font-size: clamp(2.2rem, 3.6vw, 2.9rem); line-height: 1; }
.panel__head h2, .card h2, .contract-card__head h2 { font-size: 1.6rem; line-height: 1.1; }
.next h3, .next__company, .drawer__title { font-family: var(--font-title); }
.next h2 { font-size: 2rem; line-height: 1.05; }
.card .form-section h2, .form-section h2 { font-family: var(--font-body); font-size: .76rem; line-height: 1.4; }
.switch-access a, .switch-access span { font-family: var(--font-body); font-size: .86rem; }
@media (max-width: 560px) {
  .topbar { gap: .5rem; }
  .topbar__right { gap: .35rem; }
  .topbar__right .btn { min-height: 38px; padding-inline: .65rem; }
  .topbar .wordmark { font-size: 1.25rem; }
}
/* Instrument Serif est étroite : on aère l'espacement des lettres */
h1, h2, h3, h4, .hero__title, .split__title, .page-head h1, .wordmark, .kpi__val, .stat__val, .datechip__n, .slot__time, .row__date strong, .next h2 { letter-spacing: .015em; }
.hero__title, .split__title, .page-head h1 { word-spacing: .04em; line-height: 1.04; }

/* ==========================================================================
   v3.7 — Exportidia : logo complet (icône E + nom), en image
   ========================================================================== */
.wordmark .wordmark__logo { display: block; height: 1.5em; width: auto; max-width: 100%; }
.sidebar .wordmark .wordmark__logo { height: 1.35em; }
.split__logo .wordmark .wordmark__logo { height: 1.45em; }
@media (max-width: 560px) { .topbar .wordmark .wordmark__logo { height: 1.35em; } }
/* Le logo Exportidia a un nom fin et espacé : on l'affiche plus grand */
.wordmark .wordmark__logo { height: 2.1em; }
.sidebar .wordmark .wordmark__logo { height: 1.95em; }
.split__logo .wordmark .wordmark__logo { height: 1.9em; }
@media (max-width: 560px) { .topbar .wordmark .wordmark__logo { height: 1.8em; } }

/* ==========================================================================
   v3.8 — Titres dans la police du logo Exportidia (DIN, version large : DINish Expanded, licence libre OFL)
   ========================================================================== */
h1, h2, h3, h4, .hero__title, .split__title, .page-head h1, .kpi__val, .stat__val, .datechip__n, .slot__time, .row__date strong, .next h2 { letter-spacing: -.01em; word-spacing: 0; font-weight: 400; }
h1 em, h2 em, .hero__title em, .split__title em { font-style: normal; }
h1 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.08; }
h2 { font-size: 1.3rem; line-height: 1.2; } h3 { font-size: 1.08rem; line-height: 1.25; }
.hero__title { font-size: clamp(2rem, 3.8vw, 2.8rem); line-height: 1.06; }
.split__title { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; }
.page-head h1, .contract-page-head h1 { font-size: clamp(1.8rem, 2.7vw, 2.2rem); line-height: 1.08; }
.panel__head h2, .card h2, .contract-card__head h2, .split__card h2 { font-size: 1.22rem; line-height: 1.2; }
.next h2 { font-size: 1.5rem; line-height: 1.15; }
.kpi__val { font-size: 1.9rem; font-weight: 500; }
.stat__val { font-weight: 500; }
.slot__time, .row__date strong { font-size: 1.05rem; font-weight: 500; }
.datechip__n { font-weight: 500; }
