/* ============================================================
   La Cuisine aux Ciseaux — Shared Styles
   ============================================================ */

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

:root {
  --bg: #faf6f1;
  --card: #ffffff;
  --accent: #c0613a;
  --accent-light: #f0d9cc;
  --text: #3a2e28;
  --text-light: #7a6e68;
  --border: #e8ddd5;
  --radius: 12px;
  --pin: #4a8c3f;
  --reject: #c44;
  --disabled-bg: #f0ebe5;
  --disabled-text: #b5a99e;
  --max-w: 720px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Top navigation --- */
.site-nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 1rem 0.2rem;
  position: sticky; top: 0; z-index: 100;
}
.site-nav-inner {
  max-width: 960px;
  margin: 0 auto;
}
.nav-brand {
  text-align: center;
  padding-bottom: 0.3rem;
}
.site-nav .brand {
  font-weight: 700; font-size: 1.1rem; color: var(--accent);
}
.nav-row-main, .nav-row-sub {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.nav-row-main {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
}
.nav-row-main > a {
  text-align: center;
}
.nav-sub-cell {
  display: flex; justify-content: center;
  padding-top: 0.2rem; padding-bottom: 0.15rem;
}
.site-nav a {
  font-size: 0.8rem; font-weight: 500; color: var(--text-light);
  padding: 0.3rem 0.5rem; border-radius: 6px;
  transition: all 0.15s; white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active {
  background: var(--accent-light); color: var(--accent);
  text-decoration: none;
}
.nav-sub-cell a {
  font-size: 0.72rem; opacity: 0.85;
}
.nav-lang {
  font-size: 0.75rem; font-weight: 600;
  padding: 0.25rem 0.5rem; border: 1.5px solid var(--border);
  border-radius: 6px; background: transparent; color: var(--text-light);
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.nav-lang:hover { border-color: var(--accent); color: var(--accent); }

/* --- Page wrapper --- */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* --- Hero (home page) --- */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}
.hero h1 {
  font-size: 2.2rem; font-weight: 700; color: var(--accent);
  margin-bottom: 0.5rem;
}
.hero .subtitle {
  font-size: 1.1rem; color: var(--text-light); font-style: italic;
}

/* --- Story block --- */
.story {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.75;
}
.story p { margin-bottom: 1rem; }
.story p:last-child { margin-bottom: 0; }

/* --- Chapter cards grid --- */
.chapters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.chapter-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex; flex-direction: column;
}
.chapter-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  text-decoration: none;
  transform: translateY(-2px);
}
.chapter-card .ch-number {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-light); margin-bottom: 0.5rem;
}
.chapter-card .ch-icon {
  font-size: 1.8rem; margin-bottom: 0.5rem;
}
.chapter-card .ch-title {
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.35rem;
}
.chapter-card .ch-desc {
  font-size: 0.8rem; color: var(--text-light); flex: 1;
}

/* --- Chapter page header --- */
.ch-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.ch-header h1 {
  font-size: 1.8rem; font-weight: 700; color: var(--accent);
  margin-bottom: 0.25rem;
}
.ch-header .ch-intro {
  font-size: 0.95rem; color: var(--text-light); font-style: italic;
}

/* --- Content sections --- */
.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.section h2 {
  font-size: 1.1rem; font-weight: 700; color: var(--accent);
  margin-bottom: 0.5rem;
}
.section h3 {
  font-size: 0.95rem; font-weight: 600; color: var(--text);
  margin-bottom: 0.4rem;
}
.section p {
  font-size: 0.9rem; margin-bottom: 0.75rem;
}
.section p:last-child { margin-bottom: 0; }
.section ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
  font-size: 0.9rem;
}
.section li { margin-bottom: 0.3rem; }

/* --- Prev/Next navigation --- */
.page-nav {
  display: flex; justify-content: space-between;
  margin-top: 2.5rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.page-nav a {
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  padding: 0.4rem 0.75rem; border: 1.5px solid var(--accent);
  border-radius: 8px; transition: all 0.15s;
}
.page-nav a:hover {
  background: var(--accent); color: white; text-decoration: none;
}
.page-nav .spacer { flex: 1; }

/* --- Placeholder for future content --- */
.placeholder {
  background: var(--disabled-bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  font-size: 0.9rem;
  margin: 1rem 0;
}

/* --- Responsive --- */
@media (max-width: 500px) {
  .hero h1 { font-size: 1.6rem; }
  .chapters { grid-template-columns: 1fr; }
  .page { padding: 1.25rem 0.75rem 3rem; }
  .site-nav a { font-size: 0.7rem; padding: 0.25rem 0.35rem; }
  .nav-row { flex-wrap: wrap; }
  .nav-row-sub { display: none; }
  .story { padding: 1rem 1.25rem; }
}
