@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght=600;700&family=Inter:wght=400;500;600&display=swap');

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. DESIGN TOKENS  — Univers Menthe, Sauge & Crème Épuré
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
    /* Palette Principale : Verts Botaniques et Scientifiques */
    --cs-primary:   #163229;   /* Vert sapin très profond (remplace le noir pour les titres/textes forts) */
    --cs-teal:      #0d9488;   /* Vert pin/teal lumineux pour les boutons et actions */
    --cs-mint:      #059669;   /* Menthe fraîche pour les états actifs et survols */
    --cs-orange:    #d97706;   /* Ambre discret pour l'état en cours */
    --cs-red:       #e11d48;   /* Églantine/Rouge pour le danger */
    --cs-gold:      #ca8a04;   /* Or vieilli pour les favoris */
    --cs-olive:     #60675b;   /* Sauge grisée pour les textes secondaires */

    /* Dégradés Fluides et Lumineux */
    --gradient-solaire: linear-gradient(135deg, #e6f4f1 0%, #f4f7f4 60%, #fcfbf7 100%); /* Dégradé givré/crème très frais */
    --gradient-navbar: linear-gradient(90deg, #f0f7f4 0%, #e6f2ed 100%); /* Menthe à l'eau ultra légère */
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);

    /* Palette de Fond Style Papier Lumineux */
    --cs-bg:        #f7f9f8;   /* Fond de page très légèrement teinté de vert/gris pour le confort */
    --cs-cream:     #e4e9e7;   /* Diviseurs fins */
    --cs-cream-dark:#a3bdae;   /* Bordures accentuées */
    --cs-text:      #2f3e36;   /* Texte principal Sauge Sombre */

    /* Couleurs d'états fraîches */
    --cs-green:     #10b981;
    --cs-green-bg:  #f0fdf4;
    --cs-green-border: #bbf7d0;

    --cs-orange-bg:     #fff7ed;
    --cs-orange-border: #fed7aa;

    /* Surfaces */
    --cs-surface:   #edf3f0;   /* Fonds secondaires clairs */
    --cs-border:    #cbdcd3;   /* Bordures de formulaires */

    /* Typographie */
    --font-title:   'Crimson Pro', serif;
    --font-body:    'Inter', -apple-system, sans-serif;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. BASE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
body {
    background-color: var(--cs-bg);
    color: var(--cs-text);
    font-family: var(--font-body);
    line-height: 1.7;
    padding-bottom: 90px; /* fixed footer clearance */
}

h1, h2, h3, .article-section h2 {
    font-family: var(--font-title), serif;
    letter-spacing: -0.01em;
    color: var(--cs-primary);
}

a {
    color: var(--cs-teal);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--cs-mint); text-decoration: underline; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. LAYOUT — Navbar / Site header / Footer (Version Menthe/Crème)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Navbar ─────────────────────────────────────────────────────────── */
.navbar {
    background: var(--gradient-navbar) !important;
    padding: 0.9rem 0; /* Un poil plus de respiration pour le grand logo */
    box-shadow: 0 4px 15px rgba(22, 50, 41, 0.04);
    border-bottom: 1px solid #d1e2da;
}
.navbar-brand {
    color: var(--cs-primary) !important;
    font-family: var(--font-title);
    font-size: 1.4rem; /* Légèrement agrandi */
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
}

/* 🚀 AGRANDISSEMENT DU LOGO DANS LE MENU */
.navbar-brand svg {
    height: 42px; /* Augmenté de 30px à 42px */
    width: auto;
    vertical-align: middle;
    margin-right: 12px;
}
.logo-adfi {
    height: 45px; /* Harmonisé avec la taille du logo principal */
    width: auto;
}

.navbar-nav .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #3b5249 !important; /* Vert forêt adouci */
    padding: 0.4rem 0.85rem;
    border-radius: 0.35rem;
    transition: all 0.2s;
}
.navbar-nav .nav-link:hover  { color: var(--cs-mint) !important; background: rgba(13, 148, 136, 0.08); }
.navbar-nav .nav-link.active { color: white !important; background: var(--cs-teal); font-weight: 600; }

.navbar .btn-outline-light {
    color: var(--cs-primary) !important;
    border-color: var(--cs-primary) !important;
}
.navbar .btn-outline-light:hover {
    background: var(--cs-primary) !important;
    color: white !important;
}

/* ── Site header ─────────────────────────────────────────────────────── */
.site-header {
    background: var(--gradient-solaire);
    padding: 2.5rem 0 2.2rem;
    margin-bottom: 2rem;
    color: var(--cs-text);
    border-bottom: 1px solid #cbdcd3;
}
.site-header h1 {
    color: var(--cs-primary) !important;
    font-size: 2.2rem;
}
.site-header p {
    color: #40564c;
}
.site-header-tagline {
    font-size: 1.35rem;
    font-weight: 500;
    opacity: 0.95;
    margin: 0;
}
.site-header-sync {
    font-size: 0.75rem;
    color: var(--cs-teal);
    margin: 0.2rem 0 0;
    display: block;
}
.pulse-icon {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--cs-mint);
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: #f0f4f2; /* Fond crème-menthe très doux */
    color: var(--cs-text);
    padding: 0.75rem 0;
    font-size: 0.875rem;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.02);
    border-top: 1px solid #cbdcd3;
}
footer strong { color: var(--cs-primary); }
footer a       { color: var(--cs-teal) !important; }
footer a:hover { color: var(--cs-mint) !important; text-decoration: underline; }
.footer-links  { display: flex; align-items: center; gap: 0.5rem; }
.sep           { opacity: 0.5; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. ARTICLE CARDS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.article-card {
    border: 1px solid #e1e8e4;
    border-radius: 1rem;
    box-shadow: 0 4px 18px rgba(22, 50, 41, 0.02);
    background: var(--gradient-card);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s ease;
    height: 100%;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(13, 148, 136, 0.08);
    border-color: var(--cs-cream-dark);
}

.article-card .card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.article-card .card-body > .row.align-items-center {
    margin-bottom: 1rem;
}

.article-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cs-primary);
    margin-bottom: 0.85rem;
    line-height: 1.4;
    display: block;
}

.article-card .card-text {
    font-size: 0.9rem;
    color: #4a5d54;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 0;
}

.article-card-apa {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #607369;
    padding: 0.75rem 1.75rem;
    background-color: #edf2ef;
    border-top: 1px dashed var(--cs-cream);
    font-style: normal;
}
.article-card-apa em { font-style: italic; }

.article-card .card-footer {
    background: transparent;
    border-top: 1px solid #edf2ef;
    padding: 1rem 1.75rem;
}

/* Cartes teintées par état */
.article-card--read {
    border: 1px solid var(--cs-green-border) !important;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 120px) !important;
}
.article-card--read .card-title { color: #065f46; }

.article-card--in-progress {
    border: 1px solid var(--cs-orange-border) !important;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 120px) !important;
}
.article-card--in-progress .card-title { color: #9a3412; }

/* Bouton de lecture */
.btn-read {
    background-color: var(--cs-teal);
    color: white !important;
    border: none;
    border-radius: 2rem;
    padding: 0.45rem 1.4rem;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.15);
    transition: all 0.2s;
}
.btn-read:hover {
    background-color: var(--cs-primary);
    box-shadow: 0 4px 12px rgba(22, 50, 41, 0.2);
}
.btn-read:active {
    transform: scale(0.98);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. BADGES & STATUS INDICATORS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.badge-status-container {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

/* Badge "Nouveau" */
.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #e6f7f0;
    color: #047857;
    border: 1px solid #a3e635;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px 10px;
    border-radius: 20px;
    vertical-align: middle;
}
.badge-dot {
    width: 5px;
    height: 5px;
    background-color: #047857;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%   { transform: scale(1);   opacity: 1; }
    50%  { transform: scale(1.4); opacity: 0.7; }
    100% { transform: scale(1);   opacity: 1; }
}

/* Badge "Lu" */
.badge-read {
    display: inline-flex;
    align-items: center;
    background-color: var(--cs-green-bg);
    color: #065f46;
    border: 1px solid var(--cs-green-border);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    vertical-align: middle;
}
.badge-read-inline {
    display: inline-flex;
    align-items: center;
    background-color: var(--cs-green-bg);
    color: #065f46;
    border: 1px solid var(--cs-green-border);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Badge "En cours" */
.badge-in-progress {
    display: inline-flex;
    align-items: center;
    background-color: var(--cs-orange-bg);
    color: #9a3412;
    border: 1px solid var(--cs-orange-border);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    vertical-align: middle;
}
.badge-in-progress-inline {
    display: inline-flex;
    align-items: center;
    background-color: var(--cs-orange-bg);
    color: #9a3412;
    border: 1px solid var(--cs-orange-border);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.badge-read-yes { background: #d1f0d1; color: #1a6e1a; font-size: .72rem; }
.badge-read-no  { background: #f5f5f5; color: #888;    font-size: .72rem; }

.cat-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    background: #e2e8f0;
    color: #475569;
}
.cat-default { background: rgba(100,100,100,.08); color: #666; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. SEARCH BAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.search-bar { width: 100%; }
.search-bar-inner {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 3rem;
    padding: 0.3rem 0.3rem 0.3rem 1rem;
    transition: all .2s;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(22, 50, 41, 0.02);
}
.search-bar-inner:focus-within {
    border-color: var(--cs-teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.search-icon            { color: #94a3b8; flex-shrink: 0; }
.search-input           { flex: 1; border: none; outline: none; font-size: 0.9rem; background: transparent; color: var(--cs-text); min-width: 0; }
.search-input::placeholder { color: #94a3b8; }
.search-clear           { color: #94a3b8; font-size: 0.85rem; padding: 0 0.25rem; text-decoration: none; flex-shrink: 0; }
.search-clear:hover     { color: #475569; }
.search-submit          { background: var(--cs-primary); color: white; border: none; border-radius: 2rem; padding: 0.35rem 1.1rem; font-size: 0.82rem; font-weight: 600; cursor: pointer; flex-shrink: 0; transition: background .2s; }
.search-submit:hover    { background: var(--cs-mint); }
.search-results-info    { font-size: .875rem; color: #64748b; border-left: 3px solid var(--cs-teal); padding-left: .75rem; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   7. CATEGORY UI
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.category-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1rem 0; }
.cat-filter-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35em 1em;
    border-radius: 2rem;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    background: white;
    color: #475569;
    transition: all 0.18s ease;
    min-height: 2rem;
}
.cat-filter-tag.active {
    background: var(--cs-primary);
    color: #fff !important;
    border-color: transparent !important;
}

.category-hero {
    background: #edf3f0;
    color: var(--cs-primary);
    padding: 2rem 0;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid #cbdcd3;
}
.category-hero h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--cs-primary) !important;
}
.category-hero p {
    opacity: 0.9;
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--cs-text);
}

.pubmed-keywords-block {
    background: rgba(22, 50, 41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    overflow: hidden;
    max-width: 780px;
}
.pubmed-keywords-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pubmed-keywords-label {
    font-size: 0.7rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
}
.pubmed-keywords-code {
    display: block;
    padding: 0.9rem 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   8. ARTICLE DETAIL (show page)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.article-header {
    background: white;
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin-bottom: 1.5rem;
    border: 1px solid #cbdcd3;
}
.article-header h1 { font-size: 1.9rem; color: var(--cs-primary); line-height: 1.35; }

.article-section {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin-bottom: 1.5rem;
    border: 1px solid #cbdcd3;
}
.article-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cs-primary);
    border-left: 4px solid var(--cs-teal);
    padding-left: 0.75rem;
    text-transform: uppercase;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   9. PAGINATION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pagination { gap: 0.35rem; }
.page-item .page-link {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1px solid #cbdcd3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cs-text);
    background: white;
}
.page-item.active .page-link {
    background: var(--cs-teal) !important;
    border-color: var(--cs-teal) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.15);
}
.page-item .page-link:hover:not(.active) {
    background-color: var(--cs-surface);
    color: var(--cs-primary);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   10. NOTES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.note-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    overflow: hidden;
    border: 1px solid #cbdcd3;
}
.note-card-header {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    background: white;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.note-card-header:hover { background: var(--cs-surface); }
.note-card-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--cs-primary);
}
.note-card-meta {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
}
.note-card-footer {
    padding: 0.5rem 1.25rem 0.75rem;
    border-top: 1px solid var(--cs-cream);
    background: var(--cs-surface);
}

.note-content {
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--cs-text);
}
.note-content h1, .note-content h2, .note-content h3 {
    font-family: var(--font-title);
    color: var(--cs-primary);
    margin: 1rem 0 0.5rem;
}
.note-content h2 { font-size: 1.2rem; }
.note-content h3 { font-size: 1rem; }
.note-content p  { margin: 0 0 0.75rem; }
.note-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.note-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.note-content li { margin-bottom: 0.25rem; }
.note-content strong { font-weight: 700; }
.note-content em     { font-style: italic; }
.note-content del    { opacity: 0.6; }
.note-content hr     { border: none; border-top: 1px solid var(--cs-cream); margin: 1rem 0; }
.note-content a      { color: var(--cs-teal); }
.note-content a:hover { color: var(--cs-mint); }
.note-content blockquote {
    border-left: 3px solid var(--cs-cream);
    margin: 0.75rem 0;
    padding: 0.25rem 1rem;
    color: #64748b;
    font-style: italic;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   11. ADMIN
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.card { border: 1px solid #cbdcd3; border-radius: 0.75rem; box-shadow: 0 4px 12px rgba(0,0,0,.02); }

.btn-cs { background: var(--cs-primary); color: white; border: none; border-radius: 2rem; font-size: .85rem; padding: 0.45rem 1.25rem; }
.btn-cs:hover { background: var(--cs-mint); color: white; }

.card-admin-bar {
    border-top: 1px solid var(--cs-cream);
    background: #fdfdfd;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.admin-action-bar {
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-radius: 0.6rem;
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.32rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1.4;
}
.btn-admin-edit                { background: var(--cs-primary); color: white !important; }
.btn-admin-edit:hover          { background: #264e41;          color: white !important; }

.btn-admin-read                { background: var(--cs-green);   color: white !important; }
.btn-admin-read:hover          { background: #047857;           color: white !important; }

.btn-admin-unread              { background: var(--cs-green-bg);    color: #065f46 !important; border: 1.5px solid #a7f3d0; }
.btn-admin-unread:hover        { background: #d1fae5; }

.btn-admin-in-progress         { background: var(--cs-orange); color: white !important; }
.btn-admin-in-progress:hover   { background: #c2410c;          color: white !important; }

.btn-admin-in-progress-active  { background: var(--cs-orange-bg); color: #9a3412 !important; border: 1.5px solid var(--cs-orange-border); }
.btn-admin-in-progress-active:hover { background: #ffedd5; }

.btn-admin-delete              { background: #ef4444; color: white !important; padding: 0.32rem 0.65rem; }
.btn-admin-delete:hover        { background: #dc2626; color: white !important; }

.admin-form .form-label { font-weight: 600; font-size: 0.875rem; color: var(--cs-primary); margin-bottom: 0.3rem; }
.admin-form .form-control,
.admin-form .form-select {
    border-radius: 0.5rem;
    border: 1.5px solid #cbd5e1;
    padding: 0.6rem 0.875rem;
    font-size: 0.9rem;
    background: #f8fafc;
    transition: all .2s;
}
.admin-form .form-control:focus,
.admin-form .form-select:focus {
    border-color: var(--cs-teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
    background: white;
    outline: none;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .72rem;
    color: #64748b;
    margin-bottom: 1rem;
    border-bottom: 1px solid #cbdcd3;
    padding-bottom: .5rem;
}

.table th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: #475569; }
.table td { vertical-align: middle; }

.synthese-table { font-size: .8rem; }
.synthese-table thead th {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}
.synthese-cell              { font-size: .8rem; line-height: 1.45; color: #334155; max-width: 220px; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   12. LANGUAGE SWITCHER (FLOATING)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.language-switcher-floating {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}
.language-switcher-floating .btn {
    border-radius: 50px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}
/* active language button */
.btn-light {
    background: linear-gradient(145deg, #e6f2ed, #cbdcd3) !important;
    color: var(--cs-primary) !important;
    border: none !important;
    opacity: 1 !important;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(22, 50, 41, 0.12) !important;
    font-weight: 700 !important;
}
/* inactive language button */
.btn-outline-light.opacity-75 {
    background: linear-gradient(145deg, #ffffff, #f7f9f8) !important;
    color: var(--cs-primary) !important;
    border: 1.5px solid var(--cs-cream) !important;
    opacity: 0.85 !important;
}
.language-switcher-floating .btn:hover {
    opacity: 1 !important;
    transform: scale(1.18);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.2);
    border: 1.5px solid var(--cs-teal) !important;
    cursor: pointer;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   13. RESPONSIVE & 14. FAVORITES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
    .cat-filter-tag    { flex: 1 1 calc(50% - 0.5rem); min-height: 2.5rem; font-size: 0.72rem; }
    .cat-badge         { font-size: 0.65rem; }
    .article-header, .article-section   { padding: 1.5rem; }
    .article-header h1 { font-size: 1.5rem; }
    .category-hero     { padding: 1.25rem 0 1rem; }
    footer .d-flex     { flex-direction: column; align-items: center; text-align: center; gap: 0.25rem; }
    .navbar-nav.flex-row { gap: 0 !important; flex-wrap: wrap; }
    .language-switcher-floating       { right: 10px; }
    .language-switcher-floating .btn  { width: 38px; height: 38px; font-size: 0.72rem; }
}

@media (min-width: 768px) {
    .category-hero    { padding: 3rem 0; text-align: left; }
    .category-hero h1 { font-size: 2.5rem; }
    .category-hero p  { margin: 0; font-size: 1.1rem; }
}

.btn-favorite-star { background: none; border: none; padding: 0; cursor: pointer; transition: transform 0.2s ease; }
.btn-favorite-star:hover { transform: scale(1.15); }
.btn-favorite-star svg { vertical-align: middle; }
.btn-favorite-star-card { background: none; border: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.2s ease, color 0.2s ease; }
.btn-favorite-star-card:hover { transform: scale(1.2); }
.btn-favorite-star-card .text-muted:hover { color: var(--cs-gold) !important; }