/* ============================================
   INDEX.CSS — Design "Soft Editorial"
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --slate:   #1e2330;
  --slate-m: #2e3447;
  --cream:   #f5f0e8;
  --sage:    #7a9e87;
  --sage-lt: #c6dace;
  --amber:   #d4925a;
  --text:    #2e3447;
  --muted:   #8a91a3;
  --border:  #d8d2c8;
  --white:   #ffffff;
  --red:     #e8817f;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
}

/* ── Navbar ─────────────────────────────── */
.navbar {
  background: var(--slate);
  padding: 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.navbar-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--cream);
  letter-spacing: .02em;
  line-height: 1.15;
  text-align: center;
}
.navbar-logo p { font-family: inherit; font-size: inherit; color: inherit; }

.navbar-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.navbar-links li {
  font-size: .875rem;
  color: var(--sage-lt);
  font-weight: 500;
}

.navbar-links li a {
  color: var(--sage-lt);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  padding: .4rem .85rem;
  border-radius: 6px;
  transition: background .2s, color .2s;
  display: inline-block;
}
.navbar-links li a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.navbar-links li a[href*="logout"] { color: var(--red) !important; }

/* ── Section non connecté ────────────────── */
p[style*="gray"] {
  max-width: 500px;
  margin: 4rem auto;
  padding: 2rem 2.5rem;
  background: var(--white);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 20px rgba(30,35,48,.08);
  color: var(--muted) !important;
  font-size: .95rem;
  line-height: 1.6;
}

/* ── Section connecté ─────────────────────── */
h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--slate);
  padding: 2.5rem 2.5rem .5rem;
}

body > p {
  padding: .25rem 2.5rem 1.5rem;
  color: var(--muted);
  font-size: .9rem;
}

/* Ligue inline sur la navbar */
.navbar-links li p {
  font-family: inherit;
  font-style: italic;
  color: var(--cream);
  font-size: .85rem;
}

@media (max-width: 640px) {
  .navbar { padding: 0 1rem; flex-wrap: wrap; height: auto; padding: .75rem 1rem; }
  .navbar-links { flex-wrap: wrap; gap: .5rem; }
  h2, body > p { padding-left: 1.25rem; padding-right: 1.25rem; }
}
