/* ================================================== */
/* ÉDITIONS REKAN — Feuille de style unifiée V4         */
/* Direction A : Bibliothèque classique                  */
/* Background blanc pur, accents doré, typographie       */
/* Lora (titres) + Inter (corps)                         */
/* ================================================== */

/* ========== PALETTE & VARIABLES ========== */
:root {
  --paper: #FFFFFF;
  --white: #FFFFFF; /* Alias compat product-pages.css */
  --cream: #FAF8F3;
  --ink: #1A1A1A;
  --gold: #C4A668;
  --gold-dark: #A88B4F;
  --muted: #6B6657;
  --line: #E5E0D3;
  --line-dark: #D5CFB8;
  --max-editorial: 1280px;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "clig", "calt";
}
h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }

/* ========== UTILITIES ========== */
.container {
  max-width: var(--max-editorial);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section-lg { padding: 6.5rem 0; }
.section-cream { background-color: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-ink { background-color: var(--ink); color: var(--paper); }

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: inline-block;
}
.section-label.on-dark { color: var(--gold); }

.gold-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  width: 80px;
  margin: 1.5rem auto;
}
.gold-line-left {
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  width: 60px;
  margin: 1rem 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold-dark); }
.italic { font-style: italic; }
.font-medium { font-weight: 500; }

/* ========== TYPOGRAPHY ========== */
.h1, h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.h2, h2 { font-size: clamp(2rem, 4vw, 3rem); }
.h3, h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.h-display { font-size: clamp(3rem, 6vw, 5rem); }

.lead {
  font-size: 1.25rem;
  line-height: 1.7;
  font-style: italic;
  font-family: 'Lora', serif;
  color: rgba(26, 26, 26, 0.85);
}

/* ========== BOUTONS ========== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}
.btn-link {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s;
  position: relative;
}
.btn-link::after {
  content: ' â†’';
  transition: transform 0.2s;
  display: inline-block;
}
.btn-link:hover { color: var(--gold-dark); }
.btn-link:hover::after { transform: translateX(4px); }

/* ========== HEADER & NAVIGATION ========== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-logo img {
  height: 5rem;
  width: auto;
}
.site-logo-text {
  font-family: 'Lora', serif;
  font-size: 1.625rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-left: 1px solid var(--line);
  padding-left: 1.25rem;
  line-height: 1;
}
.site-logo-text .accent { color: var(--gold-dark); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  position: relative;
  transition: color 0.2s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.main-nav a:hover { color: var(--gold-dark); }
.main-nav a:hover::after { width: 100%; }
.main-nav a.active { color: var(--gold-dark); }
.main-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--ink);
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }

.mobile-menu {
  display: none;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--line);
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.footer-brand img {
  height: 4rem;
  width: auto;
  background: var(--paper);
  padding: 0.25rem;
}
.footer-brand .site-logo-text {
  color: var(--paper);
  font-size: 1.375rem;
  border-left-color: rgba(255, 255, 255, 0.3);
}
.footer-brand .site-logo-text .accent { color: var(--gold); }
.footer-brand .tagline {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--paper);
  margin-bottom: 0.75rem;
}
.footer-brand .description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}
.footer-col h4 {
  font-family: 'Lora', serif;
  color: var(--paper);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
}
.footer-legal-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: var(--gold); }
.footer-legal-links .separator {
  color: rgba(255, 255, 255, 0.3);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ========== HERO ========== */
.hero {
  padding: 5rem 0 6rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin: 0 0 2rem 0;
  line-height: 1.05;
}
.hero-text .lead {
  margin: 0 0 1rem 0;
}
.hero-text .sub-lead {
  color: var(--muted);
  margin: 0 0 2.5rem 0;
  max-width: 32rem;
  line-height: 1.7;
}
.hero-text .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-visual {
  display: flex;
  justify-content: flex-end;
  position: relative;
}
.hero-visual .cover-wrap {
  position: relative;
  max-width: 320px;
}
.hero-visual img {
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.hero-visual .bg-decoration {
  position: absolute;
  inset: -1rem;
  background: rgba(196, 166, 104, 0.1);
  z-index: -1;
  transform: rotate(2deg);
}
.hero-visual .info-card {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1rem;
  max-width: 200px;
}
.hero-visual .info-card .label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.25rem;
}
.hero-visual .info-card .title {
  font-family: 'Lora', serif;
  font-size: 0.875rem;
  font-weight: 500;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ========== COLLECTIONS APERÃ‡U ========== */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.collection-card .number {
  font-family: 'Lora', serif;
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1;
}
.collection-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.collection-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ========== CATALOGUE "” BOOK CARDS ========== */
.catalogue-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.book-card {
  transition: transform 0.3s ease;
  display: block;
}
.book-card:hover { transform: translateY(-3px); }
.book-card .cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--cream);
  margin-bottom: 0.75rem;
}
.book-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-card .cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.8125rem;
  background: linear-gradient(135deg, #F0E7D0 0%, #DFD2B0 100%);
  color: #8B7B5A;
}
.book-card .badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.badge-available { background: var(--ink); color: var(--paper); }
.badge-coming { background: var(--gold); color: var(--ink); }
.badge-preorder { background: #F0E7D0; color: var(--ink); }

.book-card h3 {
  font-size: 1rem;
  margin-top: 0.5rem;
  line-height: 1.3;
  font-weight: 500;
}
.book-card .subtitle {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.book-card .meta {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}
.book-card .price {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.book-card .price strong { font-weight: 500; }

/* ========== TAGLINE BANNER ========== */
.tagline-banner {
  padding: 6rem 0;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.tagline-banner blockquote {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(196, 166, 104, 0.15);
}
.form-textarea { resize: vertical; min-height: 150px; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.5rem 0;
}
.form-checkbox input { margin-top: 0.25rem; width: 1rem; height: 1rem; accent-color: var(--gold); }
.form-checkbox label {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 400;
}
.form-help {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.25rem;
}

.form-wrapper {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 2.5rem;
}
.form-wrapper.on-paper { background: var(--paper); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { justify-content: center; }
  .collections-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .books-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-logo-text { font-size: 1.25rem; padding-left: 1rem; }
  .site-logo img { height: 4rem; }
}

@media (max-width: 640px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 3.5rem 0; }
  .section-lg { padding: 4rem 0; }
  .form-wrapper { padding: 1.75rem; }
  .site-logo-text { display: none; }
  .footer-legal-links { gap: 0.75rem; font-size: 0.7rem; }
  .footer-legal-links .separator { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
