/* ═══════════════════════════════════════════════════════════════════
   Nouveau Chapitre — Charte « Nature apaisée » (direction C)
   Couche de style ajoutée APRÈS la feuille principale : elle ne modifie
   aucune fonction. Pour revenir à l'ancien style, il suffit de retirer
   le lien vers ce fichier dans layouts/app.blade.php.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Palette (remplace les couleurs Tailwind « primary », « rose », « slate ») ── */
:root {
    --color-primary-50:  #F1F6F2;
    --color-primary-100: #E2ECE5;
    --color-primary-200: #C7DACD;
    --color-primary-300: #A5C2AE;
    --color-primary-400: #84A892;
    --color-primary-500: #6F947E;
    --color-primary-600: #5F8270;
    --color-primary-700: #4C6A5B;
    --color-primary-800: #3B5347;
    --color-primary-900: #2C3E35;

    --color-rose-50:  #FBF1F2;
    --color-rose-100: #F6E1E3;
    --color-rose-200: #EFC9CC;
    --color-rose-400: #E1A2A8;
    --color-rose-500: #D4848C;
    --color-rose-600: #B8656E;

    --color-slate-50:  #F7F5F0;
    --color-slate-100: #EFECE5;
    --color-slate-200: #E3DFD6;
    --color-slate-400: #9AA19B;
    --color-slate-600: #5C655F;
    --color-slate-700: #3F4842;
    --color-slate-800: #27302A;
    --color-slate-900: #1F2A24;

    --font-sans: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;

    --nc-bg: #F7F5F0;
    --nc-card: #FFFFFF;
    --nc-line: #E6E3DA;
    --nc-text: #1F2A24;
    --nc-muted: #7D857F;
    --nc-soft: #EEF3EF;
    --nc-accent: #E8B4B8;
    --nc-grad: linear-gradient(135deg, #5F8270, #7FA08D);
    --nc-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(31,42,36,.06);
}

/* ── Mode sombre (choisi par l'utilisateur ou selon le téléphone) ── */
html[data-theme="dark"] {
    color-scheme: dark;
    --color-primary-50:  #24302A;
    --color-primary-100: #2B3A32;
    --color-primary-200: #36493E;
    --color-primary-300: #4D6656;
    --color-primary-400: #7FA08D;
    --color-primary-500: #8FB59F;
    --color-primary-600: #9CC1AB;
    --color-primary-700: #B2D0BE;
    --color-primary-800: #C9DED1;
    --color-primary-900: #E1EEE6;

    --color-rose-50:  #33262A;
    --color-rose-100: #3D2C31;
    --color-rose-200: #553A41;

    --color-slate-50:  #141A17;
    --color-slate-100: #1E2622;
    --color-slate-200: #2C3631;
    --color-slate-400: #8E9890;
    --color-slate-600: #B4BDB6;
    --color-slate-700: #CDD4CF;
    --color-slate-800: #E6EBE7;
    --color-slate-900: #F2F5F2;

    --nc-bg: #141A17;
    --nc-card: #1E2622;
    --nc-line: #2C3631;
    --nc-text: #EEF1EC;
    --nc-muted: #A9B3AC;
    --nc-soft: #25302A;
    --nc-grad: linear-gradient(135deg, #6F947E, #8FB59F);
    --nc-shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
}

/* ── Base ── */
html { scroll-behavior: auto !important; }
body { background-color: var(--nc-bg); color: var(--nc-text); font-family: var(--font-sans); transition: background-color .3s, color .3s; }
h1, h2, h3, .font-display { font-family: var(--font-display); letter-spacing: -0.01em; }
@media (min-width: 768px) {
    /* Remplace overflow-x: hidden de app.css par clip sur PC & Mac (Safari/Chrome)
       pour que le bloc « 🧭 Navigation » (position: sticky) suive le défilement jusqu'en bas de page */
    html, body { overflow-x: clip !important; overflow-y: visible !important; }
    .nc-sidebar-sticky { position: -webkit-sticky !important; position: sticky !important; top: 88px !important; }
}

/* ── Barre du haut : verre dépoli ── */
.navbar { background: color-mix(in srgb, var(--nc-card) 82%, transparent) !important; border-bottom: 1px solid var(--nc-line); box-shadow: none; }
.navbar-brand { background: var(--nc-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 600; }
.text-gradient { background: var(--nc-grad); -webkit-background-clip: text; background-clip: text; }

/* ── Cartes : blanches, coins arrondis, ombre douce, sans bordure colorée ── */
.card { background: var(--nc-card); border: 1px solid var(--nc-line); border-radius: 20px; box-shadow: var(--nc-shadow); }
.card:hover { transform: none; box-shadow: var(--nc-shadow); }
.card-post-form { background: var(--nc-card) !important; border-color: var(--nc-line) !important; }
.card-header { border-bottom-color: var(--nc-line); }
.post-card { background: var(--nc-card); border: 1px solid var(--nc-line); border-radius: 20px; box-shadow: var(--nc-shadow); }
.post-card:hover { box-shadow: var(--nc-shadow); }
.post-actions { border-top-color: var(--nc-line); }
.post-body { color: var(--color-slate-700); }

/* ── Boutons ── */
.btn { border-radius: 14px; }
.btn-primary { background: var(--nc-grad); box-shadow: 0 6px 18px rgba(95,130,112,.28); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(95,130,112,.36); }
.btn-secondary { background: var(--nc-soft); color: var(--color-slate-700); border: 1px solid var(--nc-line); }
.btn-secondary:hover { background: var(--color-primary-100); }
.btn-outline { border-color: var(--color-primary-300); color: var(--color-primary-700); }

/* ── Champs de saisie ── */
.form-control { background: var(--nc-soft); border-color: transparent; border-radius: 14px; color: var(--nc-text); }
.form-control:focus { background: var(--nc-card); border-color: var(--color-primary-500); box-shadow: 0 0 0 4px rgba(95,130,112,.15); }
.form-check { background: var(--nc-soft); border-color: var(--nc-line); }

/* ── Badges pastel uniformes ── */
.badge { border-radius: 999px; font-weight: 600; }
.badge-amitie, .badge-activites, .badge-entraide, .badge-amis, .badge-nouveaux_amis, .badge-amour { background: var(--nc-soft); color: var(--color-primary-700); }

/* ── Réactions ── */
.reaction-btn { border: 1px solid var(--nc-line); background: var(--nc-card); }
.reaction-btn.active { background: var(--nc-soft); border-color: var(--color-primary-300); }

/* ── Avatars ── */
.avatar { background: var(--nc-grad); }

/* ── Alertes ── */
.alert-info { background: var(--nc-soft); border-color: var(--color-primary-200); color: var(--color-primary-800); }

/* ── Mode sombre : fonds clairs écrits en dur dans les pages ── */
html[data-theme="dark"] .bg-white, html[data-theme="dark"] .bg-white\/95 { background-color: var(--nc-card) !important; }
html[data-theme="dark"] .bg-slate-50, html[data-theme="dark"] [class*="bg-slate-50/"] { background-color: var(--nc-soft) !important; }
html[data-theme="dark"] .text-slate-800, html[data-theme="dark"] .text-slate-900 { color: var(--nc-text) !important; }
html[data-theme="dark"] .border-slate-100, html[data-theme="dark"] .border-slate-200, html[data-theme="dark"] .border-rose-100, html[data-theme="dark"] .border-primary-100, html[data-theme="dark"] .border-primary-200 { border-color: var(--nc-line) !important; }
html[data-theme="dark"] .alert-success { background: #1F2E25; border-color: #2F4A39; color: #BFE3CB; }
html[data-theme="dark"] .alert-warning { background: #2E2A1D; border-color: #4A4229; color: #F1DFA7; }
html[data-theme="dark"] .alert-danger  { background: #33232A; border-color: #553A41; color: #F2C6CC; }
html[data-theme="dark"] .nc-emoji-panel, html[data-theme="dark"] .nc-emoji-btn { background: var(--nc-card) !important; border-color: var(--nc-line) !important; }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { color: var(--nc-text); }

/* ── Bouton clair / sombre ── */
.nc-theme-btn { width: 38px; height: 38px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; line-height: 1; display: inline-grid; place-items: center; transition: background .2s; }
.nc-theme-btn:hover { background: var(--color-primary-50); }

/* ── Barre d'onglets en bas (téléphone uniquement) : App-Shell fixe anti-décalage iOS ── */
.nc-tabbar { display: none; }
@media (max-width: 767px) {
    /* Verrouille html et body sur l'écran : seul <main> défile à l'intérieur.
       Ainsi, la barre du haut (.navbar) et la barre du bas (.nc-tabbar) ne peuvent JAMAIS bouger au scroll. */
    html, body.has-tabbar {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        overflow: hidden !important;
        padding-bottom: 0 !important;
    }
    body.has-tabbar > main {
        height: 100% !important;
        max-height: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .nc-tabbar {
        display: flex; justify-content: space-around; position: fixed !important; z-index: 950 !important;
        left: 10px !important; right: 10px !important; bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        top: auto !important;
        width: auto; max-width: 560px; margin: 0 auto;
        -webkit-transform: translate3d(0, 0, 0) !important; transform: translate3d(0, 0, 0) !important;
        padding: 6px 4px;
        background: linear-gradient(135deg, #5F8270, #7FA08D);
        -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
        border: 0; border-radius: 22px; box-shadow: 0 10px 28px rgba(76,106,91,.4);
        transition: opacity .18s ease;
    }
    .nc-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; font-size: 10.5px !important; line-height: 1.15 !important; font-weight: 600; color: var(--nc-muted); text-decoration: none; }
    .nc-tab svg { width: 22px !important; height: 22px !important; }
    .nc-tab.active { color: var(--color-primary-700); background: var(--nc-soft); }
    /* La barre se masque sans display:none pendant la saisie */
    body.nc-typing .nc-tabbar {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* ── En-tête auteur des publications : ♥ [Pseudo] icônes · thème ── */
.nc-author { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.nc-author-main { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-width: 0; flex-wrap: nowrap; }
.nc-author-heart, .nc-author-icons { border: 0; background: none; padding: 0; cursor: pointer; line-height: 1.05; flex-shrink: 0; }
.nc-author-heart { font-size: 15px; }
.nc-author-icons { font-size: 10px; text-align: left; }
.nc-name-chip { border: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 14px; padding: 3px 12px; border-radius: 999px; color: #fff; background: var(--nc-grad); box-shadow: 0 3px 10px rgba(95,130,112,.25); max-width: 100%; min-width: 0; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-you-badge { flex-shrink: 0; }
.nc-theme-pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--nc-soft); color: var(--color-primary-700); }
.nc-tip { position: absolute; left: 0; top: 100%; margin-top: 6px; z-index: 60; background: var(--nc-card); color: var(--color-slate-700); border: 1px solid var(--nc-line); border-radius: 14px; padding: 8px 12px; font-size: 12px; line-height: 1.6; white-space: nowrap; box-shadow: 0 10px 26px rgba(0,0,0,.14); }
.nc-profile-tip { text-align: center; white-space: normal; width: 230px; padding: 16px; }
.nc-profile-photo { width: 100px; height: 100px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 30px; font-weight: 700; color: #fff; background: var(--nc-grad); border: 4px solid var(--nc-card); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.nc-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.nc-profile-name { font-weight: 700; font-size: 16px; color: var(--nc-text); }
.nc-profile-city { font-size: 12px; color: var(--nc-muted); margin-bottom: 10px; }
.nc-profile-actions { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* Les mini-bulles ne doivent pas être coupées par la carte */
.post-card { overflow: visible; }


/* ═══ Version D validée : barres vert dégradé, onglet actif vert très pâle ═══ */
/* Barre du haut : Fil d'actualité · Mes amis · Mes publications */
.nc-feed-tabs { background: linear-gradient(135deg, #5F8270, #7FA08D) !important; border: 0 !important; border-radius: 18px !important; padding: 5px !important; box-shadow: 0 6px 18px rgba(95,130,112,.3) !important; }
.nc-feed-tabs > a { color: rgba(255,255,255,.9) !important; border-radius: 14px !important; }
.nc-feed-tabs > a:hover { background: rgba(255,255,255,.12) !important; }
.nc-feed-tabs > a.is-active { background: #EEF3EF !important; color: #4C6A5B !important; border: 0 !important; box-shadow: 0 2px 8px rgba(0,0,0,.12) !important; }
/* Barre du bas (téléphone) */
@media (max-width: 767px) {
    .nc-tabbar { background: linear-gradient(135deg, #5F8270, #7FA08D); border: 0; box-shadow: 0 10px 28px rgba(76,106,91,.4); }
    .nc-tab { color: rgba(255,255,255,.88); }
    .nc-tab.active { background: #EEF3EF; color: #4C6A5B; }
}
/* Mode sombre : dégradé plus soutenu, onglet actif vert très foncé, texte vert pâle */
html[data-theme="dark"] .nc-feed-tabs { background: linear-gradient(135deg, #4C6A5B, #6F947E) !important; box-shadow: 0 10px 28px rgba(0,0,0,.45) !important; }
html[data-theme="dark"] .nc-feed-tabs > a.is-active { background: #25302A !important; color: #C9DED1 !important; }
@media (max-width: 767px) {
    html[data-theme="dark"] .nc-tabbar { background: linear-gradient(135deg, #4C6A5B, #6F947E); box-shadow: 0 10px 28px rgba(0,0,0,.45); }
    html[data-theme="dark"] .nc-tab.active { background: #25302A; color: #C9DED1; }
}

/* ═══ Choix du thème : liste personnalisée sur fond vert (select[data-nc-pick]) ═══ */
.nc-pick { position: relative; }
.nc-pick-native { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; overflow: hidden; }
.nc-pick-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600; color: #fff; padding: 10px 14px; border-radius: 14px; background: linear-gradient(135deg, #5F8270, #7FA08D); box-shadow: 0 4px 12px rgba(95,130,112,.28); text-align: left; }
.nc-pick-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-pick-list { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 220px; padding: 6px; border-radius: 18px; background: linear-gradient(135deg, #5F8270, #7FA08D); box-shadow: 0 14px 34px rgba(76,106,91,.4); }
.nc-pick.open .nc-pick-list { display: block; }
.nc-pick-list button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.nc-pick-list button:hover { background: rgba(255,255,255,.14); }
.nc-pick-list button.is-on { background: #EEF3EF; color: #4C6A5B; }
html[data-theme="dark"] .nc-pick-btn, html[data-theme="dark"] .nc-pick-list { background: linear-gradient(135deg, #4C6A5B, #6F947E); }
html[data-theme="dark"] .nc-pick-list button.is-on { background: #25302A; color: #C9DED1; }
/* La liste des thèmes ne doit pas être coupée par la carte de saisie */
.card-post-form { overflow: visible !important; }


/* ═══ Barre du haut sur petits écrans / police agrandie (Android) ═══ */
/* Le nom reste sur une seule ligne et rétrécit au besoin */
.navbar-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; margin-right: 8px; }
.navbar .app-container { gap: 4px; }
@media (max-width: 767px) {
    .navbar-brand { font-size: clamp(1rem, 5.2vw, 1.35rem); }
    .navbar .app-container > .md\:hidden { flex-shrink: 0; }
}

/* Boutons de réaction (👍 ❤️ 🤗 🙏 🌹) : même fond vert pâle que « Signaler » */
.reaction-btn { background: var(--nc-soft); border: 1px solid var(--nc-line); }
.reaction-btn:hover { background: var(--color-primary-100); }
.reaction-btn.active { background: var(--color-primary-100); border-color: var(--color-primary-300); }


/* Repère « Vous » sur ses propres publications */
.nc-you-badge { display:inline-flex; align-items:center; font-size:11px; font-weight:700; padding:2px 8px; border-radius:999px; background:#EEF3EF; color:#4C6A5B; border:1px solid #C7DACD; }
html[data-theme="dark"] .nc-you-badge { background:#25302A; color:#C9DED1; border-color:#36493E; }


/* Carte (Leaflet) : reste sous le menu du haut, le menu déroulant et la barre du bas */
.leaflet-container { position: relative; z-index: 0 !important; isolation: isolate; }
.navbar { z-index: 1000 !important; }


/* Cartes d'abonnement : boutons Choisir identiques et lisibilité en mode clair / sombre */
.plan-card { background: var(--nc-card); border-color: var(--nc-line); }
.plan-card.recommended { background: linear-gradient(160deg, var(--nc-soft) 0%, var(--nc-card) 60%); border-color: var(--color-primary-400); }
.plan-card h2 { color: var(--nc-text) !important; }
.plan-card .plan-price { color: #4C6A5B !important; }
html[data-theme="dark"] .plan-card .plan-price { color: #9CC1AB !important; }
.plan-card ul { color: var(--color-slate-700) !important; }
.plan-card .btn-primary { background: linear-gradient(135deg, #5F8270, #7FA08D) !important; color: #FFFFFF !important; border: 0 !important; }

/* Boutons médias (Photo, Vidéo, Filmer, Musique, Enregistrer, PDF) sur le fil ET dans la messagerie privée — Vert Sauge Tendre */
.card-post-form .btn-secondary,
#send-form .btn-secondary {
    background: #C7DACD !important;
    color: #1F2A24 !important;
    border: 1px solid #84A892 !important;
}
.card-post-form .btn-secondary:hover,
#send-form .btn-secondary:hover {
    background: #B5CDBD !important;
}
html[data-theme="dark"] .card-post-form .btn-secondary,
html[data-theme="dark"] #send-form .btn-secondary {
    background: #3A5547 !important;
    color: #F0F7F3 !important;
    border: 1px solid #6F947E !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
html[data-theme="dark"] .card-post-form .btn-secondary:hover,
html[data-theme="dark"] #send-form .btn-secondary:hover {
    background: #466555 !important;
}

/* Émoticônes de réaction (👍 ❤️ 🤗 🙏 🌹) et bouton 😊 — même Vert Sauge Tendre (Proposition 3) */
.reaction-btn, .nc-emoji-btn {
    background: #C7DACD !important;
    color: #1F2A24 !important;
    border: 1px solid #84A892 !important;
}
.reaction-btn:hover, .reaction-btn.active, .nc-emoji-btn:hover {
    background: #B5CDBD !important;
    border-color: #6F947E !important;
}
html[data-theme="dark"] .reaction-btn, html[data-theme="dark"] .nc-emoji-btn {
    background: #3A5547 !important;
    color: #F0F7F3 !important;
    border: 1px solid #6F947E !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
html[data-theme="dark"] .reaction-btn:hover, html[data-theme="dark"] .reaction-btn.active, html[data-theme="dark"] .nc-emoji-btn:hover {
    background: #466555 !important;
    border-color: #8FB59F !important;
}


/* Option 1 : masque le bouton 😊 sur mobile et tablette (clavier natif utilisé) */
@media (max-width: 1023px), (pointer: coarse) {
    .nc-emoji-btn, .nc-emoji-panel { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   Accessibilité (Malvoyants & Malentendants) — Visuel 2
   ═══════════════════════════════════════════════════════════════════ */
/* Sur téléphone : verrouille en pixels la barre du haut (> .app-container uniquement !) et ses boutons (🌙, 🔔, ☰)
   pour que « Nouveau Chapitre » reste entier même en A+ ou A++, sans écraser le menu déroulant ☰ */
@media (max-width: 767px) {
    .navbar > .app-container {
        height: 58px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        gap: 4px !important;
    }
    .navbar-brand {
        font-size: 15px !important;
        letter-spacing: -0.02em !important;
        line-height: 1.15 !important;
        margin-right: 4px !important;
        gap: 6px !important;
    }
    .navbar > .app-container > .md\:hidden {
        gap: 2px !important;
        flex-shrink: 0 !important;
    }
    .navbar > .app-container > .md\:hidden > button,
    .navbar > .app-container > .md\:hidden > div > button {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        font-size: 17px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .navbar > .app-container > .md\:hidden svg {
        width: 22px !important;
        height: 22px !important;
    }
    /* Menu déroulant mobile ☰ : fond opaque complet et défilement fluide même en A++ */
    .navbar > div[x-show="mobileOpen"] {
        background: var(--nc-card) !important;
        border-top: 1px solid var(--nc-line) !important;
        max-height: calc(100dvh - 68px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35) !important;
    }
    .navbar > div[x-show="mobileOpen"] > .app-container {
        height: auto !important;
        padding-bottom: 24px !important;
    }
}

/* Panneau déroulant des notifications (🔔) : toujours cadré dans l'écran même en A++ */
.nc-notif-panel {
    width: 340px !important;
    max-width: calc(100vw - 24px) !important;
}
.nc-notif-panel p {
    white-space: normal !important;
    word-break: break-word !important;
}
.nc-notif-head {
    flex-wrap: wrap;
}
.nc-notif-close {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px;
    border: 1px solid var(--nc-line);
    background: var(--nc-card);
    color: var(--nc-text);
    font-size: 13px !important;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .nc-notif-panel {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        top: calc(58px + env(safe-area-inset-top, 0px)) !important;
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
        margin-top: 4px !important;
        z-index: 1050 !important;
    }
}

/* Bouton dans le menu déroulant ☰ sur mobile (Visuel 2) */
.nc-a11y-mobile-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 6px;
    border-radius: 12px;
    border: 1px solid #84A892;
    background: #C7DACD;
    color: #1F2A24;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}
html[data-theme="dark"] .nc-a11y-mobile-item {
    background: #3A5547;
    color: #F0F7F3;
    border-color: #6F947E;
}
.nc-a11y-badge {
    background: rgba(255, 255, 255, 0.55);
    color: #1F2A24;
    padding: 2px 8px;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 800;
}
html[data-theme="dark"] .nc-a11y-badge {
    background: #17201C;
    color: #F0F7F3;
}

/* Bouton ♿ Aa dans la barre du haut sur ordinateur uniquement */
.nc-a11y-navbtn {
    height: 36px; padding: 0 10px; border-radius: 12px; margin-left: 4px;
    border: 1px solid #84A892; background: #C7DACD; color: #1F2A24;
    font-family: inherit; font-size: 14px; font-weight: 700;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    transition: background .2s;
}
.nc-a11y-navbtn:hover { background: #B5CDBD; }
html[data-theme="dark"] .nc-a11y-navbtn {
    background: #3A5547; color: #F0F7F3; border-color: #6F947E;
}
html[data-theme="dark"] .nc-a11y-navbtn:hover { background: #466555; }

/* Bouton 🎤 Dicter à la voix (classe distincte de .nc-emoji-btn) */
.nc-mic-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border: 1px solid #84A892;
    background: #C7DACD;
    color: #1F2A24;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s, background .15s;
}
.nc-mic-btn:hover { background: #B5CDBD; transform: scale(1.06); }
html[data-theme="dark"] .nc-mic-btn {
    background: #3A5547;
    color: #F0F7F3;
    border-color: #6F947E;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
html[data-theme="dark"] .nc-mic-btn:hover { background: #466555; }
@media (max-width: 640px) {
    .comment-form .nc-mic-btn { width: 36px; height: 36px; font-size: 1.05rem; }
}

/* Fenêtre modale d'accessibilité (dimensions en px pour rester accessible en A++) */
.nc-a11y-backdrop {
    position: fixed; inset: 0; z-index: 10050;
    background: rgba(15, 23, 20, 0.62);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: max(56px, calc(env(safe-area-inset-top, 24px) + 18px)) 14px max(24px, calc(env(safe-area-inset-bottom, 16px) + 12px));
}
.nc-a11y-dialog {
    width: 100%; max-width: 500px;
    max-height: calc(100dvh - 84px);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: var(--nc-card); color: var(--nc-text);
    border: 2px solid #6F947E; border-radius: 22px;
    padding: 0 18px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.38);
}
.nc-a11y-head {
    position: sticky; top: 0; z-index: 2;
    background: var(--nc-card);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 16px 0 12px; margin-bottom: 6px; border-bottom: 1px solid var(--nc-line);
}
.nc-a11y-head h3 { margin: 0; font-size: 18px !important; line-height: 1.25; font-weight: 700; }
.nc-a11y-close {
    flex-shrink: 0;
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid #84A892;
    background: var(--nc-soft); color: var(--nc-text); font-size: 18px !important; font-weight: 800; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.nc-a11y-row {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--nc-line);
}
.nc-a11y-label { font-weight: 700; font-size: 15.5px !important; line-height: 1.3; }
.nc-a11y-sub { font-size: 13px !important; line-height: 1.35; color: var(--nc-muted); margin-top: 2px; }
.nc-a11y-seg {
    display: flex; gap: 5px; background: var(--nc-soft); padding: 4px; border-radius: 12px; width: 100%;
}
.nc-a11y-seg button {
    flex: 1;
    border: 0; background: transparent; color: var(--nc-text);
    font-family: inherit; font-weight: 700; font-size: 13.5px !important;
    padding: 8px 6px; border-radius: 9px; cursor: pointer; text-align: center;
}
.nc-a11y-seg button.active {
    background: linear-gradient(135deg, #5F8270, #7FA08D); color: #fff;
}
.nc-a11y-switch, .nc-a11y-test {
    border: 1px solid #84A892; background: var(--nc-soft); color: var(--nc-text);
    font-family: inherit; font-weight: 700; font-size: 14px !important;
    padding: 8px 14px; border-radius: 11px; cursor: pointer;
}
.nc-a11y-switch.on {
    background: linear-gradient(135deg, #5F8270, #7FA08D); color: #fff; border-color: transparent;
}
.nc-a11y-foot {
    padding-top: 14px;
}
.nc-a11y-done-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 0;
    background: linear-gradient(135deg, #5F8270, #7FA08D);
    color: #fff;
    font-family: inherit;
    font-size: 15.5px !important;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(95, 130, 112, 0.28);
}

/* Bouton 🔊 Écouter sur les publications */
.nc-tts-btn {
    border: 1px solid #84A892; background: #C7DACD; color: #1F2A24;
    font-family: inherit; font-weight: 700; font-size: 0.76rem;
    padding: 5px 11px; border-radius: 999px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
}
html[data-theme="dark"] .nc-tts-btn {
    background: #3A5547; color: #F0F7F3; border-color: #6F947E;
}
.nc-tts-btn.speaking, .nc-mic-btn.recording {
    background: #dc2626 !important; color: #ffffff !important; border-color: #f87171 !important;
    animation: pulse-ring 1.2s infinite;
}
body.nc-hide-tts .nc-tts-btn { display: none !important; }

/* Mode Contraste Renforcé (Malvoyants) */
body.nc-high-contrast {
    --nc-line: #5F8270;
    --nc-muted: #1F2A24;
}
html[data-theme="dark"] body.nc-high-contrast {
    --nc-bg: #0B0F0D;
    --nc-card: #141B17;
    --nc-line: #8FB59F;
    --nc-text: #FFFFFF;
    --nc-muted: #E2ECE5;
}
body.nc-high-contrast .post-body,
body.nc-high-contrast .comment-bubble,
body.nc-high-contrast p,
body.nc-high-contrast input,
body.nc-high-contrast textarea {
    font-weight: 600 !important;
}

/* Flash lumineux de notification (Malentendants) */
.nc-visual-flash-overlay {
    position: fixed; inset: 0; pointer-events: none; z-index: 10099;
    border: 0 solid #8FB59F; opacity: 0; transition: opacity .18s;
}
.nc-visual-flash-overlay.flash {
    border-width: 10px; opacity: 1;
    box-shadow: inset 0 0 55px rgba(143, 181, 159, 0.8);
}

/* ═══════════════════════════════════════════════════════════════════
   Gestion des thèmes par icônes rondes + info-bulle au toucher (réversible)
   ═══════════════════════════════════════════════════════════════════ */
@keyframes ncTipPop {
    from { opacity: 0; transform: translateY(-4px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Proposition 2 : « Thème : [ 💭 Mon quotidien ] » sur une seule ligne entre l'avatar et le micro */
.nc-create-theme-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.nc-create-theme-prefix {
    font-size: 13px !important;
    font-weight: 600;
    color: var(--nc-muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.nc-create-theme-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 13px !important;
    font-weight: 700;
    background: var(--nc-soft);
    color: var(--color-primary-700);
    border: 1px solid var(--color-primary-300);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html[data-theme="dark"] .nc-create-theme-pill {
    background: #25302A;
    color: #C9DED1;
    border-color: #4C6A5B;
}
.nc-theme-picker-wrap {
    position: relative;
    margin-top: 11px;
    margin-bottom: 2px;
}
.nc-theme-icons-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.nc-theme-icon-btn {
    width: 38px;
    height: 38px;
    flex: 0 1 38px;
    min-width: 0;
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    border: 1px solid var(--nc-line);
    background: var(--nc-soft);
    color: var(--nc-text);
    font-size: 16.5px !important;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.nc-theme-icon-btn:hover {
    background: var(--color-primary-100);
}
#ncFilterThemeIcons {
    gap: 3px !important;
}
#ncFilterThemeIcons .nc-theme-icon-btn {
    width: 32px;
    height: 32px;
    flex: 0 1 32px;
    min-width: 0;
    aspect-ratio: 1 / 1;
    font-size: 14.5px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #FFFFFF !important;
}
.nc-filter-all-btn {
    height: 32px;
    padding: 0 8px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    font-family: inherit;
    font-size: 11.5px !important;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .15s ease;
}
#ncCreateThemeIcons .nc-theme-icon-btn.is-active {
    background: linear-gradient(135deg, #5F8270, #7FA08D) !important;
    color: #FFFFFF !important;
    border: 2px solid #EEF3EF !important;
    box-shadow: 0 4px 12px rgba(95, 130, 112, 0.35);
}
html[data-theme="dark"] #ncCreateThemeIcons .nc-theme-icon-btn {
    background: #25302A;
    border-color: #36493E;
    color: #C9DED1;
}
html[data-theme="dark"] #ncCreateThemeIcons .nc-theme-icon-btn.is-active {
    background: linear-gradient(135deg, #5F8270, #7FA08D) !important;
    color: #FFFFFF !important;
    border: 2px solid #EEF3EF !important;
}

/* Carte « 🔎 Filtrer le fil par thème » : même fond vert sauge que la capture 3 */
.nc-filter-card {
    padding: 11px 10px !important;
    overflow: visible !important;
    background: linear-gradient(135deg, #5F8270, #7FA08D) !important;
    border: 0 !important;
    box-shadow: 0 6px 18px rgba(95, 130, 112, 0.3) !important;
}
html[data-theme="dark"] .nc-filter-card {
    background: linear-gradient(135deg, #4C6A5B, #6F947E) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme="dark"] #ncFilterThemeIcons .nc-theme-icon-btn,
html[data-theme="dark"] .nc-filter-all-btn {
    background: rgba(25, 34, 29, 0.42) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #EEF3EF !important;
}
#ncFilterThemeIcons .nc-theme-icon-btn.is-active,
.nc-filter-all-btn.is-active {
    background: #EEF3EF !important;
    color: #4C6A5B !important;
    border: 2px solid #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16) !important;
}
html[data-theme="dark"] #ncFilterThemeIcons .nc-theme-icon-btn.is-active,
html[data-theme="dark"] .nc-filter-all-btn.is-active {
    background: #25302A !important;
    color: #C9DED1 !important;
    border: 2px solid #EEF3EF !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
}
.nc-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.nc-filter-label {
    font-size: 12.5px !important;
    font-weight: 700;
    color: #FFFFFF !important;
}
.nc-filter-badge {
    font-size: 11.5px !important;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 9999px;
    background: #EEF3EF !important;
    color: #4C6A5B !important;
    border: 0 !important;
}
html[data-theme="dark"] .nc-filter-badge {
    background: #25302A !important;
    color: #C9DED1 !important;
}

/* Boutons de pagination (« Précédent / Suivant ») tous deux sur fond vert sauge avec texte blanc bien lisible */
nav[role="navigation"] a,
nav[role="navigation"] > div > span,
nav[role="navigation"] span[aria-disabled="true"] > span,
nav[role="navigation"] span[aria-current="page"] > span {
    background: linear-gradient(135deg, #5F8270, #7FA08D) !important;
    color: #FFFFFF !important;
    border: 1px solid #8FB59F !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(95, 130, 112, 0.25);
}
nav[role="navigation"] a:hover {
    filter: brightness(1.06);
}
nav[role="navigation"] > div > span,
nav[role="navigation"] span[aria-disabled="true"] > span {
    opacity: 0.78;
}

/* Bulle flottante d'explication (apparaît uniquement au toucher d'une icône) */
.nc-floating-tip {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 9px);
    z-index: 80;
    background: var(--nc-card);
    color: var(--nc-text);
    border: 1.5px solid var(--color-primary-400);
    border-radius: 16px;
    padding: 10px 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    animation: ncTipPop .18s ease-out;
}
html[data-theme="dark"] .nc-floating-tip {
    background: #141A17;
    border-color: #8FB59F;
}
.nc-floating-tip-arrow {
    width: 11px;
    height: 11px;
    position: absolute;
    top: -6.5px;
    left: 18px;
    transform: rotate(45deg);
    background: var(--nc-card);
    border-left: 1.5px solid var(--color-primary-400);
    border-top: 1.5px solid var(--color-primary-400);
}
html[data-theme="dark"] .nc-floating-tip-arrow {
    background: #141A17;
    border-left-color: #8FB59F;
    border-top-color: #8FB59F;
}
.nc-floating-tip-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    z-index: 2;
}
.nc-floating-tip-title {
    font-size: 13px !important;
    font-weight: 700;
    color: var(--color-primary-700);
    line-height: 1.3;
}
.nc-floating-tip-desc {
    font-size: 12.5px !important;
    color: var(--color-slate-700);
    line-height: 1.35;
    margin-top: 2px;
}
.nc-floating-tip-close,
.nc-tip-close {
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    border: 1px solid var(--nc-line);
    background: var(--nc-soft);
    color: var(--nc-text);
    font-size: 11px !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* Badge thème cliquable sur chaque publication + sa mini-bulle */
button.nc-theme-pill {
    border: 1px solid var(--nc-line);
    cursor: pointer;
    font-family: inherit;
    transition: background .15s ease, border-color .15s ease;
}
button.nc-theme-pill:hover {
    background: var(--color-primary-100);
    border-color: var(--color-primary-300);
}
.nc-theme-tip {
    white-space: normal !important;
    width: 250px;
    max-width: calc(100vw - 48px);
}
.nc-tip-filter-btn {
    margin-top: 6px;
    width: 100%;
    padding: 6px 10px;
    border-radius: 10px;
    border: 0;
    background: linear-gradient(135deg, #5F8270, #7FA08D);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

/* ═══ Bandeau d'accès direct aux 3 usages principaux (Cahier de corrections V1) ═══ */
.nc-usages-banner {
    background: var(--nc-card);
    border: 1px solid var(--nc-line);
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--nc-shadow);
}
.nc-usages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
@media (max-width: 640px) {
    .nc-usages-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}
.nc-usage-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 12px;
    background: #C7DACD;
    color: #1F2A24;
    border: 1px solid #84A892;
    font-size: 12.5px !important;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}
.nc-usage-pill:hover {
    background: #B5CDBD;
}
html[data-theme="dark"] .nc-usage-pill {
    background: #3A5547;
    color: #F0F7F3;
    border-color: #6F947E;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
html[data-theme="dark"] .nc-usage-pill:hover {
    background: #466555;
}
.nc-profile-nudge {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--nc-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px !important;
    color: var(--nc-muted);
}
.nc-profile-nudge-link {
    font-weight: 700;
    color: var(--color-primary-700);
    text-decoration: none;
}
.nc-profile-nudge-link:hover {
    text-decoration: underline;
}

/* ═══ Menu des thèmes de publication (liste verte, 3 catégories + sous-thèmes) ═══ */
.nc-tmenu { position: relative; min-width: 0; }
.nc-tmenu-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; cursor: pointer; font-family: inherit; font-size: 15px !important; font-weight: 600; color: #fff; padding: 10px 14px; border-radius: 14px; background: linear-gradient(135deg, #5F8270, #7FA08D); box-shadow: 0 4px 12px rgba(95,130,112,.28); text-align: left; }
.nc-tmenu-btn:focus-visible { outline: 3px solid #D4848C; outline-offset: 2px; }
.nc-tmenu-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nc-tmenu-arrow { flex-shrink: 0; transition: transform .15s; }
.nc-tmenu.open .nc-tmenu-arrow { transform: rotate(180deg); }
.nc-tmenu-list { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; padding: 6px; border-radius: 18px; background: linear-gradient(135deg, #5F8270, #7FA08D); box-shadow: 0 14px 34px rgba(76,106,91,.4); max-height: 60vh; overflow-y: auto; }
.nc-tmenu.open .nc-tmenu-list { display: block; }
.nc-tmenu-opt { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: #fff; font-family: inherit; font-size: 15px !important; font-weight: 600; padding: 9px 12px; border-radius: 12px; cursor: pointer; }
.nc-tmenu-opt.is-sub { padding-left: 34px; font-size: 14px !important; font-weight: 500; }
.nc-tmenu-opt:hover, .nc-tmenu-opt:focus { background: rgba(255,255,255,.16); outline: none; }
.nc-tmenu-opt:focus-visible { box-shadow: inset 0 0 0 2px #fff; }
.nc-tmenu-opt.is-on { background: #EEF3EF; color: #4C6A5B; }
.nc-tmenu-sep { height: 1px; background: rgba(255,255,255,.25); margin: 4px 8px; }
.nc-tmenu-help { font-size: 12px !important; color: var(--nc-muted); margin-top: 6px; line-height: 1.35; }
.nc-tmenu-title { font-size: 13px !important; font-weight: 700; color: var(--nc-text); }
html[data-theme="dark"] .nc-tmenu-btn, html[data-theme="dark"] .nc-tmenu-list { background: linear-gradient(135deg, #4C6A5B, #6F947E); }
html[data-theme="dark"] .nc-tmenu-opt.is-on { background: #25302A; color: #C9DED1; }
/* Sur la carte verte du filtre : bouton clair pour se détacher du fond */
.nc-tmenu--on-green .nc-tmenu-btn { background: #EEF3EF; color: #4C6A5B; box-shadow: 0 2px 8px rgba(0,0,0,.14); }
html[data-theme="dark"] .nc-tmenu--on-green .nc-tmenu-btn { background: #25302A; color: #C9DED1; }

/* ═══ Bouton « ➕ Ajouter du contenu » (déplie Photo, Vidéo, Filmer, Musique, Enregistrer, PDF) ═══ */
.nc-add-content-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 14px; padding: 7px 12px; font-family: inherit; font-size: 13px !important; font-weight: 700; cursor: pointer; background: #C7DACD; color: #1F2A24; border: 1px solid #84A892; white-space: nowrap; transition: background .15s; }
.nc-add-content-btn:hover { background: #B5CDBD; }
.nc-add-content-btn:focus-visible { outline: 3px solid #D4848C; outline-offset: 2px; }
.nc-add-content-btn.is-open { background: #D4848C; border-color: #D4848C; color: #FFFFFF; }
html[data-theme="dark"] .nc-add-content-btn { background: #3A5547; color: #F0F7F3; border-color: #6F947E; }
html[data-theme="dark"] .nc-add-content-btn:hover { background: #466555; }
html[data-theme="dark"] .nc-add-content-btn.is-open { background: #D4848C; border-color: #D4848C; color: #FFFFFF; }

/* ═══ Réactions sur une seule ligne + bouton 🔊 Écouter (icône sur fond rose) ═══ */
.post-actions { gap: 6px; padding: 10px 12px; }
.post-actions .reaction-btn { flex: 1 1 0; min-width: 0; justify-content: center; gap: 3px; padding: 7px 4px; font-size: 1rem; }
.post-actions .reaction-btn:hover { transform: none; }
.post-actions .reaction-btn > span { font-size: 12px !important; }
.post-actions .nc-tts-btn { order: 1; flex: 1 1 0; min-width: 0; justify-content: center; padding: 7px 4px; font-size: 1rem !important; background: #D4848C; border-color: #D4848C; color: #FFFFFF; }
html[data-theme="dark"] .post-actions .nc-tts-btn { background: #D4848C; border-color: #D4848C; color: #FFFFFF; }
/* « Signaler » passe sur sa propre ligne, à droite, pour laisser les réactions sur une seule ligne */
.post-actions > .ml-auto { order: 2; flex-basis: 100%; text-align: right; }
/* « + » bien visible dans le bouton « Ajouter du contenu » (pastille verte, + blanc) */
.nc-add-plus { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #5F8270; color: #FFFFFF; font-size: 16px !important; font-weight: 800; line-height: 1; }
html[data-theme="dark"] .nc-add-plus { background: #7FA08D; }

/* ═══ Onglets du fil compacts : « Fil · Amis · Mes publications » ═══ */
.nc-feed-tabs { padding: 4px !important; gap: 3px !important; }
.nc-feed-tabs > a { display: flex !important; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 7px 6px !important; font-size: 13.5px !important; line-height: 1.15 !important; text-wrap: balance; }
.nc-feed-tabs > a:last-child { flex: 1.6 1 0 !important; }
@media (max-width: 360px) { .nc-feed-tabs > a { font-size: 12.5px !important; padding: 7px 4px !important; } }

/* ═══ Fil : « Mes thèmes en premier » / « Tout voir » ═══ */
.nc-feed-view-seg { display: flex; gap: 3px; padding: 3px; margin-bottom: 8px; border-radius: 12px; background: rgba(0,0,0,.18); }
.nc-feed-view-seg a { flex: 1; text-align: center; padding: 7px 6px; border-radius: 9px; font-size: 12.5px !important; font-weight: 700; color: #FFFFFF; text-decoration: none; min-height: 36px; display: flex; align-items: center; justify-content: center; }
.nc-feed-view-seg a.is-on { background: #EEF3EF; color: #4C6A5B; box-shadow: 0 2px 8px rgba(0,0,0,.14); }
.nc-feed-view-seg a:focus-visible { outline: 3px solid #D4848C; outline-offset: 1px; }
html[data-theme="dark"] .nc-feed-view-seg a.is-on { background: #25302A; color: #C9DED1; }
.nc-pref-flag { font-size: 11.5px !important; font-weight: 700; color: #B8656E; padding: 8px 16px 0; }
html[data-theme="dark"] .nc-pref-flag { color: #E1A2A8; }
.nc-pref-sep { text-align: center; font-size: 12px !important; font-weight: 600; color: var(--nc-muted); margin: 6px 0 12px; }

/* ═══ Statuts : entraide (Ouverte / Aide trouvée / Terminée) et activités (places, Complet, Terminé) ═══ */
.nc-status { display: inline-flex; align-items: center; gap: 4px; font-size: 12px !important; font-weight: 700; padding: 3px 10px; border-radius: 999px; line-height: 1.3; }
.nc-status-open   { background: #DCF2E3; color: #1F6B3A; }
.nc-status-found  { background: #FBF0C9; color: #7A5A0B; }
.nc-status-closed { background: #E8E6E1; color: #5C655F; }
.nc-status-full   { background: #D4848C; color: #FFFFFF; }
.nc-status-info   { background: var(--nc-soft); color: var(--color-primary-700); }
html[data-theme="dark"] .nc-status-open   { background: #24412F; color: #BFE3CB; }
html[data-theme="dark"] .nc-status-found  { background: #3A341F; color: #F1DFA7; }
html[data-theme="dark"] .nc-status-closed { background: #2C3631; color: #C7D0CA; }
html[data-theme="dark"] .nc-status-info   { background: #25302A; color: #C9DED1; }
.nc-item-done { opacity: .75; }
.nc-status-btn { font-family: inherit; font-size: 13px !important; font-weight: 700; padding: 8px 12px; border-radius: 12px; cursor: pointer; background: #C7DACD; color: #1F2A24; border: 1px solid #84A892; }
.nc-status-btn.is-main { background: #D4848C; border-color: #D4848C; color: #FFFFFF; }
html[data-theme="dark"] .nc-status-btn { background: #3A5547; color: #F0F7F3; border-color: #6F947E; }
html[data-theme="dark"] .nc-status-btn.is-main { background: #D4848C; border-color: #D4848C; color: #FFFFFF; }

/* ═══ Bouton flottant de remontée rapide (étoile filante arc-en-ciel sur fond rose) ═══ */
.nc-scroll-top {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 940;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #DE9199, #BF6D76);
    border: 2px solid rgba(255, 255, 255, 0.58);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.34);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(0.92);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}
.nc-scroll-top svg {
    pointer-events: none;
}
.nc-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
@media (hover: hover) and (pointer: fine) {
    .nc-scroll-top.is-visible:hover {
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 10px 24px rgba(191, 109, 118, 0.48);
    }
}
.nc-scroll-top.is-visible:active {
    transform: scale(0.95);
}
.nc-scroll-top:focus-visible {
    outline: 3px solid #5F8270;
    outline-offset: 3px;
}
html[data-theme="dark"] .nc-scroll-top {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.52);
}
@media (max-width: 767px) {
    .nc-scroll-top {
        right: 14px;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        width: 48px;
        height: 48px;
    }
    body.has-tabbar .nc-scroll-top {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
    body.nc-typing .nc-scroll-top {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* ═══ En-tête de conversation privée : pastille « 👤 Voir le profil → » sous le nom (C2) ═══ */
.nc-conv-profile-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12.5px !important;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    background: #EEF3EF;
    border: 1px solid #84A892;
    color: #2E4639;
    max-width: 100%;
    transition: background .15s ease, border-color .15s ease;
}
.nc-conv-profile-pill:hover {
    background: #DCE8DF;
}
html[data-theme="dark"] .nc-conv-profile-pill {
    background: #25302A;
    border-color: #4C6A5B;
    color: #DCEBE1;
}
html[data-theme="dark"] .nc-conv-profile-pill:hover {
    background: #314138;
}

/* ═══ Messagerie (privée & groupes) : pastille rose « 🔊 » sous la bulle + lisibilité mode sombre (A) ═══ */
.nc-msg-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--color-slate-400);
}
.nc-msg-meta.is-mine {
    justify-content: flex-end;
}
.nc-msg-tts-btn {
    background: #D4848C !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #FFFFFF !important;
    min-width: 32px;
    height: 26px;
    padding: 0 8px !important;
    border-radius: 999px;
    font-size: 13px !important;
    line-height: 1;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
    touch-action: manipulation;
}
.nc-msg-in {
    border: 1px solid var(--nc-line);
}
html[data-theme="dark"] .nc-msg-in {
    background-color: #27322C !important;
    border-color: #384940;
    color: #EEF1EC !important;
}

/* ═══ Bannière du profil public (Variante A3 : dégradé vert sauge + fleur rose + feuillage + logo MySorrow fondu) ═══ */
.nc-profile-cover {
    position: relative;
    height: 112px;
    overflow: hidden;
    background: linear-gradient(135deg, #3E594C 0%, #5F8270 52%, #7FA08D 100%);
}
.nc-profile-cover-wave {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.nc-profile-cover-flower {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: auto;
    pointer-events: none;
}
.nc-profile-cover-foliage {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: auto;
    pointer-events: none;
}
.nc-profile-cover-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 50%;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, rgba(0, 0, 0, 0.65) 72%, transparent 96%);
    mask-image: radial-gradient(circle at 50% 50%, #000 58%, rgba(0, 0, 0, 0.65) 72%, transparent 96%);
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.22));
    pointer-events: none;
}
html[data-theme="dark"] .nc-profile-avatar {
    border-color: var(--nc-card) !important;
}
.nc-btn-circle-add {
    background: #D4848C !important;
    border: 1px solid #D4848C !important;
    color: #FFFFFF !important;
}
.nc-btn-circle-add:hover {
    background: #C4737B !important;
    border-color: #C4737B !important;
}

/* ═══ Carte mensuelle du Sorrow-Mètre (Fil d'actualité) + case de partage au cercle ═══ */
.nc-sorrow-monthly-card {
    background: var(--nc-card);
    border: 1.5px solid #C8DACF;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 14px rgba(60, 90, 74, 0.08);
}
.nc-sorrow-monthly-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--nc-ink);
}
.nc-sorrow-monthly-sub {
    font-size: 0.8rem;
    color: var(--color-slate-500);
    margin-top: 0.15rem;
}
.nc-sorrow-monthly-badge {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--nc-soft);
    color: var(--color-primary-700);
    border: 1px solid var(--nc-line);
}
.nc-sorrow-monthly-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.4rem;
    margin: 0.75rem 0 0.55rem;
    text-align: center;
}
.nc-sorrow-monthly-step {
    padding: 0.5rem 0.25rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--nc-soft);
    border: 1px solid var(--nc-line);
    color: var(--nc-ink);
    cursor: pointer;
    transition: all 0.15s ease;
    touch-action: manipulation;
}
.nc-sorrow-monthly-step.is-active {
    background: #5F7F6E !important;
    border-color: #7FA38F !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 8px rgba(95, 127, 110, 0.28);
}
.nc-sorrow-monthly-emoji {
    display: block;
    font-size: 1.2rem;
    line-height: 1.1;
    margin-bottom: 0.2rem;
}
.nc-sorrow-monthly-label {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    border-radius: 0.75rem;
    background: var(--nc-soft);
    border: 1px solid var(--nc-line);
    color: var(--color-primary-700);
    margin-bottom: 0.75rem;
}
.nc-sorrow-monthly-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}
.nc-sorrow-monthly-check,
.nc-sorrow-edit-notify {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nc-ink);
    cursor: pointer;
    user-select: none;
}
.nc-sorrow-edit-notify {
    margin-top: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    background: var(--nc-soft);
    border: 1px solid var(--nc-line);
    width: 100%;
}
.nc-sorrow-monthly-check input,
.nc-sorrow-edit-notify input {
    width: 1rem;
    height: 1rem;
    accent-color: #D4848C;
    flex-shrink: 0;
}
.nc-sorrow-monthly-nocircle {
    font-size: 0.78rem;
    font-weight: 600;
    color: #B85D67;
    text-decoration: underline;
}
.nc-sorrow-monthly-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
}
.nc-sorrow-btn-later {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--nc-soft);
    border: 1px solid var(--nc-line);
    color: var(--color-slate-600);
    cursor: pointer;
    touch-action: manipulation;
}
.nc-sorrow-btn-save {
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #D4848C;
    border: 1px solid #D4848C;
    color: #FFFFFF;
    cursor: pointer;
    touch-action: manipulation;
}
.nc-sorrow-btn-save:hover {
    background: #C4737B;
}
html[data-theme="dark"] .nc-sorrow-monthly-card {
    background: #1E2722;
    border-color: #34463C;
}
html[data-theme="dark"] .nc-sorrow-monthly-step {
    background: #26312B;
    border-color: #384940;
    color: #EEF1EC;
}
html[data-theme="dark"] .nc-sorrow-monthly-label {
    background: #26312B;
    border-color: #384940;
    color: #DCEBE1;
}
html[data-theme="dark"] .nc-sorrow-monthly-badge {
    background: #2A3730;
    border-color: #384940;
    color: #B8CBBF;
}
html[data-theme="dark"] .nc-sorrow-btn-later {
    background: #2A3730;
    border-color: #384940;
    color: #B8CBBF;
}
html[data-theme="dark"] .nc-sorrow-monthly-nocircle {
    color: #F3C6CB;
}
html[data-theme="dark"] .nc-sorrow-edit-notify {
    background: #24302A;
    border-color: #35463D;
    color: #EEF1EC;
}

/* ═══ Mon profil : bandeau accordéon « Pourquoi Nouveau Chapitre ? » ═══ */
.nc-mission-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1.1rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    color: var(--nc-ink);
    touch-action: manipulation;
}
.nc-mission-summary::-webkit-details-marker {
    display: none;
}
.nc-mission-toggle-lbl {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary-700);
    background: var(--nc-soft);
    border: 1px solid var(--nc-line);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}
.nc-mission-chevron {
    display: inline-block;
    transition: transform 0.2s ease;
}
.nc-mission-accordion[open] .nc-mission-chevron {
    transform: rotate(180deg);
}
html[data-theme="dark"] .nc-mission-toggle-lbl {
    background: #26312B;
    border-color: #384940;
    color: #C8DDD0;
}

/* ═══ Sorrow-Mètre horizontal unifié (Fil & Mon profil — Cœur A2 + pansement fondu) ═══ */
.nc-sm-card {
    border-radius: 1.125rem;
    padding: 0.95rem 1rem;
    background: var(--nc-soft);
    border: 1px solid var(--nc-line);
}
.nc-sm-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.nc-sm-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--nc-ink);
    line-height: 1.3;
}
.nc-sm-subtitle {
    font-size: 0.78rem;
    color: var(--color-slate-500);
    margin-top: 0.15rem;
    line-height: 1.35;
}
.nc-sm-pct-badge {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: #FDECEF;
    color: #AD2153;
    border: 1px solid #F7C6D4;
}
.nc-sm-track-wrap {
    position: relative;
    height: 54px;
    margin: 6px 24px 2px;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.nc-sm-track-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(to right, #C86472 0%, #D68C67 25%, #D5B86A 50%, #8AB399 75%, #58A477 100%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
.nc-sm-tick {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}
.nc-sm-cursor {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 50px;
    z-index: 10;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.nc-sm-cursor.is-dragging {
    cursor: grabbing;
}
.nc-sm-heart-svg {
    overflow: visible;
    filter: drop-shadow(0 3px 6px rgba(60, 15, 30, 0.38));
    pointer-events: none;
}
.nc-sm-steps-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
    margin-top: 0.25rem;
}
.nc-sm-step-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0.35rem 0.15rem;
    border-radius: 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-slate-500);
    transition: all 0.15s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.nc-sm-step-btn.is-active {
    background: #FFFFFF;
    border-color: #B8CEBF;
    color: var(--color-primary-700);
    box-shadow: 0 2px 6px rgba(60, 90, 74, 0.08);
}
.nc-sm-step-emoji {
    font-size: 1.05rem;
    line-height: 1.1;
}
.nc-sm-phrase {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    background: var(--nc-card);
    border: 1px solid var(--nc-line);
    color: var(--color-primary-700);
}

html[data-theme="dark"] .nc-sm-card {
    background: #1A221E;
    border-color: #314239;
}
html[data-theme="dark"] .nc-sm-subtitle {
    color: #9EB0A5;
}
html[data-theme="dark"] .nc-sm-pct-badge {
    background: #26332C;
    color: #FFB8CC;
    border-color: #384940;
}
html[data-theme="dark"] .nc-sm-tick {
    background: rgba(255, 255, 255, 0.32);
}
html[data-theme="dark"] .nc-sm-heart-svg {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.48));
}
html[data-theme="dark"] .nc-sm-step-btn {
    color: #A8B9AF;
}
html[data-theme="dark"] .nc-sm-step-btn.is-active {
    background: #26332C;
    border-color: #4C6A5B;
    color: #FFFFFF;
    box-shadow: none;
}
html[data-theme="dark"] .nc-sm-phrase {
    background: #25312B;
    border-color: #384940;
    color: #DCEBE1;
}

/* ═══ Admin : navigation mobile fluide + gestion des périodes d'essai ═══ */
@media (max-width: 767px) {
    .nc-admin-shell {
        flex-direction: column !important;
    }
    .nc-admin-sidebar {
        width: 100% !important;
        min-height: auto !important;
        padding: 0.5rem 0.75rem !important;
    }
    .nc-admin-brand,
    .nc-admin-sep {
        display: none !important;
    }
    .nc-admin-nav {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.15rem;
    }
    .nc-admin-nav a {
        padding: 0.45rem 0.75rem !important;
        border-radius: 999px;
        font-size: 0.78rem !important;
        flex-shrink: 0;
    }
    .nc-admin-main {
        padding: 1rem !important;
    }
}

.nc-trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}
.nc-trial-trial_active {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}
.nc-trial-expiring_soon {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}
.nc-trial-expired,
.nc-trial-none {
    background: #FFF1F2;
    color: #9F1239;
    border: 1px solid #FECDD3;
}
.nc-trial-paid {
    background: #FEF9C3;
    color: #854D0E;
    border: 1px solid #FDE047;
}

.nc-trial-action-btn,
.nc-trial-quick-chip {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    background: #EEF3EF;
    color: #3E594A;
    border: 1px solid #C8D9CE;
    cursor: pointer;
    transition: all 0.15s ease;
    touch-action: manipulation;
}
.nc-trial-action-btn:hover,
.nc-trial-quick-chip:hover {
    background: #5F8270;
    color: #FFFFFF;
    border-color: #5F8270;
}
.nc-trial-preset-btn {
    padding: 0.45rem 0.9rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    background: #FDECEF;
    color: #9D174D;
    border: 1px solid #F7C6D4;
    cursor: pointer;
    transition: all 0.15s ease;
    touch-action: manipulation;
}
.nc-trial-preset-btn:hover {
    background: #D4848C;
    color: #FFFFFF;
    border-color: #D4848C;
}
.nc-trial-notify-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nc-ink);
    cursor: pointer;
    user-select: none;
}
.nc-trial-notify-check input {
    width: 1rem;
    height: 1rem;
    accent-color: #5F8270;
}

/* Encadré discret Admin sur un profil public */
.nc-admin-profile-bar {
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    background: #F6F8F6;
    border: 1px dashed #9EB5A7;
    color: var(--nc-ink);
}
.nc-admin-profile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.nc-admin-profile-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #3E594A;
}
.nc-admin-profile-link {
    font-size: 0.76rem;
    font-weight: 700;
    color: #4C6A5B;
    text-decoration: underline;
}
.nc-admin-profile-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

html[data-theme="dark"] .nc-admin-main {
    background: #141A17 !important;
}
html[data-theme="dark"] .stat-card {
    background: #1E2722;
    border-color: #314239;
}
html[data-theme="dark"] .nc-trial-trial_active {
    background: #183529;
    color: #86EFAC;
    border-color: #295743;
}
html[data-theme="dark"] .nc-trial-expiring_soon {
    background: #3B2D14;
    color: #FDE68A;
    border-color: #6B4F1D;
}
html[data-theme="dark"] .nc-trial-expired,
html[data-theme="dark"] .nc-trial-none {
    background: #3B1A24;
    color: #FDA4AF;
    border-color: #6B2B3D;
}
html[data-theme="dark"] .nc-trial-paid {
    background: #383014;
    color: #FEF08A;
    border-color: #63531C;
}
html[data-theme="dark"] .nc-trial-action-btn,
html[data-theme="dark"] .nc-trial-quick-chip {
    background: #26332C;
    color: #DCEBE1;
    border-color: #3C5247;
}
html[data-theme="dark"] .nc-trial-preset-btn {
    background: #3B202B;
    color: #FFB8CC;
    border-color: #68364A;
}
html[data-theme="dark"] .nc-admin-profile-bar {
    background: #1D2621;
    border-color: #455B4F;
}
html[data-theme="dark"] .nc-admin-profile-title,
html[data-theme="dark"] .nc-admin-profile-link {
    color: #B8D4C3;
}

/* ═══ Fiche Activité : participants cliquables & espace Questions / infos pratiques ═══ */
.nc-participant-card:hover {
    background: var(--nc-soft) !important;
    border-color: #88AC98 !important;
}
.nc-act-comment {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.65rem 0.8rem;
    border-radius: 0.85rem;
    background: var(--nc-soft);
    border: 1px solid var(--nc-line);
}
.nc-act-org-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #5F8270;
    color: #FFFFFF;
}
html[data-theme="dark"] .nc-participant-card {
    background: #232E28 !important;
    border-color: #34453C !important;
}
html[data-theme="dark"] .nc-participant-card:hover {
    background: #2B3931 !important;
    border-color: #5F8270 !important;
}
html[data-theme="dark"] .nc-act-comment {
    background: #232E28;
    border-color: #34453C;
}

/* ═══ Messagerie privée : accusé de lecture « ✓✓ Lu », suppression & pastille non-lu ═══ */
.nc-msg-read-status {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-slate-400);
    letter-spacing: -0.02em;
}
.nc-msg-read-status.is-read {
    color: #4C6A5B;
    font-weight: 700;
}
html[data-theme="dark"] .nc-msg-read-status.is-read {
    color: #86EFAC;
}
.nc-msg-del-btn {
    background: transparent;
    border: none;
    padding: 0 3px;
    font-size: 0.75rem;
    line-height: 1;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
    touch-action: manipulation;
}
.nc-msg-del-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}
.nc-conv-unread-pill {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #FDECEF;
    color: #9D174D;
    border: 1px solid #F7C6D4;
}
html[data-theme="dark"] .nc-conv-unread-pill {
    background: #3B202B;
    color: #FFB8CC;
    border-color: #68364A;
}






