/* RAYOR Blog — habillage « Style Suisse » (encre/papier + 1 rouge, Helvetica, plat, radius 0).
   Dérivé de style.css ; conserve la structure, applique la grammaire unifiée rayor.fr. */
:root {
    --bg: #ffffff; --card: #ffffff; --surface: #f4f4f4;
    --text: #0a0a0a; --text-light: rgba(10,10,10,.58);
    --blue: #0a0a0a; --red: #8e0004; --accent: #0a0a0a;
    --border: rgba(10,10,10,.14); --radius: 0;
    --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, 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; -webkit-font-smoothing: antialiased; }

/* HEADER */
header { background: var(--card); padding: 1rem 0; box-shadow: none; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.flag-line { height: 3px; width: 100%; display: flex; position: absolute; top: 0; left: 0; }
/* Filet unique rouge (plus de tricolore) */
.flag-blue { background: var(--red); width: 100%; } .flag-white { display: none; } .flag-red { display: none; }
.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: 700; font-size: .82rem; margin-left: 1.5rem; text-transform: uppercase; letter-spacing: .06em; }
.nav-link:hover { color: var(--red); }
.nav-btn { background: var(--text); color: #fff; padding: .6rem 1.2rem; border-radius: 0; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--text); }
.nav-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

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

/* GRID & CARDS */
main { flex: 1; padding-bottom: 4rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.card {
    background: var(--card); border-radius: 0; overflow: hidden;
    text-decoration: none; color: inherit; display: flex; flex-direction: column;
    box-shadow: none; transition: border-color .15s ease; border: 1px solid var(--border);
}
.card:hover { transform: none; box-shadow: none; border-color: var(--text); }
.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: .5rem 0; font-weight: 700; }
.meta { font-size: .72rem; color: var(--text-light); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; display: flex; gap: 10px; }

/* ARTICLE DETAIL */
.article-container { background: var(--card); border-radius: 0; box-shadow: none; border: 1px solid var(--border); overflow: hidden; }
.back-link { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 2rem; text-decoration: none; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; }
.back-link:hover { color: var(--red); }
.article-cover { width: 100%; height: 400px; object-fit: cover; display: block; }
.article-padding { padding: 3rem; }
.article-content { font-size: 1.125rem; color: var(--text); 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: .5rem; }
.article-content p { margin-bottom: 1.5rem; }
.article-content img { border-radius: 0; max-width: 100%; margin: 2rem 0; box-shadow: none; border: 1px solid var(--border); }

/* TERMINAL CODE BLOCKS (on garde la sémantique « code sombre ») */
.article-content pre {
    background: #101013; color: #f4f4f4; padding: 1.5rem; border-radius: 0;
    overflow-x: auto; margin: 2rem 0; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: .9rem;
    position: relative; border: 1px solid rgba(255,255,255,.16);
}
.article-content pre::before { content: ""; display: none; }
.article-content code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; background: var(--surface); padding: .2em .4em; border-radius: 0; font-size: .9em; color: var(--red); }
.article-content pre code { background: transparent; color: #f4f4f4; padding: 0; }

/* ADMIN */
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 0; }
.admin-table th, .admin-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.btn-del { color: var(--red); font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; }
.btn-edit { color: var(--text); font-weight: 700; text-decoration: none; margin-right: 1rem; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; }
.btn-edit:hover { color: var(--red); }
input, textarea { width: 100%; padding: .8rem; border: 1px solid var(--border); border-radius: 0; font-family: inherit; margin-bottom: 1rem; background: #fff; color: var(--text); }
input:focus, textarea:focus { outline: none; border-color: var(--red); }
button { font-family: inherit; }

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