/* ============================================================
   COMPONENTS.CSS — Cards, badges, tags, listes, modales
   ============================================================ */

/* ── CARD MODULE (accueil) ──────────────────────────────────── */
.module-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: box-shadow var(--transition), transform var(--transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}
.module-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: #EBF3FF;
    color: inherit;
}

.module-card-icon {
    font-size: 2rem;
    line-height: 1;
}

.module-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blue-dark);
}

.module-card-desc {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.5;
}

/* ── CARD ARTICLE / RECETTE ─────────────────────────────────── */
.content-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.content-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.content-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.content-card-body {
    padding: 1.1rem 1.25rem 1.25rem;
}

.content-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
    line-height: 1.4;
}
.content-card a { color: inherit; }
.content-card a:hover { color: var(--blue-main); }

.content-card-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

/* ── BADGES ─────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
}
.badge-blue    { background: #EBF3FF; color: var(--blue-main); }
.badge-green   { background: #F0FFF4; color: #2E7D32; }
.badge-red     { background: #FFF0F0; color: #C62828; }
.badge-orange  { background: #FFF8E1; color: #E65100; }
.badge-gray    { background: var(--bg); color: #6c757d; border: 1px solid var(--border); }

/* ── TAGS ───────────────────────────────────────────────────── */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #555;
    text-decoration: none;
    transition: all var(--transition);
}
.tag:hover { background: var(--blue-main); color: #fff; border-color: var(--blue-main); }

/* ── DIVIDER ────────────────────────────────────────────────── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* ── EMPTY STATE ────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state-title { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }

/* ── TABLE ──────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table th,
.data-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.data-table th {
    background: var(--bg);
    font-weight: 600;
    color: #444;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.data-table tbody tr:hover { background: #F9FBFF; }

/* ── STAT BOX ───────────────────────────────────────────────── */
.stat-box {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}
.stat-value { font-size: 2rem; font-weight: 700; color: var(--blue-main); }
.stat-label { font-size: 0.85rem; color: #6c757d; margin-top: 0.25rem; }
