/*!
 * 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'); }
/* Police du logo « misi.link » (texte à côté du nuage) */
@font-face { font-family: 'Montserrat Alternates'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-alternates-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat Alternates'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-alternates-700-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@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%; }
.acc-plan .btn.btn-block { height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; line-height: 1.3; text-align: center; white-space: normal; }
.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); grid-auto-flow: column; grid-auto-columns: 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; }
.files li:has(> .thumb-video) { grid-template-columns: 64px minmax(0, 1fr); }
.thumb-video { position: relative; width: 64px; height: 36px; border-radius: 8px; background: #0B0F12; flex: none; }
.thumb-video .thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.22); transition: background .15s; }
.thumb-video .thumb-play svg { width: 22px; height: 22px; padding: 5px 4px 5px 6px; border-radius: 50%; background: rgba(0,0,0,.55); box-sizing: border-box; }
.thumb-video:hover .thumb-play { background: rgba(0,0,0,.05); }
.pv-poster { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0B0F12; margin: 0 0 14px; }
.pv-poster img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pv-poster-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.94); color: #0B0F12; box-shadow: 0 6px 24px rgba(0,0,0,.35); transition: transform .15s; }
.pv-poster-play svg { width: 28px; height: 28px; margin-left: 4px; }
.pv-poster:hover .pv-poster-play { transform: scale(1.07); }
.pv-poster-dur { position: absolute; right: 10px; bottom: 10px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.72); color: #fff; font: 600 12px/1.5 var(--font); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .pv-poster-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; } .pv-poster-play svg { width: 22px; height: 22px; } }
.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-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; }
.pub .pub-nav > a.nav-signup { background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px var(--border); color: var(--text); font-weight: 600; }
.pub .pub-nav > a.nav-signup:hover { background: #fff; }
.pub .pub-nav > a.nav-signup, .pub .pub-nav > a.nav-login { white-space: nowrap; }
@media (max-width: 480px) {
  /* Visiteur non connecté sur téléphone : logo seul et « Tarifs » retiré pour garder « Créer un compte » et « Connexion » sur une ligne */
  body:has(.nav-signup) .brand .brand-name { display: none; }
  .pub .pub-nav:has(.nav-signup) > a.nav-pricing { display: none !important; }
  .pub .pub-nav > a.nav-signup, .pub .pub-nav > a.nav-login { padding: 7px 11px; font-size: 13.5px; }
}
@media (min-width: 641px) and (max-width: 860px) {
  /* Tablette, visiteur non connecté : « Fonctionnalités » reste dans le pied de page */
  .pub .pub-nav:has(.nav-signup) > a.nav-help[href$="fonctionnalites"] { display: none; }
}
@media (min-width: 641px) and (max-width: 760px) {
  .pub .pub-nav:has(.nav-signup):has(.nav-news) > a.nav-help[href$="aide"] { display: none; }
}
@media (min-width: 641px) and (max-width: 900px) {
  /* Tablette, compte connecté : avatar seul (comme sur téléphone) */
  .pub .nav-account-label { display: none; }
  .pub .pub-nav > a.nav-account { padding: 4px; }
}
@media (min-width: 641px) and (max-width: 760px) {
  .pub .pub-nav:has(.nav-account) > a.nav-help[href$="fonctionnalites"] { display: none; }
}
@media (max-width: 360px) {
  .pub .brand .brand-name { display: none; }
}
.auth-switch { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.auth-switch a { font-weight: 600; }
.signup-perks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.signup-perks li { display: flex; gap: 8px; align-items: flex-start; }
.signup-perks .ic { color: var(--mint, #12B886); flex: 0 0 auto; margin-top: 2px; }
.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; }
.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-code { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); display: grid; gap: 8px; }
.acc-code-label { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.acc-code-row { display: flex; gap: 8px; }
.acc-code-row .input { flex: 1; min-width: 0; letter-spacing: .04em; text-transform: uppercase; }
.acc-code-row .input::placeholder { text-transform: none; letter-spacing: .02em; }
.acc-code.is-pending .input { border-color: var(--indigo-500, #4F46E5); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }
.acc-gift { color: var(--text-2); }
.acc-plan .alert { margin: 0; }
.btn-transfer.btn-transfer-sm { height: auto; min-height: 50px; padding: 9px 20px; font-size: 16px; line-height: 1.3; text-align: center; }
.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; }
.acc-bell.is-off { color: var(--muted); opacity: .7; }
.acc-alerts { margin: -4px 0 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2, rgba(0, 0, 0, .02)); }
.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: 30%; overflow-wrap: break-word; hyphens: auto; }
.pricing-table td { color: var(--text-2); overflow-wrap: break-word; hyphens: auto; }
.pricing-table thead th:not(:first-child), .pricing-table td { width: 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 { display: none; }
  /* Actions sur leur propre ligne : le titre garde toute la largeur, l'état reste visible */
  .acc-list li > .acc-li-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .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, .pub .pub-nav > a.nav-signup { 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; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* une ligne : le formulaire ne saute pas quand le texte change */
.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; }

/* Choix du mode d'envoi, visible (au lieu d'être caché dans « … ») */
.mode-switch { display: flex; gap: 4px; margin: 10px 0 2px; padding: 4px; border-radius: 14px; background: rgba(10, 127, 243, .07); }
.mode-opt { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.mode-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mode-opt .ic { width: 16px; height: 16px; flex: none; }
.mode-opt:hover { color: var(--text); }
.mode-opt[aria-checked="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(20, 40, 60, .08), 0 4px 12px -6px rgba(20, 40, 60, .25); }
.mode-opt[aria-checked="true"] .ic { color: var(--indigo); }
.mode-opt:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
/* Indication au-dessus du bouton : place réservée (le bouton ne bouge pas quand elle apparaît) */
.send-hint { margin: -4px 0 -4px; min-height: 1.2em; line-height: 1.2; }
.send-hint.is-empty { visibility: hidden; }
/* Bandeau cookies plus discret sur téléphone (ne couvre plus le bouton Transférer) */
@media (max-width: 600px) {
  .cookie-bar { left: 8px; right: 8px; bottom: 8px; gap: 10px; padding: 10px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.4; }
  .cookie-bar .cb-ic { display: none; }
}

/* Options « … » en tiroir (grand écran) : le volet est derrière la carte et glisse vers la droite,
   comme s'il sortait de dessous ; le formulaire reste visible */
.up-wrap { position: relative; min-width: 0; display: flex; flex-direction: column; }
.pub .up-wrap { z-index: 4; }
.up-wrap > .uploader { flex: 1 1 auto; }
.up-wrap > .more-panel {
  position: absolute; top: 18px; bottom: 18px; left: calc(100% - 48px); z-index: 1;
  width: 340px; padding: 18px 20px 14px 68px; overflow-y: auto; overscroll-behavior: contain;
  background: #f4f7fb; border: 1px solid rgba(27, 38, 46, .07); border-radius: 0 24px 24px 0;
  box-shadow: 0 30px 60px -24px rgba(30, 50, 70, .35), 0 8px 20px -10px rgba(27, 38, 46, .15);
  transform: translateX(-292px); visibility: hidden;
  transition: transform .38s cubic-bezier(.22, .8, .24, 1), visibility 0s linear .38s;
  animation: none;
}
.up-wrap > .more-panel.is-in { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.22, .8, .24, 1), visibility 0s; }
.up-wrap > .more-panel .more-head strong { font-size: 17px; }
@media (prefers-reduced-motion: reduce) { .up-wrap > .more-panel, .up-wrap > .more-panel.is-in { transition: none; } }

/* Page de téléchargement : titre du transfert, aperçu seul, visionneuse */
.dl-title { overflow-wrap: anywhere; }
.chip-view { background: rgba(10, 127, 243, .1); color: var(--indigo-600); }
.view-note { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(10, 127, 243, .07); color: var(--text-2); font-size: 14px; line-height: 1.45; }
.view-note .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--indigo); }
.view-note-sender { margin-bottom: 12px; font-size: 13px; }
.pv-box { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: rgba(8, 14, 22, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .2s var(--ease); }
.pv-box[hidden] { display: none; }
.pv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; color: #fff; }
.pv-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.pv-x { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: #fff; color: #0B0F12; font: 600 14px/1 var(--font); cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.35); transition: transform .15s; }
.pv-x svg { width: 18px; height: 18px; stroke-width: 2.4; }
.pv-x:hover { transform: scale(1.04); }
.pv-x:focus-visible { outline: 3px solid #4DA3FF; outline-offset: 2px; }
.pv-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 16px 16px; }
.pv-stage img, .pv-stage video { max-width: 100%; max-height: 100%; border-radius: 10px; background: #000; -webkit-user-drag: none; user-select: none; }
.pv-stage audio { width: min(560px, 100%); }
.pv-stage iframe { width: min(1000px, 100%); height: 100%; border: 0; border-radius: 10px; background: #fff; }
html.pv-open { overflow: hidden; }

/* Options supplémentaires du volet « … » */
.slug-field { display: flex; align-items: center; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; }
.slug-field:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(10, 127, 243, .15); }
.slug-pre { flex: none; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px 0 12px; font-size: 14px; color: var(--muted); }
.slug-field .input { flex: 1; min-width: 0; height: 42px; border: 0; box-shadow: none; padding-left: 0; background: transparent; }
.slug-field .input:focus { box-shadow: none; }
.pro-tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 8px 1px 6px; border-radius: 999px; background: linear-gradient(110deg, #7c3aed, #a855f7); color: #fff !important; font-size: 11px; font-weight: 700; text-decoration: none; vertical-align: 1px; }
.pro-tag .ic { width: 11px; height: 11px; }
.more-pro.is-locked .slug-field, .more-pro.is-locked > .input { opacity: .55; background: rgba(27, 38, 46, .03); }
.more-pro.is-locked .input { cursor: not-allowed; }
.more-row.is-off { opacity: .5; pointer-events: none; }

/* En-tête : « Mettre à niveau » et menu du compte avec la consommation */
.pub .pub-nav > a.nav-upgrade { display: inline-flex; align-items: center; gap: 6px; color: #7c3aed; font-weight: 600; }
.pub .pub-nav > a.nav-upgrade:hover { color: #6d28d9; background: rgba(124, 58, 237, .08); }
.nav-upgrade .ic, .acct-up .ic { width: 15px; height: 15px; }
.acct-menu { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 10px 0 5px; 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: inherit; cursor: pointer; box-shadow: 0 1px 3px rgba(27, 38, 46, .08); transition: background .15s, box-shadow .15s; }
.acct-btn:hover, .acct-menu.is-open .acct-btn { background: #fff; box-shadow: 0 4px 14px -6px rgba(27, 38, 46, .3); }
.acct-btn .nav-avatar { width: 30px; height: 30px; font-size: 13px; }
.acct-id { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; min-width: 0; }
.acct-mail { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.acct-id small { font-size: 11.5px; color: var(--muted); }
.acct-btn .lang-caret { width: 15px; height: 15px; color: var(--muted); }
.acct-menu.is-open .lang-caret { transform: rotate(180deg); }
.acct-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; width: 340px; max-width: calc(100vw - 24px); padding: 8px; border-radius: 20px; background: rgba(255, 255, 255, .97); -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; text-align: left; }
.acct-pop[hidden] { display: none; }
.acct-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; border-bottom: 1px solid rgba(27, 38, 46, .08); }
.acct-head .nav-avatar { width: 38px; height: 38px; font-size: 15px; flex: none; }
.acct-head div { min-width: 0; display: flex; flex-direction: column; }
.acct-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; color: var(--text); }
.acct-head span { font-size: 12.5px; color: var(--muted); }
.acct-usage { display: flex; flex-direction: column; gap: 12px; padding: 14px 10px; border-bottom: 1px solid rgba(27, 38, 46, .08); }
.acct-usage .usage-row { font-size: 13px; margin-bottom: 6px; }
.acct-usage .usage-bar { height: 6px; }
.acct-limits { margin: 0; font-size: 12.5px; color: var(--muted); }
.acct-up { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #7c3aed !important; text-decoration: none; }
.acct-up:hover { color: #6d28d9 !important; }
.acct-links { display: flex; flex-direction: column; padding: 6px 0 2px; }
.acct-links a, .acct-links button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text) !important; font: inherit; font-size: 14.5px; text-align: left; text-decoration: none; cursor: pointer; }
.acct-links a:hover, .acct-links button:hover { background: rgba(27, 38, 46, .05); }
.acct-links .ic { width: 17px; height: 17px; color: var(--muted); }
.acct-links form { margin: 0; }
@media (max-width: 640px) {
  .acct-btn { padding: 0 6px 0 4px; height: 40px; }
  .acct-pop { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
  .pub .pub-nav > a.nav-upgrade span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .acct-pop { animation: none; } }

/* Volet des options compact : tout tient dans la hauteur de la carte */
.more-compact { gap: 0; }
.more-compact .more-head { margin-bottom: 2px; }
.mc-sec { display: flex; flex-direction: column; gap: 7px; padding: 8px 0; border-top: 1px solid rgba(27, 38, 46, .08); }
.mc-sec:empty { display: none; }
.mc-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mc-label { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.25; }
.more-compact .input { height: 36px; padding: 0 11px; font-size: 14px; border-radius: 10px; }
.mc-pw { position: relative; }
.mc-pw .input { width: 100%; padding-right: 66px; }
.mc-ic { position: absolute; top: 4px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.mc-ic:hover { background: rgba(27, 38, 46, .06); color: var(--text); }
.mc-ic .ic { width: 16px; height: 16px; }
#pw-toggle.mc-ic { right: 34px; }
#pw-gen.mc-ic { right: 4px; }
.mc-toggles { gap: 2px; }
.mc-row { display: flex; align-items: center; justify-content: space-between; min-height: 30px; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--text); padding: 0; border: 0; }
.mc-row > span:first-child { min-width: 0; line-height: 1.25; }
.mc-row .switch { width: 34px; height: 20px; }
.mc-row .switch span::after { width: 14px; height: 14px; }
.mc-row .switch input:checked + span::after { transform: translateX(14px); }
.mc-hint { display: block; font-size: 12px; line-height: 1.35; color: var(--muted); }
.mc-hint[hidden] { display: none; }
.mc-hint.is-bad { color: #B42318; }
.mc-hint.is-ok { color: var(--mint-600); }
.more-compact .slug-field { height: 36px; border-radius: 10px; }
.more-compact .slug-field .input { height: 34px; }
.more-compact .slug-pre { font-size: 13px; padding-left: 11px; }
.mc-sec.is-locked .slug-field, .mc-sec.is-locked .input { opacity: .55; background: rgba(27, 38, 46, .03); cursor: not-allowed; }
.up-wrap > .more-panel.more-compact { padding-top: 14px; padding-bottom: 10px; }
.pv-stage { position: relative; }
.pv-wm { position: absolute; inset: 0 16px 16px; pointer-events: none; background-repeat: repeat; border-radius: 10px; }
.mc-wm[hidden] { display: none; }
.mc-wm.is-locked .input { opacity: .55; background: rgba(27, 38, 46, .03); cursor: not-allowed; }

/* Profil du compte */
.prof-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.prof-avatar { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.prof-pic { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--grad); color: #fff; font-size: 38px; font-weight: 700; box-shadow: 0 8px 20px -10px rgba(10, 127, 243, .6); }
.prof-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prof-pic.is-busy { opacity: .5; }
.prof-pic-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.prof-pic-actions .btn { cursor: pointer; }
.prof-form { gap: 8px; }
.prof-h3 { margin: 10px 0 0; font-size: 15px; font-weight: 700; }
.prof-help { margin: 0 0 4px; }
.prof-email { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(27, 38, 46, .08); }
.prof-email-cur { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
.prof-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.prof-inline .input { flex: 1 1 220px; min-width: 0; }
.prof-inline .code-input-sm { flex: 0 0 140px; letter-spacing: .2em; text-align: center; }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.nav-avatar { overflow: hidden; }
.login-mode { margin: 0 0 14px; }
.login-pw-help { margin: 4px 0 0; }
@media (max-width: 720px) { .prof-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .acct-btn .acct-id { display: none; }
  .acct-btn .lang-caret { display: none; }
  .acct-btn { padding: 0 4px; }
}

/* Accès des destinataires : liste déroulante expliquée */
.acc-btn { display: flex; align-items: center; gap: 9px; width: 100%; height: 40px; padding: 0 10px 0 8px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.acc-btn:hover { border-color: rgba(10, 127, 243, .45); }
.acc-btn[aria-expanded="true"], .acc-btn:focus-visible { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(10, 127, 243, .15); outline: 0; }
.acc-btn-ic { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(10, 127, 243, .1); color: var(--indigo); }
.acc-btn-ic .ic { width: 15px; height: 15px; }
.acc-cur { font-size: 13.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-chev { flex: none; width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.acc-btn[aria-expanded="true"] .acc-chev { transform: rotate(180deg); }
.acc-pop { position: fixed; z-index: 300; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .98); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(27, 38, 46, .08); box-shadow: 0 24px 50px -18px rgba(20, 40, 60, .45), 0 6px 16px -8px rgba(20, 40, 60, .2); animation: lang-in .14s ease-out; }
.acc-pop[hidden] { display: none; }
.acc-opt { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 11px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.acc-opt:hover, .acc-opt:focus-visible { background: rgba(10, 127, 243, .06); outline: 0; }
.acc-opt[aria-selected="true"] { background: rgba(10, 127, 243, .09); }
.acc-opt-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(27, 38, 46, .05); color: var(--text-2); }
.acc-opt[aria-selected="true"] .acc-opt-ic { background: var(--indigo); color: #fff; }
.acc-opt-ic .ic { width: 16px; height: 16px; }
.acc-opt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-opt-txt strong { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; }
.acc-opt-txt strong .pro-tag { margin-left: 0; }
.acc-opt-txt small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.acc-opt-check { flex: none; width: 18px; color: var(--indigo); visibility: hidden; padding-top: 6px; }
.acc-opt-check .ic { width: 16px; height: 16px; }
.acc-opt[aria-selected="true"] .acc-opt-check { visibility: visible; }
.acc-opt.is-locked { cursor: default; }
.acc-opt.is-locked .acc-opt-ic, .acc-opt.is-locked strong { opacity: .6; }
.acc-opt.is-locked:hover { background: transparent; }
.acc-pop-up { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 4px 2px; padding: 9px; border-radius: 10px; background: rgba(124, 58, 237, .08); color: #7c3aed !important; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.acc-pop-up:hover { background: rgba(124, 58, 237, .14); }

/* Mon compte : une rubrique à la fois, navigation à gauche (en haut sur téléphone) */
.acc-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: start; }
.acc-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.acc-tab[hidden], .acc-main > section[hidden] { display: none !important; }
.acc-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 18px; background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 10px 30px -18px rgba(20, 40, 60, .35); }
.acc-nav[hidden] { display: none; }
.acc-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; color: var(--text-2) !important; font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.acc-nav a .ic { width: 17px; height: 17px; flex: none; color: var(--muted); }
.acc-nav a span { overflow: hidden; text-overflow: ellipsis; }
.acc-nav a:hover { background: rgba(27, 38, 46, .05); color: var(--text) !important; }
.acc-nav a.is-active { background: #fff; color: var(--text) !important; font-weight: 650; box-shadow: 0 1px 2px rgba(20, 40, 60, .08), 0 4px 12px -6px rgba(20, 40, 60, .25); }
.acc-nav a.is-active .ic { color: var(--indigo); }
html.acc-tabs .acc-tab .acc-grid { gap: 14px; }
html.acc-tabs .acc .card { padding: 18px; }
html.acc-tabs .acc-top { padding-bottom: 2px; }
html.acc-tabs .acc-title { font-size: 26px; }
@media (max-width: 899px) {
  .acc-shell { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .acc-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 6px; border-radius: 14px; }
  .acc-nav::-webkit-scrollbar { display: none; }
  .acc-nav a { flex: none; padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 720px) { html.acc-tabs .acc-tab .acc-grid { grid-template-columns: minmax(0, 1fr); } }
/* Mon compte : la page commence en haut (pas centrée verticalement : la hauteur change d'une rubrique à l'autre) */
.pub-main:has(.acc-shell) { justify-content: flex-start; padding-top: 28px; }
/* Mon compte : nouvelle date d'expiration */
.acc-exp-form { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 4px 0 2px; padding: 10px 12px; border-radius: 12px; background: rgba(10, 127, 243, .06); }
.acc-exp-form[hidden] { display: none; }
.acc-exp-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.acc-exp-form .input { height: 38px; width: 180px; }
.acc-exp-form small { flex-basis: 100%; }
/* Envoi : tout de suite ou plus tard */
.when-switch { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: rgba(27, 38, 46, .05); }
.when-opt { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.when-opt .ic { width: 14px; height: 14px; flex: none; }
.when-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.when-opt[aria-checked="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(20, 40, 60, .08), 0 3px 10px -6px rgba(20, 40, 60, .3); }
.when-opt[aria-checked="true"] .ic { color: var(--indigo); }
.when-opt:disabled { cursor: not-allowed; opacity: .55; }
#opt-send-at[hidden] { display: none; }

/* ---------- Administration › Statistiques ---------- */
.st-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: -4px 0 16px; }
.st-period { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; width: 100%; }
.st-period .seg { flex: 0 1 auto; }
.st-custom { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.st-custom .input { width: 148px; height: 34px; }
.st-custom span { color: var(--faint); }
.st-custom .btn.is-active { background: var(--indigo-50); color: var(--indigo-600); }
.st-live { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--mint-50); color: var(--mint-600); font-size: 13px; white-space: nowrap; }
.st-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); animation: st-pulse 2s infinite; }
.st-live b { font-weight: 650; color: var(--text); }
@keyframes st-pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .45); } 70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
@media (prefers-reduced-motion: reduce) { .st-live i { animation: none; } }
.st-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 16px; }
.st-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--indigo-50); color: var(--indigo-600); font-size: 13px; text-decoration: none !important; border: 1px solid var(--indigo-100); }
.st-chip span { color: var(--muted); }
.st-chip strong { font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-chip .ic { width: 14px; height: 14px; opacity: .7; }
.st-chip:hover { border-color: var(--indigo); }
.st-chip-clear { background: transparent; border-color: var(--border); color: var(--muted); padding: 0 12px; }
.st-kpis { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.st-kpis .kpi { padding: 14px 14px 12px; min-width: 0; }
.st-kpis .kpi-label { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-kpis .kpi-value { font-size: 23px; white-space: nowrap; }
.st-tr { font-size: 12px; font-weight: 600; color: var(--faint); }
.st-tr.is-up { color: var(--mint-600); }
.st-tr.is-down { color: var(--red-600); }
.st-chart-wrap { position: relative; }
.st-chart .st-pv { fill: var(--mint); opacity: .38; }
.st-chart .st-dot { fill: var(--surface); stroke: var(--indigo); stroke-width: 1.8; }
.st-chart .st-hit { fill: transparent; cursor: crosshair; }
.st-chart .st-hit:hover { fill: rgba(99, 102, 241, .06); }
.st-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 168px; padding: 10px 12px; border-radius: 10px; background: #0F172A; color: #fff; font-size: 12.5px; box-shadow: 0 10px 30px -10px rgba(15, 23, 42, .5); }
.st-tip b { display: block; margin-bottom: 6px; font-weight: 600; }
.st-tip span { display: flex; align-items: center; gap: 7px; line-height: 1.7; color: #CBD5E1; }
.st-tip em { margin-left: auto; font-style: normal; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.st-tip i { width: 8px; height: 8px; border-radius: 2px; }
.st-tip i.a { background: var(--indigo); }
.st-tip i.b { background: var(--mint); }
.st-tip i.c { background: #94A3B8; }
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; margin-top: 20px; }
.st-grid > .panel { margin: 0; min-width: 0; }
.st-panel .panel-head { flex-wrap: wrap; }
#video-jobs .panel-head, #video-missing .panel-head { flex-wrap: wrap; }
#video-jobs .panel-head .actions, #video-missing .panel-head .actions { margin-left: 0; }
@media (min-width: 641px) { #video-jobs .panel-head .actions, #video-missing .panel-head .actions { margin-left: auto; } }
.st-tabs { margin-left: auto; display: inline-flex; padding: 3px; background: #EEF2F4; border-radius: 9px; gap: 2px; }
.st-tabs button { border: 0; background: transparent; padding: 4px 10px; border-radius: 7px; font: 500 12.5px var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; }
.st-tabs button:hover { color: var(--text); }
.st-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.st-pane { padding: 12px 16px 14px; }
.st-list-head { display: flex; justify-content: space-between; padding: 0 8px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.st-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.st-list li > a, .st-list li > div { position: relative; display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 8px; border-radius: 7px; color: var(--text); text-decoration: none !important; font-size: 13.5px; overflow: hidden; }
.st-list li > a:hover { background: var(--slate-50, #F8FAFC); }
.st-list li > a:hover .st-name { color: var(--indigo-600); }
.st-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--indigo-50); border-radius: 7px; z-index: 0; }
.st-bar-mint { background: var(--mint-50); }
.st-name, .st-v, .st-v2 { position: relative; z-index: 1; }
.st-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-name small { color: var(--faint); margin-left: 4px; font-size: 12px; }
.st-flag { margin-right: 7px; }
.st-v { min-width: 44px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-v2 { color: var(--faint); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-list-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.st-show-more { border: 0; background: none; padding: 0; color: var(--indigo-600); font: 500 13px var(--font); cursor: pointer; }
.st-csv { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--muted); font-size: 12.5px; text-decoration: none !important; }
.st-csv:hover { color: var(--indigo-600); }
.legend .st-csv { margin-left: 6px; }
.st-empty { padding: 22px 8px; text-align: center; color: var(--faint); font-size: 13.5px; }
.st-hint { margin: 12px 8px 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.st-hint code { font-size: 11.5px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.st-heat { display: grid; gap: 3px; font-size: 11px; color: var(--faint); }
.st-heat-row { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.st-heat-row i { aspect-ratio: 1; border-radius: 3px; background: rgba(99, 102, 241, var(--a)); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04); }
.st-heat-hours span { text-align: left; }
.st-live-n { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.st-live-n b { font-size: 26px; color: var(--text); font-weight: 650; margin-right: 4px; }
.st-live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.st-live-list li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px dashed var(--border); }
.st-biz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-biz div { padding: 12px; border-radius: 10px; background: var(--surface-2); }
.st-biz b { display: block; font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.st-biz span { font-size: 12.5px; color: var(--muted); }
.st-settings { display: grid; gap: 14px; max-width: 760px; }
.switch-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch-row > span:last-child { display: grid; gap: 2px; font-size: 14px; }
.switch-row small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.st-ret { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.st-ret .input { width: 76px; }
.st-privacy { margin: 18px 0 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; line-height: 1.55; max-width: 900px; }
.st-privacy p { margin: 0 0 8px; }
.st-privacy p:last-child { margin: 0; }
.st-privacy .ic { color: var(--mint-600); vertical-align: -2px; }
.st-danger { color: var(--red-600) !important; }
@media (max-width: 1280px) { .st-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .st-grid { grid-template-columns: minmax(0, 1fr); } .st-custom { margin-left: 0; } }
@media (max-width: 640px) {
  .st-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-tabs { margin-left: 0; max-width: 100%; overflow-x: auto; }
  .st-biz { grid-template-columns: minmax(0, 1fr); }
  .st-heat-row { grid-template-columns: 28px repeat(24, minmax(0, 1fr)); gap: 2px; }
  .st-custom .input { width: 128px; }
}

/* ---------- Page « Qui suis-je ? » ---------- */
.me { width: 100%; max-width: 980px; margin: 0 auto; padding: 8px 0 40px; }
.me-hero { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: center; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-sm); }
.me-photo img { display: block; width: 280px; height: 280px; object-fit: cover; border-radius: 22px; box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .45); }
.me-name { margin: 10px 0 4px; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.035em; line-height: 1.1; }
.me-role { margin: 0 0 16px; color: var(--indigo-600); font-weight: 600; font-size: 15.5px; }
.me-p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.65; color: var(--text-2, var(--text)); }
.me-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.me-ctas-end { justify-content: center; margin-top: 26px; }
.me-why { margin-top: 28px; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-sm); }
.me-why h2 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.025em; }
.me-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0 6px; }
.me-point { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--surface-2); }
.me-point h3 { margin: 2px 0 4px; font-size: 15px; }
.me-point p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.me-indie { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); text-align: center; }
@media (max-width: 760px) {
  .me-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px; text-align: center; }
  .me-photo { justify-self: center; }
  .me-photo img { width: 200px; height: 200px; }
  .me-ctas { justify-content: center; }
  .me-why { padding: 22px; }
  .me-points { grid-template-columns: minmax(0, 1fr); }
}
.me-point .feat-ic { flex: 0 0 auto; }

/* ---------- Administration › Base de données ---------- */
.db-todo { display: grid; gap: 14px; }
.db-todo h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 14.5px; }
.db-todo p, .db-todo ul { margin: 0; font-size: 13.5px; color: var(--muted); }
.db-todo ul { padding-left: 20px; }
.db-table td { vertical-align: top; font-size: 13.5px; }
.db-table code { font-size: 12.5px; }
.db-table .db-group td { background: var(--surface-2); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); padding-top: 8px; padding-bottom: 8px; }
.db-table tr.is-dead td { color: var(--amber-700); }
.mc-hint.mc-warn { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; padding: 7px 9px; border-radius: 8px; background: var(--amber-50); color: var(--amber-700); font-size: 12px; }
.mc-hint.mc-warn[hidden] { display: none; }
.mc-hint.mc-warn .ic { flex: 0 0 auto; margin-top: 1px; }

/* Validation par les destinataires (option « Demander une validation ») */
.rev { margin: 16px 0 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); scroll-margin-top: 80px; }
.rev-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.rev-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
.rev-head strong { font-size: 14.5px; color: var(--text); }
.rev-head span { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.rev-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); }
.rev-ic .ic { width: 18px; height: 18px; }
.rev-head .rev-status { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rev-status[hidden] { display: none; }
.rev-status.is-pending { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.rev-status.is-approved { background: var(--mint-50); color: #0B7A55; }
.rev-status.is-changes { background: var(--amber-50); color: var(--amber-700); }
.rev-note { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; font-size: 12.5px; color: var(--text-2); }
.rev-note .ic { flex: 0 0 auto; margin-top: 2px; }
.rev-mine { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 12px 0 0; padding: 9px 12px; border-radius: 10px; font-size: 13px; }
.rev-mine[hidden] { display: none; }
.rev-mine .rev-body { flex-basis: 100%; }
.rev-mine.is-approved { background: var(--mint-50); color: #0B7A55; }
.rev-mine.is-changes { background: var(--amber-50); color: var(--amber-700); }
.rev-decide { display: grid; gap: 8px; margin: 12px 0 0; }
.rev-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.rev-btns .btn { justify-content: center; font-weight: 600; white-space: normal; height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; line-height: 1.25; text-align: center; }
.rev-decide .rev-name { width: 100%; min-width: 0; box-sizing: border-box; }
.rev-ok { background: var(--mint-50); color: #0B7A55; border: 1px solid #B9EBD6; }
.rev-ok:hover, .rev-ok.is-on { background: var(--mint-600); border-color: var(--mint-600); color: #fff; }
.rev-ko { background: var(--amber-50); color: var(--amber-700); border: 1px solid #F8DFA6; }
.rev-ko:hover, .rev-ko.is-on { background: var(--amber-700); border-color: var(--amber-700); color: #fff; }
.rev-btns .btn:disabled { opacity: .55; cursor: not-allowed; }
.rev-msg[hidden] { display: none; }
.rev-msg { display: grid; gap: 8px; }
.rev-msg-foot { display: flex; justify-content: flex-end; gap: 6px; }
.rev-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin: 12px 0 0; }
.rev-compose[hidden] { display: none; }
.rev-compose textarea, .rev-msg textarea, .pv-side textarea { resize: vertical; min-height: 44px; font: inherit; font-size: 13.5px; padding: 9px 11px; height: auto; }
.rev-name.is-invalid, .pv-side .is-invalid, .rev-reply-form .is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-50); }
.rev-out { margin: 10px 0 0; font-size: 13px; }
.rev-out.is-ok { color: #0B7A55; }
.rev-out.is-bad { color: var(--red-600); }
.rev-list { margin: 12px 0 0; display: grid; gap: 12px; }
.rev-empty { margin: 0; font-size: 13px; color: var(--muted); }
.rev-group { display: grid; gap: 6px; }
.rev-group-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.rev-group-head > span { margin-left: auto; color: var(--faint); font-weight: 500; }
.rev-group-head .linklike { font-weight: 600; overflow-wrap: anywhere; text-align: left; }
.rev-item { padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 13.5px; transition: background .3s; }
.rev-item.is-resolved { opacity: .62; }
.rev-item.is-sender { border-color: var(--indigo-100); }
.rev-item.is-flash, .rev-reply.is-flash { background: var(--indigo-50); }
.rev-item-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 3px; }
.rev-item-top strong { font-size: 13px; overflow-wrap: anywhere; }
.rev-tag { padding: 1px 7px; border-radius: 999px; background: var(--indigo-50); color: var(--indigo); font-size: 11px; font-weight: 600; }
.rev-when { color: var(--faint); font-size: 12px; }
.rev-done { display: inline-flex; align-items: center; gap: 3px; color: #0B7A55; font-size: 12px; font-weight: 600; }
.rev-body { color: var(--text); line-height: 1.5; overflow-wrap: anywhere; }
.rev-loc { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border: 1px solid var(--indigo-100); border-radius: 999px; background: var(--indigo-50); color: var(--indigo); font: 600 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; cursor: pointer; }
.rev-loc.is-static { cursor: default; font-family: inherit; }
.rev-loc.is-on { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.rev-reply { margin: 8px 0 0 10px; padding: 7px 10px; border-left: 2px solid var(--border-2); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.rev-reply.is-sender { border-left-color: var(--indigo); }
.rev-acts { display: flex; gap: 14px; margin: 5px 0 0; font-size: 12.5px; }
.rev-acts .linklike.is-danger { color: var(--red-600); }
.rev-reply-form { display: grid; gap: 6px; margin: 8px 0 0; }
.rev-decisions { display: grid; gap: 6px; margin: 12px 0 0; }
.rev-decisions:empty { display: none; }
.rev-dec { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 10px; font-size: 13px; }
.rev-dec .ic { margin-top: 2px; flex: 0 0 auto; }
.rev-dec.is-approved { background: var(--mint-50); color: #0B7A55; }
.rev-dec.is-changes { background: var(--amber-50); color: var(--amber-700); }
.rev-dec .rev-body { margin-top: 4px; color: var(--text); }
.rev-open { margin: 0; font-size: 12.5px; color: var(--amber-700); }
.rev-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.rev-tools-sp { flex: 1; }
.rev-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.rev-edl { position: relative; }
.rev-edl summary { list-style: none; cursor: pointer; }
.rev-edl summary::-webkit-details-marker { display: none; }
.rev-edl-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 12.5px; }
.rev-edl-form select { width: auto; }
.rev-edl-form small { flex-basis: 100%; }
.rev .linklike, .pv-side .linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--indigo); cursor: pointer; }
.rev .linklike:hover, .pv-side .linklike:hover { text-decoration: underline; text-underline-offset: 2px; }
/* Visionneuse : commentaires à côté de l'aperçu */
.pv-main { flex: 1; min-height: 0; display: flex; }
.pv-main > .pv-stage { flex: 1; min-width: 0; }
.pv-side { width: 340px; flex: 0 0 340px; display: flex; flex-direction: column; min-height: 0; margin: 0 16px 16px 0; border-radius: 12px; background: var(--surface); color: var(--text); overflow: hidden; }
.pv-side-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.pv-side-head span { color: var(--faint); }
.pv-side-list { flex: 1; min-height: 60px; overflow-y: auto; padding: 10px; display: grid; gap: 8px; align-content: start; }
.pv-side-compose { display: grid; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: var(--surface-2); }
.pv-side-compose .btn { justify-content: center; }
.pv-at { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pv-at .btn.is-on { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.pv-at input { width: 140px; }
.pv-ticks { position: relative; height: 18px; margin: 8px 14px 0; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); }
.pv-ticks:empty { display: none; } /* frise des commentaires : seulement quand il y en a */
.pv-tick { position: absolute; top: 2px; bottom: 2px; width: 4px; margin-left: -2px; padding: 0; border: 0; border-radius: 2px; background: var(--amber); cursor: pointer; }
.pv-tick.is-resolved { background: var(--mint); }
.pv-pins { position: absolute; inset: 0; pointer-events: none; }
.pv-pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--amber); color: #fff; font: 700 11.5px/1 system-ui, sans-serif; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); pointer-events: auto; cursor: pointer; }
.pv-pin.is-sender { background: var(--indigo); }
.pv-pin.is-resolved { background: var(--mint-600); }
.pv-pin.is-draft { background: var(--red); pointer-events: none; }
.pv-pin.is-flash { animation: pv-flash .9s ease 2; }
@keyframes pv-flash { 50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, .45); } }
.pv-box.is-pinning .pv-stage img { cursor: crosshair; }
@media (max-width: 860px) {
  .pv-box.has-review .pv-main { flex-direction: column; }
  .pv-box.has-review .pv-side { width: auto; flex: 0 0 auto; max-height: 46vh; margin: 0 12px 12px; }
  .pv-box.has-review .pv-main > .pv-stage { min-height: 38vh; }
}
@media (max-width: 640px) {
  .rev-head .rev-status { margin-left: 46px; }
  .rev-btns { grid-template-columns: minmax(0, 1fr); }
  .rev-compose { grid-template-columns: 1fr; }
}
.acc-rev { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; text-decoration: none; }
.acc-rev.is-pending { color: var(--text-2); }
.acc-rev.is-approved { color: #0B7A55; }
.acc-rev.is-changes { color: var(--amber-700); }
.acc-rev:hover { text-decoration: underline; text-underline-offset: 2px; }
/* Certificat de livraison : page de vérification */
.cert { max-width: 760px; margin: 0 auto; padding: 0; overflow: hidden; }
.cert-head { padding: 26px 28px 20px; border-bottom: 1px solid var(--border); }
.cert-head .h1 { margin: 10px 0 4px; }
.cert-head .sub { margin: 0; }
.cert-ok { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--mint-50); color: #0B7A55; font-weight: 650; font-size: 13.5px; }
.cert-code { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.cert code, .cert-hash code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
.cert-body { padding: 8px 28px 26px; }
.cert-body h2 { margin: 22px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--indigo); }
.cert-dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; }
.cert-dl dt { color: var(--muted); }
.cert-dl dd { margin: 0; overflow-wrap: anywhere; }
.cert-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cert-files li { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.cert-file { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.cert-file strong { overflow-wrap: anywhere; font-weight: 600; }
.cert-file span { color: var(--muted); white-space: nowrap; font-size: 12.5px; }
.cert-hash { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; margin-top: 4px; font-size: 12px; }
.cert-hash span { color: var(--muted); }
.cert-dls { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; }
.cert-dls li { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.cert-dls li:last-child { border-bottom: 0; }
.cert-dls li span:last-child { overflow-wrap: anywhere; }
.cert-note { display: flex; gap: 6px; align-items: flex-start; margin: 22px 0 0; font-size: 12.5px; color: var(--muted); }
.cert-note .ic { flex: 0 0 auto; margin-top: 2px; }
@media (max-width: 640px) {
  .cert-head, .cert-body { padding-left: 18px; padding-right: 18px; }
  .cert-dl { grid-template-columns: 1fr; gap: 2px; }
  .cert-dl dd { margin-bottom: 8px; }
  .cert-dls li { grid-template-columns: 1fr; gap: 2px; }
}
.cert-link { margin: 12px 0 0; text-align: center; font-size: 13px; }
.cert-link a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--indigo); }
.acc-review .acc-section-head { align-items: center; }
.acc-review .rev-status { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
/* Bouton d'aperçu (lecture vidéo/son, PDF) : vert plein, bien distinct du bouton de téléchargement */
.files a.icon-btn[data-pv] { background: var(--mint); border-color: var(--mint); color: #fff; box-shadow: 0 2px 6px -2px rgba(16, 185, 129, .55); transition: background .15s, transform .15s, box-shadow .15s; }
.files a.icon-btn[data-pv]:hover, .files a.icon-btn[data-pv]:focus-visible { background: var(--mint-600); border-color: var(--mint-600); color: #fff; transform: scale(1.08); box-shadow: 0 4px 12px -3px rgba(5, 150, 105, .6); }
.files a.icon-btn[data-pv]:active { transform: scale(.96); }

/* Tableau des offres sur téléphone : défilement horizontal plutôt que des mots coupés en plein milieu */
.pricing-table-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { .pricing-table { min-width: 520px; font-size: 14px; } }
/* Carte d'envoi un peu plus compacte sur ordinateur (cadre et textes réduits de 10 %, proportions gardées) */
@media (min-width: 1101px) {
  #uploader { zoom: .9; }
  .pub .layout:has(#uploader) { grid-template-columns: 360px minmax(0, 1fr); }
  .pub .layout.has-logo:has(#uploader) { grid-template-columns: 360px auto minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ */
/* Actualité (blog)                                                   */
/* ------------------------------------------------------------------ */
.news { width: 100%; max-width: 1080px; margin: 0 auto; padding: 8px 0 40px; }
.news-hero { padding-bottom: 26px; }
.news-lang { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--text-2); font-size: 13px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; color: var(--text) !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.news-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(27, 38, 46, .12); }
.news-card-img { display: grid; place-items: center; aspect-ratio: 1200 / 630; background: var(--surface-2); color: var(--faint); overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.news-meta { font-size: 12.5px; color: var(--muted); }
.news-card-title { font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.news-card-excerpt { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.news-more { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--indigo); }
.news-card.is-lead { grid-column: 1 / -1; flex-direction: row; }
.news-card.is-lead .news-card-img { width: 56%; flex: 0 0 56%; aspect-ratio: 1200 / 630; }
.news-card.is-lead .news-card-body { padding: 26px 28px; justify-content: center; }
.news-card.is-lead .news-card-title { font-size: 24px; }
.news-pager { justify-content: center; margin-top: 22px; }
.news-rss { text-align: center; margin: 22px 0 0; font-size: 13px; }
.news-rss a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.news-post { width: 100%; max-width: 760px; margin: 0 auto; padding: 8px 0 40px; }
.news-post .news-lang { margin-top: 14px; }
.news-post-head { margin: 18px 0 20px; }
.news-post-title { font-size: clamp(28px, 4.6vw, 44px); font-weight: 760; letter-spacing: -.035em; line-height: 1.1; margin: 8px 0 12px; color: var(--text); }
.news-post-lead { font-size: 18px; line-height: 1.55; color: var(--text-2); margin: 0; }
.news-cover { margin: 0 0 26px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.news-cover img { display: block; width: 100%; height: auto; }
.news-body { padding: 30px 34px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); font-size: 16.5px; line-height: 1.7; color: var(--text); }
.news-body > :first-child { margin-top: 0; }
.news-body h2 { font-size: 24px; letter-spacing: -.02em; line-height: 1.25; margin: 34px 0 10px; }
.news-body h3 { font-size: 19px; margin: 26px 0 8px; }
.news-body p, .news-body ul, .news-body ol { margin: 0 0 16px; }
.news-body li { margin: 4px 0; }
.news-body blockquote { margin: 0 0 16px; padding: 12px 18px; border-left: 3px solid var(--indigo); background: var(--indigo-50); border-radius: 0 12px 12px 0; color: var(--text-2); }
.news-body code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }
.news-fig { margin: 24px 0; }
.news-fig img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); background: #fff; }
.news-fig figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); text-align: center; }
.news-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 0; padding: 20px 24px; border-radius: var(--r-lg); background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.news-cta > div { display: grid; gap: 4px; }
.news-cta strong { font-size: 18px; }
.news-cta span { opacity: .9; font-size: 14.5px; }
.news-cta .btn { background: #fff; color: var(--text) !important; border-color: #fff; flex: 0 0 auto; }
.news-related { margin-top: 34px; }
.news-related h2 { font-size: 20px; margin: 0 0 14px; }
.news-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .news-grid, .news-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card.is-lead { flex-direction: column; }
  .news-card.is-lead .news-card-img { width: 100%; flex: none; }
  .news-card.is-lead .news-card-body { padding: 16px 18px 18px; }
}
@media (max-width: 640px) {
  .news-grid, .news-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .news-body { padding: 20px 18px; font-size: 16px; }
  .news-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .news-card.is-lead .news-card-title { font-size: 20px; }
}
.news-adm-media { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.news-adm-cover { aspect-ratio: 1200 / 630; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); }
.news-adm-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-adm-illus { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.news-adm-illus figure { margin: 0; }
.news-adm-illus img { width: 100%; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.news-adm-illus figcaption { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
@media (max-width: 640px) { .news-adm-media { grid-template-columns: minmax(0, 1fr); } }
/* Aperçu vidéo dont l'image ne peut pas être décodée (ProRes hors Safari…) : explication et lecteur réduit à sa barre */
.pv-stage.is-noimg, .pv-stage.is-unplayable { align-content: center; gap: 16px; }
.pv-noimg { position: relative; z-index: 1; max-width: 520px; padding: 18px 20px; border-radius: 14px; background: var(--surface); color: var(--text); text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.pv-noimg strong { display: block; font-size: 16px; line-height: 1.35; margin-bottom: 6px; }
.pv-noimg p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.pv-stage.is-noimg video { width: min(560px, 100%); height: 56px; background: transparent; }
.pv-stage.is-unplayable video { display: none; }
.pv-px-bar { display: block; height: 6px; margin-top: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pv-px-bar span { display: block; height: 100%; width: 3%; border-radius: 999px; background: var(--grad); transition: width .6s var(--ease); }
.video-test { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.video-test li { display: grid; grid-template-columns: 18px 200px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 14px; }
.video-test li.is-ok .ic { color: var(--mint-600); }
.video-test li.is-ko .ic { color: var(--red, #DC2626); }
.video-test li span { color: var(--text-2); word-break: break-word; }
@media (max-width: 640px) { .video-test li { grid-template-columns: 18px minmax(0, 1fr); } .video-test li span { grid-column: 2; } }
.nl-format { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin: 4px 0 6px; width: max-content; max-width: 100%; }
.nl-fmt-opt { position: relative; cursor: pointer; }
.nl-fmt-opt input { position: absolute; opacity: 0; pointer-events: none; }
.nl-fmt-opt span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nl-fmt-opt input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(27, 38, 46, .12); }
.nl-fmt-opt input:focus-visible + span { box-shadow: var(--ring); }
.nl-preview.is-html { height: 900px; background: #fff; }
.nl-body.mono { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
/* Administration › Codes */
.codes-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px 16px; }
.codes-form .field { margin: 0; display: grid; gap: 6px; align-content: start; }
.codes-form .field small { font-size: 12px; line-height: 1.4; }
.codes-form .codes-note { grid-column: 1 / -1; }
.codes-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; }
.codes-list li { display: flex; align-items: center; gap: 4px; }
.codes-list code { font-size: 14px; letter-spacing: .03em; margin-right: 4px; }
.codes-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.codes-search .input { width: 220px; max-width: 100%; }
.codes-table .t-main.mono { font-size: 13.5px; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.icon-btn.icon-btn-xs { width: 26px; height: 26px; }
.icon-btn.icon-btn-xs .ic { width: 14px; height: 14px; }
@media (max-width: 640px) { .codes-search .input { width: 100%; } .codes-tools { width: 100%; } .codes-tools .codes-search { flex: 1; } }
.codes-table td.t-act { white-space: nowrap; }
.codes-table td.t-act form { display: block !important; }
.codes-table td.t-act form + form { margin-top: 6px; }
.codes-table td.t-act .btn { width: 100%; justify-content: center; }
@media (max-width: 640px) {
  .panel-head:has(.codes-tools) { flex-wrap: wrap; }
  .codes-tools { margin-left: 0 !important; }
  .codes-table thead { display: none; }
  .codes-table, .codes-table tbody { display: block; width: 100%; }
  .codes-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .codes-table td { display: block; padding: 0 !important; border: 0 !important; }
  .codes-table td:nth-child(1) { grid-column: 1 / -1; }
  .codes-table td.hide-sm { display: block !important; grid-column: 1 / -1; }
  .codes-table td.t-act { grid-column: 1 / -1; display: flex; gap: 8px; }
  .codes-table td.t-act form { flex: 1; }
  .codes-table td.t-act form + form { margin-top: 0; }
}

/* ------------------------------------------------------------------ */
/* Drive d'équipe (Entreprise)                                        */
/* ------------------------------------------------------------------ */
.drive { max-width: 1100px; }
.drive.is-loading .drive-list { opacity: .55; transition: opacity .15s; }
.drive-usage { min-width: 240px; max-width: 340px; flex: 0 1 320px; display: flex; flex-direction: column; gap: 6px; }
.drive-usage .usage-row { color: var(--text-2); }
.drive-ro { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r); background: var(--amber-50); color: var(--amber-700); border: 1px solid #FCE3A6; }
.drive-ro div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.drive-ro .ic { flex: none; margin-top: 2px; }
.drive-card { position: relative; overflow: visible; }
.drive-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 0; flex-wrap: wrap; }
.drive-tabs { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 11px; }
.drive-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 550; text-decoration: none; }
.drive-tabs a:hover { color: var(--text); text-decoration: none; }
.drive-tabs a.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.drive-tabs .ic { width: 17px; height: 17px; }
.drive-search { position: relative; flex: 0 1 300px; }
.drive-search > .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.drive-search .input { padding-left: 36px; height: 40px; width: 100%; }
.drive-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.drive-crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; font-size: 15px; }
.drive-crumbs a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; color: var(--text-2); font-weight: 550; text-decoration: none; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px dashed transparent; }
.drive-crumbs a:last-child { color: var(--text); }
.drive-crumbs a:hover { background: var(--bg); text-decoration: none; }
.drive-crumbs > .ic { color: var(--faint); flex: none; }
.drive-crumb-t { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; margin-right: 8px; }
.drive-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.drive-sel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 18px; background: var(--indigo-50); border-bottom: 1px solid var(--indigo-100); position: sticky; top: 0; z-index: 5; }
.drive-sel strong { margin-right: 6px; font-size: 14px; color: var(--indigo-600); }
.drive-sel .drive-danger { color: var(--red-600); }
.drive-list { min-height: 220px; }
.drive-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 190px 100px 44px; align-items: center; gap: 8px; padding: 6px 18px; border-bottom: 1px solid var(--border); font-size: 14.5px; user-select: none; -webkit-user-select: none; }
.drive-row:last-child { border-bottom: 0; }
.drive-row[data-id]:hover { background: var(--surface-2); }
.drive-row.is-sel { background: var(--indigo-50); }
.drive-row.is-drop, .drive-crumbs a.is-drop { background: var(--indigo-100); outline: 2px solid var(--indigo); outline-offset: -2px; }
.drive-head { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding-top: 10px; padding-bottom: 10px; background: var(--surface-2); }
.drive-ck { display: flex; align-items: center; justify-content: center; cursor: pointer; height: 36px; }
.drive-ck input { width: 17px; height: 17px; accent-color: var(--indigo); cursor: pointer; }
.drive-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.drive-nm { display: flex; flex-direction: column; min-width: 0; }
.drive-n { color: var(--text); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
a.drive-n:hover { color: var(--indigo); text-decoration: underline; }
.drive-where { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-date { display: flex; flex-direction: column; color: var(--text-2); font-size: 13.5px; min-width: 0; }
.drive-by { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-size { color: var(--text-2); font-size: 13.5px; text-align: right; font-variant-numeric: tabular-nums; }
.drive-more { display: flex; justify-content: flex-end; }
.drive-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--text-2); }
.drive-ic .ic { width: 21px; height: 21px; }
.drive-ic-folder { background: #E8F3FE; color: #0A7FF3; }
.drive-ic-folder .ic { fill: rgba(10, 127, 243, .16); }
.drive-ic-image { background: #F1EDFF; color: var(--violet); }
.drive-ic-video { background: #FFF1E8; color: #E8590C; }
.drive-ic-audio { background: #E9FBF3; color: var(--mint-600); }
.drive-ic-archive { background: var(--amber-50); color: var(--amber-700); }
.drive-ic-doc { background: #FEF2F2; color: var(--red-600); }
.drive-thumb { position: relative; flex: none; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: var(--bg); }
.drive-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drive-thumb.is-video .ic { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; color: #fff; fill: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.drive-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 64px 24px; color: var(--muted); }
.drive-empty .ic { width: 40px; height: 40px; color: var(--faint); }
.drive-empty strong { color: var(--text); font-size: 16px; }
.drive-empty span { max-width: 420px; font-size: 14px; }
.drive-drop { position: absolute; inset: 0; z-index: 8; border-radius: var(--r-xl); background: rgba(232, 243, 254, .92); border: 2px dashed var(--indigo); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.drive-drop div { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--indigo-600); font-weight: 650; font-size: 17px; text-align: center; padding: 20px; }
.drive-drop .ic { width: 44px; height: 44px; }
.drive-log { list-style: none; margin: 0; padding: 6px 0; }
.drive-log li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 18px; border-bottom: 1px solid var(--border); font-size: 14px; }
.drive-log li:last-child { border-bottom: 0; }
.drive-log .drive-ic { width: 34px; height: 34px; }
.drive-log .drive-ic .ic { width: 17px; height: 17px; }
.drive-log-n { color: var(--text-2); word-break: break-word; }
.drive-menu { position: absolute; z-index: 60; min-width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; }
.drive-menu button { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 9px 11px; border-radius: 8px; font: 500 14px/1.2 var(--font); color: var(--text); cursor: pointer; text-align: left; }
.drive-menu button:hover { background: var(--bg); }
.drive-menu button.is-danger { color: var(--red-600); }
.drive-menu .ic { width: 17px; height: 17px; color: var(--muted); }
.drive-menu button.is-danger .ic { color: var(--red-600); }
.drive-modal { position: fixed; inset: 0; z-index: 70; background: rgba(24, 35, 44, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.drive-modal[hidden], .drive-ups[hidden], .drive-toast[hidden], .drive-drop[hidden], .drive-sel[hidden] { display: none; }
.drive-modal-box { width: 100%; max-width: 460px; padding: 22px; gap: 14px; }
.drive-modal-box h3 { margin: 0; font-size: 18px; }
.drive-modal-box p { margin: 0; color: var(--text-2); }
.drive-modal-box .input { width: 100%; }
.drive-modal-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.drive-pick-path { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font-size: 14px; margin-bottom: 8px; }
.drive-pick-path a { padding: 3px 6px; border-radius: 6px; color: var(--indigo); font-weight: 550; }
.drive-pick-path a:last-child { color: var(--text); }
.drive-pick-list { max-height: 300px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; min-height: 60px; padding: 4px; }
.drive-pick-list p { margin: 14px; }
.drive-pick-f { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; border-radius: 8px; font: 500 14px/1.2 var(--font); color: var(--text); cursor: pointer; text-align: left; }
.drive-pick-f span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-pick-f:hover:not([disabled]) { background: var(--bg); }
.drive-pick-f[disabled] { opacity: .45; cursor: not-allowed; }
.drive-pick-f .ic:first-child { color: #0A7FF3; }
.drive-ups { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 360px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.drive-ups-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 14px; }
.drive-ups-list { max-height: 320px; overflow: auto; }
.drive-ups.is-min .drive-ups-list { display: none; }
.drive-up { padding: 10px 16px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.drive-up:last-child { border-bottom: 0; }
.drive-up-n { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 550; }
.drive-up-n span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.drive-up-n .icon-btn { width: 28px; height: 28px; flex: none; }
.drive-up .usage-bar { height: 5px; }
.drive-up-ok { color: var(--mint-600); display: inline-flex; align-items: center; gap: 4px; }
.drive-up-ok .ic { width: 15px; height: 15px; }
.drive-up-bad { color: var(--red-600); }
.drive-link { border: 0; background: none; padding: 0; color: var(--indigo); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.drive-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: #18232C; color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }
.drive-toast.is-bad { background: var(--red-600); }
.team-drive { display: flex; align-items: center; gap: 6px; }
.team-drive select { height: 34px; padding: 0 28px 0 10px; font-size: 13.5px; }
.acc-drive-link .ic { color: var(--indigo); }
@media (max-width: 760px) {
  .drive-row { grid-template-columns: 32px minmax(0, 1fr) 40px; padding: 8px 12px; }
  .drive-row .drive-date, .drive-row .drive-size { display: none; }
  .drive-head { display: none; }
  .drive-nm::after { content: attr(data-meta); font-size: 12.5px; color: var(--muted); margin-top: 1px; }
  .drive-bar, .drive-tools { padding-left: 12px; padding-right: 12px; }
  .drive-sel { padding-left: 12px; padding-right: 12px; }
  .drive-search { flex: 1 1 100%; }
  .drive-tabs { width: 100%; }
  .drive-tabs a { flex: 1; justify-content: center; padding: 7px 6px; }
  .drive-usage { max-width: none; flex: 1 1 100%; }
  .drive-actions { width: 100%; }
  .drive-actions .btn { flex: 1 1 calc(50% - 4px); padding: 0 8px; min-width: 0; }
  .drive-actions .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .drive-log li { grid-template-columns: 34px minmax(0, 1fr); }
  .drive-log time { grid-column: 2; }
  .drive-ups { right: 8px; left: 8px; bottom: 8px; width: auto; max-width: none; }
}
@media (max-width: 420px) {
  .drive-tabs a span { display: none; }
  .drive-tabs a.is-on span { display: inline; }
  .drive-actions .btn span { font-size: 13px; }
}

/* Lien de partage du Drive (page publique) */
.dshare { width: 100%; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.dshare-card { padding: 30px 28px; align-items: center; text-align: center; gap: 6px; }
.dshare-card h1 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.02em; word-break: break-word; }
.dshare-ic { width: 64px; height: 64px; border-radius: 18px; background: var(--indigo-50); color: var(--indigo); display: flex; align-items: center; justify-content: center; }
.dshare-ic .ic { width: 30px; height: 30px; }
.dshare-from { margin: 10px 0 0; }
.dshare-meta { margin: 2px 0 14px; }
.dshare-dl { min-width: 240px; justify-content: center; }
.dshare-gone p { margin: 4px 0 16px; max-width: 420px; }
.dshare-list { list-style: none; margin: 20px 0 0; padding: 0; width: 100%; text-align: left; border-top: 1px solid var(--border); max-height: 420px; overflow: auto; }
.dshare-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 36px; gap: 10px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--border); font-size: 14px; }
.dshare-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dshare-list .icon-btn { width: 34px; height: 34px; }
.dshare-foot { text-align: center; }
.drive-share-box { display: flex; flex-direction: column; gap: 12px; }
.drive-share-new { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.drive-share-new select { flex: 1 1 160px; height: 40px; }
.drive-share-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.drive-share-list li { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.drive-share-url { display: flex; gap: 6px; }
.drive-share-url input { flex: 1; min-width: 0; height: 36px; font-size: 13px; }
.drive-share-url .btn { height: 36px; }
.drive-share-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }

/* Encadré de l'auteur, à la fin des articles du blog */
.news-author { display: flex; gap: 22px; align-items: center; margin: 28px 0 8px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.news-author-photo { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--bg); }
.news-author-text { min-width: 0; }
.news-author-text p { margin: 0; }
.news-author-by { font-size: 15px; color: var(--text-2); }
.news-author-by strong { color: var(--text); }
.news-author-role { font-size: 13.5px; color: var(--indigo-600); font-weight: 600; margin-top: 2px !important; }
.news-author-bio { font-size: 14.5px; line-height: 1.55; color: var(--text-2); margin-top: 8px !important; }
@media (max-width: 560px) {
  .news-author { flex-direction: column; text-align: center; padding: 20px 18px; gap: 14px; }
}
.drive-share-mail { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.drive-share-mail[hidden] { display: none; }
.drive-share-mail .input { width: 100%; font-size: 13.5px; }
.drive-share-mail textarea.input { height: auto; min-height: 56px; padding-top: 8px; resize: vertical; }
.drive-share-mail .btn { align-self: flex-end; }

/* Logo : « misi.link » en Montserrat Alternates (pas le nom d'un client sur les pages à sa marque) */
.brand:not(.brand-client) .brand-name, .adm-brand > span { font-family: 'Montserrat Alternates', var(--font); font-weight: 700; letter-spacing: -.01em; text-transform: lowercase; }
.adm-brand > span small { text-transform: none; }
.adm-brand > span small { font-family: var(--font); font-weight: 500; letter-spacing: 0; }

/* Administration : e-mails envoyés */
.mail-strip { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; padding: 12px 16px; margin: -6px 0 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); color: var(--text-2) !important; text-decoration: none !important; font-size: 14px; }
.mail-strip:hover { border-color: var(--border-2); }
.mail-strip strong { color: var(--text); }
.mail-strip b { color: var(--text); font-variant-numeric: tabular-nums; }
.mail-strip-bad, .mail-strip-bad b { color: var(--red-600) !important; }
.mail-strip-more { margin-left: auto; color: var(--indigo); display: inline-flex; align-items: center; gap: 2px; }
.mail-bars { display: flex; flex-direction: column; gap: 5px; }
.mail-bar-row { display: grid; grid-template-columns: 82px minmax(0, 1fr) 120px; gap: 10px; align-items: center; font-size: 13px; }
.mail-bar-l { color: var(--muted); }
.mail-bar { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.mail-bar span { display: block; height: 100%; background: var(--grad); border-radius: 99px; min-width: 2px; }
.mail-bar-n { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.mail-bar-n em { color: var(--red-600); font-style: normal; }

/* ---------- 3.48 : bandeau d'annonce ---------- */
.ann { position: relative; z-index: 60; font-size: 14px; line-height: 1.45; }
.ann[hidden] { display: none; }
.ann-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.ann-in > .ic { width: 18px; height: 18px; flex: none; }
.ann-text { flex: 1; min-width: 0; }
.ann-text a { font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.ann-x { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; opacity: .75; }
.ann-x:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.ann-x .ic { width: 16px; height: 16px; }
.ann-info { background: #E8F2FE; color: #0B4A8F; border-bottom: 1px solid #CFE3FB; }
.ann-warn { background: #FFF4DB; color: #7A4B00; border-bottom: 1px solid #FBE3A6; }
.ann-ok { background: #E6F8EF; color: #065F46; border-bottom: 1px solid #B9EBD3; }

/* ---------- 3.48 : statistiques des transferts (Mon compte) ---------- */
.flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.acc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; }
.acc-stats > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.acc-stats strong { display: block; font-size: 18px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-stats span { font-size: 12px; color: var(--muted); }
.acc-stats-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0 0 14px; }
.acc-stats-split h3 { font-size: 13px; font-weight: 600; margin: 0 0 8px; color: var(--text-2); }
.acc-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.acc-bars li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 34px; gap: 8px; align-items: center; font-size: 13px; }
.acc-bar-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.acc-bar { height: 7px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.acc-bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; min-width: 2px; }
.acc-bar-n { text-align: right; font-variant-numeric: tabular-nums; }
.acc-grid > .acc-section:has(.acc-stats) { grid-column: 1 / -1; }
.acc-activity .acc-li-main > span:first-child { display: block; overflow: hidden; text-overflow: ellipsis; }
.acc-act-what { color: var(--text); font-weight: 500; }
.acc-req-drive { display: block; color: var(--text-2); margin-top: 2px; }
.acc-req-drive .ic-sm { vertical-align: -2px; }
.acc-req-fail { color: var(--red-600); }
@media (max-width: 640px) {
  .acc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 3.48 : administration (Activité, Stockage, fiche membre) ---------- */
.dot-red { background: var(--red-50); color: var(--red); }
.kpi-foot .down { color: var(--red-600); font-weight: 500; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.act-table td { vertical-align: middle; }
.act-bar { display: inline-block; vertical-align: middle; width: 90px; height: 7px; background: var(--bg); border-radius: 99px; overflow: hidden; margin-right: 8px; }
.act-bar i { display: block; height: 100%; background: var(--indigo); border-radius: 99px; min-width: 1px; }
.act-bar-dl i { background: var(--mint); }
.act-n { font-variant-numeric: tabular-nums; }
.c-indigo { background: var(--indigo) !important; }
.c-mint { background: var(--mint) !important; }
.c-amber { background: var(--amber) !important; }
.c-gray { background: #B8C3CC !important; }
.stor-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--bg); gap: 2px; }
.stor-bar i { display: block; height: 100%; min-width: 3px; }
.stor-legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.stor-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.stor-legend li i { width: 12px; height: 12px; border-radius: 4px; }
.stor-legend strong { font-variant-numeric: tabular-nums; }
.stor-hist { display: flex; align-items: flex-end; gap: 2px; height: 120px; }
.stor-hist span { flex: 1; display: flex; flex-direction: column-reverse; height: 100%; min-width: 2px; }
.stor-hist span i { display: block; width: 100%; }
.stor-hist span i:first-child { border-radius: 0 0 2px 2px; }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin: 0 3px 0 8px; vertical-align: 0; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.user-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 760px) {
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .act-bar { width: 44px; }
}
.grid-2.grid-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.act-table td { white-space: nowrap; }
@media (max-width: 1000px) { .grid-2.grid-even { grid-template-columns: minmax(0, 1fr); } }
.acc-stats.acc-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .acc-stats.acc-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .acc-stats.acc-stats-3 strong { font-size: 15px; } }
.drive-ups { transition: opacity .3s, transform .3s; }
.drive-ups.is-leaving { opacity: 0; transform: translateY(8px); }

/* ---------- 3.48.2 : lien de dépôt en « chutier » ---------- */
.pub .layout.layout-single, .pub .layout.layout-single:has(#uploader) { grid-template-columns: minmax(0, 640px); justify-content: center; }
.layout-single .up-wrap { width: 100%; max-width: 640px; margin: 0 auto; }
.uploader-request { width: 100%; }
.uploader-request .req-head { padding: 10px 10px 16px; text-align: center; }
.req-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: var(--indigo-50); color: var(--indigo); font-size: 13px; font-weight: 600; }
.req-badge .ic { width: 15px; height: 15px; }
.uploader-request .req-head .h1 { margin: 12px 0 0; font-size: 26px; }
.uploader-request .req-msg { margin: 10px auto 0; max-width: 48ch; }
.chute { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 20px 30px; border: 2px dashed var(--border-2, #C9D4DC); border-radius: 22px; background: var(--surface-2); text-align: center; cursor: default; transition: border-color .15s, background .15s, box-shadow .15s; outline: none; }
.chute:focus-visible { box-shadow: 0 0 0 3px var(--indigo-50); border-color: var(--indigo); }
.chute-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(6, 114, 226, .55); }
.chute-ic .ic { width: 30px; height: 30px; }
.chute-title { font-size: 18px; font-weight: 700; color: var(--text); }
.chute-or { font-size: 13px; color: var(--muted); }
.chute-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chute-btns .btn { background: var(--surface); }
.chute-more { display: none; align-items: center; gap: 6px; border: 0; background: none; color: var(--indigo); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; padding: 4px 8px; }
body.is-dragging .chute { border-color: var(--indigo); background: var(--indigo-50); box-shadow: 0 0 0 6px rgba(6, 114, 226, .08); }
body.is-dragging .chute .chute-ic { transform: translateY(-3px); transition: transform .15s; }
/* Fichiers ajoutés : la zone se réduit à une ligne « Ajouter d'autres fichiers » */
.chute.is-compact { flex-direction: row; justify-content: center; padding: 10px 14px; gap: 8px; border-width: 1.5px; border-radius: 16px; }
.chute.is-compact .chute-ic, .chute.is-compact .chute-title, .chute.is-compact .chute-or, .chute.is-compact .chute-btns { display: none; }
.chute.is-compact .chute-more { display: inline-flex; }
.chute-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 12px 0 4px; font-size: 13px; color: var(--muted); }
.chute-points span { display: inline-flex; align-items: center; gap: 5px; }
.chute.is-compact ~ .chute-points { display: none; }
.uploader-request .crypt-note { display: none; }
@media (max-width: 640px) {
  .chute { padding: 26px 14px 22px; }
  .uploader-request .req-head .h1 { font-size: 22px; }
}

/* ---------- 3.48.3 : fonctions d'une offre supérieure dans le menu de Mon compte ---------- */
.acc-nav a.is-locked { color: var(--muted) !important; }
.acc-nav a.is-locked > .ic { opacity: .5; }
.acc-lock { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; margin-left: auto; border-radius: 50%; background: #F1EAFE; color: #7C3AED; font-style: normal; }
.acc-lock .ic { width: 12px !important; height: 12px !important; color: currentColor !important; opacity: 1 !important; }
.acc-nav a.is-locked:hover { color: var(--text-2) !important; }
.acc-nav a.is-locked:hover .acc-lock { background: #7C3AED; color: #fff; }
@media (max-width: 900px) { .acc-lock { margin-left: 2px; } }
