/*!
 * misi.link — feuille de style (site + administration)
 * Couleurs du logo : bleu ciel #20A9FC → bleu vif #0A7FF3, ardoise #506070, verre dépoli
 */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('../fonts/dm-sans-var.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('../fonts/jetbrains-mono-var.woff2') format('woff2'); }

:root {
  --bg: #F3F6F8;
  --surface: #FFFFFF;
  --surface-2: #FAFAFC;
  --text: #18232C;
  --text-2: #4F6170;
  --muted: #687880;
  --faint: #9AA9B1;
  --border: #DFE6EA;
  --border-2: #C6D1D4;
  --pink: #0A7FF3;
  --pink-600: #0560C4;
  --orange: #20A9FC;
  --lime: #20A9FC;
  --cyan: #20A9FC;
  --grad: linear-gradient(110deg, #1FA6FA 0%, #0D86F4 55%, #0A74E8 100%);
  /* Couleur d'action (boutons, liens, sélection) */
  --indigo: #0672E2;
  --indigo-600: #0560C4;
  --indigo-50: #E8F3FE;
  --indigo-100: #CDE5FC;
  --slate: #20A9FC;
  --slate-50: #E8F3FE;
  --mint: #10B981;
  --mint-600: #059669;
  --mint-50: #E9FBF3;
  --amber: #F59E0B;
  --amber-50: #FFF8E6;
  --amber-700: #B45309;
  --red: #EF4444;
  --red-600: #DC2626;
  --red-50: #FEF2F2;
  --violet: #7C5CFF;
  --sky: #0EA5E9;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(27, 38, 46, .05);
  --shadow: 0 1px 2px rgba(27, 38, 46, .04), 0 8px 24px -12px rgba(27, 38, 46, .12);
  --shadow-lg: 0 2px 4px rgba(27, 38, 46, .04), 0 24px 48px -20px rgba(27, 38, 46, .22);
  --ring: 0 0 0 4px rgba(10, 127, 243, .18);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'DM Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: #CDE5FC; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 6px; }

.ic { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic-sm { width: 15px; height: 15px; }
.ic-lg { width: 26px; height: 26px; }
.ic-xl { width: 40px; height: 40px; stroke-width: 1.6; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: .92em; }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* Composants communs                                                 */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--r);
  font: 500 14.5px/1 var(--font); letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 1px 2px rgba(10, 127, 243, .3), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover:not([disabled]) { background: var(--indigo-600); }
.btn-primary.is-ok { background: var(--mint); }
.btn-ghost { background: var(--surface); color: var(--text-2); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover:not([disabled]) { border-color: var(--border-2); color: var(--text); background: var(--surface-2); }
.btn-soft { background: var(--indigo-50); color: var(--indigo-600); }
.btn-soft:hover { background: var(--indigo-100); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red-600); }
.btn-danger-ghost { background: var(--surface); color: var(--red-600); border-color: #FECACA; }
.btn-danger-ghost:hover { background: var(--red-50); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; gap: 6px; }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; gap: 5px; }
.btn-xs .ic { width: 14px; height: 14px; }
.btn-lg { height: 50px; font-size: 15.5px; font-weight: 600; border-radius: 12px; }
.btn-block { width: 100%; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--muted);
  cursor: pointer; transition: color .15s, border-color .15s, background-color .15s; flex: 0 0 auto;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-2); text-decoration: none; }
.icon-btn-sm { width: 28px; height: 28px; border-color: transparent; background: transparent; border-radius: 7px; }
.icon-btn-sm:hover { background: var(--red-50); color: var(--red-600); }
.icon-btn-sm .ic { width: 15px; height: 15px; }

.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 13px;
  font: 400 15px/1.4 var(--font); color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
textarea.input { height: auto; min-height: 64px; padding: 10px 13px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--faint); }
.input:hover { border-color: var(--border-2); }
.input:focus { border-color: var(--pink); box-shadow: var(--ring); }
select.input {
  padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.input-sm { height: 36px; font-size: 14px; }
.input-group { display: flex; gap: 6px; align-items: center; }
.input-group .input { flex: 1; min-width: 0; }

.field { display: block; margin-bottom: 12px; }
.field-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.field-label em { font-style: normal; color: var(--faint); font-weight: 400; }
.field-help { display: block; font-size: 12.5px; color: var(--muted); margin-top: 5px; }

.switch { position: relative; display: inline-block; width: 40px; height: 24px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--border-2); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--indigo); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { box-shadow: var(--ring); }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.badge-indigo { background: var(--indigo-50); color: var(--indigo-600); }
.badge-mint { background: var(--mint-50); color: var(--mint-600); }
.badge-amber { background: var(--amber-50); color: var(--amber-700); }
.badge-red { background: var(--red-50); color: var(--red-600); }
.badge-gray { background: #EEF2F4; color: var(--muted); }
.badge .dot-s { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-out infinite; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: #EEF2F4; color: var(--text-2); font-size: 13px; }
.chip .ic { width: 15px; height: 15px; color: var(--muted); }
.chip-amber { background: var(--amber-50); color: var(--amber-700); }
.chip-amber .ic { color: var(--amber); }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: var(--r); font-size: 14px; margin: 0 0 14px; border: 1px solid; }
.alert .ic { margin-top: 1px; }
.alert-error { background: var(--red-50); color: #991B1B; border-color: #FECACA; }
.alert-ok { background: var(--mint-50); color: #065F46; border-color: #A7F3D0; }
.alert-info { background: var(--indigo-50); color: #3730A3; border-color: var(--indigo-100); }
.alert-warn { background: var(--amber-50); color: #92400E; border-color: #FDE68A; }

.kind { --k: #71717A; width: 36px; height: 36px; border-radius: 9px; display: inline-grid; place-items: center; color: var(--k); background: color-mix(in srgb, var(--k) 13%, #fff); flex: 0 0 auto; }
.kind .ic { width: 18px; height: 18px; }
.kind[data-k="video"] { --k: #0A7FF3; }
.kind[data-k="image"] { --k: var(--mint); }
.kind[data-k="audio"] { --k: var(--sky); }
.kind[data-k="archive"] { --k: #F59E0B; }
.kind[data-k="doc"] { --k: #64748B; }
.kind[data-k="code"] { --k: var(--violet); }
.kind[data-k="folder"] { --k: #20A9FC; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 12px);
  display: flex; align-items: center; gap: 10px; max-width: min(460px, calc(100vw - 32px));
  padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast-error { background: #18232C; color: #fff; }
.toast-error .ic { color: #FCA5A5; }
.toast-ok { background: #18232C; color: #fff; }
.toast-ok .ic { color: #6EE7B7; }

/* ------------------------------------------------------------------ */
/* Site public                                                        */
/* ------------------------------------------------------------------ */
.pub-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.pub-header { display: flex; align-items: center; gap: 20px; height: 68px; padding: 0 32px; max-width: 1240px; width: 100%; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; text-decoration: none !important; margin-right: auto; }
.brand-logo { width: 28px; height: auto; }
.brand-name { font-weight: 650; font-size: 17px; letter-spacing: -.025em; }
.pub-nav { display: flex; align-items: center; gap: 4px; }
.pub-nav > a { color: var(--muted); font-size: 14px; padding: 7px 10px; border-radius: 8px; }
.pub-nav > a:hover { color: var(--text); background: #E9EEF1; text-decoration: none; }
/* Sélecteur de langue (globe) */
.lang-menu { position: relative; margin-left: 8px; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 9px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 999px; background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--text); font: 600 12.5px/1 var(--font); letter-spacing: .03em; cursor: pointer; box-shadow: 0 1px 3px rgba(27, 38, 46, .08); transition: background .15s, box-shadow .15s; }
.lang-btn:hover, .lang-menu.is-open .lang-btn { background: #fff; box-shadow: 0 4px 14px -6px rgba(27, 38, 46, .3); }
.lang-btn .ic { width: 18px; height: 18px; }
.lang-btn .lang-caret { width: 14px; height: 14px; opacity: .55; transition: transform .2s; }
.lang-menu.is-open .lang-caret { transform: rotate(180deg); }
.lang-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; width: 420px; max-width: calc(100vw - 24px); padding: 10px; border-radius: 20px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 28px 60px -20px rgba(20, 40, 60, .4), 0 8px 20px -10px rgba(20, 40, 60, .2); animation: lang-in .16s ease-out; }
.lang-pop[hidden] { display: none; }
.lang-pop-head { padding: 6px 10px 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; max-height: min(60vh, 520px); overflow: auto; }
.lang-grid a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; color: var(--text); font-size: 14px; text-decoration: none; outline: none; }
.lang-grid a:hover, .lang-grid a:focus-visible { background: #EEF4FA; text-decoration: none; }
.lang-grid a.is-active { background: #E3F2FE; color: #0A6FD8; font-weight: 600; }
.lang-code { flex: none; width: 30px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: #EEF2F5; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.lang-grid a.is-active .lang-code { background: var(--indigo); color: #fff; }
.lang-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-check { width: 16px; height: 16px; flex: none; }
@keyframes lang-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .lang-btn .lang-cur, .lang-btn .lang-caret { display: none; }
  .lang-btn { width: 36px; padding: 0; justify-content: center; }
  .lang-pop { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .lang-pop { animation: none; } }

.pub-main { flex: 1; display: flex; align-items: center; padding: 8px 32px 24px; max-width: 1240px; width: 100%; margin: 0 auto; }
.layout { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 40px; align-items: center; width: 100%; }
.layout-single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.pub-footer { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 16px 24px 22px; font-size: 12.5px; color: var(--faint); }
.pub-footer span { display: inline-flex; align-items: center; gap: 5px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; min-width: 0; }
.card-head { padding: 24px 24px 4px; }
.card-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: 32px; }
.card-body { padding: 16px 24px; }
.card-foot { padding: 4px 24px 24px; }
.h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 650; letter-spacing: -.03em; }
.sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* Envoi */
.uploader .step { display: none; flex-direction: column; }
.uploader .step.is-active { display: flex; animation: fade .3s var(--ease); }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 26px 16px 20px; border: 1.5px dashed var(--border-2); border-radius: var(--r-lg);
  background: var(--surface-2); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.dropzone:hover, body.is-dragging .dropzone { border-color: var(--indigo); background: var(--indigo-50); }
.dropzone strong { font-size: 15.5px; font-weight: 600; margin-top: 4px; }
.dropzone .muted { font-size: 13.5px; }
.dz-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--indigo); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(10, 127, 243, .55); }
.dz-icon.big { width: 84px; height: 84px; border-radius: 24px; margin: 0 auto 16px; }
.dropzone.is-compact { flex-direction: row; justify-content: flex-start; text-align: left; padding: 10px 12px; gap: 12px; display: none; }

.filebox { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.files { list-style: none; margin: 0; padding: 0; }
.filebox .files { max-height: 210px; overflow-y: auto; }
.files li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 10px 8px 10px; border-bottom: 1px solid var(--border); font-size: 14px; }
.files li:last-child { border-bottom: 0; }
.files li.is-new { animation: slide .3s var(--ease); }
.files .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.files .name small { display: block; color: var(--faint); font-weight: 400; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.files .name .count { font-style: normal; color: var(--muted); font-weight: 400; font-size: 12.5px; margin-left: 4px; }
.files .size { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.filebox-foot { padding: 10px 12px 12px; background: var(--surface-2); border-top: 1px solid var(--border); }
.meter { height: 4px; border-radius: 99px; background: #DFE6EA; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--indigo); border-radius: 99px; transition: width .4s var(--ease); }
.meter span.is-high { background: var(--amber); }
.filebox-stats { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin: 7px 0 10px; font-variant-numeric: tabular-nums; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 16px 0 14px; border-radius: 12px; background: #EEF2F4; }
.tabs > label { display: flex; }
.tabs > label > button { flex: 1; }
.tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 500 14px var(--font); cursor: pointer; transition: background-color .15s, color .15s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.tabs button[aria-selected="true"] .ic { color: var(--indigo); }
.uploader[data-share="link"] .mail-only { display: none; }

.chips-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 42px; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); cursor: text; transition: border-color .15s, box-shadow .15s; }
.chips-input:focus-within { border-color: var(--indigo); box-shadow: var(--ring); }
.chips-input input { flex: 1; min-width: 160px; border: 0; outline: 0; font: 15px var(--font); padding: 4px 4px; background: transparent; color: var(--text); }
.chips-input input::placeholder { color: var(--faint); }
.chip-tag { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 3px 0 10px; border-radius: 7px; background: var(--indigo-50); color: var(--indigo-600); font-size: 13.5px; font-weight: 500; animation: slide .25s var(--ease); max-width: 100%; overflow: hidden; }
.chip-tag button { width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 5px; background: transparent; color: inherit; cursor: pointer; opacity: .7; }
.chip-tag button:hover { opacity: 1; background: var(--indigo-100); }
.chip-tag .ic { width: 13px; height: 13px; }

.options { border: 1px solid var(--border); border-radius: var(--r-lg); margin-top: 4px; }
.options summary { display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 500; color: var(--text-2); user-select: none; }
.options summary::-webkit-details-marker { display: none; }
.options summary .ic { color: var(--muted); }
.options summary .chev { margin-left: 6px; transition: transform .2s; }
.options[open] summary .chev { transform: rotate(180deg); }
.options-summary { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 13px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.opt + .opt { border-top: 1px dashed var(--border); }
.opt select.input { width: auto; min-width: 140px; }

/* Progression */
.progress-pct { font-size: 56px; letter-spacing: -.05em; line-height: 1; margin-top: 14px; font-variant-numeric: tabular-nums; }
.progress-pct small { font-size: 22px; color: var(--faint); font-weight: 500; margin-left: 2px; }
.progress { height: 8px; border-radius: 99px; background: #E9EEF1; overflow: hidden; margin: 16px 0 10px; }
.progress span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--grad); transition: width .35s linear; background-size: 200% 100%; }
.progress-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress-meta span:empty { display: none; }
.files-progress { border: 1px solid var(--border); border-radius: var(--r-lg); max-height: 240px; overflow-y: auto; }
.files-progress li { grid-template-columns: 36px minmax(0, 1fr) auto 24px; }
.mini-bar { display: block; height: 3px; border-radius: 9px; background: #E9EEF1; margin-top: 6px; overflow: hidden; }
.mini-bar span { display: block; height: 100%; width: 0; background: var(--indigo); transition: width .3s linear; }
.files-progress .state { color: var(--faint); display: grid; place-items: center; }
.files-progress li.is-done .state { color: var(--mint); }
.files-progress li.is-done .mini-bar span { background: var(--mint); }
.notice { margin: 10px 0 0; display: flex; align-items: center; gap: 6px; color: var(--amber-700) !important; }

/* Terminé */
.success-mark, .state-mark { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 14px; }
.success-mark { background: var(--mint-50); color: var(--mint); animation: pop .5s var(--ease); }
.state-mark.is-muted { background: #EEF2F4; color: var(--muted); }
.state-mark.is-indigo { background: var(--indigo-50); color: var(--indigo); }
.state-mark.is-mint { background: var(--mint-50); color: var(--mint); }
.state-mark.is-red { background: var(--red-50); color: var(--red); }
.linkbox { display: flex; gap: 6px; align-items: center; padding: 5px 5px 5px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.linkbox input { flex: 1; min-width: 0; border: 0; background: transparent; font: 14px var(--mono); color: var(--text); outline: 0; }
.row-actions { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.qr { width: 176px; margin: 14px auto 0; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: #fff; line-height: 0; animation: pop .3s var(--ease); }
.qr svg { width: 100%; height: auto; }
.recap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.recap-list li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9px; background: var(--surface-2); font-size: 14px; }
.recap-list .ic { color: var(--mint); }

/* Réception */
.sender { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sender strong { display: block; font-size: 14px; font-weight: 600; }
.sender .muted { display: block; line-height: 1.2; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-50); color: var(--indigo-600); font-weight: 600; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.message { margin: 0 0 14px; padding: 12px 14px; border-left: 3px solid var(--indigo); background: var(--surface-2); border-radius: 0 10px 10px 0; color: var(--text-2); font-size: 14.5px; overflow-wrap: anywhere; }
.files-static { border: 1px solid var(--border); border-radius: var(--r-lg); max-height: 300px; overflow-y: auto; }
.files-static li { grid-template-columns: 36px minmax(0, 1fr) auto; }
.files-static.has-previews li { grid-template-columns: 36px minmax(0, 1fr) auto auto; }
.thumb { width: 36px; height: 36px; border-radius: 9px; overflow: hidden; display: block; background: #EEF2F4; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.unlock { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.unlock .state-mark { margin-bottom: 0; }
.unlock p { margin: 0; color: var(--text-2); }
.unlock .input-group, .unlock .alert { width: 100%; }
.dl-after { margin: 12px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--mint-600) !important; }

/* Vitrine */
.showcase-col { min-width: 0; }
.showcase { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #DFE6EA; box-shadow: var(--shadow-lg); }
.showcase-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; display: block; }
.showcase-slide.is-active { opacity: 1; }
.showcase-slide img, .showcase-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.showcase-dots span { width: 6px; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .5); transition: width .3s, background .3s; }
.showcase-dots span.is-active { width: 18px; background: #fff; }
.hero { padding: 0 8px; }
.hero-title { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.04em; font-weight: 650; margin: 0 0 14px; }
.hero-sub { font-size: 17px; color: var(--muted); margin: 0 0 26px; max-width: 46ch; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.hero-points li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-2); }
.dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.dot .ic { width: 17px; height: 17px; }
.dot-indigo { background: var(--indigo-50); color: var(--indigo); }
.dot-mint { background: var(--mint-50); color: var(--mint); }
.dot-amber { background: var(--amber-50); color: var(--amber); }

.drop-overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; text-align: center; background: rgba(247, 247, 245, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .15s; }
.drop-overlay::before { content: ""; position: absolute; inset: 16px; border: 2px dashed var(--indigo); border-radius: 24px; }
body.is-dragging .drop-overlay { opacity: 1; }
.drop-overlay p { margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -.03em; }

.prose { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.prose h2, .prose h3 { color: var(--text); letter-spacing: -.02em; margin: 1.4em 0 .5em; }
.prose p { margin: 0 0 1em; }
.prose h2 { font-size: 19px; font-weight: 680; }
.prose h3 { font-size: 16px; font-weight: 650; }
.prose h2:first-child, .prose h3:first-child { margin-top: .2em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.prose li::marker { color: var(--indigo); }
.prose a { color: var(--indigo); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose strong { color: var(--text); font-weight: 650; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 1.8em 0; }
.prose .lead { font-size: 17.5px; line-height: 1.6; color: var(--text); letter-spacing: -.01em; }
.prose .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0 0 1.2em; }
.prose .cols > div { border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; background: rgba(255, 255, 255, .55); }
.prose .cols h3 { margin: 0 0 .3em; }
.prose .cols p { margin: 0; font-size: 14px; }
.prose dl { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 6px 18px; margin: 0 0 1.2em; }
.prose dt { color: var(--muted); }
.prose dd { margin: 0; color: var(--text); }
@media (max-width: 600px) { .prose dl { grid-template-columns: 1fr; gap: 0; } .prose dd { margin-bottom: 8px; } }

/* Éditeur de pages (admin) */
.page-editor .pe-meta { display: grid; grid-template-columns: minmax(0, 1fr) 210px 150px 100px; gap: 4px 16px; }
.page-editor .pe-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px; border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--surface-2, #F6F8FA); position: sticky; top: 0; z-index: 2; margin-top: 8px; }
.page-editor .pe-btn { min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font: 600 13px/1 var(--font); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 1px; }
.page-editor .pe-btn small { font-size: 9px; margin-top: 6px; }
.page-editor .pe-btn:hover { background: #fff; border-color: var(--border); box-shadow: 0 1px 2px rgba(16, 42, 76, .08); }
.page-editor .pe-btn .ic { width: 16px; height: 16px; }
.page-editor .pe-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.page-editor .pe-hint { font-size: 12px; color: var(--muted); margin-left: 8px; }
.page-editor .pe-hint code { font-size: 11.5px; }
.page-editor .pe-tabs { margin-left: auto; display: inline-flex; background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 2px; }
.page-editor .pe-tab { border: 0; background: transparent; padding: 5px 10px; border-radius: 7px; font: 500 12.5px/1 var(--font); color: var(--muted); cursor: pointer; }
.page-editor .pe-tab.is-active { background: var(--indigo); color: #fff; }
.page-editor .pe-panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--border); border-radius: 0 0 12px 12px; overflow: hidden; }
.page-editor .pe-panes[data-view="code"] { grid-template-columns: minmax(0, 1fr); }
.page-editor .pe-panes[data-view="code"] .pe-preview { display: none; }
.page-editor .pe-panes[data-view="preview"] { grid-template-columns: minmax(0, 1fr); }
.page-editor .pe-panes[data-view="preview"] .pe-code { display: none; }
.page-editor .pe-code { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; resize: vertical; min-height: 420px !important; padding: 18px 20px !important; font-size: 13.5px !important; line-height: 1.65 !important; tab-size: 2; }
.page-editor .pe-preview { border-left: 1px solid var(--border); background: linear-gradient(180deg, #FBFCFE, #F4F7FA); padding: 22px 28px; overflow: auto; max-height: 80vh; }
.page-editor .pe-panes[data-view="preview"] .pe-preview { border-left: 0; max-height: none; }
.page-editor .pe-preview .prose { max-width: 760px; margin: 0 auto; }
@media (max-width: 1100px) {
  .page-editor .pe-meta { grid-template-columns: 1fr 1fr; }
  .page-editor .pe-title { grid-column: 1 / -1; }
  .page-editor .pe-panes { grid-template-columns: minmax(0, 1fr); }
  .page-editor .pe-preview { border-left: 0; border-top: 1px solid var(--border); }
  .page-editor .pe-hint { display: none; }
}

/* ------------------------------------------------------------------ */
/* Site public — acidulé, verre dépoli                                */
/* ------------------------------------------------------------------ */
body.pub { background: linear-gradient(180deg, #FFFFFF 0%, #F0F4F7 55%, #E1E7EC 100%) fixed; color: var(--text); position: relative; isolation: isolate; }
body.pub::before {
  content: ""; position: fixed; inset: -8vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 36vmax at 10% 14%, rgba(32, 169, 252, .38) 0%, rgba(32, 169, 252, .12) 45%, rgba(32, 169, 252, 0) 72%),
    radial-gradient(38vmax 34vmax at 92% 10%, rgba(32, 169, 252, .4) 0%, rgba(32, 169, 252, .12) 45%, rgba(32, 169, 252, 0) 72%),
    radial-gradient(46vmax 40vmax at 86% 96%, rgba(10, 127, 243, .34) 0%, rgba(10, 127, 243, .1) 45%, rgba(10, 127, 243, 0) 72%),
    radial-gradient(40vmax 36vmax at 8% 96%, rgba(198, 209, 212, .45) 0%, rgba(198, 209, 212, .12) 45%, rgba(198, 209, 212, 0) 72%);
  animation: drift 40s ease-in-out infinite alternate;
}
.pub .uploader { position: relative; z-index: 3; }
.pub .showcase-col { position: relative; z-index: 1; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(3vmax, -2vmax, 0) rotate(8deg) scale(1.05); }
  100% { transform: translate3d(-2vmax, 3vmax, 0) rotate(-6deg) scale(1.02); }
}
.pub .brand { color: var(--text) !important; }
.pub .brand-name { font-weight: 700; font-size: 18px; letter-spacing: -.03em; }
.pub .pub-nav > a { color: rgba(27, 38, 46, .66); font-weight: 500; border-radius: 999px; padding: 7px 12px; }
.pub .pub-nav > a:hover { color: var(--text); background: rgba(255, 255, 255, .55); }
.pub .pub-footer { color: rgba(27, 38, 46, .62); }

/* Cartes en verre dépoli */
.pub .card {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .85); border-radius: 28px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 30px 60px -24px rgba(30, 50, 70, .35), 0 8px 20px -10px rgba(27, 38, 46, .15);
}
.pub .h1 { font-weight: 700; letter-spacing: -.035em; }
.pub .btn { border-radius: 999px; }
.pub .btn-primary { background: var(--grad); background-size: 140% 100%; box-shadow: 0 8px 20px -8px rgba(10, 127, 243, .7); }
.pub .btn-primary:hover:not([disabled]) { background: var(--grad); background-position: 100% 0; filter: brightness(1.04); }
.pub .card-foot .btn-lg { height: 56px; font-size: 17px; }
.pub .btn-ghost { background: rgba(255, 255, 255, .7); border-color: rgba(27, 38, 46, .1); }
.pub .input { border-radius: 14px; background: rgba(255, 255, 255, .9); }
.pub .icon-btn { border-radius: 12px; background: rgba(255, 255, 255, .9); }
.pub .icon-btn-sm { background: transparent; }
.pub .chip { border-radius: 999px; background: rgba(27, 38, 46, .06); }
.pub .filebox, .pub .files-static, .pub .files-progress { background: rgba(255, 255, 255, .85); border-color: rgba(27, 38, 46, .08); border-radius: 18px; }
.pub .linkbox { border-radius: 999px; background: #fff; padding-left: 16px; }
.pub .linkbox .btn { border-radius: 999px; }
.pub .message { border-left: 0; border-radius: 16px; background: rgba(255, 255, 255, .85); position: relative; padding-left: 18px; }
.pub .message::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--grad); }
.pub .success-mark { border-radius: 22px; background: var(--grad); color: #fff; box-shadow: 0 12px 24px -10px rgba(10, 127, 243, .7); }
.pub .state-mark { border-radius: 22px; }
.pub .state-mark.is-indigo { background: var(--grad); color: #fff; }
.pub .progress { height: 10px; background: rgba(27, 38, 46, .07); }
.pub .progress span { background: var(--grad); }
.pub .badge-indigo { background: rgba(10, 127, 243, .12); color: var(--pink-600); }
.pub .qr { border-radius: 20px; }
.pub .showcase { border-radius: 26px; border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 30px 60px -24px rgba(30, 50, 70, .45); background: rgba(255, 255, 255, .4); }
.pub .hero-title { color: var(--text); font-weight: 750; }
.pub .hero-points .dot { border-radius: 10px; }
.pub .drop-overlay { background: rgba(238, 243, 247, .75); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pub .drop-overlay::before { border: 3px dashed var(--pink); border-radius: 32px; }
.pub .dz-icon.big { background: var(--grad); border-radius: 26px; box-shadow: 0 16px 30px -12px rgba(10, 127, 243, .7); }
.pub .layout { grid-template-columns: 400px minmax(0, 1fr); gap: 56px; }
.pub .layout-single { grid-template-columns: minmax(0, 560px); }
.pub .layout-prose { grid-template-columns: minmax(0, 820px); align-self: flex-start; padding-top: 12px; }
.pub .prose-card .card-head { padding: 36px 44px 6px; }
.pub .prose-card .card-body { padding: 18px 44px 40px; }
.pub .prose-card .h1 { font-size: 30px; letter-spacing: -.035em; }
@media (max-width: 700px) { .pub .prose-card .card-head { padding: 26px 22px 4px; } .pub .prose-card .card-body { padding: 14px 22px 28px; } .pub .prose-card .h1 { font-size: 25px; } }

/* Pied de page : liens légaux */
.pub-footer { flex-wrap: wrap; row-gap: 6px; }
.pub-footer a { color: inherit; text-decoration: none; }
.pub-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.pub-footer .foot-links { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; }
.pub-footer button.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.pub-footer button.linklike:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* Bandeau cookies */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; margin: 0 auto; max-width: 760px; display: flex; align-items: center; gap: 18px; padding: 16px 18px 16px 20px; border-radius: 20px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 24px 50px -18px rgba(20, 40, 60, .4), 0 6px 16px -8px rgba(20, 40, 60, .2); font-size: 13.5px; line-height: 1.5; color: var(--text-2); animation: cookie-in .35s cubic-bezier(.2, .8, .2, 1); }
.cookie-bar[hidden] { display: none; }
.cookie-bar .cb-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(10, 127, 243, .7); font-size: 18px; }
.cookie-bar .cb-text { flex: 1; min-width: 0; }
.cookie-bar .cb-text strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.cookie-bar .cb-text a { color: var(--indigo); }
.cookie-bar .cb-actions { display: flex; gap: 8px; flex: none; }
.cookie-bar .cb-actions .btn { min-width: 108px; justify-content: center; }
@keyframes cookie-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 12px; left: 10px; right: 10px; bottom: 10px; }
  .cookie-bar .cb-ic { display: none; }
  .cookie-bar .cb-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .cookie-bar { animation: none; } }

/* Carte d'envoi */
.uploader { overflow: visible; }
.up-body { padding: 12px 12px 4px; display: flex; flex-direction: column; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 136px; padding: 18px 8px; border: 1px solid rgba(27, 38, 46, .06); border-radius: 20px;
  background: rgba(255, 255, 255, .7); color: var(--text); font: 600 15.5px/1.2 var(--font); letter-spacing: -.015em;
  cursor: pointer; transition: background-color .15s, transform .15s var(--ease), box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.tile:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(30, 50, 70, .35); }
.tile:active { transform: scale(.98); }
.app-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 16px -8px rgba(27, 38, 46, .45), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .2s var(--ease); }
.tile:hover .app-ic { transform: scale(1.06) rotate(-3deg); }
.app-ic .ic { width: 26px; height: 26px; stroke-width: 2.2; }
.app-ic-files { background: linear-gradient(140deg, #2BB0FC 0%, #0D86F4 50%, #0A70E4 100%); }
.app-ic-folder { background: linear-gradient(140deg, #7A8C98 0%, #607382 50%, #4F6170 100%); }
body.is-dragging .tile { background: #fff; box-shadow: 0 0 0 2px var(--pink) inset; }
.tile-short { display: none; }
.tiles.is-compact .tile-label { display: none; }
.tiles.is-compact .tile-short { display: inline; }
.tiles.is-compact .tile { flex-direction: row; min-height: 50px; padding: 7px 12px; gap: 10px; font-size: 14.5px; border-radius: 16px; }
.tiles.is-compact .app-ic { width: 32px; height: 32px; border-radius: 10px; }
.tiles.is-compact .app-ic .ic { width: 17px; height: 17px; }
.tiles-hint { margin: 12px 4px 2px; text-align: center; font-size: 13px; color: var(--muted); }
.tiles.is-compact + .tiles-hint { display: none; }
.uploader .filebox { margin-top: 8px; }
.uploader .filebox .files { max-height: 190px; }
.uploader .filebox-foot { background: transparent; }
.uploader .meter { background: rgba(27, 38, 46, .07); }
.uploader .meter span { background: var(--grad); }

.ufields { margin-top: 6px; }
.ufield { position: relative; display: block; padding: 25px 10px 9px; border-bottom: 1px solid rgba(27, 38, 46, .08); cursor: text; }
.ufields > .ufield:last-child { border-bottom: 0; }
.ufield-label {
  position: absolute; left: 10px; top: 25px; max-width: calc(100% - 90px);
  font-size: 16px; line-height: 26px; color: var(--muted); pointer-events: none;
  transform-origin: 0 0; transition: transform .16s var(--ease), color .16s;
}
.ufield-count { position: absolute; right: 10px; top: 25px; font-size: 14px; line-height: 26px; color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; }
.ufield input, .ufield textarea {
  display: block; width: 100%; height: 26px; margin: 0; padding: 0; border: 0; outline: 0; background: transparent;
  font: 400 16px/26px var(--font); color: var(--text); resize: none;
}
.ufield textarea { min-height: 26px; max-height: 160px; overflow-y: auto; }
.ufield input::placeholder, .ufield textarea::placeholder { color: var(--faint); opacity: 0; transition: opacity .15s; }
.ufield:focus-within input::placeholder, .ufield:focus-within textarea::placeholder { opacity: 1; }
.ufield::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--ease); }
.ufield:focus-within::after { transform: scaleX(1); }
.ufield:focus-within .ufield-label,
.ufield.is-filled .ufield-label,
.ufield input:not(:placeholder-shown) ~ .ufield-label,
.ufield textarea:not(:placeholder-shown) ~ .ufield-label { transform: translateY(-19px) scale(.8); }
.ufield:focus-within .ufield-label { color: var(--pink-600); }
.ufield .chips-input { min-height: 26px; margin: 0; padding: 0 60px 0 0; gap: 6px; border: 0; border-radius: 0; background: transparent; box-shadow: none !important; }
.ufield .chips-input input { flex: 1; min-width: 110px; width: auto; }
.ufield .chip-tag { height: 26px; border-radius: 999px; background: var(--indigo-50); color: var(--indigo-600); }
.ufield .chip-tag button:hover { background: var(--indigo-100); }
.uploader[data-share="link"] .mail-only { display: none; }

/* Bulle d'aide (grand écran) */
.tip {
  position: absolute; left: calc(100% + 40px); top: 50%; z-index: 5; width: 290px;
  padding: 15px 18px; border-radius: 18px; background: rgba(27, 38, 46, .9); color: #fff;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: 14.5px; line-height: 1.5; box-shadow: 0 18px 40px -14px rgba(27, 38, 46, .5);
  opacity: 0; pointer-events: none; transform: translate(-6px, -50%); transition: opacity .18s, transform .22s var(--ease);
}
.tip::before { content: ""; position: absolute; left: -6px; top: 50%; width: 14px; height: 14px; background: inherit; border-radius: 3px; transform: translateY(-50%) rotate(45deg); }
.ufield-tip:focus-within .tip { opacity: 1; transform: translate(0, -50%); }

/* Panneau d'options */
.more-panel { padding: 18px 16px 6px; display: flex; flex-direction: column; gap: 4px; animation: fade .25s var(--ease); }
.more-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.more-head strong { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.more-head .btn { border-radius: 999px; background: rgba(10, 127, 243, .12); color: var(--pink-600); }
.more-head .btn:hover { background: rgba(10, 127, 243, .2); }
.more-group { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid rgba(27, 38, 46, .08); }
.more-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.more-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
.more-row strong, .choice strong { display: block; font-size: 15px; font-weight: 600; }
.more-row small, .choice small { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.choice { display: grid; grid-template-columns: 20px minmax(0, 1fr) 20px; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; text-align: left; border: 1px solid rgba(27, 38, 46, .08); border-radius: 16px; background: rgba(255, 255, 255, .8); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.choice:hover { border-color: rgba(27, 38, 46, .18); }
.choice .ic { color: var(--faint); }
.choice .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-2); transition: border .15s; }
.choice[aria-checked="true"] { border-color: transparent; background: #fff; box-shadow: 0 0 0 2px var(--pink) inset; }
.choice[aria-checked="true"] .radio { border: 6px solid var(--pink); }
.choice[aria-checked="true"] .ic { color: var(--pink); }
.more-panel .input { height: 44px; }
.pub .switch input:checked + span { background: var(--grad); }

/* Pied de carte */
.up-foot { padding: 12px 12px 12px; border-top: 1px solid rgba(27, 38, 46, .08); display: flex; flex-direction: column; gap: 10px; }
.up-foot-row { display: flex; gap: 8px; }
.pill-select { position: relative; flex: 1; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border: 1px solid rgba(27, 38, 46, .1); border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--text-2); cursor: pointer; transition: border-color .15s, background-color .15s; }
.pill-select:hover, .pill-select:focus-within { background: #fff; border-color: rgba(27, 38, 46, .2); }
.pill-select > .ic:first-child { width: 20px; height: 20px; color: var(--indigo); }
.pill-select select { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0 44px 0 48px; border: 0; background: transparent; border-radius: 999px; font: 600 16px var(--font); color: var(--text); cursor: pointer; -webkit-appearance: none; appearance: none; outline: 0; }
.pill-select .chev { margin-left: auto; pointer-events: none; width: 18px; height: 18px; color: var(--muted); }
.round-btn { position: relative; width: 62px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(27, 38, 46, .1); border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--text); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.round-btn:hover { background: #fff; border-color: rgba(27, 38, 46, .2); }
.round-btn.is-open { background: var(--text); border-color: var(--text); color: #fff; }
.round-btn .ic { width: 22px; height: 22px; }
.round-dot { position: absolute; top: 9px; right: 13px; width: 9px; height: 9px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 2px #fff; display: none; }
.round-btn.has-opts .round-dot { display: block; }
.btn-transfer {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 60px;
  border: 0; border-radius: 999px; background: var(--grad); background-size: 160% 100%; background-position: 0 0; color: #fff;
  font: 650 19px/1 var(--font); letter-spacing: -.015em; cursor: pointer;
  box-shadow: 0 12px 26px -12px rgba(10, 127, 243, .85), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: background-position .4s var(--ease), transform .1s, opacity .15s, box-shadow .2s;
}
.btn-transfer:hover:not([disabled]) { background-position: 100% 0; box-shadow: 0 16px 30px -12px rgba(10, 127, 243, .95), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-transfer:active:not([disabled]) { transform: scale(.99); }
.btn-transfer[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-transfer.is-loading { color: transparent; pointer-events: none; }
.btn-transfer.is-loading::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2.5px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

@media (max-width: 1240px) { .tip { display: none; } }
@media (max-width: 640px) {
  .pub .card { border-radius: 24px; }
  .tile { min-height: 116px; font-size: 14.5px; }
  .pill-select, .round-btn { height: 50px; }
  .btn-transfer { height: 56px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { body.pub::before { animation: none; } }

.beta-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #FFB020; color: #3B2600; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.test-banner { display: flex; align-items: center; gap: 10px; margin: -4px 0 18px; padding: 11px 14px; border-radius: var(--r); background: #FFF7E6; border: 1px solid #FFE1A3; color: #7A4B00; font-size: 14px; text-decoration: none !important; }
.test-banner .ic { color: #E59400; flex: 0 0 auto; }
.test-banner-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.test-banner-cta .ic { color: inherit; width: 16px; height: 16px; }
@media (max-width: 640px) { .test-banner-cta { display: none; } }

/* ------------------------------------------------------------------ */
/* Comptes, offres, tarifs                                            */
/* ------------------------------------------------------------------ */
.pub-main { flex-direction: column; justify-content: center; gap: 16px; }
.pub-flash { width: 100%; max-width: 640px; }
.pub-flash .alert { margin: 0 0 8px; border-radius: 16px; box-shadow: var(--shadow); }
.layout-narrow { grid-template-columns: minmax(0, 420px) !important; justify-content: center; }
.pub .pub-nav > a.is-current { color: var(--text); background: rgba(255, 255, 255, .6); }
.nav-login { background: var(--text); color: #fff !important; }
.pub .pub-nav > a.nav-login:hover { background: #000; color: #fff; }
.nav-account { display: inline-flex !important; align-items: center; gap: 8px; }
.nav-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; }
.pro-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.brand-client { gap: 10px; }
.brand-logo-client { width: auto; max-width: 140px; max-height: 34px; border-radius: 6px; }
.brand-via { font-size: 12px; color: var(--muted) !important; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .6); text-decoration: none !important; }
.ad-slot { width: 100%; max-width: 728px; margin: 0 auto; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .55); text-align: center; font-size: 12px; color: var(--muted); overflow: hidden; }
.signed-as { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--muted); }
.signed-as .ic { color: var(--faint); }
.req-head { padding: 8px 8px 14px; }
.req-head .h1 { margin-top: 4px; }
.req-msg { margin: 10px 0 0; color: var(--text-2); font-size: 15px; }
.uploader-request .tiles-hint a { display: none; }

/* Connexion */
.auth-card .card-head .success-mark { background: var(--grad); color: #fff; border-radius: 20px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.code-input { height: 64px !important; text-align: center; font: 600 30px/1 var(--mono) !important; letter-spacing: .3em; }
.link-btn { border: 0; background: none; color: var(--indigo); font: inherit; font-size: 14px; cursor: pointer; padding: 6px; }
.link-btn:hover { text-decoration: underline; }

/* Espace client */
.acc { width: 100%; max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.acc-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 4px 4px 0; }
.acc-title { margin: 0; font-size: 30px; font-weight: 750; letter-spacing: -.035em; }
.acc-sub { margin: 4px 0 0; color: var(--text-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; margin-bottom: 6px; }
.acc-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-top-actions form { margin: 0; }
.plan-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(27, 38, 46, .07); color: var(--text-2); }
.plan-pill.plan-pro { background: var(--grad); color: #fff; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.acc .card { padding: 20px; }
.acc-plan { display: flex; flex-direction: column; gap: 12px; }
.acc-plan-head { display: flex; align-items: center; gap: 14px; }
.acc-plan-head strong { display: block; font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.acc-plan-head .app-ic { width: 46px; height: 46px; border-radius: 14px; }
.acc-plan-note { margin: 0; }
.acc-plan .alert { margin: 0; }
.btn-transfer-sm { height: 50px; font-size: 16px; }
.acc-usage { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.usage-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 8px; color: var(--text-2); }
.usage-row strong { font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.usage-bar { height: 10px; border-radius: 99px; background: rgba(27, 38, 46, .07); overflow: hidden; }
.usage-bar span { display: block; height: 100%; border-radius: 99px; background: var(--grad); min-width: 4px; transition: width .5s var(--ease); }
.usage-bar.is-high span { background: linear-gradient(90deg, #F59E0B, #EF4444); }
.acc-section { padding: 18px 20px !important; }
.acc-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.acc-section-head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.acc-section-sub { margin: -4px 0 12px; }
.acc-empty { margin: 0; padding: 22px 0; text-align: center; color: var(--muted); }
.acc-list { list-style: none; margin: 0; padding: 0; }
.acc-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--border); }
.acc-list li:first-child { border-top: 0; }
.acc-list-compact li { grid-template-columns: 36px minmax(0, 1fr) auto; }
.acc-req-list li { grid-template-columns: 36px minmax(0, 1fr) auto; }
.acc-list li.is-off { opacity: .55; }
.acc-li-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-li-main strong { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-li-main .small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.acc-li-main .ic-sm { width: 13px; height: 13px; }
.acc-dl { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.acc-li-actions { display: flex; align-items: center; gap: 6px; }
.acc-li-actions form { margin: 0; }
.icon-btn-danger:hover { color: var(--red-600); border-color: #FECACA; background: var(--red-50); }
.acc-req-url { display: block; margin-top: 4px; font-size: 12px; color: var(--indigo-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 12px; }
.acc-form { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.acc-form .field { width: 100%; }
.acc-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; width: 100%; }
.acc-req-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.acc-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 6px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px; font-size: 15px; cursor: pointer; }
.acc-brand { width: 100%; }
.acc-brand h3 { margin: 6px 0 2px; font-size: 15px; }
.acc-brand > p { margin: 0 0 10px; }
.acc-logo-row { display: flex; align-items: center; gap: 12px; }
.acc-logo-preview { max-height: 40px; max-width: 120px; border-radius: 8px; background: #fff; padding: 4px; border: 1px solid var(--border); }
.input-color { padding: 4px; height: 42px; width: 96px !important; cursor: pointer; }
html:has(body.pub) { background: #E8F3FE; }
.acc-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; margin: 2px 0 10px; color: var(--text-2); }

/* Tarifs */
.pricing { width: 100%; max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.pricing-head { text-align: center; padding: 6px 0 2px; }
.pricing-title { margin: 0; font-size: clamp(32px, 4vw, 46px); font-weight: 780; letter-spacing: -.045em; }
.pricing-sub { margin: 8px auto 0; max-width: 52ch; color: var(--text-2); font-size: 17px; }
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.plan-card { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.plan-card h2 { margin: 10px 0 0; font-size: 22px; font-weight: 750; letter-spacing: -.03em; }
.plan-price { margin: 0; font-size: 30px; font-weight: 780; letter-spacing: -.04em; }
.plan-note { margin: 0 0 12px; }
.plan-card form, .plan-card .btn, .plan-card .btn-transfer { width: 100%; margin-top: auto; }
.plan-card-pro { box-shadow: 0 0 0 2px var(--pink), 0 30px 60px -24px rgba(30, 50, 70, .45) !important; }
.btn-transfer.is-disabled { opacity: .45; cursor: default; }
a.btn-transfer { text-decoration: none !important; }
.pricing-table-card { padding: 8px 20px !important; overflow-x: auto; }
.pricing-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pricing-table th, .pricing-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.pricing-table tr:last-child th, .pricing-table tr:last-child td { border-bottom: 0; }
.pricing-table thead th { font-size: 15px; font-weight: 700; border-bottom: 1.5px solid var(--border-2); }
.pricing-table tbody th { font-weight: 650; width: 34%; }
.pricing-table td { width: 33%; color: var(--text-2); overflow-wrap: anywhere; hyphens: auto; }
.pricing-table td strong { color: var(--text); }

/* Admin : offres et utilisateurs */
.plans-table-wrap { margin-top: 16px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 1px 2px rgba(16, 42, 76, .04), 0 10px 26px -14px rgba(16, 42, 76, .16); }
.plans-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.plans-table th, .plans-table td { padding: 10px 14px; vertical-align: middle; text-align: left; }
.plans-table thead th { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: 14px; }
.plans-table thead th.is-off .pt-plan { opacity: .45; }
.plans-table thead th.is-off::after { content: "non proposée"; display: block; margin-top: 4px; font-size: 11px; font-weight: 500; color: var(--muted); }
.plans-table .pt-crit { width: 34%; font-weight: 400; }
.plans-table .pt-crit strong { display: block; font-size: 14px; color: var(--text); font-weight: 600; }
.plans-table .pt-crit span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.plans-table tbody tr + tr:not(.pt-group) > * { border-top: 1px solid var(--border); }
.plans-table .pt-group td { padding: 14px 14px 6px; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--border); }
.plans-table tbody tr:first-child.pt-group td { border-top: 0; }
.plans-table .pt-plan { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 650; }
.plans-table .pt-free { background: #EEF2F5; color: #4F6170; }
.plans-table .pt-pro { background: #E3F2FE; color: #0A6FD8; }
.plans-table .pt-ent { background: #18232C; color: #fff; }
.plans-table .pt-note { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.plans-table .pt-free-price { color: var(--muted); font-size: 13.5px; }
.plans-table .input { width: 100%; }
@media (max-width: 760px) {
  .plans-table, .plans-table tbody, .plans-table tr, .plans-table th, .plans-table td { display: block; width: auto; }
  .plans-table thead { display: none; }
  .plans-table .pt-crit { width: auto; padding-bottom: 4px; border-top: 1px solid var(--border); }
  .plans-table tbody tr + tr:not(.pt-group) > * { border-top: 0; }
  .plans-table tbody tr:not(.pt-group) > .pt-crit { border-top: 1px solid var(--border); }
  .plans-table td { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 4px 10px; padding: 4px 14px; }
  .plans-table td::before { content: attr(data-plan); font-size: 12.5px; font-weight: 600; color: var(--muted); }
  .plans-table td .pt-note { grid-column: 2; margin-top: 0; }
  .plans-table tr:not(.pt-group) td:last-child { padding-bottom: 12px; }
  .plans-table .pt-group td { display: block; padding: 14px 14px 6px; }
  .plans-table .pt-group td::before { content: none; }
}
.input-suffix { position: relative; display: block; }
.input-suffix .input { padding-right: 52px; }
.input-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); pointer-events: none; }
.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; margin-bottom: 16px; }
.inline-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin: 0; }
.table tr.is-muted td { opacity: .55; }

@media (max-width: 900px) {
  .acc-grid, .plans { grid-template-columns: minmax(0, 1fr); }
  .acc-list li { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .acc-list li .acc-dl, .acc-list li > .badge { display: none; }
  .kpis-3 { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 640px) {
  .nav-account-label { display: none; }
  .pub .pub-nav > a.nav-login, .pub .pub-nav > a.nav-pricing { display: inline-flex; }
  .pub .pub-nav > a.nav-account { display: inline-flex !important; padding: 4px; }
  .acc-form-row { grid-template-columns: minmax(0, 1fr); }
  .acc-title { font-size: 26px; }
  .pricing-table th, .pricing-table td { padding: 10px 6px; font-size: 13.5px; }
}

/* ------------------------------------------------------------------ */
/* Administration                                                     */
/* ------------------------------------------------------------------ */
.adm { background: var(--bg); }
.adm-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--surface) 247px, var(--border) 247px, var(--border) 248px, transparent 248px); }
.adm-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px; border-right: 1px solid var(--border); background: var(--surface); }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: var(--text) !important; text-decoration: none !important; }
.adm-brand img { width: 26px; }
.adm-brand span { font-weight: 650; letter-spacing: -.02em; }
.adm-brand small { display: block; font-size: 11.5px; color: var(--faint); font-weight: 500; letter-spacing: 0; }
.adm-nav { display: flex; flex-direction: column; gap: 2px; }
.adm-nav-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 6px; }
.adm-nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 9px; color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none !important; }
.adm-nav a .ic { color: var(--faint); }
.adm-nav a:hover { background: #EEF2F4; color: var(--text); }
.adm-nav a.is-active { background: var(--indigo-50); color: var(--indigo-600); }
.adm-nav a.is-active .ic { color: var(--indigo); }
.adm-nav a .count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-logout { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; }
.adm-logout .ic { color: var(--faint); }
.adm-logout:hover { background: #EEF2F4; color: var(--text); }
.adm-side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.adm-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: 13px; }
.adm-user .avatar { width: 30px; height: 30px; font-size: 13px; }
.adm-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }

.adm-main { min-width: 0; padding: 24px 32px 48px; max-width: 1280px; }
.adm-top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.adm-title { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -.03em; }
.adm-sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.adm-top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-menu-btn { display: none; }
.search { position: relative; }
.search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search input { padding-left: 36px; height: 38px; width: 260px; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.panel-head h2 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; }
.panel-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.panel-head .actions { margin-left: auto; display: flex; gap: 8px; }
.panel-body { padding: 20px; }
.panel-foot { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); display: flex; gap: 8px; align-items: center; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.kpi-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi-label .dot { width: 26px; height: 26px; border-radius: 8px; }
.kpi-label .dot .ic { width: 14px; height: 14px; }
.kpi-value { font-size: 28px; font-weight: 650; letter-spacing: -.04em; margin-top: 10px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-foot { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.kpi-foot .up { color: var(--mint-600); font-weight: 500; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.chart { width: 100%; height: auto; display: block; }
.chart .bar-up { fill: var(--indigo); }
.chart .bar-dl { fill: var(--mint); }
.chart text { font: 11px var(--font); fill: var(--faint); }
.chart line { stroke: var(--border); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .1s; }
.table tbody tr:hover { background: #FAFAF9; }
.table tbody tr[data-href] { cursor: pointer; }
.table .t-main { font-weight: 500; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .t-sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .t-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .t-act { text-align: right; white-space: nowrap; }
.table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--indigo); cursor: pointer; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty .ic { width: 32px; height: 32px; color: var(--faint); margin-bottom: 8px; }

.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.seg { display: inline-flex; padding: 3px; background: #EEF2F4; border-radius: 9px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg a { padding: 5px 11px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none !important; white-space: nowrap; }
.seg a:hover { color: var(--text); }
.seg a.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg a .n { color: var(--faint); margin-left: 4px; font-weight: 400; }
.bulkbar { display: none; align-items: center; gap: 10px; padding: 10px 20px; background: var(--indigo-50); border-bottom: 1px solid var(--indigo-100); font-size: 14px; color: var(--indigo-600); }
.bulkbar.is-visible { display: flex; }
.pager { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.pager .pages { display: flex; gap: 4px; }

.dl { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.copyline { display: flex; align-items: center; gap: 6px; }
.copyline code { font: 12.5px var(--mono); background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; padding: 4px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; color: var(--text-2); }

.settings-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none !important; }
.settings-nav a .ic { color: var(--faint); }
.settings-nav a:hover { background: #E9EEF1; }
.settings-nav a.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.settings-nav a.is-active .ic { color: var(--indigo); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.form-row:first-child { border-top: 0; padding-top: 0; }
.form-row-text strong { display: block; font-size: 14px; font-weight: 500; }
.form-row-text span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.section-title { font-size: 13px; font-weight: 600; color: var(--text); margin: 22px 0 10px; }
.section-title:first-child { margin-top: 0; }
.expire-list { display: flex; flex-wrap: wrap; gap: 8px; }
.expire-list label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 9px; font-size: 13.5px; cursor: pointer; background: var(--surface); }
.expire-list input { accent-color: var(--indigo); }
.expire-list label:has(input:checked) { border-color: var(--indigo); background: var(--indigo-50); color: var(--indigo-600); }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.media { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.media-thumb { aspect-ratio: 16 / 9; background: #EEF2F4; display: grid; place-items: center; color: var(--faint); }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }

.code-area { font: 13px/1.55 var(--mono) !important; min-height: 280px !important; }
.placeholders { display: flex; flex-wrap: wrap; gap: 6px; }
.placeholders code { font: 12px var(--mono); padding: 3px 7px; border-radius: 6px; background: var(--indigo-50); color: var(--indigo-600); cursor: pointer; }
.log-line { font: 12.5px/1.5 var(--mono); }

/* Connexion admin */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; }
.login-card .card-head { padding-top: 30px; }

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .layout, .pub .layout { grid-template-columns: minmax(0, 440px); justify-content: center; gap: 28px; }
  .showcase-col { order: 2; }
  .hero { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .adm-shell { grid-template-columns: minmax(0, 1fr); background: none; }
  .adm-side { position: fixed; left: 0; top: 0; z-index: 60; width: 260px; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
  body.nav-open .adm-side { transform: none; }
  .adm-menu-btn { display: inline-grid; }
  .adm-main { padding: 16px 16px 40px; }
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .settings-nav a { white-space: nowrap; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .search input { width: 100%; }
  .adm-top-actions { width: 100%; margin-left: 0; }
  .adm-top-actions .search { flex: 1; }
  .dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .dl dd { margin-bottom: 10px; }
  .table .hide-sm { display: none; }
  .filters .search { margin-left: 0 !important; width: 100%; }
  .adm-main { overflow-x: hidden; }
}
@media (max-width: 640px) {
  .pub-header { padding: 0 16px; height: 60px; }
  .pub-nav > a { display: none; }
  .pub-main { padding: 4px 12px 16px; align-items: flex-start; }
  .tile { min-height: 112px; font-size: 15px; }
  .pill-select, .round-btn { height: 52px; }
  .btn-transfer { height: 56px; font-size: 18px; }
  .card-head { padding: 20px 18px 4px; }
  .card-body { padding: 14px 18px; }
  .card-foot { padding: 4px 18px 18px; }
  .h1 { font-size: 22px; }
  .tabs button { font-size: 13.5px; }
  .progress-pct { font-size: 48px; }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 23px; }
  .toast { bottom: 16px; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes slide { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(10, 127, 243, .5); } 70% { box-shadow: 0 0 0 6px rgba(10, 127, 243, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 127, 243, 0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* Téléchargement suivi dans la page */
.dl-progress { margin-top: 14px; }
.dl-progress .progress { margin: 8px 0 6px; }
.dl-progress-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dl-pct { font-size: 28px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--text); }
.dl-left { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }
.dl-progress-bot { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dl-progress-bot #dl-speed { margin-left: auto; }
.dl-progress-bot .link-btn { font-size: 13px; padding: 4px 0 4px 6px; }

/* Logo entre la fenêtre d'envoi et le texte d'accueil */
.pub .layout.has-logo { grid-template-columns: 400px auto minmax(0, 1fr); gap: 48px; }
.hero-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; z-index: 1; }
.hero-logo img { width: clamp(150px, 15vw, 230px); height: auto; filter: drop-shadow(0 18px 30px rgba(10, 127, 243, .22)); animation: logo-float 4.2s ease-in-out infinite; }
/* Ombre au sol : se resserre et s'éclaircit quand le logo monte */
.hero-logo::after { content: ""; width: 62%; height: 18px; margin-top: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 60, 120, .28), rgba(10, 60, 120, 0)); animation: logo-shadow 4.2s ease-in-out infinite; }
@keyframes logo-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-26px) rotate(-2deg); } }
@keyframes logo-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.68); opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .hero-logo img, .hero-logo::after { animation: none; } }
@media (max-width: 1100px) {
  .pub .layout.has-logo { grid-template-columns: minmax(0, 440px); gap: 20px; }
  .hero-logo { order: -1; }
  .hero-logo img { width: 110px; animation-name: logo-float-sm; }
  .hero-logo::after { height: 10px; margin-top: 12px; }
  @keyframes logo-float-sm { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
}

/* Lien donné dès le début de l'envoi */
.live-link { margin: 0 0 16px; padding: 14px; border-radius: 16px; background: var(--indigo-50); border: 1px solid var(--indigo-100); }
.live-link-title { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-weight: 650; font-size: 14px; color: var(--indigo-600); }
.live-link .linkbox { margin-bottom: 8px; background: #fff; }
.live-link .muted.small { margin: 0; line-height: 1.45; }
.live .sub { margin-top: 14px; }

/* Fond de page personnalisé (Pro) : photo plein écran, bandeaux lisibles par-dessus */
body.pub.has-brand-bg::before { display: none; }
.has-brand-bg .pub-header { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-radius: 0 0 18px 18px; box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .35); }
.has-brand-bg .pub-footer { width: fit-content; margin: 0 auto 14px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--text-2); }
.has-brand-bg .card { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
.acc-bg-preview { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

/* Contacts et relances (compte) */
.acc-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.acc-contacts li { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.acc-contacts .acc-contact-mail { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.acc-contacts form { margin: 0; }
.acc-row-help { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; }
.acc-select { width: auto; min-width: 200px; height: 38px; padding: 0 10px; font-size: 14px; }

/* Suggestions de destinataires (carnet de contacts) */
#recipients { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; list-style: none; margin: 0; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 18px 40px -16px rgba(30, 50, 70, .35); }
.suggest li { padding: 8px 10px; border-radius: 9px; font-size: 14px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest li.is-active, .suggest li:hover { background: var(--indigo-50); color: var(--indigo-600); }
.suggest li mark { background: none; color: inherit; font-weight: 700; }
.acc-invoices { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.acc-invoices li { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.acc-inv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acc-inv-amount { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Vérification de l'adresse de l'expéditeur (sans compte) */
.sv-box { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 22px; border-radius: inherit; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sv-box[hidden] { display: none; }
.sv-inner { width: 100%; max-width: 320px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sv-inner .h2 { margin: 6px 0 0; font-size: 20px; }
.sv-inner .sub { margin: 0; font-size: 14px; color: var(--text-2); }
.sv-code { text-align: center; font: 600 26px/1 var(--mono); letter-spacing: .3em; height: 56px; }
.sv-msg { min-height: 18px; margin: 0; font-size: 13px; color: var(--mint-600); }
.sv-msg.is-bad { color: var(--red-600); }
.sv-links { display: flex; gap: 16px; justify-content: center; }
.sv-code::placeholder { letter-spacing: 0; font: 500 15px var(--font); color: var(--faint); }
.chip-e2e { background: var(--mint-50); color: var(--mint-600); font-weight: 600; } .dl-nokey { margin: 12px 0 0; display: flex; gap: 8px; align-items: flex-start; } .icon-btn.is-disabled { opacity: .35; cursor: not-allowed; }
.crypt-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 12.5px; font-weight: 600; color: var(--mint-600); }
.crypt-note .ic { width: 14px; height: 14px; }
.plans:has(.plan-card-ent) { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1080px; }
@media (max-width: 900px) { .plans:has(.plan-card-ent) { grid-template-columns: minmax(0, 1fr); } }
.pricing-purge { display: flex; gap: 8px; align-items: flex-start; justify-content: center; max-width: 760px; margin: 18px auto 0; padding: 12px 16px; border-radius: 14px; background: var(--amber-50); color: var(--amber-700); font-size: 14px; font-weight: 600; }
.acc-purge { margin: 10px 0 0; }
.plan-pill.plan-ent { background: linear-gradient(110deg, #18232C, #4F6170); color: #fff; }

/* Admin : pleine largeur, colonnes triables, noms tronqués proprement */
.adm-main { max-width: none; }
.table .t-main, .table .t-sub { display: block; }
.table .col-name .t-main, .table .col-name .t-sub { max-width: min(46vw, 560px); }
.th-sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; white-space: nowrap; }
.th-sort:hover { color: var(--text); }
.th-sort.is-active { color: var(--indigo); }
.th-arrow { font-size: 11px; opacity: .45; }
.th-sort.is-active .th-arrow { opacity: 1; }
.table td.t-num, .table th { white-space: nowrap; }
.pricing-table { table-layout: fixed; width: 100%; }
.pricing-table th:first-child { width: 26%; }
@media (max-width: 700px) { .pricing-table { table-layout: auto; } }

/* Aperçu des mentions de facture (admin) */
.invoice-preview { margin: 12px 0 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.invoice-preview .dl { margin: 0 0 10px; }
.invoice-footer { font-size: 12.5px; line-height: 1.55; color: var(--text-2); }

.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--indigo); background: #F3F9FF; }
.radio-card input { margin-top: 3px; accent-color: var(--indigo); }
.radio-card > span { display: flex; flex-direction: column; gap: 2px; }

/* Champs « choisir un fichier » : bouton aux couleurs du site */
input[type="file"].input { padding: 6px 8px 6px 6px !important; height: auto; min-height: 46px; display: flex; align-items: center; cursor: pointer; color: var(--muted); font-size: 13.5px; background: var(--surface); border-style: dashed; transition: border-color .15s, background .15s; }
input[type="file"].input:hover { border-color: var(--indigo); background: #F5FAFF; }
input[type="file"].input:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
input[type="file"].input::file-selector-button {
  margin-right: 12px; height: 34px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 13.5px/34px var(--font); color: #fff; letter-spacing: .01em;
  background: var(--grad, linear-gradient(110deg, #20A9FC, #0A74E8));
  box-shadow: 0 6px 14px -6px rgba(10, 116, 232, .55), 0 1px 0 rgba(255, 255, 255, .25) inset;
  transition: transform .12s, box-shadow .15s, filter .15s;
}
input[type="file"].input:hover::file-selector-button { filter: brightness(1.05); box-shadow: 0 8px 18px -6px rgba(10, 116, 232, .65), 0 1px 0 rgba(255, 255, 255, .25) inset; }
input[type="file"].input:active::file-selector-button { transform: translateY(1px); }
.adm input[type="file"].input::file-selector-button { background: var(--indigo); }

/* Équipe Entreprise */
.team-h3 { margin: 0 0 12px; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.team-invite { display: flex; gap: 8px; }
.team-invite .input { flex: 1; min-width: 0; }
.team-invite .btn { flex: none; }
.team-avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 700; }
.team-avatar-pending { background: #FFF6E5; color: #B45309; }
.team-list li.is-pending .acc-li-main strong { color: var(--text-2); }
.team-member-card { display: flex; gap: 14px; align-items: center; }
.acc-team-link { margin: 4px 0 10px; }
@media (max-width: 640px) { .team-invite { flex-direction: column; } }
@keyframes ml-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(10, 127, 243, .45); } 50% { box-shadow: 0 0 0 10px rgba(10, 127, 243, 0); } }
.btn.is-pulse { animation: ml-pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .btn.is-pulse { animation: none; } }

/* Reprise d'un envoi interrompu */
.resume-box { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; background: #FFF8EB; border: 1px solid #F5D9A8; }
.resume-box .resume-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.45; color: #7A4B00; }
.resume-box .resume-text strong { font-size: 14px; color: #5C3900; }
.resume-box .resume-actions { display: flex; gap: 6px; flex: none; }
@media (max-width: 520px) { .resume-box { flex-direction: column; align-items: stretch; } .resume-box .resume-actions .btn { flex: 1; justify-content: center; } }

/* Longues listes de fichiers : 10 visibles, le reste sur demande */
.is-capped > li:nth-child(n+11) { display: none !important; }
.files-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin: 8px 0 0; padding: 9px 12px; border: 1px dashed var(--border); border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.files-more:hover { background: var(--indigo-50); color: var(--indigo); border-color: var(--indigo-100); }
.is-capped > li:nth-child(10) { border-bottom: 0; }
.files-rest { text-align: center; margin: 8px 0 0; }
/* En-tête : logo et nom du site légèrement en relief */
.pub .brand .brand-logo { filter: drop-shadow(0 2px 3px rgba(6, 60, 120, .28)) drop-shadow(0 6px 12px rgba(10, 116, 232, .18)); }
.pub .brand .brand-name { text-shadow: 0 1px 1px rgba(255, 255, 255, .9), 0 2px 6px rgba(6, 50, 100, .22), 0 6px 16px rgba(10, 116, 232, .14); }

/* ---------------------------------------------------------------- Centre d'aide */
.help { width: 100%; max-width: 980px; margin: 0 auto; padding: 8px 0 40px; }
.help-hero { text-align: center; padding: 18px 0 30px; }
.help-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--indigo-50); color: var(--indigo); font-size: 13px; font-weight: 600; }
.help-h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 750; letter-spacing: -.035em; line-height: 1.1; color: var(--text); margin: 16px 0 10px; }
.help-sub { max-width: 600px; margin: 0 auto 26px; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.help-search { position: relative; display: block; max-width: 580px; margin: 0 auto; }
.help-search .ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.help-search input { width: 100%; height: 56px; padding: 0 20px 0 50px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); font: inherit; font-size: 16px; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.help-search input:focus { border-color: var(--indigo); box-shadow: 0 0 0 4px var(--indigo-100), var(--shadow-lg); }
.help-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 10px 0 40px; }
.help-cat { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); color: var(--text) !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s, border-color .15s; }
.help-cat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--indigo-100); }
.help-cat strong { font-size: 16px; font-weight: 680; letter-spacing: -.015em; margin-top: 6px; }
.help-cat-desc { color: var(--text-2); font-size: 14px; line-height: 1.45; }
.help-cat-n { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: 12.5px; }
.help-cat-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: var(--indigo-50); color: var(--indigo); }
.help-cat-ic .ic { width: 20px; height: 20px; }
.help-empty { text-align: center; color: var(--muted); padding: 30px 0; }
.help-sec { scroll-margin-top: 20px; margin: 0 0 34px; }
.help-sec-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.help-sec-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -.025em; margin: 0; color: var(--text); }
.help-top { margin-left: auto; font-size: 13px; color: var(--muted) !important; }
.help-list { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.help-q { border-bottom: 1px solid var(--border); scroll-margin-top: 90px; }
.help-q:last-child { border-bottom: 0; }
.help-q[hidden] { display: none; }
.help-q summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15.5px; color: var(--text); transition: background .15s; }
.help-q summary::-webkit-details-marker { display: none; }
.help-q summary:hover { background: var(--surface-2); }
.help-q summary span { flex: 1; }
.help-chev { width: 18px; height: 18px; color: var(--muted); flex: 0 0 18px; transition: transform .2s; }
.help-q[open] summary { color: var(--indigo); }
.help-q[open] .help-chev { transform: rotate(180deg); color: var(--indigo); }
.help-a { padding: 0 20px 18px; font-size: 15px; }
.help-a > :last-child { margin-bottom: 0; }
.help-contact { display: flex; align-items: center; gap: 16px; padding: 22px 24px; margin-top: 10px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--indigo-50), #fff); border: 1px solid var(--indigo-100); box-shadow: var(--shadow); }
.help-contact div { flex: 1; }
.help-contact strong { font-size: 16px; color: var(--text); }
.help-contact p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
@media (max-width: 820px) { .help-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .help-cats { grid-template-columns: minmax(0, 1fr); }
  .help-contact { flex-direction: column; align-items: flex-start; }
  .help-top { display: none; }
}

/* ---------------------------------------------------------------- Signalement d'abus */
.dl-report { display: flex; justify-content: center; padding: 0 20px 14px; }
.dl-report .linklike { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 4px 6px; font: inherit; font-size: 12.5px; color: var(--faint); cursor: pointer; border-radius: 6px; transition: color .15s; }
.dl-report .linklike:hover { color: var(--red-600); }
.report-dlg { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.report-dlg::backdrop { background: rgba(16, 26, 34, .45); backdrop-filter: blur(3px); }
.report-dlg form { padding: 22px 22px 18px; }
.report-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.report-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 4px; }
.report-head p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.report-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: var(--red-50); color: var(--red-600); }
.report-reasons { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.report-reason { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.report-reason:hover { background: var(--surface-2); }
.report-reason:has(input:checked) { border-color: var(--indigo); background: var(--indigo-50); }
.report-reason input { accent-color: var(--indigo); margin: 0; }
.report-dlg textarea.input { resize: vertical; min-height: 72px; padding-top: 10px; }
.report-msg-out { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.report-msg-out.is-ok { background: #E7F8EF; color: #157347; }
.report-msg-out.is-bad { background: var(--red-50); color: var(--red-600); }
.report-foot { display: flex; justify-content: flex-end; gap: 8px; }
/* Admin */
.reports { list-style: none; margin: 0; padding: 0; }
.report { display: flex; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.report:last-child { border-bottom: 0; }
.report-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.report-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.report-transfer { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; color: var(--text) !important; text-decoration: none !important; }
.report-transfer:hover { background: var(--surface-2); }
.report-transfer > span { display: flex; flex-direction: column; min-width: 0; }
.report-transfer strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-msg { margin: 0; padding: 10px 12px; border-left: 3px solid var(--border-2); background: var(--surface-2); border-radius: 0 8px 8px 0; font-size: 14px; color: var(--text-2); }
.report-actions { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.report-actions form { margin: 0; }
.report-actions .btn { width: 100%; justify-content: flex-start; }
.adm-nav a .count.count-alert { color: #fff; background: var(--red-600); border-radius: 999px; padding: 1px 7px; font-weight: 600; }
@media (max-width: 720px) { .report { flex-direction: column; } .report-actions { flex-direction: row; flex-wrap: wrap; } .report-actions .btn { width: auto; } }

/* Version du site, discrète en pied de page */
.pub-footer .foot-ver { font-variant-numeric: tabular-nums; opacity: .7; }

/* ---------------------------------------------------------------- Empreintes de contrôle */
.hash-status { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.hash-status .ic { width: 16px; height: 16px; flex: 0 0 16px; }
.hash-status.is-run .ic { color: var(--indigo); }
.hash-status.is-ok { color: #157347; }
.hash-status.is-fail { color: var(--red-600); }
.sums { margin: 16px 0 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); }
.sums-head { display: flex; gap: 12px; align-items: flex-start; }
.sums-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sums-head strong { font-size: 14.5px; color: var(--text); }
.sums-head span { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.sums-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--indigo-50); color: var(--indigo); }
.sums-ic .ic { width: 18px; height: 18px; }
.sums-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.sums-actions .btn { font-size: 12.5px; }
.sums-msg { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.sums-msg.is-bad { color: var(--red-600); }
.sums-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.sums-list.is-capped > li:nth-child(n+11) { display: none; }
.sums-list li { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.sums-file { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 13.5px; }
.sums-file strong { overflow-wrap: anywhere; font-weight: 600; color: var(--text); }
.sums-file span { color: var(--muted); white-space: nowrap; font-size: 12.5px; }
.sums-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12px; }
.sums-row > span { color: var(--muted); }
.sums-row code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--text-2); overflow-wrap: anywhere; }
.sums-row .icon-btn.is-copied { color: #157347; }
.sums-verify { margin: 12px 0 0; }
.sums-progress { margin: 0; font-size: 13px; color: var(--indigo); }
.sums-sum { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; }
.sums-sum.is-same { color: #157347; }
.sums-sum.is-diff { color: var(--red-600); }
.sums-sum.is-absent { color: var(--muted); }
.sums-results { list-style: none; margin: 6px 0 0; padding: 0; max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.sums-results li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.sums-results li:last-child { border-bottom: 0; }
.sums-results li span { overflow-wrap: anywhere; color: var(--text); }
.sums-results li em { font-style: normal; white-space: nowrap; font-weight: 600; }
.sums-results li.is-same em { color: #157347; }
.sums-results li.is-diff em { color: var(--red-600); }
.sums-results li.is-absent em { color: var(--muted); }

/* Lien Aide de l'en-tête : en pied de page seulement sur petit écran */
@media (max-width: 640px) { .pub .pub-nav > a.nav-help { display: none; } }

/* ---------------------------------------------------------------- Page Fonctionnalités */
.feat { width: 100%; max-width: 1080px; margin: 0 auto; padding: 8px 0 40px; }
.feat-hero { text-align: center; padding: 22px 0 34px; }
.feat-h1 { font-size: clamp(30px, 5.4vw, 52px); font-weight: 760; letter-spacing: -.04em; line-height: 1.06; color: var(--text); margin: 18px auto 14px; max-width: 820px; }
.feat-sub { max-width: 640px; margin: 0 auto 26px; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.feat-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.feat-jump { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.feat-jump a { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, .7); font-size: 13px; color: var(--text-2) !important; text-decoration: none !important; transition: border-color .15s, color .15s; }
.feat-jump a:hover { border-color: var(--indigo-100); color: var(--indigo) !important; }
.feat-group { scroll-margin-top: 20px; margin: 0 0 44px; }
.feat-group-head { margin: 0 0 16px; }
.feat-group-head h2 { font-size: 24px; font-weight: 720; letter-spacing: -.03em; margin: 0 0 4px; color: var(--text); }
.feat-group-head p { margin: 0; color: var(--text-2); font-size: 15px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feat-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.feat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.feat-card h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 16px; font-weight: 680; letter-spacing: -.015em; margin: 14px 0 6px; color: var(--text); }
.feat-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.feat-ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--indigo-50); color: var(--indigo); }
.feat-ic .ic { width: 21px; height: 21px; }
.feat-badge { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--indigo-50); color: var(--indigo); }
.feat-badge-ent { background: #18232C; color: #fff; }
.feat-end { text-align: center; padding: 34px 24px; margin-top: 10px; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--indigo-50), #fff 70%); border: 1px solid var(--indigo-100); box-shadow: var(--shadow); }
.feat-end h2 { font-size: 26px; font-weight: 740; letter-spacing: -.03em; margin: 0 0 8px; color: var(--text); }
.feat-end p { max-width: 560px; margin: 0 auto 20px; color: var(--text-2); }
.feat-help { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13.5px; color: var(--muted) !important; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: minmax(0, 1fr); } .feat-sub { font-size: 15.5px; } }

/* ---------------------------------------------------------------- Paiement mensuel / annuel */
.pricing[data-period="month"] .pp-y, .pricing[data-period="year"] .pp-m { display: none; }
.bill-toggle { display: inline-flex; gap: 4px; padding: 4px; margin-top: 18px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.bill-toggle button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.bill-toggle button[aria-pressed="true"] { background: var(--text); color: #fff; box-shadow: var(--shadow); }
.bill-gift { padding: 2px 8px; border-radius: 999px; background: #E7F8EF; color: #157347; font-size: 11.5px; font-weight: 700; }
.bill-toggle button[aria-pressed="true"] .bill-gift { background: #2BB673; color: #fff; }
.plan-note strong { color: #157347; font-weight: 700; }
.acc-yearly-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--indigo) !important; }
.acc-yearly .bill-gift { margin-left: 4px; }
.hero-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--indigo) !important; text-decoration: none !important; }
.hero-more:hover { gap: 9px; }

/* Admin : mailing list */
.t-actions { white-space: nowrap; text-align: right; }
.t-actions form { display: inline-block; margin: 0 0 0 6px; vertical-align: middle; }

/* Envoi : cases sous l'adresse de l'expéditeur */
.ucheck { display: flex; align-items: flex-start; gap: 9px; padding: 9px 2px 3px; font-size: 13px; line-height: 1.4; color: var(--muted, #5b6875); cursor: pointer; }
.ucheck input { margin: 2px 0 0; flex: 0 0 auto; width: 15px; height: 15px; accent-color: var(--blue, #0a7ff3); }
.ucheck small { display: block; font-size: 11.5px; opacity: .85; margin-top: 1px; }
.uploader[data-share="mail"] .link-only { display: none; }

/* Envois récents (ce navigateur) */
.recent-link { display: inline-flex; align-items: center; gap: 6px; margin: 14px auto 0; font-size: 13px; color: var(--muted, #5b6875); background: none; border: 0; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.recent-link:hover { color: var(--text, #18232c); background: rgba(10,127,243,.06); }
.recent-dlg { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 24px 60px -12px rgba(16,42,76,.35); }
.recent-dlg::backdrop { background: rgba(16,28,42,.35); }
.recent-dlg .rd-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.recent-dlg .rd-head h2 { margin: 0; font-size: 17px; }
.recent-dlg .rd-sub { margin: 0 20px 10px; font-size: 12.5px; color: var(--muted, #5b6875); }
.recent-dlg ul { list-style: none; margin: 0; padding: 0 12px 14px; max-height: 60vh; overflow: auto; }
.recent-dlg li { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-top: 1px solid rgba(16,42,76,.08); }
.recent-dlg li:first-child { border-top: 0; }
.recent-dlg .rd-main { flex: 1 1 auto; min-width: 0; }
.recent-dlg .rd-name { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-dlg .rd-meta { display: block; font-size: 12px; color: var(--muted, #5b6875); }
.recent-dlg .rd-actions { display: flex; gap: 4px; flex: 0 0 auto; }

/* Encarts « Passez Pro » */
.upsell { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 12px 14px; border: 1px solid rgba(10,127,243,.18); border-radius: 14px; background: linear-gradient(180deg, rgba(10,127,243,.06), rgba(10,127,243,.02)); color: var(--text); text-decoration: none; text-align: left; transition: border-color .15s, background .15s; }
.upsell:hover { border-color: rgba(10,127,243,.4); background: rgba(10,127,243,.08); }
.upsell > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.upsell strong { display: block; font-size: 14px; }
.upsell small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.upsell-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #2aa8ff, #0a7ff3); color: #fff; }
.upsell-ic .ic { width: 17px; height: 17px; }
.upsell > .ic:last-child { color: var(--muted); flex: 0 0 auto; }
.upsell-dl { margin: 0 24px 4px; }

/* Contact */
.contact-layout .contact-card { max-width: 620px; width: 100%; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form .field { margin: 0; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .contact-row { grid-template-columns: 1fr; } }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-hint { display: flex; gap: 6px; align-items: flex-start; margin: -6px 0 0; padding: 9px 12px; border-radius: 10px; background: rgba(245, 158, 11, .1); color: #8a5a00; }
.contact-hint[hidden] { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-row img { border-radius: 10px; border: 1px solid var(--border); width: 165px; height: 45px; background: #F4F8FC; }
.captcha-input { flex: 1 1 140px; max-width: 200px; text-transform: uppercase; letter-spacing: .25em; font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.contact-privacy { margin: 0; }
.contact-form select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23687880' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

/* Admin : envois à la mailing list */
.nl-fields { display: flex; flex-direction: column; gap: 16px; }
.nl-fields .field { margin: 0; }
.nl-body { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.6; min-height: 280px; resize: vertical; }
.nl-help { font-size: 13px; color: var(--muted); }
.nl-help summary { cursor: pointer; font-weight: 600; }
.nl-help ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.8; }
.nl-help code { background: var(--surface-2, #f3f6f9); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.nl-actions { flex-wrap: wrap; }
.nl-spacer { flex: 1 1 auto; }
.nl-preview { display: block; width: 100%; height: 720px; border: 0; border-top: 1px solid var(--border); background: #F2F5F8; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.nl-progress { white-space: nowrap; }
.nl-bar { height: 4px; border-radius: 4px; background: var(--surface-2, #eef2f6); margin-top: 6px; overflow: hidden; min-width: 90px; }
.nl-bar span { display: block; height: 100%; background: var(--blue, #0a7ff3); transition: width .4s; }

/* Visite guidée (première visite) */
.tour-shade, .tour-ring, .tour-tip { display: none; }
.tour-on .tour-shade { display: block; position: fixed; inset: 0; z-index: 9990; background: transparent; }
.tour-on .tour-ring { display: block; position: fixed; z-index: 9991; border-radius: 18px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(12, 24, 38, .52), 0 0 0 3px rgba(32, 169, 252, .95), 0 0 0 9px rgba(32, 169, 252, .22);
  transition: top .3s ease, left .3s ease, width .3s ease, height .3s ease; }
.tour-on .tour-tip { display: block; position: fixed; z-index: 9992; background: var(--surface); color: var(--text); border-radius: 18px;
  padding: 18px 18px 14px; box-shadow: 0 24px 60px -16px rgba(10, 30, 60, .45), 0 2px 6px rgba(10, 30, 60, .08); font-size: 14px; line-height: 1.5; }
.tour-tip::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 18px 18px 0 0; background: var(--grad); }
.tour-tip.is-in { animation: tourIn .28s cubic-bezier(.2, .8, .3, 1.2); }
@keyframes tourIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.tour-arrow { position: absolute; width: 14px; height: 14px; background: var(--surface); transform: rotate(45deg); box-shadow: -2px -2px 4px rgba(10, 30, 60, .06); }
.tour-tip[data-side="right"] .tour-arrow { left: -7px; margin-top: -7px; }
.tour-tip[data-side="bottom"] .tour-arrow { top: -7px; margin-left: -7px; }
.tour-tip[data-side="top"] .tour-arrow { bottom: -7px; margin-left: -7px; box-shadow: 2px 2px 4px rgba(10, 30, 60, .06); }
.tour-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.tour-step { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pink); }
.tour-x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--faint); cursor: pointer; padding: 0 2px; }
.tour-x:hover { color: var(--text); }
.tour-title { display: block; font-size: 16px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.01em; }
.tour-text { margin: 0 0 12px; color: var(--text-2); }
.tour-dots { display: flex; gap: 5px; margin-bottom: 12px; }
.tour-dots span { width: 6px; height: 6px; border-radius: 6px; background: var(--border-2); transition: width .2s; }
.tour-dots span.on { width: 18px; background: var(--grad); }
.tour-btns { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tour-prev { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; padding: 6px 2px; }
.tour-prev:hover { color: var(--text); }
.tour-next { border: 0; border-radius: 999px; background: var(--grad); color: #fff; font: 600 14px/1 var(--font); padding: 11px 20px; cursor: pointer;
  box-shadow: 0 8px 18px -8px rgba(10, 127, 243, .8); }
.tour-next:hover { filter: brightness(1.05); }
@media (prefers-reduced-motion: reduce) { .tour-ring { transition: none; } .tour-tip.is-in { animation: none; } }
.tour-on #cookie-bar { visibility: hidden; } /* bandeau cookies masqué pendant la visite (il passerait devant les bulles) */

/* Politique de confidentialité */
.privacy-toc { margin: 18px 0 8px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.privacy-toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 24px; }
.privacy-toc li { margin: 0 0 4px; break-inside: avoid; }
@media (max-width: 640px) { .privacy-toc ol { columns: 1; } }
.privacy h2 { scroll-margin-top: 80px; }
.privacy h3 { font-size: 15.5px; margin: 18px 0 6px; }
.pricing-loc { display: flex; gap: 8px; align-items: center; justify-content: center; max-width: 760px; margin: 18px auto 0; font-size: 14px; font-weight: 600; color: var(--text-2); }
.pricing-loc + .pricing-purge { margin-top: 10px; }

/* Envoi anticipé (dès l'ajout des fichiers) et champ manquant */
.pre-up { display: flex; align-items: center; gap: 8px; margin: -2px 0 10px; padding: 8px 10px; border-radius: 12px; background: var(--indigo-50); color: var(--indigo-600); font-size: 13px; font-weight: 600; animation: fade .25s var(--ease); }
.pre-up .pre-ic { display: inline-flex; }
.pre-up .pre-ic .ic + .ic, .pre-up.is-done .pre-ic .ic:first-child { display: none; }
.pre-up.is-done .pre-ic .ic + .ic { display: inline-block; }
.pre-up .pre-text { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.pre-up .pre-bar { flex: 0 0 72px; height: 4px; border-radius: 99px; background: rgba(10, 127, 243, .15); overflow: hidden; }
.pre-up .pre-bar span { display: block; height: 100%; width: 0; background: var(--indigo); border-radius: 99px; transition: width .4s var(--ease); }
.pre-up.is-done { background: var(--mint-50); color: var(--mint-600); }
.pre-up.is-done .pre-bar { display: none; }
.send-hint { margin: 4px 0 10px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--indigo-600); animation: fade .25s var(--ease); }
.btn-transfer.is-waiting:not([disabled]) { opacity: .82; }
.ufield.is-missing { border-bottom-color: var(--red-600); animation: nudge .4s var(--ease); }
.ufield.is-missing .ufield-label { color: var(--red-600); }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
@media (prefers-reduced-motion: reduce) { .ufield.is-missing { animation: none; } }

/* Mise en page plus large (grands écrans) */
.pub-header, .pub-main { max-width: 1440px; }
@media (min-width: 1101px) {
  /* Cadre d'envoi à sa largeur d'origine : l'espace gagné va à la colonne de droite */
  .pub .layout { grid-template-columns: 400px minmax(0, 1fr); gap: clamp(56px, 5vw, 88px); }
  .pub .layout.has-logo { grid-template-columns: 400px auto minmax(0, 1fr); gap: clamp(48px, 4vw, 72px); }
  .pub .layout-single { grid-template-columns: minmax(0, 640px); }
  .pub .layout-prose { grid-template-columns: minmax(0, 920px); }
}

/* Compte prêt (écran final d'un envoi sans compte) */
.acct-ready { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 14px; border: 1px solid rgba(16,185,129,.28); border-radius: 14px; background: linear-gradient(180deg, rgba(16,185,129,.09), rgba(16,185,129,.03)); color: var(--text); text-decoration: none; text-align: left; transition: border-color .15s, background .15s; }
.acct-ready[hidden] { display: none; }
.acct-ready:hover { border-color: rgba(16,185,129,.5); background: rgba(16,185,129,.11); }
.acct-ready > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.acct-ready strong { display: block; font-size: 14.5px; }
.acct-ready small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.acct-ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #34d399, #10b981); color: #fff; }
.acct-cta { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--mint-600); white-space: nowrap; }
@media (max-width: 480px) { .acct-cta { display: none; } }
.ad-frame { display: block; width: 100%; min-height: 250px; border: 0; background: transparent; }
.sv-note { margin: -4px 0 12px; line-height: 1.45; }
