/* L'Autre Site — Revue de poésie politique */
/* Design: Sophisticated French literary magazine, dark slate/cream palette, Playfair Display + Libre Baskerville */

:root {
  --primary: #1a2332;
  --primary-light: #2c3e55;
  --accent: #8b6914;
  --accent-light: #c49a2a;
  --cream: #f8f4ee;
  --cream-dark: #ede8df;
  --text-dark: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-light: #7a7071;
  --border: #d4cdc2;
  --white: #ffffff;
  --red-editorial: #8b1a1a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dark);
  background-color: var(--cream);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.3rem, 3vw, 2rem); margin-bottom: 1rem; margin-top: 2.5rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 0.75rem; margin-top: 2rem; }

p { margin-bottom: 1.25rem; }

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

li { margin-bottom: 0.4rem; }

strong { font-weight: 700; color: var(--primary-light); }

em { font-style: italic; color: var(--text-mid); }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(139, 105, 20, 0.3);
  transition: color 0.2s, text-decoration-color 0.2s;
}

a:hover {
  color: var(--red-editorial);
  text-decoration-color: var(--red-editorial);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---- Navigation ---- */
.site-nav {
  background-color: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.nav-logo a {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-logo .subtitle {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.7rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent-light);
  display: block;
  margin-top: 0.1rem;
  letter-spacing: 0.08em;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.nav-menu a {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.78rem;
  color: #c0b8ae;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 3px;
  transition: color 0.2s, background-color 0.2s;
  letter-spacing: 0.02em;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--cream);
  background-color: rgba(255,255,255,0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--cream);
  font-size: 1.4rem;
}

/* ---- Page Banner / Hero ---- */
.page-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--primary);
}

.page-hero .hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: 0.45;
  display: block;
}

.page-hero .hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem;
  background: linear-gradient(to top, rgba(26,35,50,0.95) 0%, rgba(26,35,50,0.5) 70%, transparent 100%);
}

.page-hero .hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.page-hero h1 {
  color: var(--cream);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.page-hero .hero-subtitle {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--accent-light);
  max-width: 700px;
}

/* ---- Homepage hero ---- */
.home-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--primary);
  min-height: 520px;
  display: flex;
  align-items: flex-end;
}

.home-hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.home-hero .hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
  background: linear-gradient(to top, rgba(26,35,50,0.98) 0%, rgba(26,35,50,0.6) 60%, transparent 100%);
  width: 100%;
}

.home-hero .hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.home-hero .revue-label {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
  display: block;
}

.home-hero h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.home-hero .hero-tagline {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-style: italic;
  color: #b8b0a4;
  max-width: 680px;
  line-height: 1.65;
}

/* ---- Main content ---- */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 0;
}

.content-main {
  min-width: 0;
}

.content-sidebar {
  padding-top: 0.5rem;
}

/* Content page without sidebar */
.content-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 0;
}

/* ---- Article text ---- */
.article-text h2:first-of-type {
  margin-top: 1.5rem;
}

.article-text h2 {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

.article-text blockquote {
  border-left: 3px solid var(--border);
  padding: 0.75rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--cream-dark);
  font-style: italic;
  color: var(--text-mid);
  border-radius: 0 4px 4px 0;
}

/* ---- Inline images ---- */
.article-img {
  margin: 2rem 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,35,50,0.12);
}

.article-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.article-img figcaption {
  background: var(--primary);
  color: #a8b0b8;
  font-size: 0.78rem;
  font-style: italic;
  padding: 0.6rem 1rem;
  font-family: 'Libre Baskerville', serif;
}

/* ---- Home sections ---- */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 3rem 0;
}

.section-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 1.5rem;
  border-radius: 0 0 4px 4px;
  transition: box-shadow 0.2s;
}

.section-card:hover {
  box-shadow: 0 6px 24px rgba(26,35,50,0.1);
}

.section-card .section-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
  color: var(--accent);
}

.section-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.section-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.section-card .card-link {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.section-card .card-link:hover {
  color: var(--red-editorial);
}

/* ---- Sidebar ---- */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.sidebar-widget h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav li {
  margin: 0;
  border-bottom: 1px solid var(--cream-dark);
}

.sidebar-nav a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.88rem;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.sidebar-nav a:hover {
  color: var(--accent);
  padding-left: 0.4rem;
}

.sidebar-quote {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.sidebar-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-style: normal;
  color: var(--text-light);
}

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

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: var(--primary);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 0.78rem;
  color: #9098a8;
  font-family: 'Libre Baskerville', serif;
}

.breadcrumb-inner a {
  color: var(--accent-light);
  text-decoration: none;
}

.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-inner .sep { margin: 0 0.5rem; }

/* ---- Contact Form ---- */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 4px;
  margin-top: 2rem;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
  font-family: 'Libre Baskerville', serif;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: 'Libre Baskerville', serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form .btn-submit {
  background: var(--primary);
  color: var(--cream);
  border: none;
  padding: 0.75rem 2rem;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.contact-form .btn-submit:hover {
  background: var(--primary-light);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--primary);
  color: #9098a8;
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
  border-top: 3px solid var(--accent);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  display: block;
  margin-bottom: 0.4rem;
}

.footer-brand .footer-tagline {
  font-style: italic;
  font-size: 0.82rem;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #888;
  margin-bottom: 0;
}

.footer-col h5 {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: var(--cream);
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li { margin-bottom: 0.4rem; }

.footer-col ul a {
  font-size: 0.82rem;
  color: #8890a0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--accent-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #666;
}

/* ---- 404 ---- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.error-page .error-code {
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.error-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--text-mid);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.btn-home {
  display: inline-block;
  background: var(--primary);
  color: var(--cream);
  padding: 0.75rem 2rem;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  border-radius: 3px;
  transition: background-color 0.2s;
}

.btn-home:hover {
  background: var(--primary-light);
  color: var(--cream);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    border-top: 2px solid var(--border);
    padding-top: 2rem;
  }

  .sections-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .nav-menu { display: none; }
  .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--primary); padding: 1rem; }
  .nav-toggle { display: block; }

  .sections-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: auto; }

  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .home-hero { min-height: 380px; }
  .home-hero .hero-img { height: 380px; }

  .page-hero .hero-img { height: 280px; }
}
