/* ==========================================================================
   Intranet CNV — charte « Lagune »
   Couleur de l'intranet : lagune (#2B7A78). Fonds sable clair, cartes blanches,
   coins arrondis, ombres légères. Chaque app a sa propre couleur (--app).
   ========================================================================== */
:root {
    --brand: #2B7A78;
    --brand-dark: #1F5C5A;
    --brand-soft: #E3F0EF;
    --sand: #FFFFFF;
    --surface: #FFFFFF;
    --ink: #1E2A35;
    --ink-2: #5A6673;
    --line: #E6E4DC;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(30, 42, 53, .04), 0 4px 16px rgba(30, 42, 53, .06);
    --shadow-hover: 0 2px 4px rgba(30, 42, 53, .06), 0 12px 28px rgba(30, 42, 53, .10);
    --app: var(--brand);
    --app-soft: var(--brand-soft);

    --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--sand);
    --bs-border-color: var(--line);
    --bs-border-radius: 10px;
    --bs-border-radius-lg: var(--radius);
    --bs-link-color: var(--app);
    --bs-link-color-rgb: 43, 122, 120;
    --bs-link-hover-color: var(--brand-dark);
    --bs-primary: var(--app);
}

body { background: var(--sand); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .h1, .h2, .h3, .h4, .h5 { font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.text-muted { color: var(--ink-2) !important; }
a { color: var(--app); text-decoration-color: color-mix(in srgb, var(--app) 35%, transparent); }

/* ---------- Logo (le logo du club, recoloré par masque) ---------- */
.cnv-logo {
    display: inline-block; aspect-ratio: 800 / 213; height: 34px;
    background: var(--logo-color, var(--brand));
    -webkit-mask: url("/img/cnv-logo.png") no-repeat center / contain;
    mask: url("/img/cnv-logo.png") no-repeat center / contain;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-tag {
    font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: .3rem .65rem;
}

/* ---------- Barre du haut ---------- */
.topbar {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar .inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.appnav { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.appnav a {
    display: flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 999px;
    color: var(--ink-2); font-weight: 600; font-size: .9rem; text-decoration: none; transition: background .15s, color .15s;
}
.appnav a .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.appnav a:hover { background: color-mix(in srgb, var(--c) 10%, white); color: var(--ink); }
.appnav a.active { background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); }
.avatar {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem;
}
.user-menu .dropdown-toggle::after { display: none; }
.dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-hover); padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .45rem .7rem; }
.dropdown-item:active { background: var(--app); }

/* Bandeau de couleur de l'app courante */
.app-ribbon { height: 3px; background: var(--app); }

/* ---------- Éléments Bootstrap harmonisés ---------- */
main { padding-top: 1.75rem; padding-bottom: 2rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.shadow-sm { box-shadow: var(--shadow) !important; }
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary {
    --bs-btn-bg: var(--app); --bs-btn-border-color: var(--app);
    --bs-btn-hover-bg: color-mix(in srgb, var(--app) 85%, black); --bs-btn-hover-border-color: color-mix(in srgb, var(--app) 85%, black);
    --bs-btn-active-bg: color-mix(in srgb, var(--app) 75%, black); --bs-btn-active-border-color: color-mix(in srgb, var(--app) 75%, black);
    --bs-btn-disabled-bg: var(--app); --bs-btn-disabled-border-color: var(--app);
}
.btn-outline-primary {
    --bs-btn-color: var(--app); --bs-btn-border-color: var(--app);
    --bs-btn-hover-bg: var(--app); --bs-btn-hover-border-color: var(--app); --bs-btn-active-bg: var(--app);
}
.form-control, .form-select { border-radius: 10px; border-color: var(--line); }
.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: var(--app); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--app) 18%, transparent);
}
.form-check-input:checked { background-color: var(--app); border-color: var(--app); }
.nav-pills .nav-link { border-radius: 999px; color: var(--ink-2); font-weight: 600; }
.nav-pills .nav-link.active { background: var(--app); }
.nav-tabs .nav-link.active { color: var(--app); border-bottom-color: var(--surface); font-weight: 600; }
.nav-tabs .nav-link { color: var(--ink-2); }
.table { --bs-table-bg: transparent; }
.table > thead th { color: var(--ink-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.alert { border-radius: 12px; border: 0; }
.alert-success { background: #E6F2EC; color: #24573F; }
.alert-danger { background: #F8E7E5; color: #8A2E26; }
.badge-soft { background: var(--app-soft); color: var(--app); font-weight: 600; }
.badge { border-radius: 999px; font-weight: 600; }

/* Anciennes classes conservées */
.table-stages td, .table-stages th { white-space: nowrap; font-size: .875rem; vertical-align: middle; }
.table-stages td.title { white-space: normal; min-width: 260px; }
.sticky-head thead th { position: sticky; top: 64px; background: #fff; z-index: 2; }
.planning td { font-size: .75rem; text-align: center; padding: 2px 4px; }
.planning .holiday { background: #fff4d6; }
.planning .weekend { color: #888; }
.heat-1 { background: #e3ecfb; } .heat-2 { background: #b9cff3; } .heat-3 { background: #7fa6e6; color: #fff; } .heat-4 { background: #1d3c7a; color: #fff; }
.over { background: #f8d7da !important; color: #842029 !important; font-weight: 600; }

/* ---------- En-tête de page d'app ---------- */
.app-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
.app-icon {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
    background: var(--app-soft); color: var(--app); font-size: 1.3rem;
}

/* ---------- Accueil ---------- */
.hero {
    position: relative; overflow: hidden; border-radius: 20px; padding: 2rem 2.25rem; margin-bottom: 1.75rem;
    background: linear-gradient(120deg, var(--brand) 0%, #3E9390 55%, #7FBFB5 100%); color: #fff;
}
.hero h1 { color: #fff; font-size: 1.9rem; margin-bottom: .35rem; }
.hero p { color: rgba(255, 255, 255, .85); margin: 0; }
.hero .waves { position: absolute; right: -40px; bottom: -30px; width: 420px; opacity: .18; }
.hero .chip { background: rgba(255, 255, 255, .18); color: #fff; border-radius: 999px; padding: .3rem .75rem; font-size: .8rem; font-weight: 600; }

.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); font-weight: 700; margin: 0 0 .9rem; }

.app-tile {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.35rem;
    box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.app-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 18px 18px 0 0; background: var(--c); }
a.app-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); color: var(--ink); }
.app-tile .app-icon { background: var(--s); color: var(--c); margin-bottom: 1rem; }
.app-tile h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.app-tile p { color: var(--ink-2); font-size: .88rem; margin-bottom: 1rem; }
.app-tile .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: .85rem; font-weight: 600; color: var(--c); }
.app-tile.soon { background: transparent; box-shadow: none; border-style: dashed; }
.app-tile.soon .app-icon { filter: grayscale(.3); opacity: .8; }
.app-tile.soon .foot { color: var(--ink-2); }

.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.15rem; box-shadow: var(--shadow); height: 100%; }
.stat .k { font-size: .78rem; color: var(--ink-2); font-weight: 600; }
.stat .v { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }

.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.list-clean li:last-child { border-bottom: 0; }
.date-chip { width: 46px; flex: none; text-align: center; border-radius: 10px; background: var(--app-soft); color: var(--app); line-height: 1.1; padding: .35rem 0; }
.date-chip b { display: block; font-size: 1.05rem; }
.date-chip small { font-size: .65rem; text-transform: uppercase; font-weight: 700; }

/* ---------- Connexion ---------- */
.auth-wrap { min-height: calc(100vh - 120px); display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-hover); padding: 2.25rem; }
.auth-card .cnv-logo { height: 46px; display: block; margin: 0 auto .6rem; }

footer.site { color: var(--ink-2); font-size: .8rem; }
.card-header { background: transparent; border-bottom: 1px solid var(--line); padding: .9rem 1.15rem; }
.card-header strong { color: var(--app); }
.min-w-0 { min-width: 0; }
.app-tile.soon { background: #FAFAF8; } .stat, .app-tile, .card { border-color: #ECEBE6; }

/* ---------- CRM ---------- */
.subnav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: 1.25rem; }
.subnav a.tab { padding: .45rem .9rem; border-radius: 999px; color: var(--ink-2); font-weight: 600; text-decoration: none; font-size: .92rem; }
.subnav a.tab:hover { background: var(--app-soft); color: var(--ink); }
.subnav a.tab.active { background: var(--app); color: #fff; }
.av { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .8rem; background: var(--c, #999); }
.av.lg { width: 64px; height: 64px; font-size: 1.3rem; }
.av.sq { border-radius: 10px; }
.filters { position: sticky; top: 84px; }
.filters h6 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); font-weight: 700; margin: 1.1rem 0 .4rem; }
.filters a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .32rem .6rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.filters a:hover { background: var(--app-soft); }
.filters a.on { background: var(--app-soft); color: var(--app); font-weight: 700; }
.filters a .n { color: var(--ink-2); font-size: .78rem; font-weight: 600; }
.sw { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.crm-list .row-item { display: flex; align-items: center; gap: .85rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.crm-list .row-item:hover { background: #FBFAF8; }
.crm-list .row-item:last-child { border-bottom: 0; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: color-mix(in srgb, var(--c, #999) 14%, white); color: color-mix(in srgb, var(--c, #999) 85%, black); white-space: nowrap; }
.tagchip { display: inline-block; padding: .12rem .5rem; border-radius: 6px; background: #F1EFEA; color: var(--ink-2); font-size: .75rem; font-weight: 600; margin: 0 .2rem .2rem 0; text-decoration: none; }
.tagchip:hover { background: var(--app-soft); color: var(--app); }
.side-panel .card-body { padding: 1rem 1.15rem; }
.side-panel dt { font-size: .74rem; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.side-panel dd { margin-bottom: .7rem; }
.timeline { position: relative; }
.tl-item { display: flex; gap: .85rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 0; }
.tl-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); }
.tl-body { min-width: 0; flex: 1; }
.tl-body .meta { font-size: .78rem; color: var(--ink-2); }
.tl-body .txt { white-space: pre-line; font-size: .92rem; margin-top: .25rem; }
.composer .nav-link { padding: .4rem .75rem; font-size: .88rem; }
.todo-row { display: flex; align-items: flex-start; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.todo-row:last-child { border-bottom: 0; }
.todo-row .due { font-size: .76rem; color: var(--ink-2); }
.todo-row .due.late { color: #B0473C; font-weight: 700; }
.ring { --p: 0; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto .5rem;
    background: conic-gradient(var(--c) calc(var(--p) * 1%), color-mix(in srgb, var(--c) 15%, white) 0); }
.ring span { width: 66px; height: 66px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.35rem; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 1rem; overflow-x: auto; }
.kcol { background: #F7F6F2; border-radius: 16px; padding: .75rem; min-height: 300px; }
.kcol.drop { outline: 2px dashed var(--app); }
.kcol h3 { font-size: .9rem; display: flex; align-items: center; gap: .45rem; margin: .2rem .25rem .75rem; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .75rem .85rem; margin-bottom: .6rem; box-shadow: var(--shadow); cursor: grab; display: block; color: var(--ink); text-decoration: none; }
.kcard:hover { border-color: color-mix(in srgb, var(--app) 40%, var(--line)); color: var(--ink); }
.kcard.dragging { opacity: .5; }
.kcard .v { font-weight: 800; color: var(--app); }
/* ---------- E-mail ---------- */
.mail-list { max-height: calc(100vh - 290px); overflow: auto; }
.mail-list .row-item { gap: .6rem; }
.mail-list .row-item.sel { background: var(--app-soft); }
.mail-list .row-item.unread .who, .mail-list .row-item.unread .subj { font-weight: 700; }
.mail-list .row-item .who { font-size: .92rem; }
.mail-list .row-item .subj { font-size: .88rem; }
.mail-frame { width: 100%; height: calc(100vh - 380px); min-height: 420px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* E-mail : première connexion */
.hist-card { border-left: 4px solid var(--app, #2B7A78); }
.hist-options { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hist-opt { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border: 1px solid #E3E7EC; border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.hist-opt:has(input:checked) { border-color: var(--app, #2B7A78); background: var(--app-soft, #EAF4F3); }
.hist-opt input[type=radio] { margin-top: .25rem; }
.hist-opt b { display: block; }
.hist-opt small { display: block; color: #6B7280; margin-top: .15rem; }
.hist-contacts { padding: .8rem 1rem; background: #F7F9FA; border-radius: 12px; transition: opacity .15s; }
.hist-contacts { padding: .8rem 1rem; background: #F7F9FA; border-radius: 12px; transition: opacity .15s; }

/* Partage d'une boîte par rôle */
.share-table { border: 1px solid #E3E7EC; border-radius: 12px; max-height: 320px; overflow: auto; }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .45rem .7rem; border-bottom: 1px solid #F0F2F5; }
.share-row:last-child { border-bottom: 0; }
.share-row .share-level { width: 190px; flex: none; }
.share-row:has(select option:checked:not([value=""])) { background: var(--app-soft, #EEF1F4); }
.mail-locked { padding: 2rem 1rem; text-align: center; color: #6B7280; background: #F7F9FA; border-radius: 12px; }
/* E-mail : sélection et actions */
.mail-row { position: relative; display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.mail-row:last-child { border-bottom: 0; }
.mail-row .row-item { flex: 1; min-width: 0; border-bottom: 0 !important; padding-left: .25rem; }
.mail-row .mail-check, .mail-row .mail-check-ph { flex: none; width: 1rem; margin: 1.05rem 0 0 .75rem; }
.mail-row.sel, .mail-row.sel .row-item { background: var(--app-soft); }
.mail-row.checked, .mail-row.checked .row-item { background: #FFF8EC; }
.mail-row-actions { position: absolute; right: .6rem; top: .45rem; display: none; }
.mail-row-actions form { display: flex; gap: .25rem; }
.mail-row-actions .btn { padding: .15rem .45rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.mail-row:hover .mail-row-actions { display: block; }
.mail-row:hover .mail-date { visibility: hidden; }
.mail-bulk { display: flex; align-items: center; gap: .4rem; padding: .45rem .7rem; margin-bottom: .5rem; background: #FFF8EC; border: 1px solid #F1DFC0; border-radius: 10px; }
.mail-bulk[hidden] { display: none; }
.mail-selall { display: flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-bottom: 1px solid var(--line); margin: 0; }

/* Éditeur de signature */
.sig-toolbar { display: flex; flex-wrap: wrap; gap: .25rem; }
.sig-editor { min-height: 140px; max-height: 420px; overflow: auto; padding: .75rem 1rem; border: 1px solid #DDE2E7; border-radius: 10px; background: #fff; font-family: Arial, sans-serif; font-size: 14px; }
.sig-editor:focus { outline: 2px solid var(--app-soft, #EAF4F3); border-color: var(--app, #2B7A78); }
.sig-editor:empty::before { content: attr(data-placeholder); color: #9AA3AD; }
.sig-editor img { max-width: 100%; }
.sig-preview { border: 1px dashed #DDE2E7; border-radius: 10px; padding: .6rem .9rem; font-family: Arial, sans-serif; font-size: 14px; background: #FCFCFD; }
.sig-preview img { max-width: 100%; }
/* Chronologie repliable */
.tl-item.foldable .tl-head { cursor: pointer; }
.tl-item.foldable .tl-chev { transition: transform .15s; color: var(--ink-2); }
.tl-item.foldable.open .tl-chev { transform: rotate(90deg); }
.tl-item.foldable:not(.open) .tl-full { display: none; }
.tl-item.foldable.open .tl-preview { display: none; }
.tl-preview { font-size: .86rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .15rem; }

/* Fusion */
.merge-table th { vertical-align: top; min-width: 200px; }
.merge-table td label { cursor: pointer; }
.merge-cell { width: 1%; }

/* Coordonnées enrichies (signatures, réseaux, sources) */
.coord dt { font-weight: 500; color: var(--muted, #6b7280); font-size: .8rem; }
.inline-add summary { cursor: pointer; list-style: none; display: inline; }
.inline-add summary::-webkit-details-marker { display: none; }
.inline-add[open] summary { display: none; }
.sig-found { background: #F4F1FB; border: 1px solid #E2DBF3; border-radius: 10px; padding: .55rem .75rem; }
.social-link { display: inline-flex; align-items: center; gap: .25rem; font-size: .85rem; padding: .1rem .5rem; border-radius: 999px; background: var(--app-soft, #f3f4f6); text-decoration: none; }

/* ---------- Barre de filtres (contacts, tâches) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem; padding: .6rem .75rem; margin-bottom: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.filter-bar .fb-item { display: flex; flex-direction: column; min-width: 140px; max-width: 220px; }
.filter-bar .fb-item label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 700; margin-bottom: .15rem; }

/* ---------- Tâches ---------- */
.task-card .pill { font-size: .7rem; }
.task-card.done .fw-semibold { text-decoration: line-through; color: var(--ink-2); }
.task-card .due { color: var(--ink-2); }
.task-card .due.late { color: #B0473C; font-weight: 700; }
.av-stack { display: inline-flex; }
.av-stack .av { margin-left: -6px; border: 2px solid #fff; }
.av.sm { width: 26px; height: 26px; font-size: .66rem; }
.assignee-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .25rem .75rem; max-height: 220px; overflow: auto; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: #FCFCFA; }
.assignee-opt { display: flex; align-items: center; gap: .45rem; font-size: .9rem; cursor: pointer; }
.assignee-opt:has(input:checked) { color: var(--app); font-weight: 600; }
.comment { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.private-card { border-left: 4px solid var(--app); }
.private-mail { padding: .6rem .8rem; border-radius: 10px; background: var(--app-soft); font-size: .9rem; }

/* ---------- E-mail : dossiers de la boîte (brouillons, corbeille, spam) ---------- */
.live-note { font-size: .8rem; color: var(--ink-2); padding: .45rem .9rem; border-bottom: 1px solid var(--line); background: #FAFAF7; }
.task-attach { display: flex; gap: .35rem; align-items: center; }
.task-attach select { max-width: 230px; }

/* ---------- Calendrier ---------- */
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.cal-head { padding: .45rem .6rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--ink-2); background: #F7F6F2; border-bottom: 1px solid var(--line); }
.cal-day { min-height: 118px; padding: .35rem .4rem .5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.we { background: #FCFBF8; }
.cal-day.out { background: #F7F6F2; }
.cal-day.out .cal-num span { color: #B5BCC5; }
.cal-num { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .85rem; margin-bottom: .2rem; }
.cal-day.today .cal-num span { background: var(--app); color: #fff; border-radius: 999px; padding: 0 .45rem; }
.cal-add { color: var(--ink-2); opacity: 0; text-decoration: none; }
.cal-day:hover .cal-add { opacity: 1; }
.cal-item { display: block; font-size: .76rem; line-height: 1.25; padding: .14rem .35rem; margin-bottom: .15rem; border-radius: 6px; text-decoration: none; color: color-mix(in srgb, var(--c) 80%, black);
    background: color-mix(in srgb, var(--c) 13%, white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-item b { font-weight: 700; margin: 0 .15rem; }
.cal-item.task { background: transparent; border: 1px dashed color-mix(in srgb, var(--c) 45%, white); }
.cal-item.done { text-decoration: line-through; opacity: .6; }
.cal-list-day { display: flex; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.cal-list-day:last-child { border-bottom: 0; }
.cal-list-date { width: 56px; flex: none; text-align: center; }
.cal-list-date b { display: block; font-size: 1.4rem; line-height: 1; }
.cal-list-date small { color: var(--ink-2); }
.cal-list-day.today .cal-list-date b { color: var(--app); }
.cal-list-item { display: block; padding: .3rem .6rem; margin-bottom: .25rem; border-left: 3px solid var(--c); border-radius: 6px; background: #FAFAF7; color: var(--ink); text-decoration: none; }
.cal-list-item:hover { background: color-mix(in srgb, var(--c) 10%, white); color: var(--ink); }
.cal-list-item .t { display: inline-block; min-width: 100px; color: var(--ink-2); font-size: .85rem; }
.cal-list-item i { color: var(--c); }
.cal-list-item.done .fw-semibold { text-decoration: line-through; color: var(--ink-2); }
.invite-box { padding: .8rem 1rem; border-radius: 12px; background: var(--app-soft); }
.quick-task .form-label { font-weight: 600; color: var(--ink-2); }

/* Tuiles de tâches : pictos d'action */
.task-card { cursor: pointer; }
.task-card .task-title { color: var(--ink); text-decoration: none; }
.task-card .task-title:hover { color: var(--app); }
.task-actions { display: flex; align-items: center; gap: .15rem; margin: .55rem -.35rem -.35rem; padding-top: .35rem; border-top: 1px solid var(--line); }
.ta-btn { border: 0; background: transparent; color: var(--ink-2); padding: .15rem .4rem; border-radius: 7px; line-height: 1; font-size: 1rem; }
.ta-btn:hover { background: var(--app-soft); color: var(--app); }
.ta-done:hover, .task-card.done .ta-done { color: #3E8E5E; }
.ta-del:hover { background: #FBEBEB; color: #B0473C; }
.task-actions .dropdown-item .sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }

/* Accueil CRM : tuiles */
.home-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.home-tile { display: block; text-decoration: none; color: var(--ink); }
a.home-tile:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); color: var(--ink); }
.tile-num { display: flex; align-items: center; justify-content: center; gap: .5rem; height: 86px; margin: 0 auto .5rem; font-size: 2rem; font-weight: 800; color: #A0A7B1; }
.tile-num i { font-size: 1.4rem; }
.home-tile.hot .tile-num { color: var(--c); }
/* Fiche contact : historique des tâches */
.task-history summary { cursor: pointer; list-style: none; }
.task-history summary::-webkit-details-marker { display: none; }
.th-row { display: flex; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.th-title { font-weight: 600; color: var(--ink); text-decoration: none; }
.th-row.done .th-title { color: var(--ink-2); text-decoration: line-through; }
.home-tiles { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: .6rem; }
.home-tile { padding-left: .5rem !important; padding-right: .5rem !important; }
.home-tile .k { font-size: .8rem; line-height: 1.2; min-height: 2.4em; }
.mail-quickf { display: inline-flex; gap: .25rem; }
.mail-quickf a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; color: var(--muted, #6b7280); text-decoration: none; }
.mail-quickf a:hover { background: var(--line, #eee); color: var(--ink); }
.mail-quickf a.on { background: #C8746A; color: #fff; }
/* Accueil : messages et configuration */
.home-messages { display: grid; gap: .6rem; }
.home-msg { display: flex; gap: .8rem; align-items: flex-start; background: var(--s); border-left: 4px solid var(--c); border-radius: 12px; padding: .8rem 1rem; }
.home-msg-icon { color: var(--c); font-size: 1.2rem; line-height: 1.3; }
.home-msg-body { white-space: normal; overflow-wrap: anywhere; }
.home-config { border: 1px dashed var(--line, #ddd); }
.tile-col { position: relative; }
.tile-col[draggable="true"] { cursor: grab; }
.tile-col.dragging { opacity: .4; }
.tile-col.masked .app-tile { opacity: .35; filter: grayscale(1); }
.tile-eye { position: absolute; top: .5rem; right: 1.2rem; z-index: 2; border: 0; background: #fff; border-radius: 8px; width: 32px; height: 32px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
/* Destinataires : suggestions */
.addr-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: .25rem; margin-top: 2px; max-height: 320px; overflow: auto; }
.addr-item { display: flex; gap: .6rem; align-items: center; width: 100%; border: 0; background: none; text-align: left; padding: .4rem .6rem; border-radius: 8px; }
.addr-item span { display: flex; flex-direction: column; min-width: 0; }
.addr-item b { font-weight: 600; font-size: .9rem; }
.addr-item small { color: var(--muted, #6b7280); overflow: hidden; text-overflow: ellipsis; }
.addr-item.on, .addr-item:hover { background: var(--brand-soft, #E3F0EF); }
/* Fiche : fichiers joints */
.file-row { display: flex; gap: .75rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line, #eee); }
.file-row:last-child { border-bottom: 0; }
.file-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft, #E3F0EF); color: var(--brand, #2B7A78); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; flex: none; }
/* Rédaction : éditeur riche */
.mail-editor { border: 1px solid var(--line, #dee2e6); border-radius: 12px; overflow: hidden; background: #fff; }
.mail-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; padding: .35rem .5rem; border-bottom: 1px solid var(--line, #eee); background: #fafbfc; position: sticky; top: 0; z-index: 2; }
.mail-toolbar button, .mail-toolbar .tb-color, .mail-toolbar .tb-attach { border: 0; background: none; border-radius: 8px; min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink, #1E2A35); cursor: pointer; margin: 0; padding: 0 .35rem; }
.mail-toolbar button:hover, .mail-toolbar .tb-color:hover, .mail-toolbar .tb-attach:hover { background: var(--line, #eef0f2); }
.mail-toolbar .tb-color { position: relative; }
.mail-toolbar .tb-color input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mail-toolbar .tb-attach { gap: .3rem; font-size: .85rem; font-weight: 600; }
.mail-toolbar select { width: auto; height: 32px; padding-top: 0; padding-bottom: 0; }
.mail-toolbar .sep { width: 1px; height: 20px; background: var(--line, #e5e7eb); margin: 0 .3rem; }
.mail-editor-area { min-height: 320px; max-height: 60vh; overflow: auto; padding: .9rem 1rem; outline: none; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.5; }
.mail-editor-area p { margin: 0 0 .6em; }
.mail-editor-area blockquote { border-left: 3px solid #ccc; margin: 0 0 .6em; padding-left: .8rem; color: #555; }
.mail-editor-area a { color: #2F6FDE; text-decoration: underline; }
.mail-editor-area.drop { background: var(--brand-soft, #E3F0EF); }
.file-chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--brand-soft, #E3F0EF); border-radius: 999px; padding: .25rem .35rem .25rem .7rem; font-size: .85rem; max-width: 100%; }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.file-chip small { color: var(--muted, #6b7280); }
.file-chip button { border: 0; background: none; border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.file-chip button:hover { background: rgba(0,0,0,.08); }
/* E-mail : pastilles contact / société cliquables */
.mail-list .pill[data-href] { cursor: pointer; }
.mail-list .pill[data-href]:hover { filter: brightness(.95); text-decoration: underline; }
.pill.pill-co { --c: #5B6B7A; }
/* Recherche CRM au fil de la frappe */
.lk-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.input-group > .lk-wrap > .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.lk-wrap .addr-suggest { min-width: 260px; }
/* Destinataires en pastilles */
.rcpt-field { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; min-height: 38px; padding: .2rem .4rem; cursor: text; height: auto; }
.rcpt-field:focus-within { border-color: #86b7fe; box-shadow: 0 0 0 .2rem rgba(13,110,253,.15); }
.rcpt-input { flex: 1 1 140px; min-width: 120px; border: 0; outline: none; padding: .2rem; font-size: .9rem; background: transparent; }
.rcpt-chip { display: inline-flex; align-items: center; gap: .1rem; max-width: 100%; background: var(--brand-soft, #E3F0EF); color: var(--ink, #1E2A35); border-radius: 999px; padding: .05rem .1rem .05rem .55rem; font-size: .78rem; line-height: 1.5; }
.rcpt-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.rcpt-chip button { border: 0; background: none; border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: inherit; opacity: .65; }
.rcpt-chip button:hover { background: rgba(0,0,0,.1); opacity: 1; }
.rcpt-chip.bad { background: #FBEAE8; color: #B42318; outline: 1px dashed #E5A39B; }
/* ===== App Réseaux sociaux ===== */
.sp-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; align-items: start; }
.sp-col { background: #F4F6F8; border-radius: 14px; padding: .5rem; }
.sp-col-head { font-weight: 700; font-size: .85rem; padding: .35rem .5rem .6rem; color: var(--c); display: flex; align-items: center; }
.sp-col-head .n { margin-left: auto; background: #fff; color: var(--ink); border-radius: 999px; padding: 0 .55rem; font-size: .75rem; }
.sp-col-body { display: grid; gap: .5rem; }
.sp-card { display: block; background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06); text-decoration: none; color: var(--ink); overflow: hidden; border: 1px solid transparent; }
.sp-card:hover { border-color: var(--app, #B04E8C); }
.sp-thumbs { display: flex; height: 92px; position: relative; background: #eee; }
.sp-thumbs img, .sp-thumbs .sp-vid { flex: 1; min-width: 0; object-fit: cover; height: 100%; }
.sp-thumbs .sp-vid { display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; background: #333; }
.sp-thumbs .sp-more { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; border-radius: 999px; padding: 0 .45rem; font-size: .75rem; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sp-cal-h { font-size: .75rem; font-weight: 700; color: var(--muted, #6b7280); text-transform: uppercase; padding: .2rem .4rem; }
.sp-cal-d { background: #fff; border-radius: 10px; min-height: 104px; padding: .35rem; border: 1px solid var(--line, #eee); }
.sp-cal-d.out { opacity: .45; }
.sp-cal-d.today { border-color: var(--app, #B04E8C); box-shadow: inset 0 0 0 1px var(--app, #B04E8C); }
.sp-cal-d .num { font-weight: 700; font-size: .8rem; }
.sp-add { color: var(--muted, #888); text-decoration: none; opacity: 0; }
.sp-cal-d:hover .sp-add { opacity: 1; }
.sp-ev { display: block; font-size: .72rem; line-height: 1.25; margin-top: 3px; padding: 2px 5px; border-radius: 6px; background: color-mix(in srgb, var(--c) 14%, #fff); border-left: 3px solid var(--c); color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); vertical-align: middle; }
.sp-selected { display: flex; flex-wrap: wrap; gap: .5rem; }
.sp-sel { position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: #eee; }
.sp-sel img { width: 100%; height: 100%; object-fit: cover; }
.sp-sel .ph, .sp-tile .ph { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 1.6rem; color: #6b7280; }
.sp-sel .n { position: absolute; left: 5px; top: 5px; background: rgba(0,0,0,.6); color: #fff; border-radius: 999px; font-size: .7rem; padding: 0 .4rem; }
.sp-sel .warn, .sp-tile .warn { position: absolute; right: 5px; top: 5px; color: #F0A500; text-shadow: 0 0 3px #000; }
.sp-sel .ctl { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .15s; }
.sp-sel:hover .ctl { opacity: 1; }
.sp-sel .ctl button { border: 0; background: none; color: #fff; padding: 2px 6px; }
.sp-lead-box { background: #FAF6F9; border-radius: 12px; padding: .9rem; margin-top: .5rem; }
.sp-acc { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line, #ddd); border-radius: 999px; padding: .3rem .7rem; background: #fff; cursor: pointer; font-size: .9rem; }
.sp-acc img { width: 22px; height: 22px; border-radius: 50%; }
.sp-acc:has(input:checked) { border-color: var(--app, #B04E8C); background: color-mix(in srgb, var(--app, #B04E8C) 8%, #fff); }
.sp-prev { background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; overflow: hidden; max-width: 420px; }
.sp-prev-head { display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; font-size: .85rem; }
.sp-prev-head .av { width: 32px; height: 32px; border-radius: 50%; background: url('/app-icons/icon-192.png') center/cover, #eee; flex: none; }
.sp-prev-media { position: relative; background: #f2f2f2; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.sp-prev-media img { width: 100%; height: 100%; object-fit: cover; }
.sp-prev-media .empty { color: #888; font-size: .85rem; padding: 1rem; text-align: center; }
.sp-prev-media .multi { position: absolute; right: 8px; top: 8px; background: rgba(0,0,0,.6); color: #fff; border-radius: 999px; padding: 0 .5rem; font-size: .75rem; }
.sp-prev-media.fb { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.sp-prev-media.fb.n0 { display: none; } .sp-prev-media.fb.n1 { grid-template-columns: 1fr; } .sp-prev-media.fb.n3 img:first-child { grid-column: span 2; }
.sp-prev-media.fb img { aspect-ratio: 1; }
.sp-prev-actions { display: flex; gap: .9rem; padding: .5rem .75rem 0; font-size: 1.15rem; }
.sp-prev-text { padding: .4rem .75rem .75rem; font-size: .88rem; white-space: normal; overflow-wrap: anywhere; }
.sp-prev-text .tag { color: #00376B; }
.sp-fb-link { margin: 0 .75rem .75rem; padding: .6rem; background: #F0F2F5; border-radius: 8px; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-note { border-left: 3px solid var(--line, #ddd); padding: .3rem .6rem; margin-top: .5rem; }
.sp-note.ev-rejected { border-color: #B0657A; } .sp-note.ev-approved, .sp-note.ev-published { border-color: #2E8B57; } .sp-note.ev-submitted { border-color: #C98A0B; } .sp-note.ev-failed { border-color: #C8463D; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.sp-tile { position: relative; background: #fff; border-radius: 12px; overflow: hidden; border: 2px solid transparent; box-shadow: 0 1px 2px rgba(0,0,0,.06); cursor: pointer; }
.sp-tile .img { position: relative; aspect-ratio: 1; background: #f2f2f2; }
.sp-tile .img img { width: 100%; height: 100%; object-fit: cover; }
.sp-tile .ok { position: absolute; left: 5px; bottom: 5px; color: #2E8B57; background: #fff; border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.sp-tile .chk { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.85); border: 2px solid #fff; display: flex; align-items: center; justify-content: center; color: transparent; }
.sp-tile.on { border-color: var(--app, #B04E8C); }
.sp-tile.on .chk { background: var(--app, #B04E8C); color: #fff; }
.sp-tile .cap { padding: .4rem .5rem; }
.sp-tile .stretched { position: absolute; inset: 0; }
.sp-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; border: 2px dashed var(--line, #ccc); border-radius: 12px; padding: 1.2rem; text-align: center; cursor: pointer; position: relative; }
.sp-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sp-drop.on { border-color: var(--app, #B04E8C); background: #FAF6F9; }
.sp-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.sp-feed-item { text-decoration: none; color: var(--ink); }
.sp-feed-item img, .sp-feed-item .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #f2f2f2; display: flex; align-items: center; justify-content: center; }
@media (max-width: 768px) { .sp-cal { grid-template-columns: 1fr; } .sp-cal-h { display: none; } .sp-cal-d.out { display: none; } .sp-cal-d { min-height: 0; } }

/* ---- App Finances ---- */
.fin-ent { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); border-radius: 999px; padding: .1rem .55rem; white-space: nowrap; }
.fin-status { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 13%, white); border-radius: 999px; padding: .1rem .55rem; text-decoration: none; white-space: nowrap; }
.fin-table td, .fin-table th { font-variant-numeric: tabular-nums; }
.fin-table thead th { font-size: .75rem; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.fin-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.fin-mini { display: flex; flex-direction: column; background: #F7F7F4; border-radius: 10px; padding: .45rem .65rem; }
.fin-bar-row { padding: .35rem 0; border-top: 1px solid #F0EFEA; }
.fin-bar-row summary { list-style: none; cursor: pointer; }
.fin-bar-row summary::-webkit-details-marker { display: none; }
.fin-bar { position: relative; height: 7px; background: #EFEEE9; border-radius: 99px; margin-top: .3rem; }
.fin-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.fin-bar i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #1F2A37; opacity: .55; }
.fin-warn { background: #FFF7E6; color: #7A5A12; }
.fin-scroll { max-height: 260px; overflow: auto; }
.fin-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.fin-steps > div { background: var(--surface); border: 1px solid #ECEBE6; border-radius: 14px; padding: .7rem .9rem; display: flex; flex-direction: column; }
.fin-steps span { width: 24px; height: 24px; border-radius: 50%; background: var(--app-soft); color: var(--app); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; margin-bottom: .3rem; }
.fin-steps small { color: var(--ink-2); }
@media (max-width: 768px) { .fin-steps { grid-template-columns: 1fr 1fr; } }
.fin-budget-wrap { max-height: calc(100vh - 230px); overflow: auto; }
.fin-budget thead th { position: sticky; top: 0; background: var(--surface); z-index: 2; }
.fin-budget thead tr:nth-child(2) th { top: 27px; }
.fin-budget .fin-sticky { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 260px; }
.fin-budget thead .fin-sticky { z-index: 3; }
.fin-budget .fin-ref-h { color: #8A94A0; }
.fin-budget .fin-in-h { color: var(--app); }
.fin-budget input.form-control-sm { min-width: 90px; padding: .15rem .4rem; }
.fin-sec th, .fin-sec th.fin-sticky { background: #F3F2ED !important; text-transform: uppercase; letter-spacing: .03em; font-size: .8rem; }
.fin-grp td, .fin-grp td.fin-sticky { background: #FAFAF7 !important; font-weight: 600; }
.fin-res th, .fin-res th.fin-sticky { background: var(--app-soft) !important; }
.fin-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.96); border-top: 1px solid #ECEBE6; padding: .6rem 0; margin-top: -1.5rem; }


/* ---- Mails & CRM sur téléphone (application) ---- */
.crm-tabbar, .crm-fab, .mm-sender, .mm-back { display: none; }
.tl-inbox { padding: .05rem .45rem; font-size: .75rem; line-height: 1.4; white-space: nowrap; }
.mm-sheet { border-radius: 18px 18px 0 0; height: auto !important; max-height: 85vh; }
.mm-list { display: flex; flex-direction: column; background: #F6F6F3; border-radius: 14px; overflow: hidden; }
.mm-list a, .mm-list button { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; color: var(--ink); text-decoration: none; font-weight: 500; border: 0; background: none; width: 100%; text-align: left; border-bottom: 1px solid #ECEBE6; }
.mm-list > :last-child, .mm-list form:last-child button { border-bottom: 0; }
.mm-list i:first-child { font-size: 1.15rem; color: var(--app); width: 1.3rem; text-align: center; }
.mm-list .chk { visibility: hidden; color: var(--app); }
.mm-list a.on { font-weight: 700; } .mm-list a.on .chk { visibility: visible; }
@media (max-width: 1199.98px) {
    .mail-has-open > .mail-listcol, .mail-has-open > .mail-aside { display: none; }
    .mm-back { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; text-decoration: none; margin: 0 0 .6rem -.2rem; font-size: 1.05rem; }
}
@media (max-width: 991.98px) {
    body.app-crm .topbar { display: none; }
    body.app-crm main { padding-top: calc(.75rem + env(safe-area-inset-top)) !important; padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
    body.app-crm .crm-subnav { display: none; }
    body.app-crm .crm-head { margin-bottom: .75rem !important; }
    body.app-crm .crm-head h1 { font-size: 1.6rem; }
    .crm-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid #E6E5E0; padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); }
    .crm-tabbar a, .crm-tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .2rem 0; color: #8A94A0; text-decoration: none; font-size: .7rem; font-weight: 600; border: 0; background: none; }
    .crm-tabbar i { font-size: 1.45rem; line-height: 1.1; }
    .crm-tabbar .on { color: var(--app); }
    .crm-fab { display: block; position: fixed; right: 1.1rem; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 1031; }
    .crm-fab-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--app); color: #fff; font-size: 1.6rem; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
    .crm-fab .dropdown-menu { font-size: 1rem; }
    .crm-fab .dropdown-item { padding: .6rem 1rem; }
    /* page E-mail */
    .mm-head { display: grid; grid-template-columns: 1fr auto; align-items: center; margin-bottom: .6rem; }
    .mm-title { border: 0; background: none; padding: 0; display: flex; align-items: center; gap: .4rem; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; color: var(--app); min-width: 0; }
    .mm-title i { font-size: 1.05rem; }
    .mm-sub { grid-column: 1 / -1; color: var(--ink-2); font-size: .85rem; margin-top: -.15rem; }
    .mm-actions { display: flex; gap: .5rem; }
    .mm-round { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #E3E2DD; background: #fff; color: var(--app); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; text-decoration: none; }
    .mm-round.on { background: var(--app); color: #fff; border-color: var(--app); }
    .mail-wrap { --bs-gutter-y: 0; }
    .mail-aside { padding: 0; }
    .mail-search { margin-bottom: .75rem !important; }
    .mail-search input { border-radius: 999px; padding: .6rem 1.1rem; font-size: 1rem; background: #F3F2EE; border-color: transparent; }
    .mail-listcol .card { border: 0; background: transparent; box-shadow: none; }
    .mail-list { max-height: none; overflow: visible; }
    .mail-selall, .mail-bulk, .mail-row .mail-check, .mail-row .mail-check-ph, .mail-row .sw, .mail-row-actions, .mail-row .who { display: none !important; }
    .mm-sender { display: flex; align-items: center; gap: .8rem; padding: 1.1rem .2rem .2rem; }
    .mm-av { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--c); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.05rem; }
    .mm-name { font-size: 1.3rem; font-weight: 500; min-width: 0; }
    .mail-row { border-bottom: 0; }
    .mail-row .row-item { position: relative; padding: .45rem .2rem .55rem 3.6rem; background: transparent !important; }
    .mail-row.sel .row-item { background: var(--app-soft) !important; border-radius: 10px; }
    .mail-row .row-item > .min-w-0 > .d-flex:first-child { position: absolute; top: .5rem; right: .2rem; }
    .mail-row .mail-date { font-size: .8rem; font-weight: 600; }
    .mail-row .subj { font-size: 1rem; padding-right: 3.2rem; white-space: nowrap; }
    .mail-row.unread .subj { font-weight: 700; }
    .mail-row.unread .subj::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--app); margin: 0 .45rem 0 -1.05rem; vertical-align: 1px; }
    .mail-row .snip { white-space: normal !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem !important; }
    .mail-row .pill { font-size: .7rem; }
    .mail-frame { height: 70vh; min-height: 360px; }
    .mail-viewcol .card-body { padding: 1rem .9rem; }
    .tl-inbox { padding: .1rem .5rem; font-size: .85rem; }
}

@media (max-width: 991.98px) {
    .mail-row { position: relative; overflow: hidden; }
    .mail-row .row-item { position: relative; z-index: 1; background: var(--sand) !important; }
    .mail-row.sel .row-item { background: var(--app-soft) !important; }
    .mm-swipe-bg { position: absolute; inset: 0; z-index: 0; background: #E08A80; color: #fff; display: flex; align-items: center; justify-content: flex-end; gap: .45rem; padding-right: 1.4rem; font-weight: 700; border-radius: 10px; transition: background .15s; }
    .mm-swipe-bg i { font-size: 1.3rem; }
    .mail-row.mm-arm .mm-swipe-bg { background: #C8463D; }
}

@media (max-width: 991.98px) {
    .mail-row { position: relative; overflow: hidden; }
    .mail-row .row-item { position: relative; z-index: 1; background: var(--sand) !important; }
    .mail-row.sel .row-item { background: var(--app-soft) !important; }
    .mm-swipe-bg { position: absolute; inset: 0; z-index: 0; background: #E08A80; color: #fff; display: flex; align-items: center; justify-content: flex-end; gap: .45rem; padding-right: 1.4rem; font-weight: 700; border-radius: 10px; transition: background .15s; }
    .mm-swipe-bg i { font-size: 1.3rem; }
    .mail-row.mm-arm .mm-swipe-bg { background: #C8463D; }
}

/* Téléphone : barre du haut (retour / fermer), recherche et accordéons des listes de contacts */
.mm-topbar { display: none; }
.ct-acc { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; color: var(--ink); margin-bottom: .5rem; text-align: left; }
.ct-acc > i:first-child { color: var(--app); font-size: 1.1rem; }
.ct-acc .badge { background: var(--app); color: #fff; border-radius: 999px; }
.ct-acc.on { border-color: var(--app); }
.ct-acc .bi-chevron-down { transition: transform .2s; }
.ct-acc[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.ct-msearch { margin-bottom: .75rem; }
.ct-msearch input { font-size: 1rem; }
@media (max-width: 991.98px) {
    body.app-crm main { padding-top: 0 !important; }
    body.app-crm .crm-head { display: none !important; }
    .mm-topbar { display: flex; align-items: center; gap: .25rem; position: sticky; top: 0; z-index: 1020; margin: 0 calc(50% - 50vw) .75rem; padding: calc(.35rem + env(safe-area-inset-top)) .5rem .35rem; background: rgba(250, 249, 246, .96); backdrop-filter: blur(10px); border-bottom: 1px solid #E6E5E0; }
    .mm-ico { flex: none; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--app); font-size: 1.35rem; text-decoration: none; }
    .mm-ico:active { background: var(--app-soft); }
    .mm-toptitle { flex: 1; min-width: 0; text-align: center; font-weight: 700; font-size: 1.05rem; }
    .ct-aside .filters { position: static; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .1rem .75rem .75rem; margin-bottom: .5rem; }
    .row.g-4 > .ct-aside { margin-top: 0; }
    .filter-bar .fb-item { min-width: 0; max-width: none; flex: 1 1 45%; }
    .filter-bar .fb-apply { flex: 1 1 100%; padding: .55rem; font-size: .95rem; }
}

.mm-sync { display: contents; }
.mm-sync.busy .bi-arrow-repeat { display: inline-block; animation: mm-spin .9s linear infinite; }
@keyframes mm-spin { to { transform: rotate(360deg); } }

/* ---- Réseaux sociaux v2 : boîte à dépôt, médiathèque, studio, calendrier, albums ---- */
.dp-wrap { max-width: 640px; padding-top: 1rem; padding-bottom: 3rem; }
.dp-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.dp-logo { width: 54px; height: 54px; flex: none; }
.dp-who { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .55rem .8rem; margin-bottom: 1rem; font-size: .92rem; }
.dp-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.dp-card h2 { font-size: 1.02rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.dp-card h2 > span:first-child { width: 26px; height: 26px; border-radius: 50%; background: var(--app-soft, #E3F0EF); color: var(--app, #2B7A78); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; flex: none; }
.dp-pick { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 1.4rem 1rem; border: 2px dashed #CBD5D3; border-radius: 14px; background: #F7FAF9; cursor: pointer; text-align: center; margin: 0; }
.dp-pick i { font-size: 2.2rem; color: var(--app, #2B7A78); }
.dp-pick small { color: var(--ink-2); }
.dp-pick.has { border-style: solid; border-color: var(--app, #2B7A78); }
.dp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: .4rem; margin-top: .6rem; }
.dp-thumbs:empty { display: none; }
.dp-th { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #EEF1F0; display: flex; align-items: center; justify-content: center; color: #6b7280; font-size: 1.4rem; }
.dp-th img { width: 100%; height: 100%; object-fit: cover; }
.dp-th button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; line-height: 1; padding: 0; }
.dp-th.st-archived { opacity: .35; }
.dp-th .ok { position: absolute; left: 3px; bottom: 3px; width: 18px; height: 18px; border-radius: 50%; background: #2E8B57; color: #fff; font-size: .75rem; display: flex; align-items: center; justify-content: center; }
.dp-th.more { font-size: .9rem; font-weight: 700; }
.small-th { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); }
.dp-more summary { cursor: pointer; color: var(--app, #2B7A78); font-weight: 600; margin-top: .7rem; font-size: .92rem; }
.dp-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 700; margin-bottom: .35rem; }
.dp-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.dp-chip { margin: 0; cursor: pointer; }
.dp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.dp-chip span { display: inline-flex; align-items: center; gap: .3rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid #D7DCDB; background: #fff; font-size: .9rem; font-weight: 500; }
.dp-chip input:checked + span { background: var(--app, #2B7A78); border-color: var(--app, #2B7A78); color: #fff; }
.dp-chips.sm .dp-chip span { padding: .2rem .55rem; font-size: .78rem; }
.dp-rights { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; background: #FFF8EC; border: 1px solid #F1DFC0; border-radius: 12px; padding: .8rem; margin-bottom: 1rem; }
.dp-rights input { flex: none; margin-top: .2rem; width: 1.2rem; height: 1.2rem; }
.dp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dp-send { border-radius: 14px; padding: .8rem; }
.dp-progress { position: fixed; inset: 0; background: rgba(20,30,30,.55); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.dp-progress[hidden] { display: none; }
.dp-progress-box { background: #fff; border-radius: 16px; padding: 1.2rem; width: 100%; max-width: 380px; }
.dp-ok { width: 64px; height: 64px; border-radius: 50%; background: #2E8B57; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; }
.dp-drop .pill { flex: none; }

.sp-board { grid-template-columns: repeat(4, minmax(240px, 1fr)); overflow-x: auto; }
.sp-col { background: #F4F3EF; border-radius: 14px; padding: .5rem; min-height: 200px; }
.sp-col-h { display: flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; padding: .3rem .4rem .6rem; }
.sp-col-h .n { background: #fff; border-radius: 999px; padding: 0 .5rem; font-size: .75rem; color: var(--ink-2); }
.sp-col-h a { color: var(--ink-2); }
.sp-col-b { display: flex; flex-direction: column; gap: .5rem; }
.sp-card { display: block; background: #fff; border-radius: 12px; padding: .6rem .7rem; text-decoration: none; color: var(--ink); border-left: 4px solid var(--c); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.sp-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.sp-card .sp-kind { color: var(--ink-2); margin-top: .1rem; }
.sp-card .sp-title { font-weight: 600; font-size: .9rem; line-height: 1.25; }
.sp-card .sp-meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .75rem; color: var(--ink-2); margin-top: .25rem; }
.sp-card .sp-thumbs { display: flex; gap: 3px; margin-top: .45rem; }
.sp-card .sp-thumbs img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.sp-card .sp-thumbs span { font-size: .75rem; color: var(--ink-2); align-self: center; }
.sp-card .sp-excerpt { margin-top: .3rem; }
.sp-card .sp-foot { display: flex; justify-content: space-between; gap: .4rem; font-size: .72rem; color: var(--ink-2); margin-top: .45rem; }

.sp-cal-n { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .8rem; margin-bottom: .2rem; }
.sp-cal-n .add, .sp-week-h .add { opacity: 0; color: var(--ink-2); text-decoration: none; }
.sp-cal-d:hover .add, .sp-week-d:hover .add { opacity: 1; }
.sp-ev { display: block; font-size: .74rem; line-height: 1.25; padding: .2rem .35rem; border-radius: 6px; margin-bottom: 2px; background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 80%, black); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--c); }
.sp-ev b { font-weight: 700; margin-right: .15rem; }
.sp-ev.dragging, [draggable].dragging { opacity: .4; }
.drop-over { outline: 2px dashed var(--app, #B04E8C); outline-offset: -2px; background: var(--app-soft, #F6E9F1) !important; }
.sp-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.sp-week.one { grid-template-columns: 1fr; }
.sp-week-d { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .5rem; min-height: 260px; }
.sp-week-d.today { border-color: var(--app); box-shadow: inset 0 0 0 1px var(--app); }
.sp-week-h { display: flex; justify-content: space-between; font-weight: 700; font-size: .85rem; margin-bottom: .4rem; }
.sp-week-d .sp-card { margin-bottom: .4rem; }
.sp-side { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .6rem; }
.sp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .3rem; }
@media (max-width: 991.98px) { .sp-week { grid-template-columns: 1fr; } .sp-week-d { min-height: 0; } .sp-board { grid-template-columns: repeat(4, 85vw); } }

.sp-grid.sm { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.sp-tile { cursor: default; }
.sp-tile.sel { border-color: var(--app, #B04E8C); }
.sp-tile .sp-check { position: absolute; top: 7px; left: 7px; z-index: 3; width: 1.2rem; height: 1.2rem; box-shadow: 0 0 0 2px rgba(255,255,255,.8); }
.sp-tile-link { display: block; color: var(--ink); text-decoration: none; }
.sp-tile-img { position: relative; aspect-ratio: 1; background: #f2f2f2; }
.sp-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-tile-cap { display: flex; justify-content: space-between; gap: .3rem; padding: .35rem .5rem; font-size: .76rem; }
.sp-tile-cap small { color: var(--ink-2); flex: none; }
.sp-tile.pick { cursor: pointer; margin: 0; }
.sp-tile.pick.off .sp-tile-img { opacity: .35; }
.sp-tile-open { position: absolute; right: 6px; bottom: 6px; background: rgba(255,255,255,.9); border-radius: 6px; padding: 0 .3rem; color: var(--ink); font-size: .8rem; }
.sp-rights { position: absolute; top: 7px; right: 7px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 2px rgba(0,0,0,.4); }
.sp-rights.static { position: static; display: inline-block; vertical-align: -2px; }
.sp-rights.big { width: 20px; height: 20px; top: 12px; right: 12px; }
.sp-rights.r-green { background: #2E8B57; } .sp-rights.r-red { background: #C8463D; } .sp-rights.r-none { background: #B8BEC4; }
.sp-minor { position: absolute; top: 26px; right: 4px; background: #F0A500; color: #fff; font-size: .62rem; font-weight: 800; border-radius: 6px; padding: 0 .25rem; }
.sp-fav { position: absolute; bottom: 6px; right: 7px; color: #F5B800; text-shadow: 0 0 3px rgba(0,0,0,.5); }
.sp-st { position: absolute; bottom: 6px; left: 7px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--c); display: flex; align-items: center; justify-content: center; font-size: .78rem; box-shadow: 0 0 2px rgba(0,0,0,.3); }
.sp-bulk { position: sticky; top: 70px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .5rem .7rem; margin-bottom: .7rem; background: #FFF8EC; border: 1px solid #F1DFC0; border-radius: 12px; font-size: .88rem; }
.sp-bulk[hidden] { display: none; }
.sp-facets { display: flex; flex-wrap: wrap; gap: .25rem; padding: 0 .3rem; }
.filters .sp-facets a { display: inline-block; padding: .1rem .5rem; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; }
.sp-scroll { max-height: 220px; overflow: auto; }
.sp-viewer { position: relative; background: #111; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.sp-viewer img, .sp-viewer video { max-width: 100%; max-height: 75vh; display: block; }
.sp-linkbox { color: #fff; padding: 2rem; word-break: break-all; }
.sp-people { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .35rem; }
.sp-person { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .3rem .15rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #fff; }
.sp-person.r-green { background: #2E8B57; } .sp-person.r-red { background: #C8463D; }
.sp-person button { border: 0; background: rgba(255,255,255,.25); color: #fff; border-radius: 50%; width: 18px; height: 18px; line-height: 1; padding: 0; }
.sp-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.sp-album { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.sp-album-img { aspect-ratio: 4/3; background: #F2F1ED; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #B8BEC4; }
.sp-album-img img { width: 100%; height: 100%; object-fit: cover; }
.sp-multi-h { display: flex; align-items: center; width: 100%; gap: .3rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: #FAFAF8; font-weight: 600; font-size: .9rem; text-align: left; }
.sp-multi-h small { font-weight: 400; }
.sp-rich { min-height: 280px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; background: #fff; }
.sp-rich-wrap .mail-toolbar { border: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.sp-rich h2 { font-size: 1.25rem; margin: .8em 0 .4em; }
.sp-blog { background: #F5F7FA; border-radius: 10px; padding: .7rem; }
#ig-media[data-fmt="square"] img { aspect-ratio: 1; object-fit: cover; width: 100%; }
#ig-media[data-fmt="portrait"] img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.sp-stars { display: inline-flex; flex-direction: row-reverse; }
.sp-stars input { display: none; }
.sp-stars label { color: #D5D9DD; cursor: pointer; font-size: 1.2rem; padding: 0 .08rem; }
.sp-stars input:checked ~ label, .sp-stars label:hover, .sp-stars label:hover ~ label { color: #F5B800; }
.sp-bar { height: 10px; background: #F0EFEA; border-radius: 99px; position: relative; }
.sp-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--app, #B04E8C); }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .5rem; }
.gal-item { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #eee; display: flex; align-items: center; justify-content: center; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gal-item:hover img { transform: scale(1.03); }
.gal-light { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 3000; display: flex; align-items: center; justify-content: center; }
.gal-light[hidden] { display: none; }
.gal-light img { max-width: 92vw; max-height: 86vh; }
.gal-light button { position: absolute; border: 0; background: none; color: #fff; font-size: 2.6rem; line-height: 1; padding: .5rem 1rem; }
.gal-x { top: .5rem; right: .5rem; } .gal-prev { left: 0; top: 50%; transform: translateY(-50%); } .gal-next { right: 0; top: 50%; transform: translateY(-50%); }
.gal-dl { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); }
@media print { .topbar, .subnav, .app-head, .d-print-none { display: none !important; } .sp-poster { border: 0; box-shadow: none; } .sp-poster #dp-qr { transform: scale(1.6); margin: 3rem 0; } }

/* ===== Réseaux sociaux v3 ===== */
.sp-mtabs { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 1px solid var(--line, #E3E7EC); }
.sp-mtabs a { padding: .45rem .8rem; border-radius: 8px 8px 0 0; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.sp-mtabs a:hover { color: var(--ink); background: var(--app-soft); }
.sp-mtabs a.on { color: var(--app); border-bottom-color: var(--app); }
.filters a.sub { padding-left: 1.6rem; font-size: .85rem; }
.sp-newfolder { display: grid; grid-template-columns: 1fr auto; gap: .3rem; }
.sp-newfolder input { grid-column: 1 / -1; }
.sp-folder-head { border-left: 4px solid var(--app); }
.sp-review { border-top: 1px dashed var(--line, #E3E7EC); padding-top: .6rem; }
.sp-channels { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.sp-channels label { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border: 1px solid var(--line, #E3E7EC); border-radius: 999px; cursor: pointer; font-size: .9rem; background: #fff; }
.sp-channels label:has(input:checked) { border-color: var(--app); background: var(--app-soft); font-weight: 600; }
.sp-multi .nav-tabs .nav-link { font-size: .9rem; }
.sp-multi .nav li.off { opacity: .4; }
.sp-multi .nav li.off .nav-link::after { content: " (non sélectionné)"; font-size: .75rem; font-weight: 400; }
.sp-multi-body { border: 1px solid var(--line, #E3E7EC); border-top: 0; border-radius: 0 0 10px 10px; padding: .8rem; background: #fff; }
.sp-prev-blog { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line, #E3E7EC); }
.sp-blog-cover { position: relative; aspect-ratio: 16 / 9; background: #DDE6EE center / cover no-repeat; }
.sp-blog-cover-t { position: absolute; inset: auto 0 0 0; padding: 1.2rem .9rem .7rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.sp-blog-cover-t small { text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; opacity: .9; }
.sp-blog-body { font-size: .9rem; line-height: 1.55; }
.sp-blog-body img { max-width: 100%; height: auto; border-radius: 6px; }
@media (max-width: 991.98px) { .sp-mtabs a { flex: 1; text-align: center; } }

/* Boîte à dépôt affichée dans une page du site (iframe) */
.in-frame body { background: transparent; }
.in-frame footer.site { display: none; }
.in-frame main { padding-top: .5rem !important; }
.in-frame .dp-head { display: none; }
