/* ============================================================
   Marius SEO — composants propres à l'espace client.
   Se charge APRÈS app.css (DA Rewingo) et n'en redéfinit que la
   marque ; tout le reste réutilise ses variables et ses briques
   (card, stat, pill, badge, chip, field, switch, table…).
   ============================================================ */

/* ---- Marque ----------------------------------------------------------- */
/* app.css masque .brand-name au profit du logo image de Rewingo. */
.brand .brand-name {
    display: inline;
}

.marius-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: none;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #4f86ff);
    box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
}

.brand-lg .marius-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

/* Encart « Pilote automatique » (reprend .affil-cta) */
.pilote-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, .22);
    margin-right: 7px;
    vertical-align: 1px;
    animation: pilotePulse 2s ease-in-out infinite;
}

@keyframes pilotePulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, .22); }
    50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, .08); }
}

/* ---- Utilitaires ------------------------------------------------------- */
.muted-cell {
    color: var(--muted);
    font-weight: 400;
}

.txt-sm {
    font-size: 12.5px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-foot {
    padding: 12px 20px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    color: var(--muted);
}

.stats-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Barre d'outils au-dessus d'un tableau */
.table-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
}

.table-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    min-width: 240px;
}

.table-search svg {
    color: var(--muted);
    flex: none;
}

.table-search input[type="search"] {
    border: 0;
    background: transparent;
    box-shadow: none !important;
    padding: 9px 0;
    font-size: 13.5px;
}

/* ---- Activité de Marius (timeline) ------------------------------------ */
.chan.article { background: var(--primary-050); color: var(--primary); }
.chan.post { background: #fff; border: 1px solid var(--line); }
.chan.citation { background: var(--gold-bg); color: #b9791a; }
.chan.audit { background: #eef1f7; color: var(--ink-2); }
.chan.pos { background: var(--success-bg); color: var(--success); }

.wheel-time {
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
    flex: none;
}

/* ---- Positions --------------------------------------------------------- */
.pos {
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    height: 26px;
    padding: 0 8px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    background: #eef1f7;
    color: var(--ink-2);
}

.pos.top3 { background: var(--success-bg); color: var(--success); }
.pos.top10 { background: var(--primary-050); color: var(--primary-strong); }
.pos.top20 { background: #eef1f7; color: var(--ink-2); }

.pos.out {
    background: transparent;
    border: 1px dashed var(--line-strong);
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
}

.spark {
    display: block;
}

.spark polyline {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.spark.down polyline { stroke: var(--muted); }

.url-cell {
    font-size: 12.5px;
    color: var(--ink-2);
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kw-name {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
}

.kw-sub {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

/* Répartition des positions (barre empilée) */
.repart {
    display: flex;
    height: 12px;
    border-radius: var(--r-full);
    overflow: hidden;
    background: var(--bg-soft);
}

.repart span { display: block; height: 100%; }
.repart .r-top3 { background: var(--success); }
.repart .r-top10 { background: var(--primary); }
.repart .r-top20 { background: #9db8f5; }
.repart .r-out { background: var(--line-strong); }

.repart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

/* Difficulté d'un mot-clé */
.diff {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.diff i {
    width: 6px;
    height: 14px;
    border-radius: 2px;
    background: var(--line-strong);
}

.diff.facile i:nth-child(-n+1) { background: var(--success); }
.diff.moyen i:nth-child(-n+3) { background: var(--gold); }
.diff.difficile i:nth-child(-n+5) { background: var(--danger); }

.diff small {
    margin-left: 6px;
    font-size: 12px;
    color: var(--muted);
}

/* ---- Audit -------------------------------------------------------------- */
.score-ring {
    position: relative;
    width: 148px;
    height: 148px;
    flex: none;
}

.score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-ring circle {
    fill: none;
    stroke-width: 10;
}

.score-ring .fond { stroke: var(--bg-soft); }

.score-ring .val {
    stroke: var(--primary);
    stroke-linecap: round;
}

.score-ring-txt {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
}

.score-ring-txt strong {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 38px;
    letter-spacing: -.03em;
    line-height: 1;
}

.score-ring-txt small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.score-ring.sm {
    width: 58px;
    height: 58px;
}

.score-ring.sm circle { stroke-width: 9; }
.score-ring.sm .score-ring-txt strong { font-size: 17px; }

.audit-hero {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 24px;
}

.audit-hero .rep-list {
    flex: 1;
}

.issue-list {
    padding: 6px;
}

.issue-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border-radius: var(--r);
    transition: background .12s;
}

.issue-row + .issue-row {
    border-top: 1px solid var(--line);
}

.issue-row:hover {
    background: var(--bg-soft);
}

.issue-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: none;
}

.issue-ico.critique { background: #fdeaea; color: var(--danger); }
.issue-ico.important { background: var(--gold-bg); color: #b9791a; }
.issue-ico.conseil { background: var(--primary-050); color: var(--primary); }
.issue-ico.ok { background: var(--success-bg); color: var(--success); }

.issue-main {
    flex: 1;
    min-width: 0;
}

.issue-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}

.issue-desc {
    font-size: 13px;
    color: var(--ink-2);
    margin-top: 3px;
}

.issue-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.issue-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: none;
}

.auto-fix {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-strong);
}

/* Concurrent mis en avant (soi-même) */
tr.is-moi {
    background: var(--primary-050);
}

tr.is-moi:hover {
    background: var(--primary-050);
}

.bar-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
}

.bar-inline .rep-bar {
    flex: 1;
}

.bar-inline b {
    font-family: var(--font-display);
    font-size: 13px;
    width: 28px;
    text-align: right;
}

/* ---- Articles ----------------------------------------------------------- */
.art-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: normal;
    min-width: 280px;
}

.art-thumb {
    width: 54px;
    height: 40px;
    border-radius: 8px;
    flex: none;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-xs);
}

.art-title {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ink);
    line-height: 1.35;
}

.art-title:hover {
    color: var(--primary);
}

.art-kw {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.cms-ico {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 11px;
    flex: none;
}

.cms-ico.wp { background: #21759b; }
.cms-ico.shopify { background: #5e8e3e; }
.cms-ico.presta { background: #df0067; }
.cms-ico.webflow { background: #4353ff; }
.cms-ico.wix { background: #111; }

.score-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
}

.score-mini i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.score-mini.moyen i { background: var(--gold); }

.geo-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--r-full);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11.5px;
    background: linear-gradient(135deg, var(--primary-050), #f2eaff);
    color: #5b3fd6;
    white-space: nowrap;
}

/* Bandeau du mode de publication */
.mode-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
}

.mode-bar .switch {
    padding: 0;
    flex: 1;
    min-width: 260px;
}

.mode-bar-stats {
    display: flex;
    gap: 24px;
}

.mode-bar-stats div {
    display: flex;
    flex-direction: column;
}

.mode-bar-stats strong {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
}

.mode-bar-stats small {
    color: var(--muted);
    font-size: 12px;
}

/* ---- Éditeur d'article ------------------------------------------------- */
.editor {
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

.editor:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-050);
}

.editor-bar {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    padding: 6px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}

.editor-bar button {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 30px;
    padding: 0 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink-2);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12.5px;
}

.editor-bar button:hover {
    background: #fff;
    color: var(--ink);
}

.editor-bar .sep {
    width: 1px;
    height: 18px;
    background: var(--line-strong);
    margin: 0 6px;
}

.editor-bar .lien-ia {
    margin-left: auto;
}

.editor-body {
    padding: 22px 26px;
    min-height: 420px;
    max-height: 640px;
    overflow-y: auto;
    outline: none;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-2);
}

.editor-body h2 {
    font-size: 20px;
    margin: 22px 0 8px;
}

.editor-body h3 {
    font-size: 16px;
    margin: 18px 0 6px;
}

.editor-body p {
    margin: 0 0 12px;
}

.editor-body ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.editor-body .faq {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: var(--r);
    background: var(--bg-soft);
    border: 1px dashed var(--line-strong);
}

.editor-body .faq strong {
    display: block;
    color: var(--ink);
}

.editor-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    background: #fff;
}

/* Champ titre en grand */
.input-xl {
    font-family: var(--font-display) !important;
    font-weight: 700;
    font-size: 19px !important;
    padding: 12px 14px !important;
}

/* Aperçu SERP Google */
.serp {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #fff;
    font-family: Arial, sans-serif;
}

.serp-site {
    display: flex;
    align-items: center;
    gap: 10px;
}

.serp-fav {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f1f3f4;
    border: 1px solid #e3e5e8;
    font-size: 11px;
    font-weight: 700;
    color: #1a73e8;
}

.serp-site strong {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #202124;
}

.serp-site small {
    display: block;
    font-size: 12px;
    color: #4d5156;
}

.serp-title {
    display: block;
    margin-top: 8px;
    font-size: 19px;
    line-height: 1.3;
    color: #1a0dab;
}

.serp-desc {
    margin: 4px 0 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #4d5156;
}

/* Check-list SEO */
.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-2);
}

.check-list li svg {
    flex: none;
    margin-top: 1px;
    color: var(--success);
}

.check-list li.ko svg {
    color: var(--gold);
}

.score-line {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.score-line strong {
    display: block;
    font-family: var(--font-display);
    font-size: 15px;
}

.score-line small {
    color: var(--muted);
    font-size: 12.5px;
}

/* ---- Connexions --------------------------------------------------------- */
.cms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.cms-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--r);
    background: var(--surface);
    transition: border-color .14s, box-shadow .14s;
}

.cms-card:hover {
    border-color: var(--primary-100);
    box-shadow: var(--shadow-sm);
}

.cms-card.is-connecte {
    border-color: var(--success);
    background: linear-gradient(180deg, var(--success-bg), #fff 60%);
}

.cms-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cms-card .cms-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 17px;
}

.cms-card-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
}

.cms-card-desc {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: -6px;
}

.cms-card .btn {
    margin-top: auto;
    justify-content: center;
}

.connexion-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    flex-wrap: wrap;
}

.connexion-hero-ico {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    flex: none;
}

.connexion-hero-txt {
    flex: 1;
    min-width: 220px;
}

.connexion-hero-txt strong {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
}

.connexion-hero-txt span {
    color: var(--muted);
    font-size: 13px;
}

.perm-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    padding: 0 20px 20px;
}

.perm {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: var(--r-sm);
    background: var(--bg-soft);
    font-size: 13px;
    color: var(--ink-2);
}

.perm svg {
    color: var(--success);
    flex: none;
}

/* ---- Citations locales -------------------------------------------------- */
.nap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.nap-item {
    padding: 16px 20px;
    min-width: 0;
}

.nap-item + .nap-item {
    border-left: 1px solid var(--line);
}

.nap-item dt {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    margin-bottom: 6px;
}

.nap-item dd {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    overflow-wrap: anywhere;
}

/* Carte de propagation : une case = un site du réseau */
.propag {
    padding: 20px;
}

.propag-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.propag-big {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 34px;
    letter-spacing: -.02em;
    line-height: 1;
}

.propag-big small {
    font-size: 16px;
    color: var(--muted);
    font-weight: 700;
}

.propag-grid {
    display: grid;
    grid-template-columns: repeat(25, 1fr);
    gap: 5px;
}

.propag-grid i {
    aspect-ratio: 1;
    border-radius: 5px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    transition: transform .12s;
}

.propag-grid i:hover {
    transform: scale(1.25);
}

.propag-grid i.on {
    background: var(--success);
    border-color: var(--success);
}

.propag-grid i.cours {
    background: var(--primary);
    border-color: var(--primary);
    animation: propagCours 1.6s ease-in-out infinite;
}

.propag-grid i.plan {
    background: var(--primary-050);
    border-color: var(--primary-100);
}

@keyframes propagCours {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

.propag-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 16px;
}

.propag-legend .leg i {
    border-radius: 3px;
}

/* Calendrier de propagation (semaines) */
.vagues {
    list-style: none;
    margin: 0;
    padding: 6px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vague {
    display: flex;
    gap: 14px;
    position: relative;
    padding-bottom: 18px;
}

.vague:last-child {
    padding-bottom: 0;
}

.vague::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: 0;
    width: 2px;
    background: var(--line);
}

.vague:last-child::before {
    display: none;
}

.vague-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
    background: #fff;
    border: 2px solid var(--line-strong);
    color: var(--muted);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.vague.done .vague-num {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.vague.done::before {
    background: var(--success);
}

.vague.cours .vague-num {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-050);
}

.vague-txt strong {
    display: block;
    font-family: var(--font-display);
    font-size: 13.5px;
}

.vague-txt span {
    font-size: 12.5px;
    color: var(--muted);
}

.site-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-fav {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 12px;
    color: var(--ink-2);
    background: var(--bg-soft);
    border: 1px solid var(--line);
}

.pill.cours { background: var(--primary-050); color: var(--primary-strong); }
.pill.cours i { background: var(--primary); animation: propagCours 1.6s ease-in-out infinite; }

/* Verrou d'offre (citations réservées) */
.offre-lock {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--r-lg);
    border: 1px solid var(--gold-bg);
    background: linear-gradient(100deg, var(--gold-bg), #fff 70%);
    font-size: 13px;
    color: var(--ink-2);
}

.offre-lock strong {
    color: var(--ink);
}

.offre-lock .tag {
    background: #fff;
    flex: none;
}

/* ---- Rapports ----------------------------------------------------------- */
.rapport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.rapport-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    transition: box-shadow .18s, transform .18s;
}

.rapport-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.rapport-mois {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    text-transform: capitalize;
}

.rapport-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rapport-kpis div {
    padding: 10px 12px;
    border-radius: var(--r-sm);
    background: var(--bg-soft);
}

.rapport-kpis strong {
    display: block;
    font-family: var(--font-display);
    font-size: 17px;
}

.rapport-kpis small {
    font-size: 11.5px;
    color: var(--muted);
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
    .stats-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .nap {
        grid-template-columns: 1fr 1fr;
    }

    .nap-item:nth-child(3) {
        border-left: 0;
    }

    .nap-item:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 860px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .propag-grid {
        grid-template-columns: repeat(20, 1fr);
        gap: 4px;
    }
}

@media (max-width: 560px) {
    .stats-5 {
        grid-template-columns: 1fr 1fr;
    }

    .audit-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .audit-hero .score-ring {
        margin: 0 auto;
    }

    .issue-row {
        flex-wrap: wrap;
    }

    .issue-side {
        flex-direction: row;
        align-items: center;
        width: 100%;
        padding-left: 48px;
    }

    .nap {
        grid-template-columns: 1fr;
    }

    .nap-item + .nap-item {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .propag-grid {
        grid-template-columns: repeat(10, 1fr);
    }

    .table-search {
        min-width: 0;
        flex: 1;
    }

    .mode-bar-stats {
        width: 100%;
        justify-content: space-between;
    }
}

/* ---- Boutons partagés (repris de posts.css pour toutes les pages) ------- */
.btn-sm {
    padding: 7px 12px;
    font-size: 12.5px;
    gap: 6px;
}

.btn-ia,
.lien-ia {
    background: linear-gradient(135deg, var(--primary-050), #f2eaff);
    color: var(--primary-strong);
    border: 1px solid var(--primary-100);
}

.btn-ia:hover,
.lien-ia:hover {
    border-color: var(--primary);
}

.lien-ia {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--r-full);
    padding: 5px 11px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    transition: border-color .15s, box-shadow .15s;
}

.lien-ia:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, .14);
}
