:root {
    --bg: #f3f4f6; --card: #ffffff; --text: #1f2937; --text-light: #6b7280;
    --blue: #002654; --red: #ed2939; --accent: #2563eb;
    --border: #e5e7eb; --radius: 12px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }

/* HEADER */
header { background: var(--card); padding: 1rem 0; box-shadow: 0 1px 3px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 50; }
.flag-line { height: 3px; width: 100%; display: flex; position: absolute; top: 0; left: 0; }
.flag-blue { background: var(--blue); width: 33.33%; } .flag-white { background: #fff; width: 33.33%; } .flag-red { background: var(--red); width: 33.33%; }
.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.brand-logo { height: 32px; width: auto; }
.nav-link { color: var(--text-light); text-decoration: none; font-weight: 600; font-size: 0.95rem; margin-left: 1.5rem; }
.nav-link:hover { color: var(--blue); }
.nav-btn { background: var(--text); color: white; padding: 0.6rem 1.2rem; border-radius: 99px; font-size: 0.9rem; }

/* HERO */
.hero { text-align: center; padding: 4rem 0 2rem; }
.hero h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.hero p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.highlight { color: var(--blue); position: relative; }

/* GRID & CARDS */
main { flex: 1; padding-bottom: 4rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }

.card {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    text-decoration: none; color: inherit; display: flex; flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; border: 1px solid transparent;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); border-color: var(--blue); }

/* Image dans la card */
.card-img-top {
    width: 100%; height: 200px; object-fit: cover;
    border-bottom: 1px solid var(--border);
}
.card-body { padding: 1.5rem; }

.card h2 { font-size: 1.25rem; margin: 0.5rem 0; font-weight: 700; }
.meta { font-size: 0.75rem; color: var(--text-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: flex; gap: 10px; }

/* ARTICLE DETAIL */
.article-container { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,0.05); overflow: hidden; }
.back-link { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 2rem; text-decoration: none; color: var(--text-light); font-weight: 500; }

/* Image de couverture Article */
.article-cover {
    width: 100%; height: 400px; object-fit: cover;
    display: block;
}
.article-padding { padding: 3rem; }

.article-content { font-size: 1.125rem; color: #374151; line-height: 1.8; }
.article-content h2 { margin-top: 2.5rem; font-size: 1.75rem; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.article-content p { margin-bottom: 1.5rem; }
.article-content img { border-radius: 8px; max-width: 100%; margin: 2rem 0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }

/* TERMINAL CODE BLOCKS */
.article-content pre {
    background: #1e1e1e; color: #f8f8f2; padding: 1.5rem; border-radius: 8px;
    overflow-x: auto; margin: 2rem 0; font-family: "Fira Code", monospace; font-size: 0.9rem;
    position: relative; border: 1px solid #333;
}
.article-content pre::before { content: "• • •"; color: #555; font-size: 1.5rem; position: absolute; top: -10px; right: 15px; letter-spacing: -2px; }
.article-content code { font-family: "Fira Code", monospace; background: rgba(0,0,0,0.06); padding: 0.2em 0.4em; border-radius: 4px; font-size: 0.9em; color: #c7254e; }
.article-content pre code { background: transparent; color: inherit; padding: 0; color: #e2e8f0; }

/* ADMIN */
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); }
.admin-table th, .admin-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.btn-del { color: var(--red); font-weight: 600; text-decoration: none; }
.btn-edit { color: var(--blue); font-weight: 600; text-decoration: none; margin-right: 1rem; }
input, textarea { width: 100%; padding: 0.8rem; border: 1px solid #d1d5db; border-radius: 6px; font-family: inherit; margin-bottom: 1rem; background: #fff; }

/* Footer */
footer { text-align: center; padding: 2rem; color: var(--text-light); font-size: 0.9rem; margin-top: auto; border-top: 1px solid var(--border); background: var(--card); }