/* Style éditorial inspiré de Wired — version simplifiée (logo seul + menu à gauche) */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --brand: #000000;
  --accent: #5e17eb;
  --border: #e5e5e5;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

/* --- Layout global --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

header .container {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* --- Logo seul --- */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 150px; /* tu peux ajuster cette valeur selon ton logo */
  width: auto;
}

/* --- Navigation (à gauche du header, à côté du logo) --- */
nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  position: relative;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--accent);
}

/* --- Responsive Header --- */
@media (max-width: 700px) {
  header .container {
    flex-direction: column;
    gap: 12px;
  }

  nav {
    justify-content: center;
  }
}

/* --- Section principale --- */
main {
  margin-top: 40px;
}

/* --- Grille d'articles --- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 800px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.card {
  border-top: 4px solid var(--brand);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.card h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 4px;
}

.card h2 a {
  text-decoration: none;
  color: var(--text);
}

.card h2 a:hover {
  color: var(--accent);
}

.card .meta {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card p {
  color: #333;
  margin-top: 6px;
  font-size: 1rem;
}

/* --- Article complet --- */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.article h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  margin: 16px 0;
  color: var(--brand);
}

.article .meta {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.prose p {
  margin: 0 0 20px;
  color: #222;
  font-size: 1.05rem;
}

/* --- Liens / Boutons --- */
a.button {
  display: inline-block;
  padding: 8px 14px;
  border: 2px solid var(--brand);
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  margin-top: auto;
  align-self: start;
}

a.button:hover {
  background: var(--brand);
  color: #fff;
}

/* --- Cartes avec image --- */
.card {
  border-top: 4px solid var(--brand);
  background: var(--card);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.card img {
  width: 100%;
  height: 5px;
  object-fit: cover;
  display: block;
}

.card h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 800;
  margin: 12px 16px 6px;
}

.card .meta {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 16px 8px;
}

.card p {
  color: #333;
  font-size: 1rem;
  margin: 0 16px 16px;
}


/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  color: var(--accent);
}
